diff --git a/.gitignore b/.gitignore index f9f086a9d..a3a7cd79b 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,14 @@ compile_commands.json cmake-*/* build/* -_build/* +_build*/* _install/* .venv/* + +# These are now generated by CMake using template to support Qt5 and Qt6. +# See rvui.mu.in +rvui.mu +# See window_mode.mu.in +window_mode.mu +# See session_manager.mu.in +session_manager.mu diff --git a/.gitmodules b/.gitmodules index 35798217b..88d6c0d4f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,5 @@ url = https://github.com/shotgunsoftware/openrv-WFObj.git [submodule "src/pub"] path = src/pub - url = https://github.com/shotgunsoftware/openrv-pub.git + url = git@github.com:cedrik-fuoco-adsk/openrv-pub.git + branch = qt6 diff --git a/cmake/defaults/cxx_defaults.cmake b/cmake/defaults/cxx_defaults.cmake index 2a9e76ddc..243dea13a 100644 --- a/cmake/defaults/cxx_defaults.cmake +++ b/cmake/defaults/cxx_defaults.cmake @@ -68,9 +68,13 @@ ENDIF() IF(RV_VFX_PLATFORM STREQUAL CY2024) SET(RV_VFX_CY2024 ON) ADD_COMPILE_DEFINITIONS(RV_VFX_CY2024) + SET(RV_QT_PACKAGE_NAME "Qt6") + SET(RV_QT_MU_TARGET "MuQt6") ELSEIF(RV_VFX_PLATFORM STREQUAL CY2023) SET(RV_VFX_CY2023 ON) ADD_COMPILE_DEFINITIONS(RV_VFX_CY2023) + SET(RV_QT_PACKAGE_NAME "Qt5") + SET(RV_QT_MU_TARGET "MuQt5") ENDIF() # diff --git a/cmake/defaults/rv_options.cmake b/cmake/defaults/rv_options.cmake index 1d0f87dd4..1d3ffc03d 100644 --- a/cmake/defaults/rv_options.cmake +++ b/cmake/defaults/rv_options.cmake @@ -75,6 +75,7 @@ SET(RV_VFX_PLATFORM "${_RV_VFX_PLATFORM}" CACHE STRING "Set the VFX platform for installaing external dependencies" FORCE ) + SET_PROPERTY( CACHE RV_VFX_PLATFORM PROPERTY STRINGS ${_RV_VFX_PLATFORM} diff --git a/cmake/dependencies/CMakeLists.txt b/cmake/dependencies/CMakeLists.txt index e0fd4fa78..49a2c0f62 100644 --- a/cmake/dependencies/CMakeLists.txt +++ b/cmake/dependencies/CMakeLists.txt @@ -45,7 +45,15 @@ ENDIF() IF(RV_TARGET_WINDOWS) INCLUDE(expat) ENDIF() -INCLUDE(qt5) + +# TODO_QT: Not generic enough.. But maybe we could use something like NOT CY2023 +# since after 2023, it is Qt6 +IF(RV_VFX_PLATFORM STREQUAL CY2023) + INCLUDE(qt5) +ELSEIF(RV_VFX_PLATFORM STREQUAL CY2024) + INCLUDE(qt6) +ENDIF() + INCLUDE(openssl) # Python3 requirement INCLUDE(python3) INCLUDE(boost) @@ -120,8 +128,21 @@ IF(RV_TARGET_WINDOWS) ENDIF() MESSAGE(STATUS "Using PNG: ${RV_DEPS_PNG_VERSION}") MESSAGE(STATUS "Using Python3: ${RV_DEPS_PYTHON3_VERSION}") -MESSAGE(STATUS "Using PySide2: ${RV_DEPS_PYSIDE2_VERSION}") -MESSAGE(STATUS "Using Qt5: ${RV_DEPS_QT5_VERSION}") + +RV_VFX_SET_VARIABLE( + _rv_deps_pyside_version + CY2023 "Using PySide2: ${RV_DEPS_PYSIDE_VERSION}" + CY2024 "Using PySide6: ${RV_DEPS_PYSIDE_VERSION}" +) +MESSAGE(STATUS "${_rv_deps_pyside_version}") + +RV_VFX_SET_VARIABLE( + _rv_deps_qt_version + CY2023 "Using Qt5: ${RV_DEPS_QT5_VERSION}" + CY2024 "Using Qt6: ${RV_DEPS_QT6_VERSION}" +) +MESSAGE(STATUS "${_rv_deps_qt_version}") + MESSAGE(STATUS "Using Raw: ${RV_DEPS_RAW_VERSION}") MESSAGE(STATUS "Using Tiff: ${RV_DEPS_TIFF_VERSION}") MESSAGE(STATUS "Using WebP: ${RV_DEPS_WEBP_VERSION}") diff --git a/cmake/dependencies/oiio.cmake b/cmake/dependencies/oiio.cmake index fc19c5a12..e5bcc8402 100644 --- a/cmake/dependencies/oiio.cmake +++ b/cmake/dependencies/oiio.cmake @@ -130,8 +130,6 @@ ENDIF() LIST(APPEND _configure_options "-DLibRaw_ROOT=${RV_DEPS_RAW_ROOT_DIR}") -LIST(APPEND _configure_options "-DQt5_ROOT=${RV_DEPS_QT5_LOCATION}") - IF(NOT RV_TARGET_LINUX) LIST(APPEND _configure_options "-DWebP_ROOT=${RV_DEPS_WEBP_ROOT_DIR}") # Linux has a Link error related to relocation; WebP appears not built with -fPIC. Hence OIIO will build WebP itself. diff --git a/cmake/dependencies/python3.cmake b/cmake/dependencies/python3.cmake index efb99c038..2268cd577 100644 --- a/cmake/dependencies/python3.cmake +++ b/cmake/dependencies/python3.cmake @@ -4,6 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 # + SET(_python3_target "RV_DEPS_PYTHON3" ) @@ -12,8 +13,10 @@ SET(_opentimelineio_target "RV_DEPS_OPENTIMELINEIO" ) -SET(_pyside2_target - "RV_DEPS_PYSIDE2" +RV_VFX_SET_VARIABLE( + _pyside_target + CY2023 "RV_DEPS_PYSIDE2" + CY2024 "RV_DEPS_PYSIDE6" ) SET(PYTHON_VERSION_MAJOR @@ -48,10 +51,9 @@ SET(_opentimelineio_version ) RV_VFX_SET_VARIABLE( - _pyside2_version + _pyside_version CY2023 "5.15.10" - # Need 5.15.11+ to support Python 3.11. - CY2024 "5.15.11" + CY2024 "6.5.3" ) SET(_python3_download_url @@ -70,13 +72,16 @@ SET(_opentimelineio_git_tag "v${_opentimelineio_version}" ) -SET(_pyside2_archive_url - "https://mirrors.ocf.berkeley.edu/qt/official_releases/QtForPython/pyside2/PySide2-${_pyside2_version}-src/pyside-setup-opensource-src-${_pyside2_version}.zip" +RV_VFX_SET_VARIABLE( + _pyside_archive_url + CY2023 "https://mirrors.ocf.berkeley.edu/qt/official_releases/QtForPython/pyside2/PySide2-${_pyside_version}-src/pyside-setup-opensource-src-${_pyside_version}.zip" + CY2024 "https://mirrors.ocf.berkeley.edu/qt/official_releases/QtForPython/pyside6/PySide6-${_pyside_version}-src/pyside-setup-everywhere-src-${_pyside_version}.zip" ) + RV_VFX_SET_VARIABLE( - _pyside2_download_hash + _pyside_download_hash CY2023 "87841aaced763b6b52e9b549e31a493f" - CY2024 "8f652b08c1c74f9a80a2c0f16ff2a4ca" + CY2024 "515d3249c6e743219ff0d7dd25b8c8d8" ) SET(_install_dir @@ -103,13 +108,13 @@ IF(RV_TARGET_WINDOWS) ENDIF() FETCHCONTENT_DECLARE( - ${_pyside2_target} - URL ${_pyside2_archive_url} - URL_HASH MD5=${_pyside2_download_hash} + ${_pyside_target} + URL ${_pyside_archive_url} + URL_HASH MD5=${_pyside_download_hash} SOURCE_SUBDIR "sources" # Avoids the top level CMakeLists.txt ) -FETCHCONTENT_MAKEAVAILABLE(${_pyside2_target}) +FETCHCONTENT_MAKEAVAILABLE(${_pyside_target}) SET(_python3_make_command_script "${PROJECT_SOURCE_DIR}/src/build/make_python.py" @@ -136,30 +141,67 @@ IF(RV_TARGET_WINDOWS) LIST(APPEND _python3_make_command "${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}") ENDIF() -SET(_pyside2_make_command_script - "${PROJECT_SOURCE_DIR}/src/build/make_pyside.py" -) -SET(_pyside2_make_command - python3 "${_pyside2_make_command_script}" -) -LIST(APPEND _pyside2_make_command "--variant") -LIST(APPEND _pyside2_make_command ${CMAKE_BUILD_TYPE}) -LIST(APPEND _pyside2_make_command "--source-dir") -LIST(APPEND _pyside2_make_command ${rv_deps_pyside2_SOURCE_DIR}) -LIST(APPEND _pyside2_make_command "--output-dir") -LIST(APPEND _pyside2_make_command ${_install_dir}) -LIST(APPEND _pyside2_make_command "--temp-dir") -LIST(APPEND _pyside2_make_command ${_build_dir}) -IF(DEFINED RV_DEPS_OPENSSL_INSTALL_DIR) - LIST(APPEND _pyside2_make_command "--openssl-dir") - LIST(APPEND _pyside2_make_command ${RV_DEPS_OPENSSL_INSTALL_DIR}) + +# TODO_QT: Maybe we could use something like NOT CY2023 +# since after 2023, it is Qt6 +# TODO_QT: Below code could be simplified, but for now it is faster to test. +IF(RV_VFX_PLATFORM STREQUAL CY2023) + SET(_pyside_make_command_script + "${PROJECT_SOURCE_DIR}/src/build/make_pyside.py" + ) + SET(_pyside_make_command + python3 "${_pyside_make_command_script}" + ) + + LIST(APPEND _pyside_make_command "--variant") + LIST(APPEND _pyside_make_command ${CMAKE_BUILD_TYPE}) + LIST(APPEND _pyside_make_command "--source-dir") + LIST(APPEND _pyside_make_command ${rv_deps_pyside2_SOURCE_DIR}) + LIST(APPEND _pyside_make_command "--output-dir") + LIST(APPEND _pyside_make_command ${_install_dir}) + LIST(APPEND _pyside_make_command "--temp-dir") + LIST(APPEND _pyside_make_command ${_build_dir}) + + IF(DEFINED RV_DEPS_OPENSSL_INSTALL_DIR) + LIST(APPEND _pyside_make_command "--openssl-dir") + LIST(APPEND _pyside_make_command ${RV_DEPS_OPENSSL_INSTALL_DIR}) + ENDIF() + + LIST(APPEND _pyside_make_command "--python-dir") + LIST(APPEND _pyside_make_command ${_install_dir}) + LIST(APPEND _pyside_make_command "--qt-dir") + LIST(APPEND _pyside_make_command ${RV_DEPS_QT5_LOCATION}) + LIST(APPEND _pyside_make_command "--python-version") + LIST(APPEND _pyside_make_command "${RV_DEPS_PYTHON_VERSION_SHORT}") +ELSEIF(RV_VFX_PLATFORM STREQUAL CY2024) + SET(_pyside_make_command_script + "${PROJECT_SOURCE_DIR}/src/build/make_pyside6.py" + ) + SET(_pyside_make_command + python3 "${_pyside_make_command_script}" + ) + + LIST(APPEND _pyside_make_command "--variant") + LIST(APPEND _pyside_make_command ${CMAKE_BUILD_TYPE}) + LIST(APPEND _pyside_make_command "--source-dir") + LIST(APPEND _pyside_make_command ${rv_deps_pyside6_SOURCE_DIR}) + LIST(APPEND _pyside_make_command "--output-dir") + LIST(APPEND _pyside_make_command ${_install_dir}) + LIST(APPEND _pyside_make_command "--temp-dir") + LIST(APPEND _pyside_make_command ${_build_dir}) + + IF(DEFINED RV_DEPS_OPENSSL_INSTALL_DIR) + LIST(APPEND _pyside_make_command "--openssl-dir") + LIST(APPEND _pyside_make_command ${RV_DEPS_OPENSSL_INSTALL_DIR}) + ENDIF() + + LIST(APPEND _pyside_make_command "--python-dir") + LIST(APPEND _pyside_make_command ${_install_dir}) + LIST(APPEND _pyside_make_command "--qt-dir") + LIST(APPEND _pyside_make_command ${RV_DEPS_QT6_LOCATION}) + LIST(APPEND _pyside_make_command "--python-version") + LIST(APPEND _pyside_make_command "${RV_DEPS_PYTHON_VERSION_SHORT}") ENDIF() -LIST(APPEND _pyside2_make_command "--python-dir") -LIST(APPEND _pyside2_make_command ${_install_dir}) -LIST(APPEND _pyside2_make_command "--qt-dir") -LIST(APPEND _pyside2_make_command ${RV_DEPS_QT5_LOCATION}) -LIST(APPEND _pyside2_make_command "--python-version") -LIST(APPEND _pyside2_make_command "${RV_DEPS_PYTHON_VERSION_SHORT}") IF(RV_TARGET_WINDOWS) IF(CMAKE_BUILD_TYPE MATCHES "^Debug$") @@ -297,21 +339,40 @@ IF(RV_TARGET_WINDOWS ) ENDIF() -SET(${_pyside2_target}-build-flag - ${_install_dir}/${_pyside2_target}-build-flag +SET(${_pyside_target}-build-flag + ${_install_dir}/${_pyside_target}-build-flag ) -ADD_CUSTOM_COMMAND( - COMMENT "Building PySide2 using ${_pyside2_make_command_script}" - OUTPUT ${${_pyside2_target}-build-flag} - # First PySide build script on Windows which doesn't respect '--debug' option - COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/src/build/patch_PySide2/windows_desktop.py - ${rv_deps_pyside2_SOURCE_DIR}/build_scripts/platforms/windows_desktop.py - COMMAND ${_pyside2_make_command} --prepare --build - COMMAND cmake -E touch ${${_pyside2_target}-build-flag} - DEPENDS ${_python3_target} ${_pyside2_make_command_script} ${${_python3_target}-requirements-flag} - USES_TERMINAL -) + +# TODO_QT: Maybe we could use something like NOT CY2023 +# since after 2023, it is Qt6 +# TODO_QT: Below code could be simplified, but for now it is faster to test. +IF(RV_VFX_PLATFORM STREQUAL CY2023) + ADD_CUSTOM_COMMAND( + COMMENT "Building PySide2 using ${_pyside_make_command_script}" + OUTPUT ${${_pyside_target}-build-flag} + # First PySide build script on Windows which doesn't respect '--debug' option + COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/src/build/patch_PySide2/windows_desktop.py + ${rv_deps_pyside2_SOURCE_DIR}/build_scripts/platforms/windows_desktop.py + COMMAND ${_pyside_make_command} --prepare --build + COMMAND cmake -E touch ${${_pyside_target}-build-flag} + DEPENDS ${_python3_target} ${_pyside_make_command_script} ${${_python3_target}-requirements-flag} + USES_TERMINAL + ) + + SET(_build_flag_depends ${${_pyside_target}-build-flag}) +ELSEIF(RV_VFX_PLATFORM STREQUAL CY2024) + ADD_CUSTOM_COMMAND( + COMMENT "Building PySide6 using ${_pyside_make_command_script}" + OUTPUT ${${_pyside_target}-build-flag} + COMMAND ${_pyside_make_command} --prepare --build + COMMAND cmake -E touch ${${_pyside_target}-build-flag} + DEPENDS ${_python3_target} ${_pyside_make_command_script} ${${_python3_target}-requirements-flag} + USES_TERMINAL + ) + + SET(_build_flag_depends ${${_pyside_target}-build-flag}) +ENDIF() IF(RV_TARGET_WINDOWS) ADD_CUSTOM_COMMAND( @@ -320,7 +381,7 @@ IF(RV_TARGET_WINDOWS) COMMAND ${CMAKE_COMMAND} -E copy_directory ${_install_dir}/lib ${RV_STAGE_LIB_DIR} COMMAND ${CMAKE_COMMAND} -E copy_directory ${_install_dir}/include ${RV_STAGE_INCLUDE_DIR} COMMAND ${CMAKE_COMMAND} -E copy_directory ${_install_dir}/bin ${RV_STAGE_BIN_DIR} - DEPENDS ${_python3_target} ${${_pyside2_target}-build-flag} ${${_python3_target}-requirements-flag} + DEPENDS ${_python3_target} ${${_python3_target}-requirements-flag} ${_build_flag_depends} ) ADD_CUSTOM_TARGET( ${_python3_target}-stage-target ALL @@ -333,7 +394,7 @@ ELSE() COMMAND ${CMAKE_COMMAND} -E copy_directory ${_install_dir}/lib ${RV_STAGE_LIB_DIR} COMMAND ${CMAKE_COMMAND} -E copy_directory ${_install_dir}/include ${RV_STAGE_INCLUDE_DIR} COMMAND ${CMAKE_COMMAND} -E copy_directory ${_install_dir}/bin ${RV_STAGE_BIN_DIR} - DEPENDS ${_python3_target} ${${_pyside2_target}-build-flag} ${${_python3_target}-requirements-flag} + DEPENDS ${_python3_target} ${${_python3_target}-requirements-flag} ${_build_flag_depends} ) ADD_CUSTOM_TARGET( ${_python3_target}-stage-target ALL @@ -370,8 +431,8 @@ SET(RV_DEPS_PYTHON3_VERSION ${_python3_version} CACHE INTERNAL "" FORCE ) -SET(RV_DEPS_PYSIDE2_VERSION - ${_pyside2_version} +SET(RV_DEPS_PYSIDE_VERSION + ${_pyside_version} CACHE INTERNAL "" FORCE ) diff --git a/cmake/dependencies/qt5.cmake b/cmake/dependencies/qt5.cmake index 7cc72a98b..87a17cd21 100644 --- a/cmake/dependencies/qt5.cmake +++ b/cmake/dependencies/qt5.cmake @@ -53,6 +53,12 @@ FIND_PACKAGE( REQUIRED ) +get_target_property(MOC_EXECUTABLE Qt5::moc IMPORTED_LOCATION) +get_target_property(UIC_EXECUTABLE Qt5::uic IMPORTED_LOCATION) + +SET(QT_MOC_EXECUTABLE "${MOC_EXECUTABLE}" CACHE STRING "Qt MOC executable") +SET(QT_UIC_EXECUTABLE "${UIC_EXECUTABLE}" CACHE STRING "Qt UIC executable") + SET(_qt_copy_message "Copying Qt into ${RV_STAGE_ROOT_DIR}" ) diff --git a/cmake/dependencies/qt6.cmake b/cmake/dependencies/qt6.cmake new file mode 100644 index 000000000..422b822e3 --- /dev/null +++ b/cmake/dependencies/qt6.cmake @@ -0,0 +1,286 @@ +# +# Copyright (C) 2022 Autodesk, Inc. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + +SET(RV_DEPS_QT6_LOCATION + "" + CACHE STRING "Path to pre-compiled Qt6" +) +SET(_target + RV_DEPS_QT6 +) +IF(NOT RV_DEPS_QT6_LOCATION + OR RV_DEPS_QT6_LOCATION STREQUAL "" +) + MESSAGE( + FATAL_ERROR + "Unable to build without a RV_DEPS_QT6_LOCATION. It is required to provide a working Qt 5.15 root path to build. Example: cmake .. -DRV_DEPS_QT6_LOCATION=/Users/rv/Qt/6.5.3/clang_64" + ) +ENDIF() + +# TODO : I think that the resources folder changed location +SET(RV_DEPS_QT6_RESOURCES_FOLDER + "${RV_DEPS_QT6_LOCATION}/resources" + CACHE STRING "Path to the Qt resources files folder" +) + +# TODO : I think that the translations folder changed location +SET(RV_DEPS_QT6_TRANSLATIONS_FOLDER + "${RV_DEPS_QT6_LOCATION}/translations" + CACHE STRING "Path to the Qt translations files folder" +) + +FILE(GLOB QT6_CMAKE_DIRS ${RV_DEPS_QT6_LOCATION}/lib/cmake/*) +FOREACH( + QT6_CMAKE_DIR + ${QT6_CMAKE_DIRS} +) + IF(IS_DIRECTORY ${QT6_CMAKE_DIR}) + GET_FILENAME_COMPONENT(QT_COMPONENT_NAME ${QT6_CMAKE_DIR} NAME) + SET(CMAKE_PREFIX_PATH + ${CMAKE_PREFIX_PATH} ${QT6_CMAKE_DIR} + ) + SET(${QT_COMPONENT_NAME}_DIR + ${QT6_CMAKE_DIR} + CACHE INTERNAL "Path to ${QT_COMPONENT_NAME} CMake" + ) + ENDIF() +ENDFOREACH() + +# Testing if everything is alright. In Qt6, QtWebEngine has been split into Qt6WebEngineCore and Qt6WebEngineWidgets. +FIND_PACKAGE( + Qt6 + COMPONENTS Core WebEngineCore WebEngineWidgets + REQUIRED +) + +GET_TARGET_PROPERTY(MOC_EXECUTABLE Qt6::moc IMPORTED_LOCATION) +GET_TARGET_PROPERTY(UIC_EXECUTABLE Qt6::uic IMPORTED_LOCATION) + +SET(QT_MOC_EXECUTABLE + "${MOC_EXECUTABLE}" + CACHE STRING "Qt MOC executable" +) +SET(QT_UIC_EXECUTABLE + "${UIC_EXECUTABLE}" + CACHE STRING "Qt UIC executable" +) + +SET(_qt_copy_message + "Copying Qt into ${RV_STAGE_ROOT_DIR}" +) +MESSAGE(STATUS "${_qt_copy_message}") + +SET(RV_DEPS_QT6_VERSION + ${Qt6Core_VERSION} + CACHE STRING "Qt Version String" +) + +# Common to both Mac and Linux platforms +IF(RV_TARGET_DARWIN + OR RV_TARGET_LINUX +) + FILE( + GLOB _qt_plugins_dirs + RELATIVE ${RV_DEPS_QT6_LOCATION}/plugins + ${RV_DEPS_QT6_LOCATION}/plugins/* + ) + FOREACH( + _qt_plugin_dir + ${_qt_plugins_dirs} + ) + FILE( + COPY ${RV_DEPS_QT6_LOCATION}/plugins/${_qt_plugin_dir} + DESTINATION ${RV_STAGE_PLUGINS_QT_DIR} + ) + ENDFOREACH() +ENDIF() + +# Mac +IF(RV_TARGET_DARWIN) + SET(_qt5_lib_dir + ${RV_DEPS_QT6_LOCATION}/lib + ) + FILE( + GLOB libs_to_copy + RELATIVE ${_qt5_lib_dir} + ${_qt5_lib_dir}/* + ) + FOREACH( + lib_to_copy + ${libs_to_copy} + ) + IF(lib_to_copy MATCHES "framework(.dSYM)?") + FILE( + COPY ${_qt5_lib_dir}/${lib_to_copy} + DESTINATION ${RV_STAGE_FRAMEWORKS_DIR} + ) + ENDIF() + ENDFOREACH() +ENDIF() + +# Linux +IF(RV_TARGET_LINUX) + SET(RV_DEPS_QT6_LIB_DIR + ${RV_DEPS_QT6_LOCATION}/lib + ) + FILE( + GLOB libs_to_copy + RELATIVE ${RV_DEPS_QT6_LIB_DIR} + CONFIGURE_DEPENDS ${RV_DEPS_QT6_LIB_DIR}/* + ) + FOREACH( + lib_to_copy + ${libs_to_copy} + ) + FILE( + COPY ${RV_DEPS_QT6_LIB_DIR}/${lib_to_copy} + DESTINATION ${RV_STAGE_LIB_DIR} + ) + ENDFOREACH() + + MESSAGE(STATUS "Copying Qt libexec files ...") + FILE( + COPY "${RV_DEPS_QT6_LOCATION}/libexec" + DESTINATION "${RV_STAGE_ROOT_DIR}" + ) + + MESSAGE(STATUS "Copying Qt resources files ...") + FILE( + COPY "${RV_DEPS_QT6_RESOURCES_FOLDER}" + DESTINATION "${RV_STAGE_ROOT_DIR}" + ) + + MESSAGE(STATUS "Copying Qt translations files ...") + FILE( + COPY "${RV_DEPS_QT6_TRANSLATIONS_FOLDER}" + DESTINATION "${RV_STAGE_ROOT_DIR}" + ) +ENDIF() + +# Windows + +IF(RV_TARGET_WINDOWS) + # Note: On windows, the Qt distribution has both the debug and release versions of its libs, dlls, and plugins into the same directories. This will prevent RV + # from working correctly. We need to only copy the ones matching the CMAKE_BUILD_TYPE + FUNCTION(COPY_ONLY_LIBS_MATCHING_BUILD_TYPE SRC_DIR DST_DIR) + + IF(NOT EXISTS (${DST_DIR})) + FILE(MAKE_DIRECTORY ${DST_DIR}) + ENDIF() + + # First make a list of problematic libs: the ones ending up with d (which means they end with dd in debug) + FILE( + GLOB _qt_dd_libs + RELATIVE ${SRC_DIR} + ${SRC_DIR}/*dd.* + ) + + FILE( + GLOB _qt_debug_libs + RELATIVE ${SRC_DIR} + ${SRC_DIR}/*d.* + ) + + # If we have dd libs then we need to remove the single d ones from the _qt_debug_libs + FOREACH( + _qt_dd_lib + ${_qt_dd_libs} + ) + # Determine the name of the associated single d lib so we can remove it from the _qt_debug_libs + STRING(REPLACE "dd." "d." _d_lib ${_qt_dd_lib}) + LIST(REMOVE_ITEM _qt_debug_libs ${_d_lib}) + ENDFOREACH() + + # Remove Qt6 executables that are not needed. + FILE( + GLOB _qt_executables + RELATIVE ${SRC_DIR} + ${SRC_DIR}/*.exe + ) + + # Filtering. Some executables are needed for RV to work: QtWebEngineProcess.exe + FOREACH( + _qt_executable + ${_qt_executables} + ) + IF("${_qt_executable}" STREQUAL "QtWebEngineProcess.exe") + LIST(REMOVE_ITEM _qt_executables "${_qt_executable}") + ENDIF() + ENDFOREACH() + + IF(CMAKE_BUILD_TYPE MATCHES "^Debug$") + SET(_qt_libs_to_copy + ${_qt_debug_libs} + ) + ELSE() + FILE( + GLOB _qt_libs_to_copy + RELATIVE ${SRC_DIR} + ${SRC_DIR}/* + ) + LIST(REMOVE_ITEM _qt_libs_to_copy ${_qt_debug_libs}) + LIST(REMOVE_ITEM _qt_libs_to_copy ${_qt_executables}) + ENDIF() + + FOREACH( + _qt_lib + ${_qt_libs_to_copy} + ) + IF(NOT IS_DIRECTORY "${SRC_DIR}/${_qt_lib}") + FILE(COPY_FILE ${SRC_DIR}/${_qt_lib} ${DST_DIR}/${_qt_lib} ONLY_IF_DIFFERENT) + ENDIF() + ENDFOREACH() + ENDFUNCTION() + + # Copy the Qt plugins + FILE( + GLOB _qt_plugins_dirs + RELATIVE ${RV_DEPS_QT6_LOCATION}/plugins + ${RV_DEPS_QT6_LOCATION}/plugins/* + ) + FOREACH( + _qt_plugin_dir + ${_qt_plugins_dirs} + ) + COPY_ONLY_LIBS_MATCHING_BUILD_TYPE(${RV_DEPS_QT6_LOCATION}/plugins/${_qt_plugin_dir} ${RV_STAGE_PLUGINS_QT_DIR}/${_qt_plugin_dir}) + ENDFOREACH() + + # Copy the Qt import libs + SET(RV_DEPS_QT6_LIB_DIR + ${RV_DEPS_QT6_LOCATION}/lib + ) + COPY_ONLY_LIBS_MATCHING_BUILD_TYPE(${RV_DEPS_QT6_LIB_DIR} ${RV_STAGE_LIB_DIR}) + + # Copy the Qt dlls + SET(RV_DEPS_QT6_BIN_DIR + ${RV_DEPS_QT6_LOCATION}/bin + ) + COPY_ONLY_LIBS_MATCHING_BUILD_TYPE(${RV_DEPS_QT6_BIN_DIR} ${RV_STAGE_BIN_DIR}) + + MESSAGE(STATUS "Copying Qt translations files ...") + FILE( + COPY "${RV_DEPS_QT6_LOCATION}/translations" + DESTINATION "${RV_STAGE_ROOT_DIR}" + ) + + MESSAGE(STATUS "Copying Qt resources files ...") + FILE( + COPY "${RV_DEPS_QT6_LOCATION}/resources" + DESTINATION "${RV_STAGE_ROOT_DIR}" + ) +ENDIF() + +# Qt5: OpenGLWidgets is in component Widgets Qt6: OpenGLWidgets is in component OpenGLWidgets +SET(QT6_QOPENGLWIDGET_COMPONENT + "OpenGLWidgets" + CACHE STRING "Qt QOpenGLWidget component name" +) +SET(QT6_QOPENGLWIDGET_TARGET + "Qt6::OpenGLWidgets" + CACHE STRING "Qt QOpenGLWidget target name" +) + +MESSAGE(STATUS "${_qt_copy_message} -- DONE") diff --git a/src/bin/apps/rv/CMakeLists.txt b/src/bin/apps/rv/CMakeLists.txt index 59e798632..09eedc191 100644 --- a/src/bin/apps/rv/CMakeLists.txt +++ b/src/bin/apps/rv/CMakeLists.txt @@ -20,9 +20,16 @@ SET(CMAKE_AUTORCC ON ) +IF(RV_VFX_PLATFORM STREQUAL CY2024) +# TODO_QT: Core5Compat is temporary to fix issue with QTextCodec and other things = faster build to test. +# https://doc.qt.io/qt-6.5/qtcore5compat-module.html +SET(_main_qt_components Core5Compat) +SET(_main_link_libraries Qt6::Core5Compat) +ENDIF() + FIND_PACKAGE( - Qt5 - COMPONENTS Core Gui Widgets OpenGL + ${RV_QT_PACKAGE_NAME} + COMPONENTS Core Gui Widgets OpenGL ${_main_qt_components} REQUIRED ) @@ -38,7 +45,7 @@ IF(RV_TARGET_WINDOWS) ENDIF() ENDIF() -QT5_ADD_RESOURCES(_rv_qrc rv.qrc) +QT_ADD_RESOURCES(_rv_qrc rv.qrc) ADD_EXECUTABLE( ${_target} @@ -105,6 +112,7 @@ TARGET_LINK_LIBRARIES( TwkGLF arg stl_ext + ${_main_link_libraries} ) IF(RV_TARGET_WINDOWS) diff --git a/src/bin/apps/rv/main.cpp b/src/bin/apps/rv/main.cpp index dc1c91bef..05dd2763f 100644 --- a/src/bin/apps/rv/main.cpp +++ b/src/bin/apps/rv/main.cpp @@ -95,11 +95,14 @@ #include #endif +#include #include #include #include -#include +// TODO_QT: Remove if everything works. +// Assuming it is not needed: qtGlobals.cpp stopped being generated since Qt 4.6 +//#include extern const char* rv_linux_dark; diff --git a/src/bin/apps/rvpkg/CMakeLists.txt b/src/bin/apps/rvpkg/CMakeLists.txt index 60988ac8c..c1831acb7 100644 --- a/src/bin/apps/rvpkg/CMakeLists.txt +++ b/src/bin/apps/rvpkg/CMakeLists.txt @@ -18,7 +18,7 @@ ADD_EXECUTABLE( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -38,7 +38,7 @@ TARGET_LINK_LIBRARIES( RvPackage arg stl_ext - Qt5::Core + Qt::Core ) IF(RV_TARGET_DARWIN) diff --git a/src/bin/apps/rvprof/CMakeLists.txt b/src/bin/apps/rvprof/CMakeLists.txt index 0cca48960..0a79128ff 100644 --- a/src/bin/apps/rvprof/CMakeLists.txt +++ b/src/bin/apps/rvprof/CMakeLists.txt @@ -35,8 +35,8 @@ ADD_EXECUTABLE( ) FIND_PACKAGE( - Qt5 - COMPONENTS Core Gui OpenGL Widgets + ${RV_QT_PACKAGE_NAME} + COMPONENTS Core Gui OpenGL Widgets ${QT6_QOPENGLWIDGET_COMPONENT} REQUIRED ) FIND_PACKAGE(OpenGL REQUIRED) @@ -48,7 +48,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PRIVATE TwkMath TwkGLText OpenGL::GLU Qt5::Gui Qt5::OpenGL Qt5::Widgets + PRIVATE TwkMath TwkGLText OpenGL::GLU Qt::Gui Qt::OpenGL Qt::Widgets ${QT6_QOPENGLWIDGET_TARGET} ) TARGET_COMPILE_OPTIONS( diff --git a/src/bin/apps/rvprof/VisMainWindow.cpp b/src/bin/apps/rvprof/VisMainWindow.cpp index f44709a05..235a700aa 100644 --- a/src/bin/apps/rvprof/VisMainWindow.cpp +++ b/src/bin/apps/rvprof/VisMainWindow.cpp @@ -475,7 +475,7 @@ VisMainWindow::rangeChanged() //---------------------------------------------------------------------- GLView::GLView(QWidget* parent, QTextEdit* readout, VisMainWindow* visWin) - : QGLWidget(QGLFormat(QGL::DoubleBuffer|QGL::SampleBuffers|QGL::Rgba), parent, NULL, Qt::Widget), + : QOpenGLWidget(parent, Qt::Widget), m_scale(1.0), m_xtran(0), m_ytran(0), @@ -492,6 +492,13 @@ GLView::GLView(QWidget* parent, QTextEdit* readout, VisMainWindow* visWin) m_computedFPS(0.0), m_visWin(visWin) { + QSurfaceFormat format; + format.setDepthBufferSize(24); + format.setStencilBufferSize(8); + format.setVersion(3, 3); + format.setProfile(QSurfaceFormat::CoreProfile); + setFormat(format); + m_matrix.makeIdentity(); setMouseTracking(true); } @@ -522,7 +529,7 @@ GLView::setRange(int start, int end) } } - updateGL(); + update(); } void @@ -551,7 +558,7 @@ GLView::setTimeRange(float start, float end) } } // cerr << "rangeEnd " << m_rangeEnd << " index " << m_rangeEndIndex << endl; - updateGL(); + update(); } void @@ -590,7 +597,7 @@ GLView::setData(const DataVector& data) m_matrix = scaleMatrix(Vec(d, d, 1)) * translationMatrix(Vec(-m_startTime , y, 0)); - updateGL(); + update(); } void @@ -603,35 +610,35 @@ void GLView::setActualFPS(float fps) { m_actualFPS = fps; - updateGL(); + update(); } void GLView::setShowEvalTiming(bool b) { m_showEvalTiming = b; - updateGL(); + update(); } void GLView::setShowIdealFrames(bool b) { m_showIdealFrames = b; - updateGL(); + update(); } void GLView::setComputedRefresh(float rate) { m_computedRefresh = 1.0 / rate; - updateGL(); + update(); } void GLView::setComputedFPS(float fps) { m_computedFPS = fps; - updateGL(); + update(); } int @@ -881,7 +888,7 @@ GLView::mouseMoveEvent(QMouseEvent* event) m_matrix = translationMatrix(t) * m_matrix; } m_mouseDown = event->pos(); - updateGL(); + update(); } void @@ -958,7 +965,7 @@ GLView::mousePressEvent(QMouseEvent* event) autoRangeProcessing(); } } - updateGL(); + update(); } void @@ -976,7 +983,12 @@ GLView::wheelEvent(QWheelEvent* event) .5 * (m_endTime - m_startTime) * (h / w), 0); +#if defined( RV_VFX_CY2023 ) float a = event->delta() * .8; +#else + float a = event->angleDelta().y() * .8; +#endif + a *= 0.001; a += 1.0; m_matrix = @@ -985,7 +997,7 @@ GLView::wheelEvent(QWheelEvent* event) * translationMatrix(-t) * m_matrix; - updateGL(); + update(); } void @@ -994,13 +1006,15 @@ GLView::initializeGL() Context c = GLtext::newContext(); GLtext::setContext(c); GLtext::init(); + + initializeOpenGLFunctions(); } void GLView::resizeGL(int, int) { glViewport(0, 0, width(), height()); - updateGL(); + update(); } static void drawBox( diff --git a/src/bin/apps/rvprof/VisMainWindow.h b/src/bin/apps/rvprof/VisMainWindow.h index 13d478e82..16f16173c 100644 --- a/src/bin/apps/rvprof/VisMainWindow.h +++ b/src/bin/apps/rvprof/VisMainWindow.h @@ -8,9 +8,11 @@ #ifndef __playbackVis__VisMainWindow__h__ #define __playbackVis__VisMainWindow__h__ #include +#include #include #include -#include +#include +#include #include #include @@ -91,7 +93,7 @@ typedef std::vector DataVector; class VisMainWindow; -class GLView : public QGLWidget +class GLView : public QOpenGLWidget, protected QOpenGLFunctions { Q_OBJECT @@ -120,9 +122,9 @@ class GLView : public QGLWidget void setComputedFPS(float); protected: - void initializeGL(); - void paintGL(); - void resizeGL(int, int); + void initializeGL() override; + void paintGL() override; + void resizeGL(int, int) override; void rebuildIdealFrames(); int timeToSample(float t); int sampleFromMousePosition(float x, float y); diff --git a/src/bin/apps/rvpush/CMakeLists.txt b/src/bin/apps/rvpush/CMakeLists.txt index a81251a5c..107c7fa7c 100644 --- a/src/bin/apps/rvpush/CMakeLists.txt +++ b/src/bin/apps/rvpush/CMakeLists.txt @@ -31,7 +31,7 @@ ADD_EXECUTABLE( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core Network Core REQUIRED ) @@ -41,6 +41,6 @@ TARGET_INCLUDE_DIRECTORIES( PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) -TARGET_LINK_LIBRARIES(${_target} TwkQtChat Qt5::Core Qt5::Network Qt5::Core) +TARGET_LINK_LIBRARIES(${_target} TwkQtChat Qt::Core Qt::Network Qt::Core) RV_STAGE(TYPE "EXECUTABLE_WITH_PLUGINS" TARGET ${_target}) diff --git a/src/bin/apps/rvshell/CMakeLists.txt b/src/bin/apps/rvshell/CMakeLists.txt index 5f6a23dcc..4082b7396 100644 --- a/src/bin/apps/rvshell/CMakeLists.txt +++ b/src/bin/apps/rvshell/CMakeLists.txt @@ -25,12 +25,12 @@ SET(_sources ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core Gui Network Widgets REQUIRED ) -QT5_WRAP_UI(_qt_ui_headers ShellDialog.ui) +QT_WRAP_UI(_qt_ui_headers ShellDialog.ui) ADD_EXECUTABLE( ${_target} @@ -48,7 +48,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PRIVATE TwkQtChat Qt5::Core Qt5::Gui Qt5::Network Qt5::Widgets + PRIVATE TwkQtChat Qt::Core Qt::Gui Qt::Network Qt::Widgets ) RV_STAGE(TYPE "EXECUTABLE_WITH_PLUGINS" TARGET ${_target}) diff --git a/src/bin/imgtools/rmsImageDiff/CMakeLists.txt b/src/bin/imgtools/rmsImageDiff/CMakeLists.txt index 7c2459f1e..feade78fc 100644 --- a/src/bin/imgtools/rmsImageDiff/CMakeLists.txt +++ b/src/bin/imgtools/rmsImageDiff/CMakeLists.txt @@ -22,7 +22,7 @@ ADD_EXECUTABLE( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) diff --git a/src/bin/imgtools/rvio/CMakeLists.txt b/src/bin/imgtools/rvio/CMakeLists.txt index 26ea4dcbd..bc5a87bf6 100644 --- a/src/bin/imgtools/rvio/CMakeLists.txt +++ b/src/bin/imgtools/rvio/CMakeLists.txt @@ -18,7 +18,7 @@ ADD_EXECUTABLE( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core Gui Widgets REQUIRED ) @@ -55,19 +55,19 @@ TARGET_LINK_LIBRARIES( arg stl_ext TwkMediaLibrary - Qt5::Core + Qt::Core TwkGLFFBO ) IF(RV_TARGET_LINUX) TARGET_LINK_LIBRARIES( ${_target} - PRIVATE Qt5::Gui Qt5::Widgets GLEW::GLEW BDWGC::Gc QTBundle + PRIVATE Qt::Gui Qt::Widgets GLEW::GLEW BDWGC::Gc QTBundle ) ELSEIF(RV_TARGET_WINDOWS) TARGET_LINK_LIBRARIES( ${_target} - PRIVATE Qt5::Gui Qt5::Widgets glew gc QTBundle + PRIVATE Qt::Gui Qt::Widgets glew gc QTBundle ) ELSEIF(RV_TARGET_DARWIN) TARGET_LINK_LIBRARIES( diff --git a/src/bin/imgtools/rvio_sw/CMakeLists.txt b/src/bin/imgtools/rvio_sw/CMakeLists.txt index 67d79a7d7..070a2cb56 100644 --- a/src/bin/imgtools/rvio_sw/CMakeLists.txt +++ b/src/bin/imgtools/rvio_sw/CMakeLists.txt @@ -18,7 +18,7 @@ ADD_EXECUTABLE( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core Gui Widgets REQUIRED ) @@ -67,10 +67,10 @@ TARGET_LINK_LIBRARIES( arg stl_ext TwkMediaLibrary - Qt5::Core + Qt::Core BDWGC::Gc - Qt5::Gui - Qt5::Widgets + Qt::Gui + Qt::Widgets QTBundle ${MESAGL_LIBRARY} ) diff --git a/src/bin/imgtools/rvls/CMakeLists.txt b/src/bin/imgtools/rvls/CMakeLists.txt index a7d4c9232..a17a0fea8 100644 --- a/src/bin/imgtools/rvls/CMakeLists.txt +++ b/src/bin/imgtools/rvls/CMakeLists.txt @@ -23,7 +23,7 @@ TARGET_INCLUDE_DIRECTORIES( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) diff --git a/src/bin/mu/mu-interp/CMakeLists.txt b/src/bin/mu/mu-interp/CMakeLists.txt index 12ebfda0f..68830c070 100644 --- a/src/bin/mu/mu-interp/CMakeLists.txt +++ b/src/bin/mu/mu-interp/CMakeLists.txt @@ -60,7 +60,7 @@ ELSEIF(RV_TARGET_WINDOWS) MuIO MuImage MuEncoding - MuQt5 + ${RV_QT_MU_TARGET} gc ) ENDIF() diff --git a/src/bin/mu/mu-interp/main.cpp b/src/bin/mu/mu-interp/main.cpp index d27310c66..2df310d41 100644 --- a/src/bin/mu/mu-interp/main.cpp +++ b/src/bin/mu/mu-interp/main.cpp @@ -45,8 +45,14 @@ #include #include #include + +#if defined( RV_VFX_CY2023 ) #include #include +#else +#include +#include +#endif #endif #ifndef RUSAGE_SELF diff --git a/src/bin/nsapps/RV/CMakeLists.txt b/src/bin/nsapps/RV/CMakeLists.txt index e0a66134e..3650ad86e 100644 --- a/src/bin/nsapps/RV/CMakeLists.txt +++ b/src/bin/nsapps/RV/CMakeLists.txt @@ -12,7 +12,7 @@ SET(_target ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Gui REQUIRED ) @@ -53,7 +53,7 @@ TARGET_LINK_LIBRARIES( MuIO MuTwkApp PyTwkApp - Qt5::Gui + Qt::Gui IPCore RvApp RvCommon diff --git a/src/bin/nsapps/RV/main.cpp b/src/bin/nsapps/RV/main.cpp index a66c6b2b5..34149b44f 100644 --- a/src/bin/nsapps/RV/main.cpp +++ b/src/bin/nsapps/RV/main.cpp @@ -506,6 +506,18 @@ int main(int argc, char *argv[]) // Application // + QSurfaceFormat fmt; + fmt.setRenderableType(QSurfaceFormat::OpenGL); + + // NOTE_QT: Set to version 2.1 for now. + fmt.setMajorVersion(2); + fmt.setMinorVersion(1); + + //fmt.setProfile(QSurfaceFormat::CoreProfile); + //fmt.setProfile(QSurfaceFormat::CompatibilityProfile); + + QSurfaceFormat::setDefaultFormat(fmt); + QApplication* app = new QApplication(argc, argv); QTranslator* translator = new QTranslator(); diff --git a/src/bin/python/py-interp/CMakeLists.txt b/src/bin/python/py-interp/CMakeLists.txt index ff9b3371f..b86a49b64 100644 --- a/src/bin/python/py-interp/CMakeLists.txt +++ b/src/bin/python/py-interp/CMakeLists.txt @@ -11,7 +11,7 @@ SET(_target ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core Gui Widgets REQUIRED ) @@ -36,7 +36,7 @@ TARGET_COMPILE_OPTIONS( TARGET_LINK_LIBRARIES( ${_target} - PRIVATE Python::Python Boost::filesystem Boost::system Qt5::Core Qt5::Gui Qt5::Widgets + PRIVATE Python::Python Boost::filesystem Boost::system Qt::Core Qt::Gui Qt::Widgets ) IF(RV_TARGET_DARWIN) diff --git a/src/bin/python/py-interp/tests/test_PySide2.py b/src/bin/python/py-interp/tests/test_PySide2.py index 42a705ef9..cb57acf60 100644 --- a/src/bin/python/py-interp/tests/test_PySide2.py +++ b/src/bin/python/py-interp/tests/test_PySide2.py @@ -1,11 +1,17 @@ # -# Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. -# -# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 # import unittest -import PySide2 -from PySide2 import * + +try: + from PySide2 import QtCore +except ImportError: + try: + from PySide6 import QtCore + except ImportError: + pass class TestPySide2(unittest.TestCase): diff --git a/src/bin/python/py-interp/tests/test_SSL.py b/src/bin/python/py-interp/tests/test_SSL.py index c238638f6..a63c6f3cc 100755 --- a/src/bin/python/py-interp/tests/test_SSL.py +++ b/src/bin/python/py-interp/tests/test_SSL.py @@ -54,12 +54,23 @@ def impl(url): def fetch_pyside(url): def impl(url): - from PySide2.QtCore import QEventLoop, QUrl, QCoreApplication - from PySide2.QtNetwork import ( - QNetworkRequest, - QNetworkReply, - QNetworkAccessManager, - ) + try: + from PySide2.QtCore import QEventLoop, QUrl, QCoreApplication + from PySide2.QtNetwork import ( + QNetworkRequest, + QNetworkReply, + QNetworkAccessManager, + ) + except ImportError: + try: + from PySide6.QtCore import QEventLoop, QUrl, QCoreApplication + from PySide6.QtNetwork import ( + QNetworkRequest, + QNetworkReply, + QNetworkAccessManager, + ) + except ImportError: + pass global app if app is None: diff --git a/src/build/make_pyside6.py b/src/build/make_pyside6.py new file mode 100755 index 000000000..4346bffd0 --- /dev/null +++ b/src/build/make_pyside6.py @@ -0,0 +1,305 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# ***************************************************************************** +# Copyright 2024 Autodesk, Inc. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +# ***************************************************************************** + +import argparse +import glob +import os +import re +import pathlib +import shutil +import subprocess +import platform +import tempfile +import uuid + +from utils import ( + download_file, + extract_7z_archive, + verify_7z_archive, + source_widows_msvc_env, + update_env_path, +) +from make_python import get_python_interpreter_args + +SOURCE_DIR = "" +OUTPUT_DIR = "" +TEMP_DIR = "" +VARIANT = "" + +QT_OUTPUT_DIR = "" +PYTHON_OUTPUT_DIR = "" +OPENSSL_OUTPUT_DIR = "" + +LIBCLANG_URL_BASE = "https://mirrors.ocf.berkeley.edu/qt/development_releases/prebuilt/libclang/libclang-release_" + + +def test_python_distribution(python_home: str) -> None: + """ + Test the Python distribution. + + :param python_home: Package root of an Python package + """ + tmp_dir = os.path.join(tempfile.gettempdir(), str(uuid.uuid4())) + os.makedirs(tmp_dir) + + tmp_python_home = os.path.join(tmp_dir, os.path.basename(python_home)) + try: + print(f"Moving {python_home} to {tmp_python_home}") + shutil.move(python_home, tmp_python_home) + + python_validation_args = get_python_interpreter_args(tmp_python_home) + [ + "-c", + "\n".join( + [ + "from PySide6 import *", + "from PySide6 import QtWebEngineCore", + ] + ), + ] + print(f"Validating the PySide package with {python_validation_args}") + subprocess.run(python_validation_args).check_returncode() + finally: + print(f"Moving {tmp_python_home} to {python_home}") + shutil.move(tmp_python_home, python_home) + + +def prepare() -> None: + """ + Run the clean step of the build. Removes everything. + """ + if os.path.exists(TEMP_DIR) is False: + os.makedirs(TEMP_DIR) + + # PySide6 requires Clang 13+. + print("Setting up Clang...") + clang_filename_suffix = "" + + system = platform.system() + if system == "Darwin": + clang_version_search = re.search( + "version (\d+)\.(\d+)\.(\d+)", + os.popen("clang --version").read(), + ) + clang_version_str = ".".join(clang_version_search.groups()) + clang_filename_suffix = clang_version_str + "-based-macos-universal.7z" + elif system == "Linux": + clang_filename_suffix = "19.1.0-based-linux-Rhel8.8-gcc10.3-x86_64.7z" + elif system == "Windows": + clang_filename_suffix = "19.1.0-based-windows-vs2019_64.7z" + + download_url = LIBCLANG_URL_BASE + clang_filename_suffix + libclang_zip = os.path.join(TEMP_DIR, "libclang.7z") + if os.path.exists(libclang_zip) is False: + download_file(download_url, libclang_zip) + # if we have a failed download, clean it up and redownload. + # checking for False since it can return None when archive doesn't have a CRC + elif verify_7z_archive(libclang_zip) is False: + os.remove(libclang_zip) + download_file(download_url, libclang_zip) + + # clean up previous failed extraction + libclang_tmp = os.path.join(TEMP_DIR, "libclang-tmp") + if os.path.exists(libclang_tmp) is True: + shutil.rmtree(libclang_tmp) + + # extract to a temp location and only move if successful + libclang_extracted = os.path.join(TEMP_DIR, "libclang") + if os.path.exists(libclang_extracted) is False: + extract_7z_archive(libclang_zip, libclang_tmp) + shutil.move(libclang_tmp, libclang_extracted) + + libclang_install_dir = os.path.join(libclang_extracted, "libclang") + + if OPENSSL_OUTPUT_DIR: + os.environ["PATH"] = os.path.pathsep.join( + [ + os.path.join(OPENSSL_OUTPUT_DIR, "bin"), + os.environ.get("PATH", ""), + ] + ) + + print(f"PATH={os.environ['PATH']}") + + os.environ["LLVM_INSTALL_DIR"] = libclang_install_dir + os.environ["CLANG_INSTALL_DIR"] = libclang_install_dir + + # PySide6 build requires numpy 1.26.3 + install_numpy_args = get_python_interpreter_args(PYTHON_OUTPUT_DIR) + [ + "-m", + "pip", + "install", + "numpy==1.26.3", + ] + print(f"Installing numpy with {install_numpy_args}") + subprocess.run(install_numpy_args).check_returncode() + + cmakelist_path = os.path.join( + SOURCE_DIR, "sources", "shiboken6", "ApiExtractor", "CMakeLists.txt" + ) + old_cmakelist_path = os.path.join( + SOURCE_DIR, "sources", "shiboken6", "ApiExtractor", "CMakeLists.txt.old" + ) + if os.path.exists(old_cmakelist_path): + os.remove(old_cmakelist_path) + + os.rename(cmakelist_path, old_cmakelist_path) + with open(old_cmakelist_path) as old_cmakelist: + with open(cmakelist_path, "w") as cmakelist: + for line in old_cmakelist: + new_line = line.replace( + " set(HAS_LIBXSLT 1)", + " #set(HAS_LIBXSLT 1)", + ) + + cmakelist.write(new_line) + + +def remove_broken_shortcuts(python_home: str) -> None: + """ + Remove broken Python shortcuts that depend on the absolute + location of the Python executable. + + Note that this method will also remove scripts like + pip, easy_install and wheel that were left around by + previous steps of the build pipeline. + + :param str python_home: Path to the Python folder. + :param int version: Version of the python executable. + """ + if platform.system() == "Windows": + # All executables inside Scripts have a hardcoded + # absolute path to the python, which can't be relied + # upon, so remove all scripts. + shutil.rmtree(os.path.join(python_home, "Scripts")) + else: + # Aside from the python executables, every other file + # in the build is a script that does not support + bin_dir = os.path.join(python_home, "bin") + for filename in os.listdir(bin_dir): + filepath = os.path.join(bin_dir, filename) + if filename not in [ + "python", + "python3", + f"python{PYTHON_VERSION}", + ]: + print(f"Removing {filepath}...") + os.remove(filepath) + else: + print(f"Keeping {filepath}...") + + +def build() -> None: + """ + Run the build step of the build. It compile every target of the project. + """ + python_home = PYTHON_OUTPUT_DIR + python_interpreter_args = get_python_interpreter_args(python_home) + + pyside_build_args = python_interpreter_args + [ + os.path.join(SOURCE_DIR, "setup.py"), + "install", + f"--qtpaths={os.path.join(QT_OUTPUT_DIR, 'bin', 'qtpaths' + ('.exe' if platform.system() == 'Windows' else ''))}", + "--ignore-git", + "--standalone", + "--verbose-build", + f"--parallel={os.cpu_count() or 1}", + "--skip-docs", + ] + + if OPENSSL_OUTPUT_DIR: + pyside_build_args.append(f"--openssl={os.path.join(OPENSSL_OUTPUT_DIR, 'bin')}") + + print(f"Executing {pyside_build_args}") + subprocess.run(pyside_build_args).check_returncode() + + generator_cleanup_args = python_interpreter_args + [ + "-m", + "pip", + "uninstall", + "-y", + "shiboken6_generator", + ] + + print(f"Executing {generator_cleanup_args}") + subprocess.run(generator_cleanup_args).check_returncode() + + # Even if we remove shiboken6_generator from pip, the files stays... for some reasons + generator_cleanup_args = python_interpreter_args + [ + "-c", + "\n".join( + [ + "import os, shutil", + "try:", + " import shiboken6_generator", + "except:", + " exit(0)", + "shutil.rmtree(os.path.dirname(shiboken6_generator.__file__))", + ] + ), + ] + + print(f"Executing {generator_cleanup_args}") + subprocess.run(generator_cleanup_args).check_returncode() + + if OPENSSL_OUTPUT_DIR and platform.system() == "Windows": + pyside_folder = glob.glob( + os.path.join(python_home, "**", "site-packages", "PySide6"), recursive=True + )[0] + openssl_libs = glob.glob(os.path.join(OPENSSL_OUTPUT_DIR, "bin", "lib*")) + + for lib in openssl_libs: + print(f"Copying {lib} into {pyside_folder}") + shutil.copy(lib, pyside_folder) + + remove_broken_shortcuts(python_home) + test_python_distribution(python_home) + + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + + parser.add_argument("--prepare", dest="prepare", action="store_true") + parser.add_argument("--build", dest="build", action="store_true") + + parser.add_argument("--source-dir", dest="source", type=pathlib.Path, required=True) + parser.add_argument("--python-dir", dest="python", type=pathlib.Path, required=True) + parser.add_argument("--qt-dir", dest="qt", type=pathlib.Path, required=True) + parser.add_argument( + "--openssl-dir", dest="openssl", type=pathlib.Path, required=False + ) + parser.add_argument("--temp-dir", dest="temp", type=pathlib.Path, required=True) + parser.add_argument("--output-dir", dest="output", type=pathlib.Path, required=True) + + parser.add_argument("--variant", dest="variant", type=str, required=True) + + + # Major and minor version with dots. + parser.add_argument("--python-version", dest="python_version", type=str, required=True, default="") + + parser.set_defaults(prepare=False, build=False) + + args = parser.parse_args() + + SOURCE_DIR = args.source + OUTPUT_DIR = args.output + TEMP_DIR = args.temp + OPENSSL_OUTPUT_DIR = args.openssl + PYTHON_OUTPUT_DIR = args.python + QT_OUTPUT_DIR = args.qt + VARIANT = args.variant + PYTHON_VERSION = args.python_version + + print(args) + + if args.prepare: + prepare() + + if args.build: + build() diff --git a/src/lib/app/PyTwkApp/CMakeLists.txt b/src/lib/app/PyTwkApp/CMakeLists.txt index f8d2334f0..3c1368eae 100644 --- a/src/lib/app/PyTwkApp/CMakeLists.txt +++ b/src/lib/app/PyTwkApp/CMakeLists.txt @@ -21,7 +21,7 @@ SET(_sources ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -38,7 +38,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} PUBLIC Python::Python - PRIVATE Mu MuLang MuPy MuTwkApp Qt5::Core TwkPython + PRIVATE Mu MuLang MuPy MuTwkApp Qt::Core TwkPython ) IF(RV_TARGET_DARWIN) diff --git a/src/lib/app/PyTwkApp/PyInterface.cpp b/src/lib/app/PyTwkApp/PyInterface.cpp index 5c775dae6..166e579a4 100644 --- a/src/lib/app/PyTwkApp/PyInterface.cpp +++ b/src/lib/app/PyTwkApp/PyInterface.cpp @@ -22,7 +22,9 @@ #include #include -#include +// TODO_QT: Remove if everything works. +// Assuming it is not needed: qtGlobals.cpp stopped being generated since Qt 4.6 +// #include #include #include diff --git a/src/lib/app/QTBundle/CMakeLists.txt b/src/lib/app/QTBundle/CMakeLists.txt index 2bbe0ccbe..baa30b6c6 100644 --- a/src/lib/app/QTBundle/CMakeLists.txt +++ b/src/lib/app/QTBundle/CMakeLists.txt @@ -17,7 +17,7 @@ ADD_LIBRARY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -29,7 +29,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PUBLIC TwkApp Qt5::Core + PUBLIC TwkApp Qt::Core PRIVATE stl_ext ) diff --git a/src/lib/app/RvApp/RvSession.cpp b/src/lib/app/RvApp/RvSession.cpp index 9b4eb2663..6429c62ce 100644 --- a/src/lib/app/RvApp/RvSession.cpp +++ b/src/lib/app/RvApp/RvSession.cpp @@ -217,6 +217,9 @@ RvSession::RvSession() if (firstTime) { + // NOTE_QT: The comment below is not necessary true in Qt6 because the context is not valid until widget shown. + // A custom context could be created I think, but it might required a lot more changes to make it work. + // // Initialize nodes here -- at this point we know that GL has // been initialized which is currently required for node @@ -226,6 +229,9 @@ RvSession::RvSession() IPCore::Application::setOptionValueFromEnvironment("nodePath", "TWK_NODE_PLUGIN_PATH"); IPCore::Application::setOptionValueFromEnvironment("nodeDefinitionOverride", "TWK_NODE_DEFINITION_OVERRIDE"); addRvNodeDefinitions(IPCore::Application::instance()->nodeManager()); + + // NOTE_QT: This function call ends up in the following code path: + // new Shader::Function -> initGLSLVersion() -> glGetString -> crashes because no context IPCore::Application::instance()->loadOptionNodeDefinitions(); firstTime = false; } diff --git a/src/lib/app/RvCommon/CMakeLists.txt b/src/lib/app/RvCommon/CMakeLists.txt index 37eff2ace..a86e79057 100644 --- a/src/lib/app/RvCommon/CMakeLists.txt +++ b/src/lib/app/RvCommon/CMakeLists.txt @@ -21,11 +21,18 @@ SET(CMAKE_AUTORCC ON ) +IF(RV_VFX_PLATFORM STREQUAL CY2024) + # TODO_QT: Core5Compat is temporary to fix issue with QTextCodec. + # https://doc.qt.io/qt-6.5/qtcore5compat-module.html + SET(_rvcommon_core5compat_component Core5Compat) + SET(_rvcommon_core5compat_link_libraries Qt6::Core5Compat) +ENDIF() + # # This find_package statement is also required to find QT's build tools like 'uic' required just below. Keep this line before 'qt5_wrap_ui' FIND_PACKAGE( - Qt5 - COMPONENTS Core Gui OpenGL + ${RV_QT_PACKAGE_NAME} + COMPONENTS Core Gui OpenGL Widgets ${QT6_QOPENGLWIDGET_COMPONENT} ${_rvcommon_core5compat_component} REQUIRED ) @@ -80,6 +87,13 @@ ENDIF() FILE(GLOB _ui_sources ui/*.ui) + +IF(RV_VFX_PLATFORM STREQUAL CY2024) + # Use Qt6 connections syntax because it generates the wrong QObject::connect for RvConsoleWindow.ui. + # TODO_QT: Could remove the connections from the UI XML and add them to RvConsoleWindow.cpp + SET(ui_options --connections string) +ENDIF() + FOREACH( ui_source ${_ui_sources} @@ -91,7 +105,7 @@ FOREACH( ) ADD_CUSTOM_COMMAND( OUTPUT ${outfile} - COMMAND ${Qt5Widgets_UIC_EXECUTABLE} ARGS ${ui_options} -o ${outfile} ${infile} + COMMAND ${QT_UIC_EXECUTABLE} ARGS ${ui_options} -o ${outfile} ${infile} MAIN_DEPENDENCY ${infile} VERBATIM ) @@ -131,7 +145,7 @@ FOREACH( ) ADD_CUSTOM_COMMAND( OUTPUT ${outfile} - COMMAND ${Qt5Core_MOC_EXECUTABLE} -I ${CMAKE_CURRENT_SOURCE_DIR} -o ${outfile} ${infile} + COMMAND ${QT_MOC_EXECUTABLE} -I ${CMAKE_CURRENT_SOURCE_DIR} -o ${outfile} ${infile} MAIN_DEPENDENCY ${infile} VERBATIM ) @@ -176,13 +190,15 @@ TARGET_LINK_LIBRARIES( TwkQtChat TwkUtil Boost::thread - Qt5::Core - Qt5::Gui - Qt5::Widgets - Qt5::OpenGL + Qt::Core + Qt::Gui + Qt::Widgets + Qt::OpenGL + ${QT6_QOPENGLWIDGET_TARGET} + ${_rvcommon_core5compat_link_libraries} PRIVATE Python::Python IPBaseNodes - MuQt5 + ${RV_QT_MU_TARGET} MuPy PyTwkApp QTAudioRenderer @@ -214,15 +230,36 @@ IF(RV_TARGET_DARWIN) ) ENDIF() + +# https://doc.qt.io/qt-6/extras-changes-qt6.html +# +# The Qt X11 Extras module was removed in Qt 6. + +# For QX11Info::connection(), use QNativeInterface::QX11Application::connection() instead. +# For QX11Info::display(), use QNativeInterface::QX11Application::display() instead. +# For QX11Info::isPlatformX11(), check QNativeInterface::QX11Application existence instead. +# +# Clients that still rely on the functionality in QX11Info class can include the private header +# as a stopgap solution. +# To enable private headers use QT += gui-private with qmake, or add a project dependency to Qt::GuiPrivate with CMake. + IF(RV_TARGET_LINUX) + IF(RV_VFX_PLATFORM STREQUAL CY2023) + SET(_rvcommon_qt_components X11Extras) + SET(_rvcommon_link_libraries Qt::X11Extras) + ELSEIF(RV_VFX_PLATFORM STREQUAL CY2024) + SET(_rvcommon_qt_components Gui) + SET(_rvcommon_link_libraries Qt::GuiPrivate) + ENDIF() + FIND_PACKAGE( - Qt5 - COMPONENTS X11Extras + ${RV_QT_PACKAGE_NAME} + COMPONENTS ${_rvcommon_qt_components} REQUIRED ) TARGET_LINK_LIBRARIES( ${_target} - PRIVATE X11 Qt5::X11Extras + PRIVATE X11 ${_rvcommon_link_libraries} ) ENDIF() diff --git a/src/lib/app/RvCommon/DesktopVideoModule.cpp b/src/lib/app/RvCommon/DesktopVideoModule.cpp index 27e5fd252..5ab937e38 100644 --- a/src/lib/app/RvCommon/DesktopVideoModule.cpp +++ b/src/lib/app/RvCommon/DesktopVideoModule.cpp @@ -22,8 +22,8 @@ #include #endif -#include #include +#include namespace Rv { using namespace std; @@ -42,8 +42,6 @@ static void KeyArrayCallback (const void* key, const void* value, void* context) DesktopVideoModule::DesktopVideoModule(NativeDisplayPtr np, QTGLVideoDevice* shareDevice) : VideoModule() { bool useQt = true; - QDesktopWidget* desktop = QApplication::desktop(); - int nscreens = desktop->screenCount(); #ifdef PLATFORM_DARWIN useQt = false; @@ -128,15 +126,17 @@ DesktopVideoModule::DesktopVideoModule(NativeDisplayPtr np, QTGLVideoDevice* sha if (useQt) { - for (int screen = 0; screen < desktop->screenCount(); screen++) + const auto screens = QGuiApplication::screens(); + for (int screen = 0; screen < screens.size(); screen++) { - QWidget* w = desktop->screen(screen); - ostringstream name; - name << w->screen()->manufacturer().toUtf8().data(); - name << " " << w->screen()->model().toUtf8().data(); - name << " " << w->screen()->name().toUtf8().data(); - QTDesktopVideoDevice* sd = - new QTDesktopVideoDevice(this, name.str(), screen, shareDevice); + const QScreen* w = screens[screen]; + QString name = QString("%1 %2 %3") + .arg(w->manufacturer()) + .arg(w->model()) + .arg(w->name()); + + QTDesktopVideoDevice* sd = + new QTDesktopVideoDevice(this, name.toUtf8().constData(), screen, shareDevice); m_devices.push_back(sd); } } @@ -198,25 +198,30 @@ DesktopVideoModule::deviceFromPosition(int x, int y) const #else // PLATFORM_LINUX or PLATFORM_WINDOWS - int screen = QApplication::desktop()->screenNumber(QPoint(x, y)); - - for (int i = 0; i < m_devices.size(); ++i) - { - // - // These devices may be NVDesktopVideoDevices or QTDeskTopVideoDevices. - // - TwkApp::VideoDevice* d = m_devices[i]; + const QList screens = QGuiApplication::screens(); + for (int screen = 0; screen < screens.size(); ++screen) + { + // Check if the point is part of the screen. + if (screens[screen]->geometry().contains(QPoint(x, y))) + { + for (int i = 0; i < m_devices.size(); ++i) + { + // + // These devices may be NVDesktopVideoDevices or QTDeskTopVideoDevices. + // + TwkApp::VideoDevice* d = m_devices[i]; - if (DesktopVideoDevice* dd = dynamic_cast(d)) - { - if (dd->qtScreen() == screen) + if (DesktopVideoDevice* dd = dynamic_cast(d)) { - device = d; - break; + if (dd->qtScreen() == screen) + { + device = d; + break; + } } - } - } - + } + } + } #endif return device; diff --git a/src/lib/app/RvCommon/FileTypeTraits.cpp b/src/lib/app/RvCommon/FileTypeTraits.cpp index 85e50fc04..1ebc1c6f1 100644 --- a/src/lib/app/RvCommon/FileTypeTraits.cpp +++ b/src/lib/app/RvCommon/FileTypeTraits.cpp @@ -48,8 +48,18 @@ FileTypeTraits::fileAttributes(const QString& file) const QStringList list; QFileInfo info(file); - list << "Created" << info.created().toString(Qt::DefaultLocaleShortDate); +#if defined( RV_VFX_CY2023 ) + list << "Created" << info.birthTime().toString(Qt::DefaultLocaleShortDate); list << "Modified" << info.lastModified().toString(Qt::DefaultLocaleShortDate); +#else + // created() is deprecated. + // birthTime() function to get the time the file was created. + // metadataChangeTime() to get the time its metadata was last changed. + // lastModified() to get the time it was last modified. + QLocale locale = QLocale::system(); + list << "Created" << locale.toString(info.birthTime(), QLocale::ShortFormat); + list << "Modified" << locale.toString(info.lastModified(), QLocale::ShortFormat); +#endif size_t s = info.size(); diff --git a/src/lib/app/RvCommon/GLSLSyntaxHighlighter.cpp b/src/lib/app/RvCommon/GLSLSyntaxHighlighter.cpp index ff43d2fd6..d51d855f9 100644 --- a/src/lib/app/RvCommon/GLSLSyntaxHighlighter.cpp +++ b/src/lib/app/RvCommon/GLSLSyntaxHighlighter.cpp @@ -110,7 +110,7 @@ GLSLSyntaxHighlighter::GLSLSyntaxHighlighter(QTextDocument *parent) m_commentFormat.setForeground(QColor(127,127,127)); m_quotationFormat.setForeground(Qt::green); - rule.pattern = QRegExp("\\b[A-Za-z0-9_]+[ \t]*(?=\\()"); + rule.pattern = QRegularExpression("\\b[A-Za-z0-9_]+[ \t]*(?=\\()"); rule.format = m_functionFormat; m_highlightingRules.append(rule); @@ -119,7 +119,7 @@ GLSLSyntaxHighlighter::GLSLSyntaxHighlighter(QTextDocument *parent) QString pattern = "\\b"; pattern += *p; pattern += "\\b"; - rule.pattern = QRegExp(pattern); + rule.pattern = QRegularExpression(pattern); rule.format = m_typeFormat; m_highlightingRules.append(rule); } @@ -129,7 +129,7 @@ GLSLSyntaxHighlighter::GLSLSyntaxHighlighter(QTextDocument *parent) QString pattern = "\\b"; pattern += *p; pattern += "\\b"; - rule.pattern = QRegExp(pattern); + rule.pattern = QRegularExpression(pattern); rule.format = m_keywordFormat; m_highlightingRules.append(rule); } @@ -139,7 +139,7 @@ GLSLSyntaxHighlighter::GLSLSyntaxHighlighter(QTextDocument *parent) QString pattern = "\\b"; pattern += *p; pattern += "\\b"; - rule.pattern = QRegExp(pattern); + rule.pattern = QRegularExpression(pattern); rule.format = m_builtInFormat; m_highlightingRules.append(rule); } @@ -149,12 +149,12 @@ GLSLSyntaxHighlighter::GLSLSyntaxHighlighter(QTextDocument *parent) QString pattern = "\\b"; pattern += *p; pattern += "\\b"; - rule.pattern = QRegExp(pattern); + rule.pattern = QRegularExpression(pattern); rule.format = m_builtInFormat; m_highlightingRules.append(rule); } - rule.pattern = QRegExp("\\b(?:inputImage|outputImage)\\b"); + rule.pattern = QRegularExpression("\\b(?:inputImage|outputImage)\\b"); rule.format = m_imageFormat; m_highlightingRules.append(rule); @@ -163,22 +163,22 @@ GLSLSyntaxHighlighter::GLSLSyntaxHighlighter(QTextDocument *parent) QString pattern = "#[ \t]*"; pattern += *p; pattern += "\\b"; - rule.pattern = QRegExp(pattern); + rule.pattern = QRegularExpression(pattern); rule.format = m_preProcessorFormat; m_highlightingRules.append(rule); } - rule.pattern = QRegExp("//[^\n]*"); + rule.pattern = QRegularExpression("//[^\n]*"); rule.format = m_commentFormat; m_highlightingRules.append(rule); // GLSL doesn't have string literals - //rule.pattern = QRegExp("\".*\""); + //rule.pattern = QRegularExpression("\".*\""); //rule.format = m_quotationFormat; //m_highlightingRules.append(rule); - m_commentStartExpression = QRegExp("/\\*"); - m_commentEndExpression = QRegExp("\\*/"); + m_commentStartExpression = QRegularExpression("/\\*"); + m_commentEndExpression = QRegularExpression("\\*/"); } void @@ -186,13 +186,11 @@ GLSLSyntaxHighlighter::highlightBlock(const QString &text) { foreach (const HighlightingRule &rule, m_highlightingRules) { - QRegExp expression(rule.pattern); - int index = expression.indexIn(text); - while (index >= 0) + QRegularExpressionMatchIterator matchIterator = rule.pattern.globalMatch(text); + while (matchIterator.hasNext()) { - int length = expression.matchedLength(); - setFormat(index, length, rule.format); - index = expression.indexIn(text, index + length); + QRegularExpressionMatch match = matchIterator.next(); + setFormat(match.capturedStart(), match.capturedLength(), rule.format); } } @@ -202,12 +200,14 @@ GLSLSyntaxHighlighter::highlightBlock(const QString &text) if (previousBlockState() != 1) { - startIndex = m_commentStartExpression.indexIn(text); + QRegularExpressionMatch match = m_commentStartExpression.match(text); + startIndex = match.capturedStart(); } while (startIndex >= 0) { - int endIndex = m_commentEndExpression.indexIn(text, startIndex); + QRegularExpressionMatch endMatch = m_commentEndExpression.match(text, startIndex); + int endIndex = endMatch.capturedStart(); int commentLength; if (endIndex == -1) @@ -217,12 +217,13 @@ GLSLSyntaxHighlighter::highlightBlock(const QString &text) } else { - commentLength = endIndex - startIndex - + m_commentEndExpression.matchedLength(); + commentLength = endIndex - startIndex + endMatch.capturedLength(); } setFormat(startIndex, commentLength, m_commentFormat); - startIndex = m_commentStartExpression.indexIn(text, startIndex + commentLength); + + QRegularExpressionMatch startMatch = m_commentStartExpression.match(text, startIndex + commentLength); + startIndex = startMatch.capturedStart(); } } diff --git a/src/lib/app/RvCommon/GLView.cpp b/src/lib/app/RvCommon/GLView.cpp index a1a8efc16..ad7233e8f 100644 --- a/src/lib/app/RvCommon/GLView.cpp +++ b/src/lib/app/RvCommon/GLView.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -111,9 +112,9 @@ class ThreadTrampoline } GLView::GLView(QWidget* parent, - const QGLWidget* share, + QOpenGLContext* sharedContext, RvDocument* doc, - bool strereo, + bool stereo, bool vsync, bool doubleBuffer, int red, @@ -121,9 +122,8 @@ GLView::GLView(QWidget* parent, int blue, int alpha, bool noResize) - : QGLWidget(GLView::rvGLFormat(strereo, vsync, doubleBuffer, red, green, blue, alpha), - parent, - share), + : QOpenGLWidget(parent), + m_sharedContext(sharedContext), m_doc(doc), m_red(red), m_green(green), @@ -140,21 +140,26 @@ GLView::GLView(QWidget* parent, m_stopProcessingEvents(false), m_syncThreadData(0) { - setObjectName((m_doc->session()) ? m_doc->session()->name().c_str() : "no session"); - //m_frameBuffer = new QTFrameBuffer( this ); + setFormat(rvGLFormat(stereo, vsync, doubleBuffer, red, green, blue, alpha)); + ostringstream str; str << UI_APPLICATION_NAME " Main Window" << "/" << m_doc; m_videoDevice = new QTGLVideoDevice(0, str.str(), this); + + setObjectName((m_doc->session()) ? m_doc->session()->name().c_str() : "no session"); + //m_frameBuffer = new QTFrameBuffer( this ); + m_activityTimer.start(); setMouseTracking(true); setAcceptDrops(true); setFocusPolicy(Qt::StrongFocus); - setAutoBufferSwap(false); + + // NOTE_QT: setAutoBufferSwap does not exist anymore. + // QUESTON_QT: Is there something else? + //setAutoBufferSwap(false); m_eventProcessingTimer.setSingleShot(true); connect(&m_eventProcessingTimer, SIGNAL(timeout()), this, SLOT(eventProcessingTimeout())); - - QGLFormat f = format(); } GLView::~GLView() @@ -204,7 +209,7 @@ GLView::absolutePosition(int& x, int& y) const y = gp.y(); } -QGLFormat +QSurfaceFormat GLView::rvGLFormat(bool stereo, bool vsync, bool doubleBuffer, @@ -215,14 +220,23 @@ GLView::rvGLFormat(bool stereo, { const Rv::Options& opts = Rv::Options::sharedOptions(); - QGLFormat fmt; - fmt.setDepthBufferSize(0); - fmt.setDoubleBuffer(doubleBuffer); + // NOTE_QT6: QGLFormat into QSurfaceFormat + // NOTE_QT6: setStencil, setDepth does not exist anymore. Trying to use setDepthBufferSize and setStencilBufferSize. + QSurfaceFormat fmt; + fmt.setDepthBufferSize(24); + fmt.setSwapBehavior(doubleBuffer ? QSurfaceFormat::DoubleBuffer : QSurfaceFormat::SingleBuffer); fmt.setStencilBufferSize(8); - fmt.setStencil(true); - fmt.setDepth(false); fmt.setStereo(stereo); + fmt.setRenderableType(QSurfaceFormat::OpenGL); + + // NOTE_QT: Set to version 2.1 for now. + fmt.setMajorVersion(2); + fmt.setMinorVersion(1); + + //fmt.setProfile(QSurfaceFormat::CoreProfile); + //fmt.setProfile(QSurfaceFormat::CompatibilityProfile); + // // The default value for these buffer sizes is -1, but it is // illegal to set to that value so test for positive red, not @@ -233,7 +247,7 @@ GLView::rvGLFormat(bool stereo, if (blue > 0) fmt.setBlueBufferSize(blue); if (alpha >= 0) { - fmt.setAlpha(alpha != 0); + // NOTE_QT6: setAlpha does not exist anymore. Using only setAlphaBufferSize. fmt.setAlphaBufferSize(alpha); } @@ -249,9 +263,27 @@ GLView::initializeGL() // At this point the format is known. Can't do this in the constructor // - if (isValid()) - { - QGLFormat f = context()->format(); + // QUESTION_QT6: Should we use isValid from QOpenGLWidget or directly using from QOpenGLContext? + // NOTE_QT6: Returns true if the widget and OpenGL resources, like the context, have been successfully initialized. + // Note that the return value is always false until the widget is shown. + // NOTE_QT6: QOpenGLContext: Returns if this context is valid, i.e. has been successfully created. + if (context()->isValid()) + { + initializeGLExtensions(); + initializeOpenGLFunctions(); + + if (m_sharedContext) + { + context()->setShareContext(m_sharedContext); + } + + if (m_doc) + { + m_doc->initializeSession(); + } + + // NOTE_QT6: QGLFormat is deprecated. Using QSurfaceFormat now. + QSurfaceFormat f = context()->format(); #ifndef PLATFORM_DARWIN // @@ -289,8 +321,8 @@ GLView::initializeGL() // box.exec(); } #endif - - if (!f.stencil()) + // NOTE_QT6: stencil does not exist anymore + if (f.stencilBufferSize() == 0) { cout << "WARNING: no stencil buffer available" << endl; } @@ -368,7 +400,7 @@ GLView::paintGL() { //m_frameBuffer->makeCurrent(); m_videoDevice->makeCurrent(); - + if (m_userActive && m_activityTimer.elapsed() > 1.0) { if (m_doc->mainPopup() && !m_doc->mainPopup()->isVisible() && hasFocus()) @@ -387,12 +419,23 @@ GLView::paintGL() m_videoDevice->setAbsolutePosition(x, y); session->render(); + m_firstPaintCompleted = true; // Starting with Qt 5.12.1, the resulting texture is later composited over // white which creates undesirable artifacts. // As a work around, we set the resulting alpha channel to 1 to make sure // that the resulting texture is fully opaque. + + // NOTE_QT: That code seems to fix an issue on MacOS only. (Not on Linux, not test on Windows) + // The issue I see on MacOS that the background is brown istead of black with the default background. + + // NOTE_QT: glClear causes an issue on MacOS. We need to call glBindFramebuffer. + + // Not sure why it is not complaining on Linux or Windows, but this make sure that we are drawing onto the + // default framebuffer with those OpenGL functions below. + glBindFramebuffer(GL_FRAMEBUFFER, QOpenGLContext::currentContext()->defaultFramebufferObject()); + glPushAttrib( GL_COLOR_BUFFER_BIT ); TWK_GLDEBUG; glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE); TWK_GLDEBUG; glClearColor(0.f, 0.f, 0.f, 1.0f); TWK_GLDEBUG; @@ -449,7 +492,8 @@ GLView::paintGL() #ifdef PLATFORM_DARWIN session->outputVideoDevice()->syncBuffers(); makeCurrent(); - swapBuffers(); + // NOTE_QT6: swapBuffers is under the QOpenGLContext object in Qt6. + context()->swapBuffers(context()->surface()); #else session->outputVideoDevice()->syncBuffers(); makeCurrent(); @@ -458,7 +502,8 @@ GLView::paintGL() } else { - swapBuffers(); + // NOTE_QT6: swapBuffers is under the QOpenGLContext object in Qt6. + m_videoDevice->widget()->context()->swapBuffers(m_videoDevice->widget()->context()->surface()); } trecord.swapEnd = session->profilingElapsedTime(); @@ -497,7 +542,8 @@ GLView::paintGL() //session->outputVideoDevice()->syncBuffers(); makeCurrent(); - swapBuffers(); + // NOTE_QT6: swapBuffers is under the QOpenGLContext object in Qt6. + context()->swapBuffers(context()->surface()); #else session->outputVideoDevice()->syncBuffers(); makeCurrent(); @@ -506,7 +552,8 @@ GLView::paintGL() } else { - swapBuffers(); + // NOTE_QT6: swapBuffers is under the QOpenGLContext object in Qt6. + context()->swapBuffers(context()->surface()); } } @@ -526,6 +573,8 @@ GLView::eventProcessingTimeout() bool GLView::event(QEvent* event) { + //qDebug() << "Event type: " << event->type(); + bool keyevent = false; Rv::Session* session = m_doc->session(); @@ -670,7 +719,7 @@ GLView::event(QEvent* event) session->userGenericEvent("view-resized", contents.str()); } } - return QGLWidget::event(event); + return QOpenGLWidget::event(event); } if (session && session->outputVideoDevice() && @@ -736,7 +785,7 @@ GLView::event(QEvent* event) } else { - bool result = QGLWidget::event(event); + bool result = QOpenGLWidget::event(event); return result; } diff --git a/src/lib/app/RvCommon/MuUICommands.cpp b/src/lib/app/RvCommon/MuUICommands.cpp index f2ec081ad..8e30decd8 100644 --- a/src/lib/app/RvCommon/MuUICommands.cpp +++ b/src/lib/app/RvCommon/MuUICommands.cpp @@ -42,11 +42,20 @@ #include #include +#if defined( RV_VFX_CY2023 ) #include #include #include #include #include +#else +#include +#include +#include +#include +#include +#endif + #include @@ -75,12 +84,21 @@ // Related to MainWindow UI // May want to move into separate module/library later on //---------------------------------------------------------------------- +#if defined( RV_VFX_CY2023 ) #include #include #include #include #include #include +#else +#include +#include +#include +#include +#include +#include +#endif #include diff --git a/src/lib/app/RvCommon/PyUICommands.cpp b/src/lib/app/RvCommon/PyUICommands.cpp index 9e82c0540..7051fa2cf 100644 --- a/src/lib/app/RvCommon/PyUICommands.cpp +++ b/src/lib/app/RvCommon/PyUICommands.cpp @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/lib/app/RvCommon/QTDesktopVideoDevice.cpp b/src/lib/app/RvCommon/QTDesktopVideoDevice.cpp index e2d901914..b9a2c191e 100644 --- a/src/lib/app/RvCommon/QTDesktopVideoDevice.cpp +++ b/src/lib/app/RvCommon/QTDesktopVideoDevice.cpp @@ -15,8 +15,8 @@ #include #include #include -#include #include +#include namespace Rv { @@ -26,16 +26,22 @@ using namespace TwkApp; //---------------------------------------------------------------------- -class ScreenView : public QGLWidget +class ScreenView : public QOpenGLWidget { public: - ScreenView(const QGLFormat& fmt, + ScreenView(const QSurfaceFormat& fmt, QWidget* parent, - QGLWidget* share, + QOpenGLWidget* share, Qt::WindowFlags flags) - : QGLWidget(fmt, parent, share, flags) + : QOpenGLWidget(parent, flags) { - setAutoBufferSwap(false); + // NOTE_QT: setAutoBUfferSwap does not exist anymore. + //setAutoBufferSwap(false); + setFormat(fmt); + if (share) + { + context()->setShareContext(share->context()); + } } ~ScreenView() {} @@ -55,8 +61,16 @@ QTDesktopVideoDevice::QTDesktopVideoDevice(VideoModule* m, m_x(0), m_y(0) { - const QDesktopWidget* desktop = qApp->desktop(); - QRect rect = desktop->screenGeometry(screen); + const QList screens = QGuiApplication::screens(); + if (screen < 0 || screen >= screens.size()) + { + // Handle invalid screen index. + // TODO_QT + std::cout << "Screen index is out of range" << std::endl; + } + + const QRect rect = screens[screen]->geometry(); + ostringstream str; str << rect.width() << " x " << rect.height(); m_videoFormats.push_back(VideoFormat(rect.width(), rect.height(), 1.0, 1.0, 0.0, str.str())); @@ -70,7 +84,7 @@ QTDesktopVideoDevice::~QTDesktopVideoDevice() void -QTDesktopVideoDevice::setWidget(QGLWidget* widget) +QTDesktopVideoDevice::setWidget(QOpenGLWidget* widget) { m_view = widget; m_translator = new QTTranslator(this, m_view); @@ -99,7 +113,7 @@ QTDesktopVideoDevice::redrawImmediately() const if (m_view && m_view->isVisible()) { ScopedLock lock(m_mutex); - m_view->updateGL(); + m_view->update(); } else { @@ -114,7 +128,8 @@ QTDesktopVideoDevice::syncBuffers() const { ScopedLock lock(m_mutex); makeCurrent(); - m_view->swapBuffers(); + // NOTE_QT: swapBuffer is under the context now. + m_view->context()->swapBuffers(m_view->context()->surface()); } } @@ -125,13 +140,16 @@ QTDesktopVideoDevice::open(const StringVector& args) // always make the fullscreen device synced // - QGLFormat fmt = shareDevice()->widget()->format(); + // NOTE_QT: QSurfaceFormat replace QGLFormat. + + QSurfaceFormat fmt = shareDevice()->widget()->format(); fmt.setSwapInterval(m_vsync ? 1 : 0); ScreenView* s = new ScreenView(fmt, 0, shareDevice()->widget(), Qt::Window); setWidget(s); setViewDevice(new QTGLVideoDevice(0, "local view", s)); - QRect g = QApplication::desktop()->screenGeometry(m_screen); + const QList screens = QGuiApplication::screens(); + QRect g = screens[m_screen]->geometry(); widget()->move(g.x(), g.y()); widget()->setWindowState(Qt::WindowFullScreen); widget()->show(); @@ -163,28 +181,32 @@ QTDesktopVideoDevice::close() VideoDevice::Resolution QTDesktopVideoDevice::resolution() const { - QRect g = QApplication::desktop()->screenGeometry(m_screen); + const QList screens = QGuiApplication::screens(); + QRect g = screens[m_screen]->geometry(); return Resolution(g.width(), g.height(), 1.0, 1.0); } size_t QTDesktopVideoDevice::width() const { - QRect g = QApplication::desktop()->screenGeometry(m_screen); + const QList screens = QGuiApplication::screens(); + QRect g = screens[m_screen]->geometry(); return g.width(); } size_t QTDesktopVideoDevice::height() const { - QRect g = QApplication::desktop()->screenGeometry(m_screen); + const QList screens = QGuiApplication::screens(); + QRect g = screens[m_screen]->geometry(); return g.height(); } VideoDevice::VideoFormat QTDesktopVideoDevice::format() const { - QRect g = QApplication::desktop()->screenGeometry(m_screen); + const QList screens = QGuiApplication::screens(); + QRect g = screens[m_screen]->geometry(); ostringstream str; str << g.width() << " x " << g.height(); const float pa = 1.0; @@ -214,9 +236,37 @@ QTDesktopVideoDevice::colorProfile() const // // Get the context for this screen - QDesktopWidget* desktop = QApplication::desktop(); - WId id = desktop->screen(m_screen)->effectiveWinId(); - HDC hdc = GetDC (reinterpret_cast(id)); + const QList screens = QGuiApplication::screens(); + + // Ensure the screen index is valid. + if (m_screen < 0 || m_screen >= screens.size()) + { + m_colorProfile = ColorProfile(); + return m_colorProfile; + } + + QScreen* targetScreen = screens[m_screen]; + QWindow* windowOnTargetScreen = nullptr; + const QList windows = QGuiApplication::topLevelWindows(); + + // Check all windows to find one on the target screen. + for (QWindow* window : windows) + { + if (window->screen() == targetScreen) + { + windowOnTargetScreen = window; + } + } + + if (!windowOnTargetScreen) + { + // Return empty profile if no window is found on the screen. + m_colorProfile = ColorProfile(); + return m_colorProfile; + } + + HWND hwnd = reinterpret_cast(windowOnTargetScreen->winId()); + HDC hdc = GetDC(hwnd); if (hdc) { @@ -246,7 +296,7 @@ QTDesktopVideoDevice::colorProfile() const } delete path; - ReleaseDC (reinterpret_cast(id), hdc); + ReleaseDC(hwnd, hdc); } else { diff --git a/src/lib/app/RvCommon/QTGLVideoDevice.cpp b/src/lib/app/RvCommon/QTGLVideoDevice.cpp index 6ed944736..27c7a6fa9 100644 --- a/src/lib/app/RvCommon/QTGLVideoDevice.cpp +++ b/src/lib/app/RvCommon/QTGLVideoDevice.cpp @@ -23,7 +23,7 @@ using namespace std; using namespace TwkGLF; using namespace TwkApp; -QTGLVideoDevice::QTGLVideoDevice(VideoModule* m, const string& name, QGLWidget *view) +QTGLVideoDevice::QTGLVideoDevice(VideoModule* m, const string& name, QOpenGLWidget *view) : GLVideoDevice(m, name, ImageOutput | ProvidesSync | SubWindow ), m_view(view), m_translator(new QTTranslator(this, view)), @@ -43,7 +43,7 @@ QTGLVideoDevice::QTGLVideoDevice(VideoModule* m, const string& name) { } -QTGLVideoDevice::QTGLVideoDevice(const string& name, QGLWidget *view) +QTGLVideoDevice::QTGLVideoDevice(const string& name, QOpenGLWidget *view) : GLVideoDevice(NULL, name, NoCapabilities ), m_view(view), m_translator(new QTTranslator(this, view)), @@ -60,7 +60,7 @@ QTGLVideoDevice::~QTGLVideoDevice() } void -QTGLVideoDevice::setWidget(QGLWidget* widget) +QTGLVideoDevice::setWidget(QOpenGLWidget* widget) { m_view = widget; m_translator = new QTTranslator(this, m_view); @@ -69,14 +69,16 @@ QTGLVideoDevice::setWidget(QGLWidget* widget) GLVideoDevice* QTGLVideoDevice::newSharedContextWorkerDevice() const { - QGLWidget* w = new QGLWidget(m_view->parentWidget(), m_view); - return new QTGLVideoDevice(name() + "-workerContextDevice", w); + // NOTE_QT: QOpenGLWidget does not take a share parameter anymore. Try to share with setShareContext. + QOpenGLWidget* openGLWidget = new QOpenGLWidget(m_view->parentWidget()); + openGLWidget->context()->setShareContext(m_view->context()); + return new QTGLVideoDevice(name() + "-workerContextDevice", openGLWidget); } void QTGLVideoDevice::makeCurrent() const { - if (m_view->context()->contextHandle() && m_view->context()->isValid()) m_view->makeCurrent(); + if (m_view->context() && m_view->context()->isValid()) m_view->makeCurrent(); if (!isWorkerDevice()) GLVideoDevice::makeCurrent(); } @@ -112,7 +114,7 @@ QTGLVideoDevice::redrawImmediately() const m_view->setAttribute(Qt::WA_Mapped); #endif - m_view->updateGL(); + m_view->update(); } else { @@ -193,7 +195,8 @@ QTGLVideoDevice::syncBuffers() const if (!isWorkerDevice()) { makeCurrent(); - m_view->swapBuffers(); + // NOTE_QT: swapBuffers() does not exist in the QOpenGLWidget. It under the context. + m_view->context()->swapBuffers(m_view->context()->surface()); } } diff --git a/src/lib/app/RvCommon/QTTranslator.cpp b/src/lib/app/RvCommon/QTTranslator.cpp index d3024d905..40b6407b5 100644 --- a/src/lib/app/RvCommon/QTTranslator.cpp +++ b/src/lib/app/RvCommon/QTTranslator.cpp @@ -78,7 +78,7 @@ QTTranslator::modifiers(Qt::KeyboardModifiers s) const void QTTranslator::resetModifiers() const { - m_modifiers = 0; + m_modifiers = Qt::NoModifier; } Qt::MouseButtons @@ -87,7 +87,7 @@ QTTranslator::qbuttons(unsigned int b) const Qt::MouseButtons q = Qt::NoButton; if (b & 0x1 << 0) q |= Qt::LeftButton; - if (b & 0x1 << 1) q |= Qt::MidButton; + if (b & 0x1 << 1) q |= Qt::MiddleButton; if (b & 0x1 << 2) q |= Qt::RightButton; return q; } @@ -572,7 +572,8 @@ QTTranslator::sendMouseWheelEvent(QEvent* qevent) const event->buttons()); n += "wheel"; - if (event->delta() < 0) n += "down"; else n += "up"; + // use pixelDelta() or angleDelta() instead of delta() (deprecated) + if (event->angleDelta().y() < 0) n += "down"; else n += "up"; PointerEvent e(n, m_node, modifiers(m_modifiers), m_x, m_y, @@ -622,11 +623,16 @@ QTTranslator::sendMouseEvent(QEvent* qevent, float activationTime) const string n; bool b1 = event->buttons() & Qt::LeftButton; - bool b2 = event->buttons() & Qt::MidButton; + bool b2 = event->buttons() & Qt::MiddleButton; bool b3 = event->buttons() & Qt::RightButton; +#if defined( RV_VFX_CY2023 ) m_x = (m_xscale * event->x()) + m_xoffset; m_y = (m_yscale * (m_widget->height() - event->y())) + m_yoffset; +#else + m_x = (m_xscale * event->position().x()) + m_xoffset; + m_y = (m_yscale * (m_widget->height() - event->position().y())) + m_yoffset; +#endif if (type == QEvent::MouseMove && !buttons()) { @@ -912,11 +918,19 @@ QTTranslator::sendDNDEvent(QEvent* event) const for (int i=0; i < seqs.size(); i++) { +#if defined( RV_VFX_CY2023 ) DragDropEvent e(ename, m_node, type, DragDropEvent::File, seqs[i], 0, devent->pos().x(), h - devent->pos().y() - 1, w, h); +#else + DragDropEvent e(ename, m_node, type, DragDropEvent::File, + seqs[i], 0, + devent->position().toPoint().x(), + h - devent->position().toPoint().y() - 1, + w, h); +#endif sendEvent(e); if (e.handled) handled = true; @@ -924,11 +938,19 @@ QTTranslator::sendDNDEvent(QEvent* event) const for (int i=0; i < nonfiles.size(); i++) { +#if defined( RV_VFX_CY2023 ) DragDropEvent e(ename, m_node, type, DragDropEvent::URL, nonfiles[i], 0, devent->pos().x(), h - devent->pos().y() - 1, w, h); +#else + DragDropEvent e(ename, m_node, type, DragDropEvent::URL, + nonfiles[i], 0, + devent->position().toPoint().x(), + h - devent->position().toPoint().y() - 1, + w, h); +#endif sendEvent(e); if (e.handled) handled = true; @@ -936,11 +958,19 @@ QTTranslator::sendDNDEvent(QEvent* event) const } else if (devent->mimeData()->hasText()) { +#if defined( RV_VFX_CY2023 ) DragDropEvent e(ename, m_node, type, DragDropEvent::Text, devent->mimeData()->text().toUtf8().constData(), 0, devent->pos().x(), h - devent->pos().y() - 1, w, h); +#else + DragDropEvent e(ename, m_node, type, DragDropEvent::Text, + devent->mimeData()->text().toUtf8().constData(), 0, + devent->position().toPoint().x(), + h - devent->position().toPoint().y() - 1, + w, h); +#endif sendEvent(e); if (e.handled) handled = true; @@ -963,8 +993,13 @@ QTTranslator::sendTabletEvent(QEvent* qevent) const double xoff = p.x(); double yoff = p.y(); +#if defined( RV_VFX_CY2023 ) const double gx = event->hiResGlobalX() - xoff; const double gy = double(m_widget->height()) - (event->hiResGlobalY() - yoff); +#else + const double gx = event->globalPosition().x() - xoff; + const double gy = double(m_widget->height()) - (event->globalPosition().y() - yoff); +#endif const double pressure = event->pressure(); const double tpressure = event->tangentialPressure(); const double rot = event->rotation(); @@ -977,7 +1012,10 @@ QTTranslator::sendTabletEvent(QEvent* qevent) const string n; - switch (event->device()) + // NOTE_QT: There is no equivalent to QTabletEvent::FourDMouse. Might need custom class or use generic mouse type. + +#if defined( RV_VFX_CY2023 ) + switch (event->deviceType()) { case QTabletEvent::NoDevice: device = TabletEvent::NoTableDevice; @@ -1025,6 +1063,58 @@ QTTranslator::sendTabletEvent(QEvent* qevent) const n += "eraser-"; break; } +#else + switch (event->deviceType()) + { + case QInputDevice::DeviceType::Unknown: + device = TabletEvent::NoTableDevice; + n = "generic-tablet-device-"; + break; + case QInputDevice::DeviceType::Puck: + device = TabletEvent::PuckDevice; + n = "puck-"; + break; + case QInputDevice::DeviceType::Stylus: + device = TabletEvent::StylusDevice; + n = "stylus-"; + break; + case QInputDevice::DeviceType::Airbrush: + device = TabletEvent::AirBrushDevice; + n = "airbrush-"; + break; + // TODO_QT: FourDMouse is not available anymore. + // case QInputDevice::DeviceType::Mouse: + // device = TabletEvent::FourDMouseDevice; + // n = "mouse4D-"; + // break; + // TODO_QT: RotationStylus is not available anymore. + // case QTabletEvent::RotationStylus: + // device = TabletEvent::RotationStylusDevice; + // n = "rotating-stylus-"; + // break; + default: + break; + } + + switch (event->pointerType()) + { + case QPointingDevice::PointerType::Unknown: + kind = TabletEvent::UnknownTabletKind; + break; + case QPointingDevice::PointerType::Pen: + kind = TabletEvent::PenKind; + n += "pen-"; + break; + case QPointingDevice::PointerType::Cursor: + kind = TabletEvent::CursorKind; + n += "cursor-"; + break; + case QPointingDevice::PointerType::Eraser: + kind = TabletEvent::EraserKind; + n += "eraser-"; + break; + } +#endif bool b1 = m_b1; bool b2 = m_b2; diff --git a/src/lib/app/RvCommon/RvApplication.cpp b/src/lib/app/RvCommon/RvApplication.cpp index 8bc523560..ba28159f5 100644 --- a/src/lib/app/RvCommon/RvApplication.cpp +++ b/src/lib/app/RvCommon/RvApplication.cpp @@ -48,7 +48,6 @@ #include #include #include -#include #include #include @@ -613,6 +612,13 @@ RvApplication::newSessionFromFiles(const StringVector& files) { DB ("RvApplication::newSessionFromFiles()"); Rv::RvDocument *doc = new Rv::RvDocument; + + doc->show(); + +#ifndef PLATFORM_LINUX + doc->raise(); +#endif + //doc->ensurePolished(); Rv::RvSession* s = doc->session(); @@ -639,17 +645,50 @@ RvApplication::newSessionFromFiles(const StringVector& files) doc->center(); } + QList screens = QGuiApplication::screens(); + QScreen *primaryScreen = QGuiApplication::primaryScreen(); + + auto isVirtualDesktop = [&screens, primaryScreen]() -> bool + { + // Not a virtual desktop if there is only one screen. + if (screens.size() <= 1) return false; + + QRect totalGeometry; + for (const auto& screen : screens) + { + totalGeometry = totalGeometry.united(screen->geometry()); + } + + return totalGeometry != primaryScreen->geometry(); + }; + + auto getScreenFromPoint = [&screens](const QPoint& point) -> int + { + for (int i = 0; i < screens.size(); ++i) + { + if (screens[i]->geometry().contains(point)) + { + return i; + } + } + + return -1; + }; + // // Allow command line placement // if (opts.x != -1 || opts.y != -1) { - if (opts.screen != -1 && QApplication::desktop()->isVirtualDesktop()) + if (opts.screen != -1 && isVirtualDesktop()) { - QRect r = QApplication::desktop()->screenGeometry(opts.screen); - opts.x += r.x(); - opts.y += r.y(); + if (opts.screen < screens.size()) + { + QRect r = screens[opts.screen]->geometry(); + opts.x += r.x(); + opts.y += r.y(); + } } if (opts.width != -1 && opts.height != -1) @@ -662,23 +701,23 @@ RvApplication::newSessionFromFiles(const StringVector& files) } } - int screen = QApplication::desktop()->screenNumber(QCursor::pos()); + int screen = getScreenFromPoint(QCursor::pos()); if (opts.screen != -1) screen = opts.screen; int oldX = doc->pos().x(); int oldY = doc->pos().y(); - int oldScreen = QApplication::desktop()->screenNumber(QPoint(oldX,oldY)); + int oldScreen = getScreenFromPoint(QPoint(oldX, oldY)); - if (screen != -1 && QApplication::desktop()->isVirtualDesktop() && screen != oldScreen) + if (screen != -1 && isVirtualDesktop() && screen != oldScreen) // // The application is going to come up on the wrong screen, so figure out our // our relative position on the current screen, and move to the same relative // position on the correct screen. // { - QRect rnew = QApplication::desktop()->screenGeometry(screen); - QRect rold = QApplication::desktop()->screenGeometry(oldScreen); + QRect rnew = QGuiApplication::screens().at(screen)->geometry(); + QRect rold = QGuiApplication::screens().at(oldScreen)->geometry(); int xoff = oldX - rold.x(); int yoff = oldY - rold.y(); @@ -696,12 +735,6 @@ RvApplication::newSessionFromFiles(const StringVector& files) } } - doc->show(); - -#ifndef PLATFORM_LINUX - doc->raise(); -#endif - if (videoModules().empty()) { doc->view()->makeCurrent(); @@ -806,8 +839,8 @@ RvApplication::createNewSessionFromFiles(const StringVector& files) m_newTimer->setObjectName("m_newTimer"); connect(m_newTimer, SIGNAL(timeout()), this, SLOT(runCreateSession())); } - - m_newTimer->start(int(1.0 / 192.0 * 1000.0)); + // TODO_CED TIMER + m_newTimer->start(int(1.0 / 50.0 * 1000.0)); } m_newSessions.push_back(sv); @@ -1539,7 +1572,7 @@ RvApplication::setPresentationMode(bool value) { const DesktopVideoDevice* dd = dynamic_cast(d); - if (dd && dd->qtScreen() == qApp->desktop()->QDesktopWidget::screenNumber(rvDoc)) + if (dd && dd->qtScreen() == QApplication::screens().indexOf(QApplication::screenAt(rvDoc->mapToGlobal(QPoint(0, 0))))); { TWK_THROW_EXC_STREAM("Cannot open presentation device for the same screen the controller is on"); } diff --git a/src/lib/app/RvCommon/RvBottomViewToolBar.cpp b/src/lib/app/RvCommon/RvBottomViewToolBar.cpp index 30e09d854..c123e0b55 100644 --- a/src/lib/app/RvCommon/RvBottomViewToolBar.cpp +++ b/src/lib/app/RvCommon/RvBottomViewToolBar.cpp @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/lib/app/RvCommon/RvCommon/DesktopVideoDevice.h b/src/lib/app/RvCommon/RvCommon/DesktopVideoDevice.h index 366a156a5..edb172662 100644 --- a/src/lib/app/RvCommon/RvCommon/DesktopVideoDevice.h +++ b/src/lib/app/RvCommon/RvCommon/DesktopVideoDevice.h @@ -13,7 +13,6 @@ #include #include #include -#include #include #include diff --git a/src/lib/app/RvCommon/RvCommon/FileTypeTraits.h b/src/lib/app/RvCommon/RvCommon/FileTypeTraits.h index 50783fd4f..764ce2cce 100644 --- a/src/lib/app/RvCommon/RvCommon/FileTypeTraits.h +++ b/src/lib/app/RvCommon/RvCommon/FileTypeTraits.h @@ -8,6 +8,7 @@ #ifndef __RvCommon__FileTypeTraits__h__ #define __RvCommon__FileTypeTraits__h__ #include +#include #include #include #include diff --git a/src/lib/app/RvCommon/RvCommon/GLSLSyntaxHighlighter.h b/src/lib/app/RvCommon/RvCommon/GLSLSyntaxHighlighter.h index aef4c24e2..b45fe27d7 100644 --- a/src/lib/app/RvCommon/RvCommon/GLSLSyntaxHighlighter.h +++ b/src/lib/app/RvCommon/RvCommon/GLSLSyntaxHighlighter.h @@ -7,6 +7,7 @@ // #ifndef __RvCommon__GLSLSyntaxHighlighter__h__ #define __RvCommon__GLSLSyntaxHighlighter__h__ +#include #include #include #include @@ -24,8 +25,8 @@ class GLSLSyntaxHighlighter : public QSyntaxHighlighter struct HighlightingRule { - QRegExp pattern; - QTextCharFormat format; + QRegularExpression pattern; + QTextCharFormat format; }; GLSLSyntaxHighlighter(QTextDocument *parent = 0); @@ -36,8 +37,8 @@ class GLSLSyntaxHighlighter : public QSyntaxHighlighter private: QVector m_highlightingRules; - QRegExp m_commentStartExpression; - QRegExp m_commentEndExpression; + QRegularExpression m_commentStartExpression; + QRegularExpression m_commentEndExpression; QTextCharFormat m_typeFormat; QTextCharFormat m_keywordFormat; QTextCharFormat m_builtInFormat; diff --git a/src/lib/app/RvCommon/RvCommon/GLView.h b/src/lib/app/RvCommon/RvCommon/GLView.h index d74952ec5..517b53486 100644 --- a/src/lib/app/RvCommon/RvCommon/GLView.h +++ b/src/lib/app/RvCommon/RvCommon/GLView.h @@ -8,7 +8,10 @@ #ifndef __rv_qt__GLView__h__ #define __rv_qt__GLView__h__ #include -#include +#include +#include +#include +#include #include #include #include @@ -19,7 +22,7 @@ class RvDocument; class QTFrameBuffer; class QTGLVideoDevice; -class GLView : public QGLWidget +class GLView : public QOpenGLWidget, protected QOpenGLFunctions { Q_OBJECT @@ -27,7 +30,7 @@ class GLView : public QGLWidget typedef TwkUtil::Timer Timer; GLView(QWidget* parent, - const QGLWidget* share, + QOpenGLContext* sharedContext, RvDocument* doc, bool stereo=false, bool vsync=true, @@ -39,13 +42,13 @@ class GLView : public QGLWidget bool noResize=true); ~GLView(); - static QGLFormat rvGLFormat(bool stereo=false, - bool vsync=true, - bool doubleBuffer=true, - int red=8, - int green=8, - int blue=8, - int alpha=8); + static QSurfaceFormat rvGLFormat(bool stereo=false, + bool vsync=true, + bool doubleBuffer=true, + int red=8, + int green=8, + int blue=8, + int alpha=8); void absolutePosition(int& x, int& y) const; @@ -99,6 +102,7 @@ public slots: bool m_postFirstNonEmptyRender; bool m_stopProcessingEvents; void* m_syncThreadData; + QOpenGLContext* m_sharedContext; }; } // Rv diff --git a/src/lib/app/RvCommon/RvCommon/QTDesktopVideoDevice.h b/src/lib/app/RvCommon/RvCommon/QTDesktopVideoDevice.h index b4299a1bd..de50ce5c8 100644 --- a/src/lib/app/RvCommon/RvCommon/QTDesktopVideoDevice.h +++ b/src/lib/app/RvCommon/RvCommon/QTDesktopVideoDevice.h @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include namespace Rv { @@ -47,8 +47,8 @@ class QTDesktopVideoDevice : public DesktopVideoDevice // From QTGLVideoDevice - void setWidget(QGLWidget*); - QGLWidget* widget() const { return m_view; } + void setWidget(QOpenGLWidget*); + QOpenGLWidget* widget() const { return m_view; } virtual void makeCurrent() const; const QTTranslator& translator() const { return *m_translator; } @@ -83,7 +83,7 @@ class QTDesktopVideoDevice : public DesktopVideoDevice int m_screen; int m_x; int m_y; - QGLWidget* m_view; + QOpenGLWidget* m_view; QTTranslator* m_translator; mutable ColorProfile m_colorProfile; }; diff --git a/src/lib/app/RvCommon/RvCommon/QTGLVideoDevice.h b/src/lib/app/RvCommon/RvCommon/QTGLVideoDevice.h index f59fae2db..cb55f6c85 100644 --- a/src/lib/app/RvCommon/RvCommon/QTGLVideoDevice.h +++ b/src/lib/app/RvCommon/RvCommon/QTGLVideoDevice.h @@ -9,7 +9,7 @@ #define __RvCommon__QTGLVideoDevice__h__ #include #include -#include +#include #include #include @@ -26,12 +26,12 @@ namespace Rv { class QTGLVideoDevice : public TwkGLF::GLVideoDevice { public: - QTGLVideoDevice(TwkApp::VideoModule*, const std::string& name, QGLWidget* view); + QTGLVideoDevice(TwkApp::VideoModule*, const std::string& name, QOpenGLWidget* view); QTGLVideoDevice(TwkApp::VideoModule*, const std::string& name); virtual ~QTGLVideoDevice(); - void setWidget(QGLWidget*); - QGLWidget* widget() const { return m_view; } + void setWidget(QOpenGLWidget*); + QOpenGLWidget* widget() const { return m_view; } virtual void makeCurrent() const; const QTTranslator& translator() const { return *m_translator; } @@ -62,13 +62,13 @@ class QTGLVideoDevice : public TwkGLF::GLVideoDevice bool isWorkerDevice() const { return Capabilities(capabilities()) == NoCapabilities; } protected: - QTGLVideoDevice(const std::string& name, QGLWidget* view); + QTGLVideoDevice(const std::string& name, QOpenGLWidget* view); protected: int m_x; int m_y; float m_refresh; - QGLWidget* m_view; + QOpenGLWidget* m_view; QTTranslator* m_translator; }; diff --git a/src/lib/app/RvCommon/RvCommon/RvDocument.h b/src/lib/app/RvCommon/RvCommon/RvDocument.h index c3bd773fb..ff7568679 100644 --- a/src/lib/app/RvCommon/RvCommon/RvDocument.h +++ b/src/lib/app/RvCommon/RvCommon/RvDocument.h @@ -109,6 +109,8 @@ class RvDocument : public QMainWindow, public TwkUtil::Notifier void playStartSlot(const std::string&); void playStopSlot(const std::string&); + void initializeSession(); + protected: // Overrides for TwkUtil::Notifier virtual bool receive( Notifier *, Notifier *, MessageId, MessageData * ); diff --git a/src/lib/app/RvCommon/RvCommon/RvJavaScriptObject.h b/src/lib/app/RvCommon/RvCommon/RvJavaScriptObject.h index aec7cc414..9f07ec14d 100644 --- a/src/lib/app/RvCommon/RvCommon/RvJavaScriptObject.h +++ b/src/lib/app/RvCommon/RvCommon/RvJavaScriptObject.h @@ -8,6 +8,7 @@ #ifndef __RvCommon__RvJavaScriptObject__h__ #define __RvCommon__RvJavaScriptObject__h__ #include +#include #include #include #include @@ -90,7 +91,7 @@ class RvJavaScriptObject : public QObject, public TwkApp::EventNode QWebEnginePage* m_frame; - QList m_eventNames; + QList m_eventNames; }; } // Rv diff --git a/src/lib/app/RvCommon/RvCommon/TwkQTAction.h b/src/lib/app/RvCommon/RvCommon/TwkQTAction.h index 672ea034b..57b02f061 100644 --- a/src/lib/app/RvCommon/RvCommon/TwkQTAction.h +++ b/src/lib/app/RvCommon/RvCommon/TwkQTAction.h @@ -8,7 +8,7 @@ #ifndef __rv_qt__TwkQTAction__h__ #define __rv_qt__TwkQTAction__h__ #include -#include +#include #include #include diff --git a/src/lib/app/RvCommon/RvCommon/generated/.gitignore b/src/lib/app/RvCommon/RvCommon/generated/.gitignore deleted file mode 100644 index d6b7ef32c..000000000 --- a/src/lib/app/RvCommon/RvCommon/generated/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/src/lib/app/RvCommon/RvDocument.cpp b/src/lib/app/RvCommon/RvDocument.cpp index 73eb8d8bf..f0a04b7cf 100644 --- a/src/lib/app/RvCommon/RvDocument.cpp +++ b/src/lib/app/RvCommon/RvDocument.cpp @@ -15,7 +15,6 @@ #include #include #include -#include //#include #include #include @@ -47,10 +46,14 @@ #include #include -#include +#include #ifdef PLATFORM_LINUX +#if defined( RV_VFX_CY2023 ) #include +#else +#include +#endif #include #endif @@ -178,25 +181,12 @@ RvDocument::RvDocument() opts.dispAlphaBits, !m_startupResize ); - - // - // Make the GL context valid ASAP so we can query it later - // - - if (!m_glView->isValid()) - { - delete m_glView; - //cout << "ERROR: reverting to known GL state" << endl; - //cout << "ERROR: check the rendering preferences" << endl; - m_glView = new GLView(this, 0, this); - resetGLPrefs = true; - } } else { RvSession* s = static_cast(docs.front()); RvDocument *rvDoc = (RvDocument*)s->opaquePointer(); - m_glView = new GLView(this, rvDoc->view(), this, + m_glView = new GLView(this, rvDoc->view()->context(), this, opts.stereoMode && !strcmp(opts.stereoMode, "hardware"), opts.vsync != 0 && !m_vsyncDisabled, true, // double buffer @@ -206,25 +196,15 @@ RvDocument::RvDocument() opts.dispAlphaBits, !m_startupResize ); - - if (!m_glView->isValid()) - { - delete m_glView; - //cout << "ERROR: reverting to known GL state" << endl; - //cout << "ERROR: check the rendering preferences" << endl; - m_glView = new GLView(this, rvDoc->view(), this); - resetGLPrefs = true; - } } - m_stackedLayout = new QStackedLayout(m_centralWidget); m_stackedLayout->setStackingMode(QStackedLayout::StackAll); m_stackedLayout->addWidget(m_glView); - + setCentralWidget(m_viewContainerWidget); - //QTFrameBuffer* fb = m_glView->frameBuffer(); + //QTFrameBuffer* fb = m_glView->frameBuffer( m_glView->setFocus(Qt::OtherFocusReason); //qApp->installEventFilter(m_glView); @@ -240,59 +220,7 @@ RvDocument::RvDocument() m_menuTimer->setInterval(50); connect(m_menuTimer, SIGNAL(timeout()), this, SLOT(buildMenu())); - m_glView->makeCurrent(); - initializeGLExtensions(); - - m_session = new RvSession; - //m_session->setFrameBuffer(fb); - -#ifdef PLATFORM_DARWIN - m_displayLink = new DisplayLink(this); - if (m_displayLink) m_session->useExternalVSyncTiming(true); -#endif - - //RvApp()->addVideoDevice(m_glView->videoDevice()); - m_session->setControlVideoDevice(m_glView->videoDevice()); - - m_session->setRendererType("Composite"); - m_session->setOpaquePointer( this ); - m_session->makeActive(); - m_session->postInitialize(); - char nm[64]; - sprintf (nm, "session%03d", sessionCount++); - m_session->setEventNodeName(nm); - setObjectName(QString("rv-") + QString(nm)); - - mergeMenu(m_session->menu()); - - setAttribute(Qt::WA_DeleteOnClose); - setAttribute(Qt::WA_QuitOnClose); - - m_topViewToolBar->setSession(m_session); - m_bottomViewToolBar->setSession(m_session); - - // 10.5 looks better without it (no longer has the 100% white top) - //setAttribute(Qt::WA_MacBrushedMetal); - - m_session->addNotification(this, IPCore::Session::updateMessage()); - m_session->addNotification(this, IPCore::Session::updateLoadingMessage()); - m_session->addNotification(this, IPCore::Session::fullScreenOnMessage()); - m_session->addNotification(this, IPCore::Session::fullScreenOffMessage()); - m_session->addNotification(this, IPCore::Session::stereoHardwareOnMessage()); - m_session->addNotification(this, IPCore::Session::stereoHardwareOffMessage()); - m_session->addNotification(this, TwkApp::Document::deleteMessage()); - m_session->addNotification(this, TwkApp::Document::menuChangedMessage()); - m_session->addNotification(this, TwkApp::Document::activeMessage()); - m_session->addNotification(this, TwkApp::Document::filenameChangedMessage()); - m_session->addNotification(this, IPCore::Session::audioUnavailbleMessage()); - m_session->addNotification(this, IPCore::Session::eventDeviceChangedMessage()); - m_session->addNotification(this, IPCore::Session::stopPlayMessage()); - - m_session->playStartSignal().connect(boost::bind(&RvDocument::playStartSlot, this, std::placeholders::_1)); - m_session->playStopSignal().connect(boost::bind(&RvDocument::playStopSlot, this, std::placeholders::_1)); - m_session->physicalVideoDeviceChangedSignal().connect(boost::bind(&RvDocument::physicalVideoDeviceChangedSlot, this, std::placeholders::_1)); - - if (resetGLPrefs) resetGLStateAndPrefs(); + //if (resetGLPrefs) resetGLStateAndPrefs(); #ifdef PLATFORM_LINUX @@ -321,6 +249,61 @@ RvDocument::RvDocument() } } +void RvDocument::initializeSession() +{ + if (!m_session) + { + m_session = new RvSession; + //m_session->setFrameBuffer(fb); + + #ifdef PLATFORM_DARWIN + m_displayLink = new DisplayLink(this); + if (m_displayLink) m_session->useExternalVSyncTiming(true); + #endif + + //RvApp()->addVideoDevice(m_glView->videoDevice()); + m_session->setControlVideoDevice(m_glView->videoDevice()); + + m_session->setRendererType("Composite"); + m_session->setOpaquePointer( this ); + m_session->makeActive(); + m_session->postInitialize(); + char nm[64]; + sprintf (nm, "session%03d", sessionCount++); + m_session->setEventNodeName(nm); + setObjectName(QString("rv-") + QString(nm)); + + mergeMenu(m_session->menu()); + + setAttribute(Qt::WA_DeleteOnClose); + setAttribute(Qt::WA_QuitOnClose); + + m_topViewToolBar->setSession(m_session); + m_bottomViewToolBar->setSession(m_session); + + // 10.5 looks better without it (no longer has the 100% white top) + //setAttribute(Qt::WA_MacBrushedMetal); + + m_session->addNotification(this, IPCore::Session::updateMessage()); + m_session->addNotification(this, IPCore::Session::updateLoadingMessage()); + m_session->addNotification(this, IPCore::Session::fullScreenOnMessage()); + m_session->addNotification(this, IPCore::Session::fullScreenOffMessage()); + m_session->addNotification(this, IPCore::Session::stereoHardwareOnMessage()); + m_session->addNotification(this, IPCore::Session::stereoHardwareOffMessage()); + m_session->addNotification(this, TwkApp::Document::deleteMessage()); + m_session->addNotification(this, TwkApp::Document::menuChangedMessage()); + m_session->addNotification(this, TwkApp::Document::activeMessage()); + m_session->addNotification(this, TwkApp::Document::filenameChangedMessage()); + m_session->addNotification(this, IPCore::Session::audioUnavailbleMessage()); + m_session->addNotification(this, IPCore::Session::eventDeviceChangedMessage()); + m_session->addNotification(this, IPCore::Session::stopPlayMessage()); + + m_session->playStartSignal().connect(boost::bind(&RvDocument::playStartSlot, this, std::placeholders::_1)); + m_session->playStopSignal().connect(boost::bind(&RvDocument::playStopSlot, this, std::placeholders::_1)); + m_session->physicalVideoDeviceChangedSignal().connect(boost::bind(&RvDocument::physicalVideoDeviceChangedSlot, this, std::placeholders::_1)); + } +} + RvDocument::~RvDocument() { if (IPCore::debugProfile) @@ -755,7 +738,7 @@ RvDocument::rebuildGLView(bool stereo, Qt::KeyboardModifiers cur = m_glView->videoDevice()->translator().currentModifiers(); oldGLView->stopProcessingEvents(); - GLView* newGLView = new GLView(this, view(), this, + GLView* newGLView = new GLView(this, view()->context(), this, stereo, vsync, doubleBuffer, red, green, blue, alpha); @@ -773,7 +756,7 @@ RvDocument::rebuildGLView(bool stereo, if (!newGLView->isValid()) { delete newGLView; - newGLView = new GLView(this, view(), this); + newGLView = new GLView(this, view()->context(), this); resetGLPrefs = true; } @@ -819,7 +802,8 @@ RvDocument::setStereo(bool b) { const bool vsync = m_glView->format().swapInterval() == 1; const bool stereo = m_glView->format().stereo(); - const bool dbl = m_glView->format().doubleBuffer(); + bool dbl = false; + if (m_glView->format().swapBehavior() == QSurfaceFormat::DoubleBuffer) dbl = true; const int red = m_glView->format().redBufferSize(); const int green = m_glView->format().greenBufferSize(); const int blue = m_glView->format().blueBufferSize(); @@ -833,7 +817,8 @@ RvDocument::setVSync(bool b) if (m_vsyncDisabled) return; const bool vsync = m_glView->format().swapInterval() == 1; const bool stereo = m_glView->format().stereo(); - const bool dbl = m_glView->format().doubleBuffer(); + bool dbl = false; + if (m_glView->format().swapBehavior() == QSurfaceFormat::DoubleBuffer) dbl = true; const int red = m_glView->format().redBufferSize(); const int green = m_glView->format().greenBufferSize(); const int blue = m_glView->format().blueBufferSize(); @@ -861,7 +846,8 @@ RvDocument::setDisplayOutput(DisplayOutputType type) { const bool vsync = m_glView->format().swapInterval() == 1; const bool stereo = m_glView->format().stereo(); - const bool dbl = m_glView->format().doubleBuffer(); + bool dbl = false; + if (m_glView->format().swapBehavior() == QSurfaceFormat::DoubleBuffer) dbl = true; int red = m_glView->format().redBufferSize(); int green = m_glView->format().greenBufferSize(); int blue = m_glView->format().blueBufferSize(); @@ -896,9 +882,13 @@ RvDocument::view() const void RvDocument::center() { - QDesktopWidget* desktop = QApplication::desktop(); - int screen = desktop->screenNumber(this); - QRect ssize = desktop->availableGeometry(screen); + QScreen* screen = QApplication::screenAt(mapToGlobal(QPoint(0, 0))); + if (!screen) + { + // Fallback on primary screen. + screen = QGuiApplication::primaryScreen(); + } + QRect ssize = screen->availableGeometry(); int sw = ssize.width(); int sh = ssize.height(); @@ -935,11 +925,15 @@ RvDocument::resizeView(int w, int h) // top of an existing one. // - QDesktopWidget* desktop = QApplication::desktop(); - int screen = desktop->screenNumber(this); - - QRect ssize = desktop->availableGeometry(screen); - QRect ts = desktop->screenGeometry(screen); + QScreen* screen = QApplication::screenAt(mapToGlobal(QPoint(0, 0))); + if (!screen) + { + // Fallback on primary screen. + screen = QGuiApplication::primaryScreen(); + } + + QRect ssize = screen->availableGeometry(); + QRect ts = screen->geometry(); float sw = float(ssize.width()); float sh = float(ssize.height()); @@ -1051,12 +1045,16 @@ RvDocument::resizeToFit(bool placement, bool firstTime) float w = 0; float h = 0; - QDesktopWidget* desktop = QApplication::desktop(); - int screen = desktop->screenNumber(this); - - QRect ssize = desktop->availableGeometry(screen); + QScreen* screen = QApplication::screenAt(mapToGlobal(QPoint(0, 0))); + if (!screen) + { + // Fallback on primary screen. + screen = QGuiApplication::primaryScreen(); + } + + QRect ssize = screen->availableGeometry(); DB ("resizeToFit available geom w " << ssize.width() << " h " << ssize.height()); - QRect ts = desktop->screenGeometry(screen); + QRect ts = screen->geometry(); float sw = float(ssize.width()); float sh = float(ssize.height()); @@ -1262,9 +1260,15 @@ void RvDocument::toggleFullscreen(bool firstTime) { DB ("toggleFullScreen currently " << isFullScreen()); - QDesktopWidget* desktop = QApplication::desktop(); - int screen = desktop->screenNumber(this); - QRect ssize = desktop->screenGeometry(screen); + QScreen* screen = QApplication::screenAt(mapToGlobal(QPoint(0, 0))); + if (!screen) + { + // Fallback on primary screen. + screen = QGuiApplication::primaryScreen(); + } + + QRect ssize = screen->availableGeometry(); + int sw = ssize.width(); int sh = ssize.height(); @@ -1277,7 +1281,7 @@ RvDocument::toggleFullscreen(bool firstTime) if (isFullScreen()) { - ssize = desktop->availableGeometry(screen); + ssize = screen->geometry(); showNormal(); } else diff --git a/src/lib/app/RvCommon/RvFileDialog.cpp b/src/lib/app/RvCommon/RvFileDialog.cpp index cd93b838d..b6b8a06a2 100644 --- a/src/lib/app/RvCommon/RvFileDialog.cpp +++ b/src/lib/app/RvCommon/RvFileDialog.cpp @@ -29,7 +29,9 @@ #include #include #include +#if defined( RV_VFX_CY2023 ) #include +#endif namespace Rv { @@ -326,7 +328,14 @@ RvFileDialog::RvFileDialog(QWidget* parent, this, SLOT(fileTypeChanged(int))); QCompleter *completer = new QCompleter(this); +#if defined( RV_VFX_CY2023 ) completer->setModel(new QDirModel(completer)); +#else + QFileSystemModel *fileSystemModel = new QFileSystemModel(completer); + // TODO_QT: Is AllEntries fine here? + fileSystemModel->setFilter(QDir::AllEntries); + completer->setModel(fileSystemModel); +#endif completer->setCompletionMode(QCompleter::InlineCompletion); m_ui.currentPath->setCompleter(completer); m_ui.currentPath->setText(""); @@ -455,9 +464,9 @@ RvFileDialog::findMountPoints() { QFileInfoList list; - list.push_back(QDir::home().path()); + list.push_back(QFileInfo(QDir::home().path())); #if defined(PLATFORM_LINUX) || defined(PLATFORM_DARWIN) - list.push_back(QString("/")); + list.push_back(QFileInfo(QString("/"))); m_drives.insert ("/"); #endif @@ -712,7 +721,7 @@ RvFileDialog::setDirectory(const QString& inpath, bool force) } else if (m_viewMode == ColumnView) { - QModelIndex i = m_columnModel->indexOfPath(absoluteDirPath); + QModelIndex i = m_columnModel->indexOfPath(QFileInfo(absoluteDirPath)); if (!i.isValid()) { @@ -769,7 +778,7 @@ RvFileDialog::setDirectory(const QString& inpath, bool force) #ifdef WIN32 if (aPathNoSlash.endsWith("/")) aPathNoSlash.chop(1); #endif - m_ui.pathCombo->addItem(iconForFile(aPath), + m_ui.pathCombo->addItem(iconForFile(QFileInfo(aPath)), aPathNoSlash, aPath); @@ -778,7 +787,7 @@ RvFileDialog::setDirectory(const QString& inpath, bool force) else { DB (" not at root: '" << aPath.toUtf8().data() << "'"); - m_ui.pathCombo->addItem(iconForFile(aPath), + m_ui.pathCombo->addItem(iconForFile(QFileInfo(aPath)), dName, aPath); } @@ -1225,7 +1234,7 @@ void RvFileDialog::columnViewTimeout() { DB ("columnViewTimeout file " << m_columnViewFile.toUtf8().data()); - QModelIndex i = m_columnModel->indexOfPath(m_columnViewFile); + QModelIndex i = m_columnModel->indexOfPath(QFileInfo(m_columnViewFile)); if (i.isValid()) m_columnView->setCurrentIndex(i); } @@ -1758,7 +1767,7 @@ RvFileDialog::nextButtonTrigger(QAction*) void RvFileDialog::sortComboChanged(int index) { - QDir::SortFlags f = 0; + QDir::SortFlags f = QDir::Name; switch (index) { diff --git a/src/lib/app/RvCommon/RvJavaScriptObject.cpp b/src/lib/app/RvCommon/RvJavaScriptObject.cpp index d4bd50374..ac61790b7 100644 --- a/src/lib/app/RvCommon/RvJavaScriptObject.cpp +++ b/src/lib/app/RvCommon/RvJavaScriptObject.cpp @@ -8,11 +8,11 @@ #include #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include namespace Rv { using namespace std; @@ -116,20 +116,20 @@ RvJavaScriptObject::sendInternalEvent(const QString& eventName, void RvJavaScriptObject::bindToRegex(const QString& name) { - QRegExp re(name); + QRegularExpression re(name); if (!m_eventNames.contains(re)) m_eventNames.push_back(re); } void RvJavaScriptObject::unbindRegex(const QString& name) { - m_eventNames.removeOne(QRegExp(name)); + m_eventNames.removeOne(QRegularExpression(name)); } bool RvJavaScriptObject::hasBinding(const QString& name) { - return m_eventNames.contains(QRegExp(name)); + return m_eventNames.contains(QRegularExpression(name)); } EventNode::Result @@ -139,7 +139,7 @@ RvJavaScriptObject::receiveEvent(const TwkApp::Event& event) for (size_t i = 0; i < m_eventNames.size(); i++) { - if (m_eventNames[i].indexIn(name) != -1) + if (m_eventNames[i].match(name).hasMatch()) { if (const GenericStringEvent* ge = dynamic_cast(&event)) diff --git a/src/lib/app/RvCommon/RvNetworkDialog.cpp b/src/lib/app/RvCommon/RvNetworkDialog.cpp index fdd7c6c05..188cec3f7 100644 --- a/src/lib/app/RvCommon/RvNetworkDialog.cpp +++ b/src/lib/app/RvCommon/RvNetworkDialog.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -136,7 +137,18 @@ RvNetworkDialog::loadSettings() foreach (QString string, envVariables) { - int index = environment.indexOf(QRegExp(string)); + QRegularExpression re(string); + int index = -1; + + // Search for the first matching environment variable. + for (int i = 0; i < environment.size(); ++i) + { + if (re.match(environment.at(i)).hasMatch()) + { + index = i; + break; + } + } if (index != -1) { diff --git a/src/lib/app/RvCommon/RvPreferences.cpp b/src/lib/app/RvCommon/RvPreferences.cpp index 3cfece36e..6c41b6e1f 100644 --- a/src/lib/app/RvCommon/RvPreferences.cpp +++ b/src/lib/app/RvCommon/RvPreferences.cpp @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include @@ -469,7 +468,9 @@ RvPreferences::update() m_ui.startupScreenCombo->clear(); m_ui.startupScreenCombo->addItem("Follow Pointer"); - for (int i = 0; i < QApplication::desktop()->screenCount(); ++i) + + const QList screens = QGuiApplication::screens(); + for (int i = 0; i < screens.size(); i++) { m_ui.startupScreenCombo->addItem(QString("Screen %1").arg((unsigned int)(i))); } @@ -852,7 +853,7 @@ RvPreferences::loadSettingsIntoOptions(RvSettings& settings, Options& opts) opts.useCrashReporter = int(settings.value("useCrashReporter", opts.useCrashReporter ? true : false).toBool()); opts.stereoMode = 0; - s = settings.value("stereoMode", opts.stereoMode).toString(); + s = settings.value("stereoMode", QString(opts.stereoMode)).toString(); if (s == StereoAnaglyph) opts.stereoMode = (char*)StereoAnaglyph; if (s == StereoLumAnaglyph) opts.stereoMode = (char*)StereoLumAnaglyph; if (s == StereoPair) opts.stereoMode = (char*)StereoPair; @@ -928,7 +929,7 @@ RvPreferences::loadSettingsIntoOptions(RvSettings& settings, Options& opts) opts.maxvram = settings.value("vram", opts.maxvram).toDouble(); opts.maxbits = settings.value("maxBitDepth", opts.maxbits).toInt(); - s = settings.value("resampleMethod", opts.resampleMethod).toString(); + s = settings.value("resampleMethod", QString(opts.resampleMethod)).toString(); if (s == Area) opts.resampleMethod = (char*)Area; else if (s == Linear) opts.resampleMethod = (char*)Linear; @@ -1019,7 +1020,7 @@ RvPreferences::loadSettingsIntoOptions(RvSettings& settings, Options& opts) opts.cinMaxAsync = settings.value("MaxInFlight", opts.cinMaxAsync).toInt(); opts.cinchroma = int(settings.value("usePrimaries", bool(opts.cinchroma)).toBool()); - QString cinpf = settings.value("pixelFormatNew", opts.cinPixel).toString(); + QString cinpf = settings.value("pixelFormatNew", QString(opts.cinPixel)).toString(); if (cinpf == RGB8) opts.cinPixel = (char*)RGB8; else if (cinpf == RGBA8) opts.cinPixel = (char*)RGBA8; @@ -1039,7 +1040,7 @@ RvPreferences::loadSettingsIntoOptions(RvSettings& settings, Options& opts) opts.dpxMaxAsync = settings.value("MaxInFlight", opts.dpxMaxAsync).toInt(); opts.dpxchroma = int(settings.value("usePrimaries", bool(opts.dpxchroma)).toBool()); - QString dpxpf = settings.value("pixelFormatNew", opts.dpxPixel).toString(); + QString dpxpf = settings.value("pixelFormatNew", QString(opts.dpxPixel)).toString(); if (dpxpf == RGB8) opts.dpxPixel = (char*)RGB8; else if (dpxpf == RGBA8) opts.dpxPixel = (char*)RGBA8; @@ -1222,7 +1223,7 @@ RvPreferences::write() case 3: method = (char*)Nearest; break; } - settings.setValue("resampleMethod", method); + settings.setValue("resampleMethod", QString(method)); switch (m_ui.imageFilterCombo->currentIndex()) { @@ -1231,7 +1232,7 @@ RvPreferences::write() case 1: method = (char*)Nearest; break; } - settings.setValue("imageFilter", method); + settings.setValue("imageFilter", QString(method)); switch (m_ui.bgPatternCombo->currentIndex()) { @@ -1244,7 +1245,7 @@ RvPreferences::write() case 5: method = (char*)CrossHatch; break; } - settings.setValue("backgroundPattern", method); + settings.setValue("backgroundPattern", QString(method)); settings.endGroup(); diff --git a/src/lib/app/RvCommon/RvWebManager.cpp b/src/lib/app/RvCommon/RvWebManager.cpp index 3733acddc..a81abb663 100644 --- a/src/lib/app/RvCommon/RvWebManager.cpp +++ b/src/lib/app/RvCommon/RvWebManager.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/lib/app/RvPackage/CMakeLists.txt b/src/lib/app/RvPackage/CMakeLists.txt index f35f9962c..bef209dd3 100644 --- a/src/lib/app/RvPackage/CMakeLists.txt +++ b/src/lib/app/RvPackage/CMakeLists.txt @@ -20,7 +20,7 @@ ADD_LIBRARY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -32,7 +32,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PUBLIC Qt5::Core + PUBLIC Qt::Core PRIVATE TwkDeploy TwkUtil TwkQtCoreUtil diff --git a/src/lib/app/RvPackage/PackageManager.cpp b/src/lib/app/RvPackage/PackageManager.cpp index d24c018fd..520d1c8ab 100644 --- a/src/lib/app/RvPackage/PackageManager.cpp +++ b/src/lib/app/RvPackage/PackageManager.cpp @@ -18,6 +18,8 @@ #include #include +#include + namespace Rv { using namespace std; @@ -161,9 +163,9 @@ namespace Rv int PackageManager::findPackageIndexByZip( const QString& zipfile ) { - QString zipfileCanonical = QFileInfo( zipfile ).canonicalFilePath(); - QString pattern = zipfile + "-.*\\.rvpkg"; - QRegExp rx( pattern ); + QString zipfileCanonical = QFileInfo(zipfile).canonicalFilePath(); + QString pattern = QRegularExpression::escape(zipfile) + "-.*\\.rvpkg"; + QRegularExpression rx(pattern); for( size_t i = 0; i < m_packages.size(); i++ ) { @@ -171,8 +173,8 @@ namespace Rv if( info.fileName() == zipfile || info.absoluteFilePath() == zipfile || info.absoluteFilePath() == zipfileCanonical || - rx.exactMatch( info.fileName() ) || - rx.exactMatch( info.absoluteFilePath() ) ) + rx.match(info.fileName()).hasMatch() || + rx.match(info.absoluteFilePath()).hasMatch()) { return i; } @@ -326,7 +328,7 @@ namespace Rv QStringList deps = package. requires - .split( " ", QString::SkipEmptyParts ); + .split( " ", Qt::SkipEmptyParts ); QStringList missing; QStringList notinstalled; QFileInfo info( package.file ); @@ -804,9 +806,6 @@ namespace Rv profdir.cd( "Nodes" ); QFileInfo pfile( package.file ); - QRegExp rvpkgRE( "(.*)-[0-9]+\\.[0-9]+\\.rvpkg" ); - QRegExp zipRE( "(.*)\\.zip" ); - QRegExp rvpkgsRE( "(.*)-[0-9]+\\.[0-9]+\\.rvpkgs" ); QString pname = package.baseName; if( !supportdir.exists( pname ) ) supportdir.mkdir( pname ); @@ -1329,16 +1328,15 @@ namespace Rv } ); } - QRegExp rvpkgRE( "(.*)-[0-9]+\\.[0-9]+\\.rvpkg" ); - QRegExp zipRE( "(.*)\\.zip" ); + QRegularExpression rvpkgRE( R"((.*)-[0-9]+\.[0-9]+\.rvpkg)" ); + QRegularExpression zipRE( R"((.*)\.zip)" ); - if( rvpkgRE.exactMatch( finfo.fileName() ) ) - { - pname = rvpkgRE.capturedTexts()[1]; + QRegularExpressionMatch match = rvpkgRE.match(finfo.fileName()); + if (!match.hasMatch()) { + match = zipRE.match(finfo.fileName()); } - else if( zipRE.exactMatch( finfo.fileName() ) ) - { - pname = zipRE.capturedTexts()[1]; + if (match.hasMatch()) { + pname = match.captured(1); } package.baseName = pname; @@ -1372,7 +1370,7 @@ namespace Rv } else { - QStringList parts = line.split( ",", QString::KeepEmptyParts ); + QStringList parts = line.split( ",", Qt::KeepEmptyParts ); if( parts.size() >= 7 && parts[0] != "#" ) { @@ -1543,7 +1541,7 @@ namespace Rv Package& package = m_packages[i]; QStringList deps = package. requires - .split( " ", QString::SkipEmptyParts ); + .split( " ", Qt::SkipEmptyParts ); for( size_t q = 0; q < deps.size(); q++ ) { @@ -1718,9 +1716,9 @@ namespace Rv // First check that package files exist and have legal names // - QRegExp rvpkgRE( "(.*)-[0-9]+\\.[0-9]+\\.rvpkg" ); - QRegExp rvpkgsRE( "(.*)-[0-9]+\\.[0-9]+\\.rvpkgs" ); // Bundle - QRegExp zipRE( "(.*)\\.zip" ); + QRegularExpression rvpkgRE( R"((.*)-[0-9]+\.[0-9]+\.rvpkg)" ); + QRegularExpression rvpkgsRE( R"(.*)-[0-9]+\.[0-9]+\.rvpkgs)" ); // bundle + QRegularExpression zipRE( R"((.*)\.zip)" ); for( size_t i = 0; i < files.size(); i++ ) { @@ -1750,9 +1748,9 @@ namespace Rv return false; } - if( !rvpkgRE.exactMatch( info.fileName() ) && - !zipRE.exactMatch( info.fileName() ) && - !rvpkgsRE.exactMatch(info.fileName() ) ) + if( !rvpkgRE.match( info.fileName() ).hasMatch() && + !zipRE.match( info.fileName() ).hasMatch() && + !rvpkgsRE.match(info.fileName() ).hasMatch() ) { QString t( "ERROR: Illegal package file name: " ); t += info.fileName(); diff --git a/src/lib/app/TLICommon/CMakeLists.txt b/src/lib/app/TLICommon/CMakeLists.txt index 7345ff4bb..6bfb015d4 100644 --- a/src/lib/app/TLICommon/CMakeLists.txt +++ b/src/lib/app/TLICommon/CMakeLists.txt @@ -23,7 +23,7 @@ SET_PROPERTY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core Gui OpenGL Widgets Core REQUIRED ) @@ -43,9 +43,9 @@ TARGET_LINK_LIBRARIES( TwkUtil stl_ext ZLIB::ZLIB - Qt5::Core - Qt5::Gui - Qt5::OpenGL - Qt5::Widgets - Qt5::Core + Qt::Core + Qt::Gui + Qt::OpenGL + Qt::Widgets + Qt::Core ) diff --git a/src/lib/app/TwkMediaLibrary/CMakeLists.txt b/src/lib/app/TwkMediaLibrary/CMakeLists.txt index df7a2ed4a..39e059330 100644 --- a/src/lib/app/TwkMediaLibrary/CMakeLists.txt +++ b/src/lib/app/TwkMediaLibrary/CMakeLists.txt @@ -20,7 +20,7 @@ ADD_LIBRARY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -32,7 +32,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} PUBLIC Boost::thread - PRIVATE TwkUtil Qt5::Core + PRIVATE TwkUtil Qt::Core ) RV_STAGE(TYPE "LIBRARY" TARGET ${_target}) diff --git a/src/lib/app/TwkQtBase/CMakeLists.txt b/src/lib/app/TwkQtBase/CMakeLists.txt index dfefbd4ad..ee97fc13e 100644 --- a/src/lib/app/TwkQtBase/CMakeLists.txt +++ b/src/lib/app/TwkQtBase/CMakeLists.txt @@ -20,7 +20,7 @@ ADD_LIBRARY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -32,7 +32,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PRIVATE TwkUtil Qt5::Core + PRIVATE TwkUtil Qt::Core ) RV_STAGE(TYPE "LIBRARY" TARGET ${_target}) diff --git a/src/lib/app/mu_rvui/CMakeLists.txt b/src/lib/app/mu_rvui/CMakeLists.txt index 7b08ad839..3b7533e4b 100644 --- a/src/lib/app/mu_rvui/CMakeLists.txt +++ b/src/lib/app/mu_rvui/CMakeLists.txt @@ -8,6 +8,27 @@ SET(_target "mu_rvui" ) +IF(RV_VFX_PLATFORM STREQUAL CY2024) + SET(MU_QT_QPROCESS_STARTDETACHED "qt.QProcess.startDetached (cmd, string[] {\"\"});") +ELSEIF(RV_VFX_PLATFORM STREQUAL CY2023) + SET(MU_QT_QPROCESS_STARTDETACHED "qt.QProcess.startDetached (cmd);") +ENDIF() +configure_file(rvui.mu.in ${CMAKE_CURRENT_SOURCE_DIR}/rvui.mu @ONLY) + + +IF(RV_VFX_PLATFORM STREQUAL CY2024) + set(MU_QT_QAPPLICATION_AVAILABLE_GEOMETRY + "let screen = qt.QApplication.screenAt(mainWin.mapToGlobal(qt.QPoint(0, 0)));\n \ + let usedRect = screen.availableGeometry();\n" + ) +ELSEIF(RV_VFX_PLATFORM STREQUAL CY2023) + set(MU_QT_QAPPLICATION_AVAILABLE_GEOMETRY + "let usedRect = qt.QApplication.desktop().availableGeometry(mainWin);\n" + ) +ENDIF() +set(MU_QT_QAPPLICATION_AVAILABLE_GEOMETRY "${MU_QT_QAPPLICATION_AVAILABLE_GEOMETRY}") +configure_file(window_mode.mu.in ${CMAKE_CURRENT_SOURCE_DIR}/window_mode.mu @ONLY) + SET(_mumodules rvui.mu glyph.mu diff --git a/src/lib/app/mu_rvui/rvui.mu b/src/lib/app/mu_rvui/rvui.mu.in similarity index 99% rename from src/lib/app/mu_rvui/rvui.mu rename to src/lib/app/mu_rvui/rvui.mu.in index b80fb7d6d..7fd3aba1f 100644 --- a/src/lib/app/mu_rvui/rvui.mu +++ b/src/lib/app/mu_rvui/rvui.mu.in @@ -4200,7 +4200,12 @@ global let enterFrame = startTextEntryMode(\: (string;) {"Go To Frame: ";}, goto cmd = "\"%s\" \"%s\"" % (rv, target); saveSession(target, true, true); - qt.QProcess.startDetached (cmd); + + // Qt5: qt.QProcess.startDetached (cmd); + // Qt6: qt.QProcess.startDetached (cmd, string[] {""}); + + // IMPORTANT: SEE src/lib/app/mu_rvui/CMakeLists.txt + @MU_QT_QPROCESS_STARTDETACHED@ } \: cloneSyncedRV (void; Event ev) @@ -4212,7 +4217,8 @@ global let enterFrame = startTextEntryMode(\: (string;) {"Go To Frame: ";}, goto rv = system.getenv ("RV_APP_RV"), cmd = "\"%s\" -network -networkPort %s -networkConnect 127.0.0.1 %s -flags syncPullFirst" % (rv, myPort+1, myPort); - qt.QProcess.startDetached (cmd); + // IMPORTANT: SEE src/lib/app/mu_rvui/CMakeLists.txt + @MU_QT_QPROCESS_STARTDETACHED@ } \: save (void; Event ev) diff --git a/src/lib/app/mu_rvui/window_mode.mu b/src/lib/app/mu_rvui/window_mode.mu.in similarity index 96% rename from src/lib/app/mu_rvui/window_mode.mu rename to src/lib/app/mu_rvui/window_mode.mu.in index ef4321bb2..de6112754 100644 --- a/src/lib/app/mu_rvui/window_mode.mu +++ b/src/lib/app/mu_rvui/window_mode.mu.in @@ -77,8 +77,10 @@ class: WindowMinorMode : MinorMode // let mainWin = commands.mainWindowWidget(), - mainRect = mainWin.frameGeometry(), - usedRect = qt.QApplication.desktop().availableGeometry(mainWin); + mainRect = mainWin.frameGeometry(); + + // IMPORTANT: SEE src/lib/app/mu_rvui/CMakeLists.txt + @MU_QT_QAPPLICATION_AVAILABLE_GEOMETRY@ let outRight = usedRect.width() + usedRect.x() - mainWin.x() - mainRect.width(), outBelow = usedRect.height() + usedRect.y() - mainWin.y() - mainRect.height(), diff --git a/src/lib/app/py_rvui/rv/qtutils.py b/src/lib/app/py_rvui/rv/qtutils.py index 107b0994d..964946867 100644 --- a/src/lib/app/py_rvui/rv/qtutils.py +++ b/src/lib/app/py_rvui/rv/qtutils.py @@ -6,11 +6,21 @@ import rv.commands import os -from PySide2 import QtGui, QtWidgets -from PySide2.QtGui import * -from PySide2.QtWidgets import * -from shiboken2 import wrapInstance -from shiboken2 import getCppPointer +try: + from PySide2 import QtGui, QtWidgets + from PySide2.QtGui import * + from PySide2.QtWidgets import * + from shiboken2 import wrapInstance + from shiboken2 import getCppPointer +except ImportError: + try: + from PySide6 import QtGui, QtWidgets + from PySide6.QtGui import * + from PySide6.QtWidgets import * + from shiboken6 import wrapInstance + from shiboken6 import getCppPointer + except ImportError: + pass def sessionWindow(): diff --git a/src/lib/app/py_rvui/rv/runtime.py b/src/lib/app/py_rvui/rv/runtime.py index cf70b822f..6d1df270a 100644 --- a/src/lib/app/py_rvui/rv/runtime.py +++ b/src/lib/app/py_rvui/rv/runtime.py @@ -18,6 +18,12 @@ def setup_webview_default_profile(): default_profile.setHttpUserAgent(user_agent) -from PySide2.QtWebEngineWidgets import QWebEngineProfile +try: + from PySide2.QtWebEngineWidgets import QWebEngineProfile +except ImportError: + try: + from PySide6.QtWebEngineCore import QWebEngineProfile + except ImportError: + pass setup_webview_default_profile() diff --git a/src/lib/audio/QTAudioRenderer/CMakeLists.txt b/src/lib/audio/QTAudioRenderer/CMakeLists.txt index 8edc06c61..f19ff39db 100644 --- a/src/lib/audio/QTAudioRenderer/CMakeLists.txt +++ b/src/lib/audio/QTAudioRenderer/CMakeLists.txt @@ -27,7 +27,7 @@ ADD_LIBRARY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core Multimedia REQUIRED ) @@ -41,7 +41,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PUBLIC TwkMath TwkUtil Qt5::Core Qt5::Multimedia + PUBLIC TwkMath TwkUtil Qt::Core Qt::Multimedia PRIVATE TwkAudio ) diff --git a/src/lib/audio/QTAudioRenderer/QTAudioRenderer.cpp b/src/lib/audio/QTAudioRenderer/QTAudioRenderer.cpp index db734330a..8d833d6c0 100644 --- a/src/lib/audio/QTAudioRenderer/QTAudioRenderer.cpp +++ b/src/lib/audio/QTAudioRenderer/QTAudioRenderer.cpp @@ -14,7 +14,6 @@ #include #include -#include #include #include #include @@ -57,6 +56,24 @@ using namespace std; static ENVVAR_BOOL( evApplyWasapiFix, "RV_AUDIO_APPLY_WASAPI_FIX", true ); +// Utility function that returns the Sample size. +int sampleSize(const QAudioFormat& format) { + #ifdef RV_VFX_CY2023 + return format.sampleSize() / 8; + #else + return format.bytesPerSample(); + #endif +} + +// NOTE_QT: In theory, this should be called sampleFormat for Qt6. Keep it as is for now. +SampleFormat sampleType(const QAudioFormat& format) +{ + #ifdef RV_VFX_CY2023 + return format.sampleType(); + #else + return format.sampleFormat(); + #endif +} //---------------------------------------------------------------------- // QTAudioThread // @@ -90,7 +107,7 @@ QTAudioThread::QTAudioThread(QTAudioRenderer &audioRenderer, // Cache some format related variables so we dont have to // precompute them each time. - m_bytesPerSample = audioRenderer.m_format.channelCount() * audioRenderer.m_format.sampleSize() / 8; + m_bytesPerSample = audioRenderer.m_format.channelCount() * sampleSize(audioRenderer.m_format); m_preRollMode = m_audioRenderer.m_parameters.preRoll; @@ -384,7 +401,7 @@ QTAudioThread::createAudioOutput() // Create the QAudioOutput and QIO devices - m_bytesPerSample = m_audioRenderer.m_format.channelCount() * m_audioRenderer.m_format.sampleSize() / 8; + m_bytesPerSample = m_audioRenderer.m_format.channelCount() * sampleSize(m_audioRenderer.m_format); if (m_ioDevice = new QTAudioIODevice(*this)) { @@ -475,7 +492,15 @@ QTAudioThread::qIODeviceCallback(char* data, qint64 maxLenInBytes) (m_audioOutput->state() == QAudio::IdleState))) { const int bufferSize = m_audioOutput->bufferSize(); + +#if defined( RV_VFX_CY2023 ) const int periodSize = m_audioOutput->periodSize(); +#else + // TODO_QT THIS MIGHT REQUIRE TRY AND ERROR + // Calculate the period size based on the buffer size and bytes per frame. + const int periodSize = bufferSize / m_audioRenderer.m_format.bytesPerFrame(); +#endif + #ifdef PLATFORM_DARWIN const bool doPreRoll = false; #else @@ -637,7 +662,13 @@ QTAudioThread::qIODeviceCallback(char* data, qint64 maxLenInBytes) AudioRenderer::transformFloat32ToInt24(m_abuffer.pointer(), data, m_abuffer.sizeInFloats(), - (m_audioRenderer.m_format.byteOrder() == QAudioFormat::LittleEndian)); +#if defined( RV_VFX_CY2023 ) + (m_audioRenderer.m_format.byteOrder() == QAudioFormat::LittleEndian)); +#else + // TODO_QT QUERY THE SYSTEM + true); +#endif + break; case TwkAudio::Int16Format: @@ -778,12 +809,20 @@ qint64 QTAudioIODevice::bytesAvailable() const // This is the Qt audio output class that lives // with the audio thread. //---------------------------------------------------------------------- -QTAudioOutput::QTAudioOutput(QAudioDeviceInfo &audioDeviceInfo, +#if defined( RV_VFX_CY2023 ) +QTAudioOutput::QTAudioOutput(QAudioDeviceInfo &audioDevice, +#else +QTAudioOutput::QTAudioOutput(QAudioDevice &audioDevice, +#endif QAudioFormat &audioFormat, QTAudioIODevice &ioDevice, QTAudioThread &audioThread) : - QAudioOutput(audioDeviceInfo, audioFormat) - , m_device(audioDeviceInfo) +#if defined( RV_VFX_CY2023 ) + QAudioOutput(audioDevice, audioFormat) +#else + QAudioSink(audioDevice, audioFormat) +#endif + , m_device(audioDevice) , m_format(audioFormat) , m_ioDevice(ioDevice) , m_thread(audioThread) @@ -932,12 +971,13 @@ QTAudioOutput::setAudioOutputBufferSize() // audio preference "Audio Cache samples" is zero; // in which case we calculate what the audioOutput // bufferSize should be. + if (AudioRenderer::defaultParameters().framesPerBuffer == 0) { #ifdef PLATFORM_DARWIN setBufferSize(calcAudioBufferSize(m_format.channelCount(), m_format.sampleRate(), - m_format.sampleSize() / 8, + sampleSize(m_format), bufferSize())); #endif @@ -961,14 +1001,14 @@ QTAudioOutput::setAudioOutputBufferSize() { setBufferSize(calcAudioBufferSize(m_format.channelCount(), m_format.sampleRate(), - m_format.sampleSize() / 8, + sampleSize(m_format), bufferSize()) / 10); } else { setBufferSize(calcAudioBufferSize(m_format.channelCount(), m_format.sampleRate(), - m_format.sampleSize() / 8, + sampleSize(m_format), bufferSize())); } #endif @@ -1036,7 +1076,12 @@ QTAudioOutput::play(IPCore::Session* s) << " isScrubbingAudio=" << (int) s->isScrubbingAudio() << " audioOutput state=" << (int) state() << " audioOutput bufferSize=" << (int) bufferSize() +#if defined( RV_VFX_CY2023 ) << " audioOutput periodSize=" << (int) periodSize(); + // TODO_QT: Is there a equivalent in Qt6? +#else +; +#endif } } @@ -1068,14 +1113,41 @@ QTAudioRenderer::~QTAudioRenderer() TwkAudio::Format QTAudioRenderer::getTwkAudioFormat() const { - return convertToTwkAudioFormat(m_format.sampleSize(), - m_format.sampleType()); +#if defined( RV_VFX_CY2023 ) + return convertToTwkAudioFormat(sampleSize(m_format), + sampleType(m_format)); +#else + return convertToTwkAudioFormat(sampleType(m_format)); +#endif } TwkAudio::Format +#if defined( RV_VFX_CY2023 ) QTAudioRenderer::convertToTwkAudioFormat(int fmtSize, - QAudioFormat::SampleType fmtType) const + SampleFormat fmtType) const +#else +QTAudioRenderer::convertToTwkAudioFormat(SampleFormat fmtType) const +#endif { + //TODO_QT + + // Qt5 + // QAudioFormat::Unknown 0 Not Set + // QAudioFormat::SignedInt 1 Samples are signed integers + // QAudioFormat::UnSignedInt 2 Samples are unsigned intergers + // QAudioFormat::Float 3 Samples are floats + + // Qt6 + // QAudioFormat::Unknown 0 Not Set + // QAudioFormat::UInt8 1 Samples are 8 bit unsigned integers + // QAudioFormat::Int16 2 Samples are 16 bit signed integers + // QAudioFormat::Int32 3 Samples are 32 bit signed integers + // QAudioFormat::Float 4 Samples are floatse + + // Keeping the fmtSize parameters for now, but it is not needed because + // QAudioFormat::SampleFormat tell us the size and the type. + +#if defined( RV_VFX_CY2023 ) switch (fmtSize) { case 8: @@ -1137,6 +1209,21 @@ QTAudioRenderer::convertToTwkAudioFormat(int fmtSize, case 64: break; } +#else + switch (fmtType) { + case QAudioFormat::UInt8: + // skip for now + break; + case QAudioFormat::Int16: + return TwkAudio::Int16Format; + case QAudioFormat::Int32: + return TwkAudio::Int32Format; + case QAudioFormat::Float: + return TwkAudio::Float32Format; + default: + break; + } +#endif return TwkAudio::UnknownFormat; } @@ -1144,24 +1231,43 @@ QTAudioRenderer::convertToTwkAudioFormat(int fmtSize, void QTAudioRenderer::availableLayouts(const Device &d, LayoutsVector &layouts) { - const QAudioDeviceInfo &info = m_deviceList[d.index]; - const QList channelCounts = info.supportedChannelCounts(); +#if defined( RV_VFX_CY2023 ) + const QAudioDeviceInfo &device = m_deviceList[d.index]; + const QList channelCounts = device.supportedChannelCounts(); +#else + const QAudioDevice &device = m_deviceList[d.index]; +#endif layouts.clear(); +#if defined( RV_VFX_CY2023 ) for (QList::const_iterator ci = channelCounts.begin(); ci != channelCounts.end(); ci++) { LayoutsVector l = TwkAudio::channelLayouts(*ci); for (int i = 0; i < l.size(); i++) layouts.push_back(l[i]); } +#else + QAudioFormat testFormat; + for (int channelCount = device.minimumChannelCount(); channelCount <= device.maximumChannelCount(); ++channelCount) + { + testFormat.setChannelCount(channelCount); + if (device.isFormatSupported(testFormat)) + { + LayoutsVector l = TwkAudio::channelLayouts(channelCount); + for (int i = 0; i < l.size(); i++) layouts.push_back(l[i]); + } + } +#endif + } +#if defined( RV_VFX_CY2023 ) void QTAudioRenderer::availableFormats(const Device &d, FormatVector &formats) { const QAudioDeviceInfo &info = m_deviceList[d.index]; const QList sizes = info.supportedSampleSizes(); - const QList types = info.supportedSampleTypes(); + const QList types = info.supportedSampleTypes(); const QList rates = info.supportedSampleRates(); const int channelCount = TwkAudio::channelsCount(d.layout); @@ -1169,7 +1275,7 @@ QTAudioRenderer::availableFormats(const Device &d, FormatVector &formats) for (QList::const_iterator ci = sizes.begin(); ci != sizes.end(); ci++) { - for (QList::const_iterator cj = types.begin(); cj != types.end(); cj++) + for (QList::const_iterator cj = types.begin(); cj != types.end(); cj++) { TwkAudio::Format fmt = convertToTwkAudioFormat(*ci, *cj); @@ -1200,10 +1306,52 @@ QTAudioRenderer::availableFormats(const Device &d, FormatVector &formats) } } } +#else +void +QTAudioRenderer::availableFormats(const Device &d, FormatVector &formats) +{ + const QAudioDevice &device = m_deviceList[d.index]; + const QList types = device.supportedSampleFormats(); + const int channelCount = TwkAudio::channelsCount(d.layout); + + formats.clear(); + + for (SampleFormat type : types) + { + TwkAudio::Format fmt = convertToTwkAudioFormat(type); + if (fmt != TwkAudio::UnknownFormat) + { + QAudioFormat f; + f.setChannelCount(channelCount); + f.setSampleFormat(type); + + // NOTE_QT: + // Cannot set codec - Look at QMediaFormat maybe + // Cannot set byte order - Qt will always expect and use samples in the endianness of the host platform. + // Cannot set custom sample size - more rigid with popular size (unit8, int16, int32, float) + // Size and type replaced by SampleFormat. + f.setSampleFormat(type); + + // Checks for supported sample rates within the device's range. Checks every 100Hz. + // TODO_QT: This can be optimized or improved for faster detection. + for (int rate = device.minimumSampleRate(); rate <= device.maximumSampleRate(); rate +=100) + { + f.setSampleRate(rate); + if (device.isFormatSupported(f)) + { + formats.push_back(fmt); + break; + } + } + } + } +} +#endif // // Sets the sample size and type in qformat for a given twkFormat. // +// TODO_QT: The name is not optimal for Qt6, but could be fine. void QTAudioRenderer::setSampleSizeAndType(Layout twkLayout, Format twkFormat, @@ -1213,34 +1361,58 @@ QTAudioRenderer::setSampleSizeAndType(Layout twkLayout, switch (twkFormat) { - case TwkAudio::Float32Format: - qformat.setSampleSize(32); - qformat.setSampleType(QAudioFormat::Float); + case TwkAudio::Float32Format: +#if defined( RV_VFX_CY2023 ) + qformat.setSampleSize(32); + qformat.setSampleType(QAudioFormat::Float); +#else + qformat.setSampleFormat(QAudioFormat::Float); +#endif break; - case TwkAudio::Int32Format: - qformat.setSampleSize(32); - qformat.setSampleType(QAudioFormat::SignedInt); - break; + case TwkAudio::Int32Format: +#if defined( RV_VFX_CY2023 ) + qformat.setSampleSize(32); + qformat.setSampleType(QAudioFormat::SignedInt); +#else + qformat.setSampleFormat(QAudioFormat::Int32); +#endif + break; - case TwkAudio::Int24Format: - qformat.setSampleSize(24); - qformat.setSampleType(QAudioFormat::SignedInt); - break; + case TwkAudio::Int24Format: +#if defined( RV_VFX_CY2023 ) + qformat.setSampleSize(24); + qformat.setSampleType(QAudioFormat::SignedInt); +#else + // Qt6 does not have a direct equivalent for 24-bit audio. + // TODO_QT: Might have to handle this specially or not support it. + qformat.setSampleFormat(QAudioFormat::Int32); +#endif + break; - case TwkAudio::Int16Format: - qformat.setSampleSize(16); - qformat.setSampleType(QAudioFormat::SignedInt); - break; + case TwkAudio::Int16Format: +#if defined( RV_VFX_CY2023 ) + qformat.setSampleSize(16); + qformat.setSampleType(QAudioFormat::SignedInt); +#else + qformat.setSampleFormat(QAudioFormat::Int16); +#endif + break; - case TwkAudio::Int8Format: - qformat.setSampleSize(8); - qformat.setSampleType(QAudioFormat::SignedInt); - break; + case TwkAudio::Int8Format: +#if defined( RV_VFX_CY2023 ) + qformat.setSampleSize(8); + qformat.setSampleType(QAudioFormat::SignedInt); +#else + // Qt6 does not have a direct equivalent for signed 8-bit audio. + // TODO_QT: Might have to handle this specially or not support it. + qformat.setSampleFormat(QAudioFormat::UInt8); +#endif + break; - default: - cout << "AUDIO: format unknown" << endl; - return; + default: + cout << "AUDIO: format unknown" << endl; + return; } } @@ -1250,23 +1422,44 @@ QTAudioRenderer::availableRates(const Device &d, Format format, RateVector &audi QAudioFormat f; f.setChannelCount(TwkAudio::channelsCount(d.layout)); +#if defined( RV_VFX_CY2023 ) f.setCodec(QString(m_codec.c_str())); f.setByteOrder(QAudioFormat::LittleEndian); +#endif setSampleSizeAndType(d.layout, format, f); - const QAudioDeviceInfo &info = m_deviceList[d.index]; - QList rates = info.supportedSampleRates(); +#if defined( RV_VFX_CY2023 ) + const QAudioDeviceInfo &device = m_deviceList[d.index]; + QList rates = device.supportedSampleRates(); sort(rates.begin(), rates.end()); +#else + const QAudioDevice &device = m_deviceList[d.index]; +#endif audiorates.clear(); +#if defined( RV_VFX_CY2023 ) for (size_t i = 0; i < rates.size(); i++) { f.setSampleRate(rates[i]); - if (info.isFormatSupported(f)) audiorates.push_back(rates[i]); + if (device.isFormatSupported(f)) audiorates.push_back(rates[i]); + } +#else + // Qt6: doesn't provide a list of supported sample rates. + // Qt6: Instead, we'll check a range of commong sample rates. + // TODO_QT: Better way? + std::vector commonRates = { 8000, 11025, 1600, 22050, 3200, 44100, 4800, 88200, 96000, 192000 }; + for (int rate : commonRates) + { + if (rate >= device.minimumSampleRate() && rate <= device.maximumSampleRate()) + { + f.setSampleRate(rate); + if (device.isFormatSupported(f)) audiorates.push_back(rate); + } } +#endif } // @@ -1274,26 +1467,44 @@ QTAudioRenderer::availableRates(const Device &d, Format format, RateVector &audi // of channels as specified by m_parameters.layout. // bool -QTAudioRenderer::supportsRequiredChannels(const QAudioDeviceInfo &info) const +#if defined( RV_VFX_CY2023 ) + QTAudioRenderer::supportsRequiredChannels(const QAudioDeviceInfo &device) const +#else + QTAudioRenderer::supportsRequiredChannels(const QAudioDevice &device) const +#endif { #ifdef PLATFORM_LINUX if (AudioRenderer::debug) { - const QList channels = info.supportedChannelCounts(); +#if defined( RV_VFX_CY2023 ) + const QList channels = device.supportedChannelCounts(); for (QList::const_iterator ci = channels.begin(); ci != channels.end(); ci++) - TwkUtil::Log("AUDIO") << info.deviceName().toStdString() << " supports channel count = " << (*ci); + TwkUtil::Log("AUDIO") << device.deviceName().toStdString() << " supports channel count = " << (*ci); +#else + TwkUtil::Log("AUDIO") << device.description().toStdString() + << " supports minimum " << device.minimumChannelCount() + << " to maximum " << device.maximumChannelCount() << " channels"; +#endif } // Its possible e.g. Linux that some devices hv no channel count info // so we assume its supported... hence we always return true. return true; #else - const QList channels = info.supportedChannelCounts(); +#if defined( RV_VFX_CY2023 ) + const QList channels = device.supportedChannelCounts(); +#endif if (AudioRenderer::debug) { +#if defined( RV_VFX_CY2023 ) for (QList::const_iterator ci = channels.begin(); ci != channels.end(); ci++) - TwkUtil::Log("Audio") << info.deviceName().toStdString() << " supports channel count = " << (*ci); + TwkUtil::Log("Audio") << device.deviceName().toStdString() << " supports channel count = " << (*ci); +#else + TwkUtil::Log("AUDIO") << device.description().toStdString() + << " supports minimum " << device.minimumChannelCount() + << " to maximum " << device.maximumChannelCount() << " channels"; +#endif } // @@ -1302,7 +1513,12 @@ QTAudioRenderer::supportsRequiredChannels(const QAudioDeviceInfo &info) const // in the input sources // +#if defined( RV_VFX_CY2023 ) return (!channels.empty()); +#else + return (device.maximumChannelCount() > 0); +#endif + #endif } @@ -1310,7 +1526,11 @@ void QTAudioRenderer::initDeviceList() { if (m_deviceList.empty()) - { + { + // TODO_QT: This could be removed since it is for CentOS 6.5 bug and RV does not support it anymore. + // Should we check on Rocky linux if that is still the case? + // The whole point of the function seems to workaround that specific bug. + // // This appears to be a bug with Linux (on centos6.5). // Basically the size returned by availbleDevices() is different @@ -1325,11 +1545,19 @@ QTAudioRenderer::initDeviceList() do { prev_noOfDevices = noOfDevices; +#if defined( RV_VFX_CY2023 ) noOfDevices = QAudioDeviceInfo::availableDevices(QAudio::AudioOutput).size(); +#else + noOfDevices = QMediaDevices::audioOutputs().size(); +#endif --noOfAttempts; } while (prev_noOfDevices != noOfDevices && noOfAttempts); +#if defined( RV_VFX_CY2023 ) m_deviceList << QAudioDeviceInfo::availableDevices(QAudio::AudioOutput); +#else + m_deviceList << QMediaDevices::audioOutputs(); +#endif } } @@ -1356,13 +1584,20 @@ QTAudioRenderer::init() if (m_parameters.device == "Default" || m_parameters.device.empty()) { - const QAudioDeviceInfo &defaultInfo = QAudioDeviceInfo::defaultOutputDevice(); - +#if defined( RV_VFX_CY2023 ) + const QAudioDeviceInfo &defaultDevice = QAudioDeviceInfo::defaultOutputDevice(); +#else + const QAudioDevice &defaultDevice = QMediaDevices::defaultAudioOutput(); +#endif bool validDevice = false; for (size_t i = 0; i < m_deviceList.size(); ++i) { - if (m_deviceList[i].deviceName() == defaultInfo.deviceName()) +#if defined( RV_VFX_CY2023 ) + if (m_deviceList[i].deviceName() == defaultDevice.deviceName()) +#else + if (m_deviceList[i].description() == defaultDevice.description()) +#endif { validDevice = true; break; @@ -1371,9 +1606,13 @@ QTAudioRenderer::init() // Check that the defaultOutputDevice does support the required // number of channels. - if (validDevice && supportsRequiredChannels(defaultInfo)) + if (validDevice && supportsRequiredChannels(defaultDevice)) { - m_parameters.device = defaultInfo.deviceName().toStdString(); +#if defined( RV_VFX_CY2023 ) + m_parameters.device = defaultDevice.deviceName().toStdString(); +#else + m_parameters.device = defaultDevice.description().toStdString(); +#endif if (AudioRenderer::debug) { TwkUtil::Log("AUDIO") << "Using default device=" << m_parameters.device; @@ -1383,22 +1622,30 @@ QTAudioRenderer::init() qformat.setSampleRate((int) m_parameters.rate); qformat.setChannelCount(channelCount); +#if defined( RV_VFX_CY2023 ) qformat.setCodec(QString(m_codec.c_str())); qformat.setByteOrder(QAudioFormat::LittleEndian); //qformat.setByteOrder(QAudioFormat::BigEndian); +#endif +#if defined( RV_VFX_CY2023 ) setSampleSizeAndType(m_parameters.layout, m_parameters.format, qformat); - +#else + setSampleSizeAndType(m_parameters.layout, m_parameters.format, qformat); +#endif // // If the default device does not support the format // defined by m_parameters; we change to the // preferredFormat() of the default device. - if (!defaultInfo.isFormatSupported(qformat)) + if (!defaultDevice.isFormatSupported(qformat)) { - const QAudioFormat defaultFormat = defaultInfo.preferredFormat(); - - m_parameters.format = convertToTwkAudioFormat(defaultFormat.sampleSize(), - defaultFormat.sampleType()); + const QAudioFormat defaultFormat = defaultDevice.preferredFormat(); +#if defined( RV_VFX_CY2023 ) + m_parameters.format = convertToTwkAudioFormat(sampleSize(defaultFormat), + sampleType(defaultFormat)); +#else + m_parameters.format = convertToTwkAudioFormat(sampleType(defaultFormat)); +#endif } } } @@ -1406,13 +1653,24 @@ QTAudioRenderer::init() m_outputDevices.clear(); for (size_t i = 0; i < m_deviceList.size(); ++i) { - const QAudioDeviceInfo &info = m_deviceList[i]; +#if defined( RV_VFX_CY2023 ) + const QAudioDeviceInfo &device = m_deviceList[i]; +#else + const QAudioDevice &device = m_deviceList[i]; +#endif + + if (device.isNull() || !supportsRequiredChannels(device)) continue; - if (info.isNull() || !supportsRequiredChannels(info)) continue; + const QAudioFormat defaultFormat = device.preferredFormat(); - const QAudioFormat defaultFormat = info.preferredFormat(); +#if defined( RV_VFX_CY2023 ) + std::string deviceName = device.deviceName().toStdString(); +#else + std::string deviceName = device.description().toStdString(); +#endif - std::string deviceName = info.deviceName().toStdString(); + // TODO_QT NOTE_QT: I would assume that below is not true anymore or fixed because QtMultimedia had a big + // refactor in Qt6. // On Windows, a QAudioDevice can be listed twice with the same name // This is due to the fact that both Qt audio plugins, wasapi and WinMM, @@ -1423,7 +1681,11 @@ QTAudioRenderer::init() // to reference those distinct devices of the same name. while (findDeviceByName(deviceName)!=-1) { - deviceName+="_"+info.realm().toStdString(); +#if defined( RV_VFX_CY2023 ) + deviceName+="_"+device.realm().toStdString(); +#else + deviceName+="_"+device.id().toStdString(); +#endif } Device d(deviceName); @@ -1442,14 +1704,18 @@ QTAudioRenderer::init() // as our default device. Instead we pick the first device that // supports the channel count we need. m_parameters.device = d.name; - m_parameters.format = convertToTwkAudioFormat(defaultFormat.sampleSize(), - defaultFormat.sampleType()); +#if defined( RV_VFX_CY2023 ) + m_parameters.format = convertToTwkAudioFormat(sampleSize(defaultFormat), + sampleType(defaultFormat)); +#else + m_parameters.format = convertToTwkAudioFormat(sampleType(defaultFormat)); +#endif } if (m_parameters.device == d.name) { d.isDefaultDevice = true; - m_device = info; + m_device = device; } else { @@ -1459,9 +1725,15 @@ QTAudioRenderer::init() if (AudioRenderer::debug) { cout << "AUDIO: device=" << d.name << " with channelsCount = " << TwkAudio::channelsCount(d.layout) - << " defaultSampleSize=" << (int) defaultFormat.sampleSize() - << " defaultSampleType=" << (int) defaultFormat.sampleType() +#if defined( RV_VFX_CY2023 ) + << " defaultSampleSize=" << (int) sampleSize(defaultFormat) + << " defaultSampleType=" << (int) sampleType(defaultFormat) << " defaultSampleByteOrder=" << (int) defaultFormat.byteOrder() +#else + << " defaultSampleFormat=" << (int) sampleType(defaultFormat) + // Qt6: No custom sample size. + // Qt6: No custom byte orde. Qt expect the order of the host. +#endif << " defaultrate=" << (int) d.defaultRate << " isDefaultDevice=" << (int) d.isDefaultDevice << endl; } @@ -1471,7 +1743,12 @@ QTAudioRenderer::init() if (AudioRenderer::debug) { +#if defined( RV_VFX_CY2023 ) cout << "AUDIO: init default device=" << m_device.deviceName().toStdString() << endl; +#else + cout << "AUDIO: init default device=" << m_device.description().toStdString() << endl; +#endif + cout << "AUDIO: init m_parameters.device=" << m_parameters.device << endl; cout << "AUDIO: init m_parameters.format=" << (int) m_parameters.format << " (" << TwkAudio::formatString(m_parameters.format) << ")" << endl; @@ -1563,16 +1840,25 @@ QTAudioRenderer::init() // m_format.setSampleRate((int) state.rate); m_format.setChannelCount(TwkAudio::channelsCount(state.layout)); +#if defined( RV_VFX_CY2023 ) m_format.setCodec(QString(m_codec.c_str())); m_format.setByteOrder(QAudioFormat::LittleEndian); //m_format.setByteOrder(QAudioFormat::BigEndian); - +#endif + // TODO_QT: Not sure about codec. + // Qt6: Expect the endian of the host. setSampleSizeAndType(state.layout, state.format, m_format); if (!m_device.isFormatSupported(m_format)) { +#if defined( RV_VFX_CY2023 ) m_format = m_device.nearestFormat(m_format); - if (m_format.sampleType() == QAudioFormat::Unknown) +#else + // NOTE_QT: Qt6: does not have the nearestFormat avaiable. Take the default prefered. + m_format = m_device.preferredFormat(); +#endif + + if (sampleType(m_format) == QAudioFormat::Unknown) { cout << "AUDIO: Default format not supported - trying to use nearest" << endl; setErrorCondition("Default format not supported - trying to use nearest"); @@ -1581,8 +1867,12 @@ QTAudioRenderer::init() { if (AudioRenderer::debug) { - cout << "AUDIO: nearest m_format.sampleType()=" << (int) m_format.sampleType() << endl; - cout << "AUDIO: nearest m_format.sampleSize()=" << (int) m_format.sampleSize() << endl; +#if defined( RV_VFX_CY2023 ) + cout << "AUDIO: nearest m_format.sampleType()=" << (int) sampleType(m_format) << endl; + cout << "AUDIO: nearest m_format.sampleSize()=" << (int) sampleSize(m_format) << endl; +#else + cout << "AUDIO: nearest m_format.sampleFormat()=" << (int) sampleType(m_format) << endl; +#endif cout << "AUDIO: nearest m_format.sampleRate()=" << (int) m_format.sampleRate() << endl; cout << "AUDIO: nearest m_format.channelCount()=" << (int) m_format.channelCount() << endl; } @@ -1596,8 +1886,12 @@ QTAudioRenderer::init() #ifdef DEBUG_QTAUDIO if (AudioRenderer::debug) { - cout << "AUDIO: m_format.sampleType()=" << (int) m_format.sampleType() << endl; - cout << "AUDIO: m_format.sampleSize()=" << (int) m_format.sampleSize() << endl; +#if defined( RV_VFX_CY2023 ) + cout << "AUDIO: nearest m_format.sampleType()=" << (int) sampleType(m_format) << endl; + cout << "AUDIO: nearest m_format.sampleSize()=" << (int) sampleSize(m_format) << endl; +#else + cout << "AUDIO: nearest m_format.sampleFormat()=" << (int) sampleType(m_format) << endl; +#endif cout << "AUDIO: m_format.sampleRate()=" << (int) m_format.sampleRate() << endl; cout << "AUDIO: m_format.channelCount()=" << (int) m_format.channelCount() << endl; } diff --git a/src/lib/audio/QTAudioRenderer/QTAudioRenderer/QTAudioRenderer.h b/src/lib/audio/QTAudioRenderer/QTAudioRenderer/QTAudioRenderer.h index 9134590b5..b3b9dffe9 100644 --- a/src/lib/audio/QTAudioRenderer/QTAudioRenderer/QTAudioRenderer.h +++ b/src/lib/audio/QTAudioRenderer/QTAudioRenderer/QTAudioRenderer.h @@ -15,9 +15,19 @@ #include #include -#include + #include -#include +#if defined( RV_VFX_CY2023 ) + // Qt5 + #include + #include +#else + // Qt6+ + #include + #include + #include +#endif + #include #include @@ -25,10 +35,15 @@ namespace IPCore { +#ifdef RV_VFX_CY2023 + using SampleFormat = QAudioFormat::SampleType; +#else + using SampleFormat = QAudioFormat::SampleFormat; +#endif + class QTAudioThread; class QTAudioRenderer; - class QTAudioIODevice : public QIODevice { Q_OBJECT @@ -52,12 +67,20 @@ class QTAudioIODevice : public QIODevice }; -class QTAudioOutput : public QAudioOutput +#if defined( RV_VFX_CY2023 ) + class QTAudioOutput : public QAudioOutput +#else + class QTAudioOutput : public QAudioSink +#endif { Q_OBJECT public: - QTAudioOutput(QAudioDeviceInfo &audioDeviceInfo, +#if defined( RV_VFX_CY2023 ) + QTAudioOutput(QAudioDeviceInfo &audioDevice, +#else + QTAudioOutput(QAudioDevice &audioDevice, +#endif QAudioFormat &audioFormat, QTAudioIODevice &ioDevice, QTAudioThread &audioThread); @@ -81,7 +104,12 @@ class QTAudioOutput : public QAudioOutput std::string toString(QAudio::State state); private: - QAudioDeviceInfo &m_device; + +#if defined( RV_VFX_CY2023 ) + QAudioDeviceInfo &m_device; +#else + QAudioDevice &m_device; +#endif QAudioFormat &m_format; QTAudioIODevice &m_ioDevice; QTAudioThread &m_thread; @@ -225,8 +253,12 @@ class QTAudioRenderer : public IPCore::AudioRenderer static IPCore::AudioRenderer::Module addQTAudioModule(); TwkAudio::Format getTwkAudioFormat() const; +#if defined( RV_VFX_CY2023 ) TwkAudio::Format convertToTwkAudioFormat(int fmtSize, - QAudioFormat::SampleType fmtType) const; + SampleFormat fmtType) const; +#else + TwkAudio::Format convertToTwkAudioFormat(SampleFormat fmtType) const; +#endif void setSampleSizeAndType(Layout twkLayout, Format twkFormat, @@ -236,7 +268,11 @@ class QTAudioRenderer : public IPCore::AudioRenderer private: - bool supportsRequiredChannels(const QAudioDeviceInfo &info) const; +#if defined( RV_VFX_CY2023 ) + bool supportsRequiredChannels(const QAudioDeviceInfo &info) const; +#else + bool supportsRequiredChannels(const QAudioDevice &info) const; +#endif void init(); @@ -246,8 +282,13 @@ class QTAudioRenderer : public IPCore::AudioRenderer QObject* m_parent; QTAudioThread* m_thread; QAudioFormat m_format; - QAudioDeviceInfo m_device; - QList m_deviceList; +#if defined( RV_VFX_CY2023 ) + QAudioDeviceInfo m_device; + QList m_deviceList; +#else + QAudioDevice m_device; + QList m_deviceList; +#endif std::string m_codec; }; diff --git a/src/lib/base/TwkUtil/CMakeLists.txt b/src/lib/base/TwkUtil/CMakeLists.txt index fa3b553d5..5a0f25be0 100644 --- a/src/lib/base/TwkUtil/CMakeLists.txt +++ b/src/lib/base/TwkUtil/CMakeLists.txt @@ -11,7 +11,7 @@ SET(_target ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -62,7 +62,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} PUBLIC Boost::thread TwkExc TwkMath spdlog::spdlog - PRIVATE Boost::system Qt5::Core stl_ext + PRIVATE Boost::system Qt::Core stl_ext ) IF(RV_TARGET_LINUX) diff --git a/src/lib/graphics/TwkGLF/CMakeLists.txt b/src/lib/graphics/TwkGLF/CMakeLists.txt index a7156b8c7..31032408c 100644 --- a/src/lib/graphics/TwkGLF/CMakeLists.txt +++ b/src/lib/graphics/TwkGLF/CMakeLists.txt @@ -60,6 +60,12 @@ SET(_shaders FIND_PACKAGE(OpenGL REQUIRED) +FIND_PACKAGE( + ${RV_QT_PACKAGE_NAME} + COMPONENTS Core Gui OpenGL Widgets + REQUIRED +) + # Create shaders and add them to sources QUOTE_FILES(_cooked_shaders INPUT_LIST ${_shaders} SUFFIX "glsl") LIST(APPEND _sources ${_cooked_shaders}) @@ -82,7 +88,14 @@ TARGET_INCLUDE_DIRECTORIES( PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ) -TARGET_LINK_LIBRARIES(${_target} TwkApp TwkFB TwkGLText TwkUtil TwkAudio) +TARGET_LINK_LIBRARIES( + ${_target} + TwkApp TwkFB TwkGLText TwkUtil TwkAudio + Qt::Core + Qt::Gui + Qt::Widgets + Qt::OpenGL +) IF(RV_TARGET_WINDOWS) TARGET_LINK_LIBRARIES(${_target} glew) diff --git a/src/lib/graphics/TwkGLF/GLFBO.cpp b/src/lib/graphics/TwkGLF/GLFBO.cpp index e2ecfc988..c26911b16 100644 --- a/src/lib/graphics/TwkGLF/GLFBO.cpp +++ b/src/lib/graphics/TwkGLF/GLFBO.cpp @@ -11,6 +11,8 @@ #include #include +#include + namespace TwkGLF { using namespace std; @@ -32,12 +34,14 @@ GLFBO::GLFBO(size_t width, m_totalSizeInBytes(0), m_mappedBuffer(0) { - glGenFramebuffersEXT(1, &m_id); TWK_GLDEBUG; - glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_id); TWK_GLDEBUG; + // NOTE_QT: My thinking was to use QOpenGLContext::currentContext()->defaultFramebufferObject(), but we get + // a black screen by using it. Do we need more code? + glGenFramebuffers(1, &m_id); TWK_GLDEBUG; + glBindFramebuffer(GL_FRAMEBUFFER_EXT, m_id); TWK_GLDEBUG; } GLFBO::GLFBO(const GLVideoDevice* d) - : m_id(0), + : m_id(QOpenGLContext::currentContext()->defaultFramebufferObject()), m_width(0), m_height(0), m_samples(0), diff --git a/src/lib/graphics/TwkGLF/GLPipeline.cpp b/src/lib/graphics/TwkGLF/GLPipeline.cpp index 8ce239539..a1a480853 100644 --- a/src/lib/graphics/TwkGLF/GLPipeline.cpp +++ b/src/lib/graphics/TwkGLF/GLPipeline.cpp @@ -214,4 +214,10 @@ GLPipeline::uniformIsValid(const string& name) const return m_program->uniformLocation(name) != -1; } +void +GLPipeline::use() const +{ + glUseProgram(m_program->programId()); } + +} \ No newline at end of file diff --git a/src/lib/graphics/TwkGLF/GLState.cpp b/src/lib/graphics/TwkGLF/GLState.cpp index ce25d6c49..9d43d3d7e 100644 --- a/src/lib/graphics/TwkGLF/GLState.cpp +++ b/src/lib/graphics/TwkGLF/GLState.cpp @@ -15,6 +15,24 @@ using namespace TwkMath; // Memory management related funcs // +GLState::FixedFunctionPipeline::FixedFunctionPipeline(GLState* s) + : state(s), + program(s->activeGLProgram()) +{ + glUseProgram(GLuint(0)); +} + +void +GLState::FixedFunctionPipeline::setViewport(int x, int y, int w, int h) +{ + glViewport(x, y, w, h); +} + +GLState::FixedFunctionPipeline::~FixedFunctionPipeline() +{ + state->useGLProgram(program); +} + GLuint GLState::createGLTexture(size_t s) { diff --git a/src/lib/graphics/TwkGLF/GLVBO.cpp b/src/lib/graphics/TwkGLF/GLVBO.cpp index c0a9b7842..4dd32d671 100644 --- a/src/lib/graphics/TwkGLF/GLVBO.cpp +++ b/src/lib/graphics/TwkGLF/GLVBO.cpp @@ -18,6 +18,34 @@ using namespace std; // NOTE: VBO caching mechanism is single threaded only. // +GLVBO::GLVBO() +{ + glGenBuffers(1, &m_vbo); + m_available = true; + m_totalBytes = 0; +} + +GLVBO::~GLVBO() +{ + if (m_vbo != 0) glDeleteBuffers(1, &m_vbo); +} + +//size is in bytes +void +GLVBO::setupData(const GLvoid* data, GLenum type, size_t size) +{ + glBindBuffer(type, m_vbo); + glBufferData(type, size, data, GL_STATIC_DRAW); + glBindBuffer(type, 0); + m_totalBytes = size; +} + +bool +GLVBO::isValid() const +{ + return (m_vbo != 0); +} + GLVBO* GLVBO::availableVBO(GLVBOVector& vbos) { diff --git a/src/lib/graphics/TwkGLF/TwkGLF/GLPipeline.h b/src/lib/graphics/TwkGLF/TwkGLF/GLPipeline.h index b7933004f..6d8adf314 100644 --- a/src/lib/graphics/TwkGLF/TwkGLF/GLPipeline.h +++ b/src/lib/graphics/TwkGLF/TwkGLF/GLPipeline.h @@ -82,7 +82,7 @@ class GLPipeline //---------------------------------------------------------------------- // miscellaneous - void use() const { glUseProgram(m_program->programId()); } + void use() const; unsigned int programId() const { return m_program->programId(); } const GLProgram* glProgram() const { return m_program; } diff --git a/src/lib/graphics/TwkGLF/TwkGLF/GLState.h b/src/lib/graphics/TwkGLF/TwkGLF/GLState.h index 9f0e50f0e..8f2d15bee 100644 --- a/src/lib/graphics/TwkGLF/TwkGLF/GLState.h +++ b/src/lib/graphics/TwkGLF/TwkGLF/GLState.h @@ -60,18 +60,11 @@ class GLState struct FixedFunctionPipeline { - FixedFunctionPipeline(GLState* s) - : state(s), - program(s->activeGLProgram()) - { - glUseProgram(GLuint(0)); - } - void setViewport(int x, int y, int w, int h) - { - glViewport(x, y, w, h); - } - - ~FixedFunctionPipeline() { state->useGLProgram(program); } + FixedFunctionPipeline(GLState* s); + + void setViewport(int x, int y, int w, int h); + + ~FixedFunctionPipeline(); GLState* state; const GLProgram* program; diff --git a/src/lib/graphics/TwkGLF/TwkGLF/GLVBO.h b/src/lib/graphics/TwkGLF/TwkGLF/GLVBO.h index cd1008325..53f30d9bc 100644 --- a/src/lib/graphics/TwkGLF/TwkGLF/GLVBO.h +++ b/src/lib/graphics/TwkGLF/TwkGLF/GLVBO.h @@ -12,6 +12,7 @@ #include #include + namespace TwkGLF { //---------------------------------------------------------------------- @@ -23,30 +24,13 @@ class GLVBO public: typedef std::vector GLVBOVector; - GLVBO() - { - glGenBuffers(1, &m_vbo); - m_available = true; - m_totalBytes = 0; - } - ~GLVBO() - { - if (m_vbo != 0) glDeleteBuffers(1, &m_vbo); - } + GLVBO(); + ~GLVBO(); //size is in bytes - void setupData(const GLvoid* data, GLenum type, size_t size) - { - glBindBuffer(type, m_vbo); - glBufferData(type, size, data, GL_STATIC_DRAW); - glBindBuffer(type, 0); - m_totalBytes = size; - } + void setupData(const GLvoid* data, GLenum type, size_t size); - bool isValid() const - { - return (m_vbo != 0); - } + bool isValid() const; const GLuint vbo() const { return m_vbo; } diff --git a/src/lib/image/MovieSideCar/CMakeLists.txt b/src/lib/image/MovieSideCar/CMakeLists.txt index 6118e2ec1..15f941427 100644 --- a/src/lib/image/MovieSideCar/CMakeLists.txt +++ b/src/lib/image/MovieSideCar/CMakeLists.txt @@ -20,7 +20,7 @@ ADD_LIBRARY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -32,7 +32,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PUBLIC Qt5::Core TwkMovie Boost::thread + PUBLIC Qt::Core TwkMovie Boost::thread PRIVATE IOgto TwkExc TwkFB diff --git a/src/lib/ip/IPBaseNodes/CMakeLists.txt b/src/lib/ip/IPBaseNodes/CMakeLists.txt index 5ff4a55fe..b7b267d28 100644 --- a/src/lib/ip/IPBaseNodes/CMakeLists.txt +++ b/src/lib/ip/IPBaseNodes/CMakeLists.txt @@ -72,7 +72,7 @@ ADD_LIBRARY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -84,7 +84,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PUBLIC TwkApp TwkFB TwkMovie Qt5::Core + PUBLIC TwkApp TwkFB TwkMovie Qt::Core PRIVATE CDL IPCore OpenEXR::OpenEXR diff --git a/src/lib/ip/IPCore/CMakeLists.txt b/src/lib/ip/IPCore/CMakeLists.txt index bcfbb8d6e..d998dfd2b 100644 --- a/src/lib/ip/IPCore/CMakeLists.txt +++ b/src/lib/ip/IPCore/CMakeLists.txt @@ -8,7 +8,7 @@ INCLUDE(cxx_defaults) INCLUDE(rv_quote_file) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Widgets REQUIRED ) diff --git a/src/lib/ip/OCIONodes/CMakeLists.txt b/src/lib/ip/OCIONodes/CMakeLists.txt index 5ad8d4246..d83989c1d 100644 --- a/src/lib/ip/OCIONodes/CMakeLists.txt +++ b/src/lib/ip/OCIONodes/CMakeLists.txt @@ -11,7 +11,7 @@ SET(_target ) FIND_PACKAGE( - Qt5 REQUIRED + ${RV_QT_PACKAGE_NAME} REQUIRED COMPONENTS Core ) @@ -30,7 +30,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} PUBLIC IPCore TwkFB ocio::ocio - PRIVATE TwkUtil Qt5::Core + PRIVATE TwkUtil Qt::Core ) IF(RV_TARGET_WINDOWS) diff --git a/src/lib/mu/CMakeLists.txt b/src/lib/mu/CMakeLists.txt index 9c5a0dd38..5c9a5c294 100644 --- a/src/lib/mu/CMakeLists.txt +++ b/src/lib/mu/CMakeLists.txt @@ -12,7 +12,13 @@ ADD_SUBDIRECTORY(mu_glu) ADD_SUBDIRECTORY(MuAutoDoc) ADD_SUBDIRECTORY(MuGLU) ADD_SUBDIRECTORY(MuGLText) -ADD_SUBDIRECTORY(MuQt5) + +IF(RV_VFX_PLATFORM STREQUAL CY2023) + ADD_SUBDIRECTORY(MuQt5) +ELSEIF(RV_VFX_PLATFORM STREQUAL CY2024) + ADD_SUBDIRECTORY(MuQt6) +ENDIF() + ADD_SUBDIRECTORY(MuEncoding) ADD_SUBDIRECTORY(MuIO) ADD_SUBDIRECTORY(MuImage) diff --git a/src/lib/mu/MuQt6/Bridge.cpp b/src/lib/mu/MuQt6/Bridge.cpp new file mode 100644 index 000000000..3a776ad52 --- /dev/null +++ b/src/lib/mu/MuQt6/Bridge.cpp @@ -0,0 +1,1546 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +void dumpMetaInfo(const QMetaObject& m) +{ + const QMetaObject* parent = m.superClass(); + + for (int i=0; i < m.methodCount(); i++) + { + QMetaMethod mm = m.method(i); + if ((parent && + parent->indexOfMethod(parent->normalizedSignature(mm.methodSignature())) != -1) || + mm.methodSignature()[0] == '_') + { + continue; + } + + cout << "method " << i << ": " << mm.methodSignature().constData() + << ", " << mm.methodType() + << endl; + + QList pnames = mm.parameterNames(); + QList ptypes = mm.parameterTypes(); + + for (int q = 0; q < pnames.size(); q++) + { + cout << " " << pnames[q].constData() << " : " << ptypes[q].constData() << endl; + } + } + + for (int i=0; i < m.propertyCount(); i++) + { + QMetaProperty mp = m.property(i); + if (parent && parent->indexOfProperty(mp.name()) != -1) continue; + + cout << "property " << i << ": " << mp.name() + << ", " << mp.typeName() + << endl; + } + + for (int i=0; i < m.enumeratorCount(); i++) + { + QMetaEnum e = m.enumerator(i); + if (parent && parent->indexOfEnumerator(e.name()) != -1) continue; + + cout << "enum " << i << ": " << e.scope() << "." << e.name() << endl; + + for (int q = 0; q < e.keyCount(); q++) + { + cout << " " << e.key(q) << " = " << e.keyToValue(e.key(q)) << endl; + } + } + +} + +const char* +qtType(const Mu::Type* t) +{ + Name tname = t->fullyQualifiedName(); + + if (tname == "string") return "const QString&"; + if (tname == "int") return "int"; + if (tname == "bool") return "bool"; + if (tname == "double") return "qreal"; + if (tname == "qt.QIcon") return "QIcon"; + if (tname == "qt.QSize") return "QSize"; + if (tname == "qt.QRect") return "QRect"; + if (tname == "qt.QPoint") return "QPoint"; + if (tname == "qt.QUrl") return "QUrl"; + if (tname == "qt.QColor") return "QColor"; + if (tname == "qt.QFont") return "QFont"; + if (tname == "qt.QAction") return "QAction*"; + if (tname == "qt.QTreeWidgetItem") return "QTreeWidgetItem*"; + if (tname == "qt.QListWidgetItem") return "QListWidgetItem*"; + if (tname == "qt.QTableWidgetItem") return "QTableWidgetItem*"; + if (tname == "qt.QStandardItem") return "QStandardItem*"; + if (tname == "qt.QModelIndex") return "QModelIndex"; + if (tname == "qt.QKeySequence") return "QKeySequence"; + if (tname == "qt.QPixmap") return "QPixmap"; + if (tname == "qt.QItemSelection") return "QItemSelection"; + return 0; +} + +static QMetaProperty +getprop(const Node& NODE_THIS, Thread& NODE_THREAD, QObject* o) +{ + const Symbol* s = NODE_THIS.symbol(); + string n = s->name(); + const char* np = n.c_str(); + + if (n.find("set") == 0 && n.size() > 3 && n[3] >= 'A' && n[3] <= 'Z') + { + n[3] = n[3] - 'A' + 'a'; + np += 3; + } + + const QMetaObject* metaObject = o->metaObject(); + int propIndex = metaObject->indexOfProperty(np); + return metaObject->property(propIndex); +} + +static QMetaMethod +getmethod(const Node& NODE_THIS, Thread& NODE_THREAD, QObject* o) +{ + const Function* F = static_cast(NODE_THIS.symbol()); + + vector args; + + ostringstream str; + str << F->name(); + str << "("; + bool hasInt = false; + + for (size_t i = 1; i < F->numArgs(); i++) + { + string tname = F->argType(i)->fullyQualifiedName().c_str(); + const char* aname = 0; + if (i > 1) str << ","; + + if (tname == "int") { aname = "int"; hasInt = true; } + else if (tname == "bool") { aname = "bool"; } + else if (tname == "string") { aname = "QString"; } + else if (tname == "qt.QIcon") { aname = "QIcon"; } + else if (tname == "qt.QSize") { aname = "QSize"; } + else if (tname == "qt.QRect") { aname = "QRect"; } + else if (tname == "qt.QPoint") { aname = "QPoint"; } + else if (tname == "qt.QFont") { aname = "QFont"; } + else if (tname == "qt.QUrl") { aname = "QUrl"; } + else if (tname == "qt.QColor") { aname = "QColor"; } + else if (tname == "qt.QAction") { aname = "QAction*"; } + else if (tname == "qt.QTreeWidgetItem") { aname = "QTreeWidgetItem*"; } + else if (tname == "qt.QListWidgetItem") { aname = "QListWidgetItem*"; } + else if (tname == "qt.QTableWidgetItem") { aname = "QTableWidgetItem*"; } + else if (tname == "qt.QStandardItem") { aname = "QStandardItem*"; } + else if (tname == "qt.QModelIndex") { aname = "QModelIndex"; } + else if (tname == "qt.QKeySequence") { aname = "QKeySequence"; } + else if (tname == "qt.QPixmap") { aname = "QPixmap"; } + else if (tname == "qt.QItemSelection") { aname = "QItemSelection"; } + else if (tname == "double") { aname = "qreal"; } + + if (aname) + { + args.push_back(aname); + str << aname; + } + else + { + cout << "ERROR: MuQt Bridge unsupported method arg type " << aname << endl; + } + } + + str << ")"; + + const QMetaObject* metaObject = o->metaObject(); + int methodIndex = metaObject->indexOfMethod(str.str().c_str()); + + if (methodIndex == -1 && hasInt) + { + // + // For flag args, MuQt uses a brain dead "int" for the + // type. So if we called to find the method and there's an + // int in the args, then see if we can match against a *Flags + // arg and use that instead. + // + + ostringstream rstr; + rstr << F->name() << "\\("; + for (size_t i = 0; i < args.size(); i++) + { + if (i) rstr << ","; + + if (!strcmp(args[i], "int")) rstr << "[a-zA-Z0-9_:]+Flags?"; + else rstr << args[i]; + } + + rstr << "\\)"; + + QRegularExpression re(rstr.str().c_str()); + + for (size_t i = 0; i < metaObject->methodCount(); i++) + { + if (re.match(metaObject->method(i).methodSignature()).hasMatch()) + { + methodIndex = i; + //cout << "MATCHED: " << metaObject->method(i).signature() << endl; + break; + } + } + } + + if (methodIndex == -1) + { + cout << "ERROR: MuQt Bridge getmethod failed for " << str.str() << endl; + cout << " methods are:" << endl; + + for (size_t i = 0; i < metaObject->methodCount(); i++) + { + cout << " " << metaObject->method(i).methodSignature().constData() << endl; + } + } + + return metaObject->method(methodIndex); +} + +//---------------------------------------------------------------------- +// PROPERTY GET/SET + +static +NODE_IMPLEMENTATION(getpropInt, int) +{ + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + NODE_RETURN(v.toInt()); +} + +static +NODE_IMPLEMENTATION(getpropBool, bool) +{ + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + NODE_RETURN(v.toBool()); +} + +static +NODE_IMPLEMENTATION(getpropDouble, double) +{ + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + NODE_RETURN(v.toDouble()); +} + +static +NODE_IMPLEMENTATION(getpropString, Pointer) +{ + const MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + StringType::String* str = + c->stringType()->allocate(v.toString().toUtf8().constData()); + NODE_RETURN(str); +} + +static +NODE_IMPLEMENTATION(getpropIcon, Pointer) +{ + const MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIconType* iconType = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QIcon"), false); + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + QIconType::Instance* i = new QIconType::Instance(iconType); + + if (v.canConvert()) + { + i->value = v.value(); + } + + NODE_RETURN(i); +} + +static +NODE_IMPLEMENTATION(getpropSize, Pointer) +{ + const MuLangContext* c = static_cast(NODE_THREAD.context()); + const QSizeType* sizeType = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSize"), false); + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + ClassInstance* i = 0; + + if (v.canConvert()) + { + i = makeqtype(sizeType, v.value()); + } + + NODE_RETURN(i); +} + +static +NODE_IMPLEMENTATION(getpropRect, Pointer) +{ + const MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRectType* rectType = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QRect"), false); + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + ClassInstance* i = 0; + + if (v.canConvert()) + { + i = makeqtype(rectType, v.value()); + } + + NODE_RETURN(i); +} + +static +NODE_IMPLEMENTATION(getpropPoint, Pointer) +{ + const MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPointType* pointType = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPoint"), false); + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + ClassInstance* i = 0; + + if (v.canConvert()) + { + i = makeqtype(pointType, v.value()); + } + + NODE_RETURN(i); +} + +static +NODE_IMPLEMENTATION(getpropFont, Pointer) +{ + const MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFontType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFont"), false); + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + ClassInstance* i = 0; + + if (v.canConvert()) + { + i = makeqtype(type, v.value()); + } + + NODE_RETURN(i); +} + +static +NODE_IMPLEMENTATION(getpropUrl, Pointer) +{ + const MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrlType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QUrl"), false); + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + ClassInstance* i = 0; + + if (v.canConvert()) + { + i = makeqtype(type, v.value()); + } + + NODE_RETURN(i); +} + +static +NODE_IMPLEMENTATION(getpropKeySeq, Pointer) +{ + const MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequenceType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QKeySequence"), false); + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + ClassInstance* i = 0; + + if (v.canConvert()) + { + i = makeqtype(type, v.value()); + } + + NODE_RETURN(i); +} + +static +NODE_IMPLEMENTATION(getpropColor, Pointer) +{ + const MuLangContext* c = static_cast(NODE_THREAD.context()); + const QColorType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QColor"), false); + QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance)); + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + QVariant v = prop.read(o); + ClassInstance* i = 0; + + if (v.canConvert()) + { + i = makeqtype(type, v.value()); + } + + NODE_RETURN(i); +} + +static +NODE_IMPLEMENTATION(putpropInt, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + prop.write(o, QVariant(NODE_ARG(1, int))); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropBool, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + prop.write(o, QVariant(NODE_ARG(1, bool))); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropDouble, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + prop.write(o, QVariant(NODE_ARG(1, double))); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropString, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + if (StringType::String* s = NODE_ARG_OBJECT(1, StringType::String)) + { + prop.write(o, QVariant(s->c_str())); + } + else + { + throw NilArgumentException(NODE_THREAD); + } + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropIcon, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + ClassInstance* i = NODE_ARG_OBJECT(1, ClassInstance); + QIcon value = getqtype(i); + prop.write(o, QVariant(value)); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropSize, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + ClassInstance* i = NODE_ARG_OBJECT(1, ClassInstance); + QSize s = getqtype(i); + prop.write(o, QVariant(s)); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropPoint, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + ClassInstance* i = NODE_ARG_OBJECT(1, ClassInstance); + QPoint point = getqtype(i); + prop.write(o, QVariant(point)); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropRect, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + ClassInstance* i = NODE_ARG_OBJECT(1, ClassInstance); + QRect rect = getqtype(i); + prop.write(o, QVariant(rect)); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropFont, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + ClassInstance* i = NODE_ARG_OBJECT(1, ClassInstance); + QFont value = getqtype(i); + prop.write(o, QVariant(value)); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropUrl, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + ClassInstance* i = NODE_ARG_OBJECT(1, ClassInstance); + QUrl value = getqtype(i); + prop.write(o, QVariant(value)); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropKeySeq, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + ClassInstance* i = NODE_ARG_OBJECT(1, ClassInstance); + QKeySequence value = getqtype(i); + QVariant v; + v.setValue(value); + prop.write(o, v); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(putpropColor, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaProperty prop = getprop(NODE_THIS, NODE_THREAD, o); + ClassInstance* i = NODE_ARG_OBJECT(1, ClassInstance); + QColor value = getqtype(i); + prop.write(o, QVariant(value)); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +//---------------------------------------------------------------------- +// METHOD + +struct QActionArg { QAction* a; }; +struct QObjectArg { QObject* a; }; + +QMetaMethodArgument +argument(STLVector::Type& gcCache, + const Type* T, + Value& v, + QString& s, + QVariant& qv) +{ + // + // NOTE: this function is tricky. It has to return a ValueType** + // as a QMetaMethodArgument using the Q_ARG macro. The problem is + // that you have to be pointing at memory that survives this + // function invocation. In the case of QString and primitive + // types, an object on the callers stack is passed in to make the + // happen, otherwise the heap location must be referenced + // directly (not through a local). + // + + if (T->name() == "int") + { + return Q_ARG(int, v._int); + } + else if (T->name() == "bool") + { + return Q_ARG(bool, v._bool); + } + else if (T->name() == "double") + { + return Q_ARG(qreal, v._double); + } + else if (T->name() == "string") + { + StringType::String* str = reinterpret_cast(v._Pointer); + s = str->c_str(); + return Q_ARG(QString, s); + } + + else if (T->name() == "QVariant") + { + QVariantType::Instance* tvar = reinterpret_cast(v._Pointer); + qv = tvar->value; + return Q_ARG(QVariant, qv); + } + + else if (T->name() == "QAction") + { + if (ClassInstance* i = reinterpret_cast(v._Pointer)) + { + return Q_ARG(QAction*, i->data()->a); + } + } + else if (T->name() == "QObject") + { + if (ClassInstance* i = reinterpret_cast(v._Pointer)) + { + return Q_ARG(QObject*, i->data()->a); + } + } + + else if (T->name() == "QColor") + { + return Q_ARG(QColor, reinterpret_cast(v._Pointer)->value); + } + else if (T->name() == "QPoint") + { + return Q_ARG(QPoint, reinterpret_cast(v._Pointer)->value); + } + else if (T->name() == "QUrl") + { + return Q_ARG(QUrl, reinterpret_cast(v._Pointer)->value); + } + else if (T->name() == "QModelIndex") + { + return Q_ARG(QModelIndex, reinterpret_cast(v._Pointer)->value); + } + else if (T->name() == "QKeySequence") + { + return Q_ARG(QKeySequence, reinterpret_cast(v._Pointer)->value); + } + else if (T->name() == "QPixmap") + { + return Q_ARG(QPixmap, reinterpret_cast(v._Pointer)->value); + } + else if (T->name() == "QItemSelection") + { + return Q_ARG(QItemSelection, reinterpret_cast(v._Pointer)->value); + } + else if (T->name() == "QTreeWidgetItem") + { + ClassInstance* i = reinterpret_cast(v._Pointer); + return Q_ARG(QTreeWidgetItem*, i->data()->object); + } + else if (T->name() == "QListWidgetItem") + { + ClassInstance* i = reinterpret_cast(v._Pointer); + return Q_ARG(QListWidgetItem*, i->data()->object); + } + else if (T->name() == "QTableWidgetItem") + { + ClassInstance* i = reinterpret_cast(v._Pointer); + return Q_ARG(QTableWidgetItem*, i->data()->object); + } + else if (T->name() == "QStandardItem") + { + ClassInstance* i = reinterpret_cast(v._Pointer); + return Q_ARG(QStandardItem*, i->data()->object); + } + else + { + cout << "argument: T->name() = " << T->name() + << endl; + } + + return Q_ARG(int, 0); +} + +static +NODE_IMPLEMENTATION(invokeMethod0, void) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaMethod method = getmethod(NODE_THIS, NODE_THREAD, o); + bool result = method.invoke(o, Qt::DirectConnection); + + if (!result) + { + cout << "ERROR: MuQt Bridge invokeMethod0 failed for " + << method.methodSignature().constData() + << endl; + } + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(invokeMethod0_bool, bool) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + bool rval; + QMetaMethod method = getmethod(NODE_THIS, NODE_THREAD, o); + bool result = method.invoke(o, Qt::DirectConnection, Q_RETURN_ARG(bool,rval)); + + if (!result) + { + cout << "ERROR: MuQt Bridge invokeMethod0 failed for " + << method.methodSignature().constData() + << endl; + } + + NODE_RETURN(rval); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(invokeMethod0_int, int) +{ + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + int rval; + QMetaMethod method = getmethod(NODE_THIS, NODE_THREAD, o); + bool result = method.invoke(o, Qt::DirectConnection, Q_RETURN_ARG(int,rval)); + + if (!result) + { + cout << "ERROR: MuQt Bridge invokeMethod0 failed for " + << method.methodSignature().constData() + << endl; + } + + NODE_RETURN(rval); + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(invokeMethod1, void) +{ + const Function* F = static_cast(NODE_THIS.symbol()); + + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaMethod method = getmethod(NODE_THIS, NODE_THREAD, o); + + Value p0 = NODE_ANY_TYPE_ARG(1); + STLVector::Type gcCache; + QString s; + QVariant v; + + bool result = method.invoke(o, + Qt::DirectConnection, + argument(gcCache, F->argType(1), p0, s, v)); + + if (!result) + { + cout << "ERROR: MuQt Bridge invokeMethod1 failed for " + << method.methodSignature().constData() + << endl; + } + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(invokeMethod2, void) +{ + const Function* F = static_cast(NODE_THIS.symbol()); + + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaMethod method = getmethod(NODE_THIS, NODE_THREAD, o); + Value p0 = NODE_ANY_TYPE_ARG(1); + Value p1 = NODE_ANY_TYPE_ARG(2); + STLVector::Type gcCache; + QString s1, s2; + QVariant v1, v2; + + bool result = method.invoke(o, + Qt::DirectConnection, + argument(gcCache, F->argType(1), p0, s1, v1), + argument(gcCache, F->argType(2), p1, s2, v2)); + + if (!result) + { + cout << "ERROR: MuQt Bridge invokeMethod2 failed for " + << method.methodSignature().constData() + << endl; + } + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(invokeMethod3, void) +{ + const Function* F = static_cast(NODE_THIS.symbol()); + + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaMethod method = getmethod(NODE_THIS, NODE_THREAD, o); + Value p0 = NODE_ANY_TYPE_ARG(1); + Value p1 = NODE_ANY_TYPE_ARG(2); + Value p2 = NODE_ANY_TYPE_ARG(3); + STLVector::Type gcCache; + QString s1, s2, s3; + QVariant v1, v2, v3; + + bool result = method.invoke(o, + Qt::DirectConnection, + argument(gcCache, F->argType(1), p0, s1, v1), + argument(gcCache, F->argType(2), p1, s2, v2), + argument(gcCache, F->argType(3), p2, s3, v3)); + + if (!result) + { + cout << "ERROR: MuQt Bridge invokeMethod3 failed for " + << method.methodSignature().constData() + << endl; + } + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(invokeMethod4, void) +{ + const Function* F = static_cast(NODE_THIS.symbol()); + + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaMethod method = getmethod(NODE_THIS, NODE_THREAD, o); + Value p0 = NODE_ANY_TYPE_ARG(1); + Value p1 = NODE_ANY_TYPE_ARG(2); + Value p2 = NODE_ANY_TYPE_ARG(3); + Value p3 = NODE_ANY_TYPE_ARG(4); + STLVector::Type gcCache; + QString s1, s2, s3, s4; + QVariant v1, v2, v3, v4; + + bool result = method.invoke(o, + Qt::DirectConnection, + argument(gcCache, F->argType(1), p0, s1, v1), + argument(gcCache, F->argType(2), p1, s2, v2), + argument(gcCache, F->argType(3), p2, s3, v3), + argument(gcCache, F->argType(4), p3, s4, v4)); + + if (!result) + { + cout << "ERROR: MuQt Bridge invokeMethod4 failed for " + << method.methodSignature().constData() + << endl; + } + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +static +NODE_IMPLEMENTATION(invokeMethod5, void) +{ + const Function* F = static_cast(NODE_THIS.symbol()); + + if (QObject* o = object(NODE_ARG_OBJECT(0, ClassInstance))) + { + QMetaMethod method = getmethod(NODE_THIS, NODE_THREAD, o); + Value p0 = NODE_ANY_TYPE_ARG(1); + Value p1 = NODE_ANY_TYPE_ARG(2); + Value p2 = NODE_ANY_TYPE_ARG(3); + Value p3 = NODE_ANY_TYPE_ARG(4); + Value p4 = NODE_ANY_TYPE_ARG(5); + STLVector::Type gcCache; + QString s1, s2, s3, s4, s5; + QVariant v1, v2, v3, v4, v5; + + bool result = method.invoke(o, + Qt::DirectConnection, + argument(gcCache, F->argType(1), p0, s1, v1), + argument(gcCache, F->argType(2), p1, s2, v2), + argument(gcCache, F->argType(3), p2, s3, v3), + argument(gcCache, F->argType(4), p3, s4, v4), + argument(gcCache, F->argType(5), p4, s5, v5)); + + if (!result) + { + cout << "ERROR: MuQt Bridge invokeMethod5 failed for " + << method.methodSignature().constData() + << endl; + } + } + else + { + throw NilArgumentException(NODE_THREAD); + } +} + +//---------------------------------------------------------------------- + +void +populate(Class* c, const QMetaObject& m, const char** propExclusions) +{ + bool verbose = false; + + //if (!strcmp(m.className(), "QDockWidget")) verbose = true; + + if (verbose) + { + cout << "POPULATE: " << m.className() << endl; + } + + MuLangContext* context = static_cast(c->context()); + + const QMetaObject* parent = m.superClass(); + QIconType* iconType = + context->findSymbolOfTypeByQualifiedName(context->internName("qt.QIcon"), + false); + QSizeType* sizeType = + context->findSymbolOfTypeByQualifiedName(context->internName("qt.QSize"), + false); + + QPointType* pointType = + context->findSymbolOfTypeByQualifiedName(context->internName("qt.QPoint"), + false); + + QRectType* rectType = + context->findSymbolOfTypeByQualifiedName(context->internName("qt.QRect"), + false); + + QFontType* fontType = + context->findSymbolOfTypeByQualifiedName(context->internName("qt.QFont"), + false); + + QUrlType* urlType = + context->findSymbolOfTypeByQualifiedName(context->internName("qt.QUrl"), + false); + + QColorType* colorType = + context->findSymbolOfTypeByQualifiedName(context->internName("qt.QColor"), + false); + + QKeySequenceType* keysequenceType = + context->findSymbolOfTypeByQualifiedName(context->internName("qt.QKeySequence"), + false); + + // Class* actionType = + // context->findSymbolOfTypeByQualifiedName(context->internName("qt.QAction"), + // false); + + // Class* treeWidgetItemType = + // context->findSymbolOfTypeByQualifiedName(context->internName("qt.QTreeWidgetItem"), + // false); + + // Class* listWidgetItemType = + // context->findSymbolOfTypeByQualifiedName(context->internName("qt.QListWidgetItem"), + // false); + + // Class* tableWidgetItemType = + // context->findSymbolOfTypeByQualifiedName(context->internName("qt.QTableWidgetItem"), + // false); + + assert(colorType); + + for (int i=0; i < m.enumeratorCount(); i++) + { + QMetaEnum e = m.enumerator(i); + if (parent && parent->indexOfEnumerator(e.name()) != -1) continue; + + c->addSymbol(new Alias(context, e.name(), "int")); + + for (int q = 0; q < e.keyCount(); q++) + { + SymbolicConstant* sc = new SymbolicConstant(context, + e.key(q), + "int", + Value(e.keyToValue(e.key(q)))); + + c->addSymbol(sc); + + + if (verbose) + { + cout << "ENUM: "; + sc->output(cout); + cout << endl; + } + } + } + + + for (int i=0; i < m.propertyCount(); i++) + { + QMetaProperty mp = m.property(i); + if (parent && parent->indexOfProperty(mp.name()) != -1) continue; + + string getname = mp.name(); + string setname = "set"; + setname += mp.name(); + setname[3] = setname[3] - 'a' + 'A'; + + bool getexclude = false; + bool setexclude = false; + + if (propExclusions) + { + for (const char** e = propExclusions; *e; e++) + { + if (getname == *e) getexclude = true; + if (setname == *e) setexclude = true; + } + } + + const char* t = 0; + const Type* rtype = 0; + NodeFunc getfunc = NodeFunc(); + NodeFunc putfunc = NodeFunc(); + STLVector::Type params(2); + params[0] = new ParameterVariable(context, "this", c); + params[1] = 0; + + switch (mp.type()) + { + case QVariant::Int: + t = "int"; + rtype = context->intType(); + getfunc = getpropInt; + putfunc = putpropInt; + break; + case QVariant::String: + t = "string"; + rtype = context->stringType(); + getfunc = getpropString; + putfunc = putpropString; + break; + case QVariant::Bool: + t = "bool"; + rtype = context->boolType(); + getfunc = getpropBool; + putfunc = putpropBool; + break; + case QVariant::Double: + t = "double"; + rtype = context->doubleType(); + getfunc = getpropDouble; + putfunc = putpropDouble; + break; + case QVariant::Icon: + t = "qt.QIcon"; + rtype = iconType; + getfunc = getpropIcon; + putfunc = putpropIcon; + break; + case QVariant::Size: + t = "qt.QSize"; + rtype = sizeType; + getfunc = getpropSize; + putfunc = putpropSize; + break; + case QVariant::Point: + t = "qt.QPoint"; + rtype = pointType; + getfunc = getpropPoint; + putfunc = putpropPoint; + break; + case QVariant::Rect: + t = "qt.QRect"; + rtype = rectType; + getfunc = getpropRect; + putfunc = putpropRect; + break; + case QVariant::Font: + t = "qt.QFont"; + rtype = fontType; + getfunc = getpropFont; + putfunc = putpropFont; + break; + case QVariant::Url: + t = "qt.QUrl"; + rtype = urlType; + getfunc = getpropUrl; + putfunc = putpropUrl; + break; + case QVariant::KeySequence: + t = "qt.QKeySequence"; + rtype = keysequenceType; + getfunc = getpropKeySeq; + putfunc = putpropKeySeq; + break; + case QVariant::Color: + t = "qt.QColor"; + rtype = colorType; + getfunc = getpropColor; + putfunc = putpropColor; + break; + case QVariant::UserType: + if (mp.isEnumType()) + { + t = "int"; + rtype = context->intType(); + getfunc = getpropInt; + putfunc = putpropInt; + } + break; + default: + break; + } + + if (t) + { + if (mp.isReadable() && !getexclude) + { + Function* F = new Function(context, + getname.c_str(), + rtype, + 1, ¶ms.front(), + getfunc, + Function::None); + c->addSymbol(F); + + if (verbose) + { + cout << "PROP GET: "; + F->output(cout); + cout << endl; + } + } + + if (mp.isWritable() && !setexclude) + { + + params[0] = new ParameterVariable(context, "this", c); + params[1] = new ParameterVariable(context, "value", rtype); + + Function* F = new Function(context, + setname.c_str(), + context->voidType(), + 2, ¶ms.front(), + putfunc, + Function::None); + c->addSymbol(F); + + if (verbose) + { + cout << "PROP PUT: "; + F->output(cout); + cout << endl; + } + } + } + else + { + if (verbose) + { + cout << "SKIPPING: property " << getname + << " (+ " << setname << ") : " + << mp.typeName() + << " in class " << m.className() + << endl; + } + } + } + + for (int i=0; i < m.methodCount(); i++) + { + QMetaMethod mm = m.method(i); + bool isBoolType = !strcmp(mm.typeName(), "bool"); + bool isIntType = !strcmp(mm.typeName(), "int"); + + if ((parent && + parent->indexOfMethod(parent->normalizedSignature(mm.methodSignature())) != -1) || + mm.methodSignature()[0] == '_') + { + continue; + } + + STLVector::Type params; + params.push_back(new ParameterVariable(context, "this", c)); + + string fname = mm.methodSignature().constData(); + string::size_type ip = fname.find('('); + fname.erase(ip, fname.size() - ip); + QList pnames = mm.parameterNames(); + QList ptypes = mm.parameterTypes(); + + bool failed = false; + + for (size_t i = 0; i < pnames.size(); i++) + { + string n = pnames[i].constData(); + string t = ptypes[i].constData(); + + if (t == "int" || t.find("::") != string::npos) + { + params.push_back(new ParameterVariable(context, + n.c_str(), + context->intType())); + } + else if (t == "QString") + { + params.push_back(new ParameterVariable(context, + n.c_str(), + context->stringType())); + } + else if (t == "QIcon") + { + params.push_back(new ParameterVariable(context, + n.c_str(), + iconType)); + } + else if (t == "QSize") + { + params.push_back(new ParameterVariable(context, + n.c_str(), + sizeType)); + } + else if (t == "QRect") + { + params.push_back(new ParameterVariable(context, + n.c_str(), + rectType)); + } + else if (t == "QPoint") + { + params.push_back(new ParameterVariable(context, + n.c_str(), + pointType)); + } + else if (t == "QFont") + { + params.push_back(new ParameterVariable(context, + n.c_str(), + fontType)); + } + else if (t == "QUrl") + { + params.push_back(new ParameterVariable(context, + n.c_str(), + urlType)); + } + else if (t == "QColor") + { + params.push_back(new ParameterVariable(context, + n.c_str(), + colorType)); + } + else if (t == "qreal") + { + params.push_back(new ParameterVariable(context, + n.c_str(), + context->doubleType())); + } + else if (t == "bool") + { + params.push_back(new ParameterVariable(context, + n.c_str(), + context->boolType())); + } + else if (t.find("QAction*") != string::npos) + { + if (n == "") + { + ostringstream str; + str << "param" << i; + n = str.str(); + } + + params.push_back(new ParameterVariable(context, + n.c_str(), + "qt.QAction")); + } + else if (t.find("QTreeWidgetItem*") != string::npos) + { + if (n == "") + { + ostringstream str; + str << "param" << i; + n = str.str(); + } + + params.push_back(new ParameterVariable(context, + n.c_str(), + "qt.QTreeWidgetItem")); + } + else if (t.find("QListWidgetItem*") != string::npos) + { + if (n == "") + { + ostringstream str; + str << "param" << i; + n = str.str(); + } + + params.push_back(new ParameterVariable(context, + n.c_str(), + "qt.QListWidgetItem")); + } + else if (t.find("QTableWidgetItem*") != string::npos) + { + if (n == "") + { + ostringstream str; + str << "param" << i; + n = str.str(); + } + + params.push_back(new ParameterVariable(context, + n.c_str(), + "qt.QTableWidgetItem")); + } + else if (t.find("QStandardItem*") != string::npos) + { + if (n == "") + { + ostringstream str; + str << "param" << i; + n = str.str(); + } + + params.push_back(new ParameterVariable(context, + n.c_str(), + "qt.QStandardItem")); + } + else if (t == "QModelIndex") + { + if (n == "") + { + ostringstream str; + str << "param" << i; + n = str.str(); + } + + params.push_back(new ParameterVariable(context, + n.c_str(), + "qt.QModelIndex")); + } + else if (t == "QKeySequence") + { + if (n == "") + { + ostringstream str; + str << "param" << i; + n = str.str(); + } + + params.push_back(new ParameterVariable(context, + n.c_str(), + "qt.QKeySequence")); + } + else if (t == "QPixmap") + { + if (n == "") + { + ostringstream str; + str << "param" << i; + n = str.str(); + } + + params.push_back(new ParameterVariable(context, + n.c_str(), + "qt.QPixmap")); + } + else if (t == "QItemSelection") + { + if (n == "") + { + ostringstream str; + str << "param" << i; + n = str.str(); + } + + params.push_back(new ParameterVariable(context, + n.c_str(), + "qt.QItemSelection")); + } + else + { + failed = true; + //cout << "failed arg: " << t << endl; + break; + } + } + + NodeFunc func = NodeFunc(); + + switch (params.size()) + { + case 1: + // only methods with return types are bool, int, and QVariant + if (isBoolType) func = invokeMethod0_bool; + else if (isIntType) func = invokeMethod0_int; + else func = invokeMethod0; + break; + case 2: func = invokeMethod1; break; + case 3: func = invokeMethod2; break; + case 4: func = invokeMethod3; break; + case 5: func = invokeMethod4; break; + case 6: func = invokeMethod5; break; + default: + failed = true; + break; + } + + if (!failed) + { + const Type* rtype = context->voidType(); + if (isBoolType) rtype = context->boolType(); + else if (isIntType) rtype = context->intType(); + + Function* F = new Function(context, + fname.c_str(), + rtype, + params.size(), ¶ms.front(), + func, + Function::None); + + c->addSymbol(F); + + if (verbose) + { + cout << "METHOD: "; + F->output(cout); + cout << endl; + } + } + else + { + if (verbose) + { + cout << "SKIPPING METHOD: " << fname << "("; + + for (size_t i = 0; i < pnames.size(); i++) + { + string n = pnames[i].constData(); + string t = ptypes[i].constData(); + if (i) cout << ", "; + cout << t << " " << n; + } + + cout << ")" << endl; + } + } + } + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/CMakeLists.txt b/src/lib/mu/MuQt6/CMakeLists.txt new file mode 100644 index 000000000..f8dee0cd7 --- /dev/null +++ b/src/lib/mu/MuQt6/CMakeLists.txt @@ -0,0 +1,390 @@ +# +# Copyright (C) 2022 Autodesk, Inc. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# + +INCLUDE(cxx_defaults) +INCLUDE(rv_sed) + +FIND_PACKAGE( + Qt6 + COMPONENTS Core + Gui + Network + OpenGL + Qml + Quick + QuickWidgets + Svg + SvgWidgets + Test + UiTools + WebChannel + WebEngineCore + WebEngineWidgets + Widgets + Xml + REQUIRED +) + +SET(CMAKE_AUTOUIC + ON +) +SET(CMAKE_AUTOMOC + ON +) +SET(CMAKE_AUTORCC + ON +) + +SET(_target + "MuQt6" +) + +SET(_sources + qtModule.cpp + Bridge.cpp + qtUtils.cpp + # TODO_QT: Remove if everything works. + # Assuming it is not needed: qtGlobals.cpp stopped being generated since Qt 4.6 + #qtGlobals.cpp + SignalSpy.cpp + RvNetworkAccessManager.cpp + QtColorTriangleType.cpp +) + +SET(_autotypes + Color + Size + Point + PointF + Rect + RectF + Font + KeySequence + Icon + Pixmap + Bitmap + Region + Variant + Url + UrlQuery + DateTime + Time + Date + ByteArray + ModelIndex + Object + LayoutItem + PaintDevice + Image + RegularExpression + TextCursor + TextOption + TextBlock + Widget + Layout + Margins + Clipboard + BoxLayout + FormLayout + GridLayout + StackedLayout + HBoxLayout + VBoxLayout + DockWidget + ToolBar + MainWindow + Action + ActionGroup + Slider + Dial + LineEdit + Frame + AbstractSlider + AbstractButton + CheckBox + PushButton + RadioButton + ToolButton + ButtonGroup + Menu + ComboBox + Completer + SvgWidget + FileDialog + AbstractItemModel + AbstractListModel + AbstractTableModel + StandardItemModel + AbstractItemView + ColorDialog + Dialog + StandardItem + ListWidgetItem + TreeWidgetItem + TableWidgetItem + ColumnView + HeaderView + ListView + TableView + TreeView + ListWidget + TreeWidget + TableWidget + GuiApplication + CoreApplication + Application + Label + MenuBar + PlainTextEdit + ProgressBar + ScrollArea + SpinBox + Splitter + StackedWidget + StatusBar + TabBar + TabWidget + TextDocument + TextEdit + ToolBox + WidgetAction + AbstractSpinBox + AbstractScrollArea + InputDialog + EventLoop + GroupBox + NetworkReply + Timer + IODevice + IODeviceBase + FileDevice + Process + ProcessEnvironment + File + FileInfo + Dir + AbstractSocket + TcpSocket + UdpSocket + TcpServer + HostAddress + HostInfo + LocalSocket + Screen + ItemSelectionRange + ItemSelection + ItemSelectionModel + Gradient + Brush + Matrix4x4 + Transform + ConicalGradient + LinearGradient + RadialGradient + Palette + SpacerItem + WidgetItem + MimeData + Event + ResizeEvent + DragLeaveEvent + DragMoveEvent + DropEvent + InputEvent + MoveEvent + PaintEvent + SinglePointEvent + PointerEvent + ShortcutEvent + ShowEvent + TimerEvent + FocusEvent + GestureEvent + FileOpenEvent + CloseEvent + DragEnterEvent + HideEvent + HoverEvent + HelpEvent + ContextMenuEvent + KeyEvent + MouseEvent + TabletEvent + WheelEvent + WindowStateChangeEvent + TextStream + StringConverter + TextBrowser + NetworkCookieJar + NetworkCookie + NetworkAccessManager + Cursor + JSEngine + QmlEngine + QmlApplicationEngine + QmlContext + QuickWidget + QuickItem + WebEngineCookieStore + WebEngineProfile + WebEngineView + WebEngineSettings + WebEnginePage + WebEngineHistory + WebChannel + # + # NetworkAccessManager has been modified to us an RVNetworkAccessManager instead of a QNetworkAccessManager, so if the generation script is run again the + # files QNetworkAccessManagerType.* must be modified accordingly. + # + # Painter PainterPath +) +FOREACH( + _entry + ${_autotypes} +) + LIST(APPEND _sources "Q${_entry}Type.cpp") +ENDFOREACH() + +FILE( + GLOB _files_to_moc + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + MuQt6/*.h +) + +LIST(REMOVE_ITEM _files_to_moc SignalSpy.h) +FOREACH( + file_to_moc + ${_files_to_moc} +) + GET_FILENAME_COMPONENT(outfile ${file_to_moc} NAME_WE) + GET_FILENAME_COMPONENT(infile ${file_to_moc} ABSOLUTE) + FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_target}/generated) + SET(outfile + ${CMAKE_CURRENT_SOURCE_DIR}/${_target}/generated/moc_${outfile}.cpp + ) + ADD_CUSTOM_COMMAND( + OUTPUT ${outfile} + COMMAND ${QT_MOC_EXECUTABLE} -I ${CMAKE_CURRENT_SOURCE_DIR} -o ${outfile} ${infile} + MAIN_DEPENDENCY ${infile} + VERBATIM + ) + SET_SOURCE_FILES_PROPERTIES( + ${infile} + PROPERTIES SKIP_AUTOMOC ON + SKIP_AUTOUIC ON + SKIP_AUTORCC ON + ) + SET_SOURCE_FILES_PROPERTIES( + ${outfile} + PROPERTIES SKIP_AUTOMOC ON + SKIP_AUTOUIC ON + SKIP_AUTORCC ON + ) + + LIST(APPEND _sources ${outfile}) +ENDFOREACH() + +ADD_LIBRARY( + ${_target} STATIC + ${_sources} ${CMAKE_CURRENT_SOURCE_DIR}/${_target}/generated/moc_SignalSpy_filtered.hpp +) + +# +# Note: Defining WIN32_LEAN_AND_MEAN to prevent a clash between winsock.h and winsock2.h: windows.h, which is included indirectly by , includes +# winsock.h by default (if WIN32_LEAN_AND_MEAN is not defined). And then winsock2.h is later included by SignalSpy.h. Any time winsock.h gets included before +# winsock2.h, there will be compiler errors. The reason is because the two files DO NOT co-exist very well. winsock2.h was designed to replace winsock.h, not +# extend it. Everything that is defined in winsock.h is also defined in winsock2.h. +IF(RV_TARGET_WINDOWS) + TARGET_COMPILE_OPTIONS( + ${_target} + PRIVATE "-DWIN32_LEAN_AND_MEAN" + ) +ENDIF() + +# +# We have a few tweaks to the generated SignalSpy moc file and therfore we'll be commiting the 'tweaked version' since we basically want to override the +# 'SignalSpy::qt_metacall' method with the one that connects Qt & the Mu language in our SignalSpy.cpp source file. +SET_PROPERTY( + SOURCE SignalSpy.h + PROPERTY SKIP_AUTOGEN ON +) + +ADD_CUSTOM_COMMAND( + OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${_target}/generated/moc_SignalSpy.cpp + COMMAND ${RV_DEPS_QT6_LOCATION}/bin/moc -I ${CMAKE_CURRENT_SOURCE_DIR} -o ${CMAKE_CURRENT_SOURCE_DIR}/${_target}/generated/moc_SignalSpy.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/${_target}/SignalSpy.h + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/SignalSpy.cpp + COMMENT "Generating SignalSpy moc file ..." + VERBATIM +) + +ADD_CUSTOM_COMMAND( + OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${_target}/generated/moc_SignalSpy_filtered.hpp + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_target}/generated/moc_SignalSpy.cpp + COMMAND + bash -c + "sed -f ${CMAKE_CURRENT_SOURCE_DIR}/signalspy.sed ${CMAKE_CURRENT_SOURCE_DIR}/${_target}/generated/moc_SignalSpy.cpp >${CMAKE_CURRENT_SOURCE_DIR}/${_target}/generated/moc_SignalSpy_filtered.hpp" + COMMENT "Patching the moc_SignalSpy.cpp file ..." +) + +FIND_PACKAGE( + ${RV_QT_PACKAGE_NAME} + COMPONENTS Core + Gui + Network + OpenGL + Qml + Quick + QuickWidgets + Svg + Test + UiTools + WebChannel + WebEngineCore + WebEngineWidgets + Widgets + Xml + REQUIRED +) +TARGET_INCLUDE_DIRECTORIES( + ${_target} + PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} +) + +TARGET_LINK_LIBRARIES( + ${_target} + PUBLIC Qt::Core + Qt::Gui + Qt::Network + Qt::OpenGL + Qt::Qml + Qt::Quick + Qt::QuickWidgets + Qt::Svg + Qt::SvgWidgets + Qt::Test + Qt::WebChannel + Qt::WebEngineCore + Qt::WebEngineWidgets + Qt::Widgets + Qt::Xml + qtcolortriangle + PRIVATE Mu MuLang Qt::UiTools TwkQtCoreUtil TwkUtil +) + +IF(RV_TARGET_WINDOWS) + TARGET_LINK_LIBRARIES( + ${_target} + PUBLIC gc + ) +ELSE() + TARGET_LINK_LIBRARIES( + ${_target} + PUBLIC BDWGC::Gc + ) +ENDIF() + +RV_STAGE(TYPE "LIBRARY" TARGET ${_target}) diff --git a/src/lib/mu/MuQt6/HintLayout.cpp b/src/lib/mu/MuQt6/HintLayout.cpp new file mode 100644 index 000000000..8434017ec --- /dev/null +++ b/src/lib/mu/MuQt6/HintLayout.cpp @@ -0,0 +1,60 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include + +namespace Mu { +using namespace std; + +HintLayout::HintLayout(QWidget* parent, QSize size) + : QLayout(parent), + m_size(size) +{ +} + +HintLayout::~HintLayout() +{ + QLayoutItem *item; + while (item = takeAt(0)) delete item; +} + +void HintLayout::addItem(QLayoutItem *item) +{ + m_itemList.append(item); +} + +int HintLayout::count() const +{ + return m_itemList.size(); +} + +QLayoutItem * +HintLayout::itemAt(int index) const +{ + return m_itemList.value(index); +} + +QLayoutItem * +HintLayout::takeAt(int index) +{ + if (index >= 0 && index < m_itemList.size()) + { + return m_itemList.takeAt(index); + } + else + { + return 0; + } +} + +QSize +HintLayout::sizeHint() const +{ + return m_size; +} + +} // Mu diff --git a/src/lib/mu/MuQt6/HintWidget.cpp b/src/lib/mu/MuQt6/HintWidget.cpp new file mode 100644 index 000000000..38a372181 --- /dev/null +++ b/src/lib/mu/MuQt6/HintWidget.cpp @@ -0,0 +1,38 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include + +namespace Mu { +using namespace std; + +HintWidget::HintWidget(QWidget* parent, QSize s) + : QWidget(parent), + m_sizeHint(s) +{ +} + +HintWidget::~HintWidget() +{ +} + +void +HintWidget::setWidget(QWidget* w) +{ + QVBoxLayout* layout = new QVBoxLayout(this); + layout->addWidget(w); + layout->setContentsMargins(0, 0, 0, 0); + setLayout(layout); +} + +QSize +HintWidget::sizeHint() const +{ + return m_sizeHint; +} + +} // Mu diff --git a/src/lib/mu/MuQt6/MuQt6/Bridge.h b/src/lib/mu/MuQt6/MuQt6/Bridge.h new file mode 100644 index 000000000..5d270933b --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/Bridge.h @@ -0,0 +1,28 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#ifndef __MuQt__Bridge__h__ +#define __MuQt__Bridge__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +void dumpMetaInfo(const QMetaObject&); + +const char* qtType(const Mu::Type* t); + +void populate(Class*, const QMetaObject&, const char** propExclusions = 0); + +QMetaMethodArgument argument(STLVector::Type& gcCache, const Type* T, Value& v, QString& s, QVariant& qv); + +} // Mu + +#endif // __MuQt__Bridge__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/HintLayout.h b/src/lib/mu/MuQt6/MuQt6/HintLayout.h new file mode 100644 index 000000000..5084aa83e --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/HintLayout.h @@ -0,0 +1,34 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#ifndef __MuQt__HintLayout__h__ +#define __MuQt__HintLayout__h__ +#include +#include + +namespace Mu { + +class HintLayout : public QLayout +{ + public: + HintLayout(QWidget* parent, QSize); + virtual ~HintLayout(); + + virtual void addItem(QLayoutItem *item); + virtual int count () const; + virtual QLayoutItem * itemAt ( int index ) const; + virtual QLayoutItem * takeAt ( int index ); + virtual QSize sizeHint () const; + + private: + QSize m_size; + QList m_itemList; +}; + + +} // Mu + +#endif // __MuQt__HintLayout__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/HintWidgetType.h b/src/lib/mu/MuQt6/MuQt6/HintWidgetType.h new file mode 100644 index 000000000..0c41c49b1 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/HintWidgetType.h @@ -0,0 +1,44 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#ifndef __MuQt__HintWidgetType__h__ +#define __MuQt__HintWidgetType__h__ +#include +#include +#include +#include + +namespace Mu { + + +class HintWidgetType : public Class +{ + public: + // + // Types + // + + struct Struct + { + }; + + // + // Constructors + // + + HintWidgetType(Context* context, const char* name, Class* superClass = 0); + virtual ~HintWidgetType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt__HintWidgetType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/MuQt.h b/src/lib/mu/MuQt6/MuQt6/MuQt.h new file mode 100644 index 000000000..4cfa90ae8 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/MuQt.h @@ -0,0 +1,10 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include +#include +#include diff --git a/src/lib/mu/MuQt6/MuQt6/QAbstractButtonType.h b/src/lib/mu/MuQt6/MuQt6/QAbstractButtonType.h new file mode 100644 index 000000000..5bfe6ea51 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QAbstractButtonType.h @@ -0,0 +1,179 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QAbstractButtonType__h__ +#define __MuQt6__QAbstractButtonType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QAbstractButton; + +class QAbstractButtonType : public Class +{ + public: + + typedef MuQt_QAbstractButton MuQtType; + typedef QAbstractButton QtType; + + // + // Constructors + // + + QAbstractButtonType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QAbstractButtonType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[35]; +}; + +// Inheritable object + +class MuQt_QAbstractButton : public QAbstractButton +{ + public: + virtual ~MuQt_QAbstractButton(); + MuQt_QAbstractButton(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + protected: + virtual void checkStateSet() ; + virtual bool hitButton(const QPoint & pos) const; + virtual void nextCheckState() ; + virtual void changeEvent(QEvent * e) ; + virtual bool event(QEvent * e) ; + virtual void focusInEvent(QFocusEvent * e) ; + virtual void focusOutEvent(QFocusEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * e) ; + virtual void timerEvent(QTimerEvent * e) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void checkStateSet_pub() { checkStateSet(); } + void checkStateSet_pub_parent() { QAbstractButton::checkStateSet(); } + bool hitButton_pub(const QPoint & pos) const { return hitButton(pos); } + bool hitButton_pub_parent(const QPoint & pos) const { return QAbstractButton::hitButton(pos); } + void nextCheckState_pub() { nextCheckState(); } + void nextCheckState_pub_parent() { QAbstractButton::nextCheckState(); } + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QAbstractButton::changeEvent(e); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QAbstractButton::event(e); } + void focusInEvent_pub(QFocusEvent * e) { focusInEvent(e); } + void focusInEvent_pub_parent(QFocusEvent * e) { QAbstractButton::focusInEvent(e); } + void focusOutEvent_pub(QFocusEvent * e) { focusOutEvent(e); } + void focusOutEvent_pub_parent(QFocusEvent * e) { QAbstractButton::focusOutEvent(e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QAbstractButton::keyPressEvent(e); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QAbstractButton::keyReleaseEvent(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QAbstractButton::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QAbstractButton::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QAbstractButton::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * e) { paintEvent(e); } + void paintEvent_pub_parent(QPaintEvent * e) { QAbstractButton::paintEvent(e); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QAbstractButton::timerEvent(e); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QAbstractButton::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QAbstractButton::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QAbstractButton::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QAbstractButton::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QAbstractButton::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QAbstractButton::dropEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QAbstractButton::focusNextPrevChild(next); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QAbstractButton::hideEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QAbstractButton::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QAbstractButton::mouseDoubleClickEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QAbstractButton::moveEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QAbstractButton::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QAbstractButton::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QAbstractButton::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QAbstractButton::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QAbstractButton::metric(m); } + public: + const QAbstractButtonType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QAbstractButtonType::cachedInstance(const QAbstractButtonType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QAbstractButtonType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QAbstractItemModelType.h b/src/lib/mu/MuQt6/MuQt6/QAbstractItemModelType.h new file mode 100644 index 000000000..0e7df370f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QAbstractItemModelType.h @@ -0,0 +1,156 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QAbstractItemModelType__h__ +#define __MuQt6__QAbstractItemModelType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QAbstractItemModel; + +class QAbstractItemModelType : public Class +{ + public: + + typedef MuQt_QAbstractItemModel MuQtType; + typedef QAbstractItemModel QtType; + + // + // Constructors + // + + QAbstractItemModelType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QAbstractItemModelType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[34]; +}; + +// Inheritable object + +class MuQt_QAbstractItemModel : public QAbstractItemModel +{ + public: + virtual ~MuQt_QAbstractItemModel(); + MuQt_QAbstractItemModel(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual QModelIndex buddy(const QModelIndex & index) const; + virtual bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const; + virtual bool canFetchMore(const QModelIndex & parent) const; + virtual bool clearItemData(const QModelIndex & index) ; + virtual int columnCount(const QModelIndex & parent) const ; + virtual QVariant data(const QModelIndex & index, int role) const ; + virtual bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) ; + virtual void fetchMore(const QModelIndex & parent) ; + virtual Qt::ItemFlags flags(const QModelIndex & index) const; + virtual bool hasChildren(const QModelIndex & parent) const; + virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; + virtual QModelIndex index(int row, int column, const QModelIndex & parent) const ; + virtual bool insertColumns(int column, int count, const QModelIndex & parent) ; + virtual bool insertRows(int row, int count, const QModelIndex & parent) ; + virtual QModelIndexList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const; + virtual QMimeData * mimeData(const QModelIndexList & indexes) const; + virtual QStringList mimeTypes() const; + virtual bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) ; + virtual bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) ; + virtual QModelIndex parent(const QModelIndex & index) const ; + virtual bool removeColumns(int column, int count, const QModelIndex & parent) ; + virtual bool removeRows(int row, int count, const QModelIndex & parent) ; + virtual int rowCount(const QModelIndex & parent) const ; + virtual bool setData(const QModelIndex & index, const QVariant & value, int role) ; + virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) ; + virtual QModelIndex sibling(int row, int column, const QModelIndex & index) const; + virtual void sort(int column, Qt::SortOrder order) ; + virtual QSize span(const QModelIndex & index) const; + virtual Qt::DropActions supportedDragActions() const; + virtual Qt::DropActions supportedDropActions() const; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void beginInsertColumns_pub(const QModelIndex & parent, int first, int last) { beginInsertColumns(parent, first, last); } + void beginInsertColumns_pub_parent(const QModelIndex & parent, int first, int last) { QAbstractItemModel::beginInsertColumns(parent, first, last); } + void beginInsertRows_pub(const QModelIndex & parent, int first, int last) { beginInsertRows(parent, first, last); } + void beginInsertRows_pub_parent(const QModelIndex & parent, int first, int last) { QAbstractItemModel::beginInsertRows(parent, first, last); } + bool beginMoveColumns_pub(const QModelIndex & sourceParent, int sourceFirst, int sourceLast, const QModelIndex & destinationParent, int destinationChild) { return beginMoveColumns(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild); } + bool beginMoveColumns_pub_parent(const QModelIndex & sourceParent, int sourceFirst, int sourceLast, const QModelIndex & destinationParent, int destinationChild) { return QAbstractItemModel::beginMoveColumns(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild); } + bool beginMoveRows_pub(const QModelIndex & sourceParent, int sourceFirst, int sourceLast, const QModelIndex & destinationParent, int destinationChild) { return beginMoveRows(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild); } + bool beginMoveRows_pub_parent(const QModelIndex & sourceParent, int sourceFirst, int sourceLast, const QModelIndex & destinationParent, int destinationChild) { return QAbstractItemModel::beginMoveRows(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild); } + void beginRemoveColumns_pub(const QModelIndex & parent, int first, int last) { beginRemoveColumns(parent, first, last); } + void beginRemoveColumns_pub_parent(const QModelIndex & parent, int first, int last) { QAbstractItemModel::beginRemoveColumns(parent, first, last); } + void beginRemoveRows_pub(const QModelIndex & parent, int first, int last) { beginRemoveRows(parent, first, last); } + void beginRemoveRows_pub_parent(const QModelIndex & parent, int first, int last) { QAbstractItemModel::beginRemoveRows(parent, first, last); } + void beginResetModel_pub() { beginResetModel(); } + void beginResetModel_pub_parent() { QAbstractItemModel::beginResetModel(); } + void changePersistentIndex_pub(const QModelIndex & from, const QModelIndex & to) { changePersistentIndex(from, to); } + void changePersistentIndex_pub_parent(const QModelIndex & from, const QModelIndex & to) { QAbstractItemModel::changePersistentIndex(from, to); } + void changePersistentIndexList_pub(const QModelIndexList & from, const QModelIndexList & to) { changePersistentIndexList(from, to); } + void changePersistentIndexList_pub_parent(const QModelIndexList & from, const QModelIndexList & to) { QAbstractItemModel::changePersistentIndexList(from, to); } + void endInsertColumns_pub() { endInsertColumns(); } + void endInsertColumns_pub_parent() { QAbstractItemModel::endInsertColumns(); } + void endInsertRows_pub() { endInsertRows(); } + void endInsertRows_pub_parent() { QAbstractItemModel::endInsertRows(); } + void endMoveColumns_pub() { endMoveColumns(); } + void endMoveColumns_pub_parent() { QAbstractItemModel::endMoveColumns(); } + void endMoveRows_pub() { endMoveRows(); } + void endMoveRows_pub_parent() { QAbstractItemModel::endMoveRows(); } + void endRemoveColumns_pub() { endRemoveColumns(); } + void endRemoveColumns_pub_parent() { QAbstractItemModel::endRemoveColumns(); } + void endRemoveRows_pub() { endRemoveRows(); } + void endRemoveRows_pub_parent() { QAbstractItemModel::endRemoveRows(); } + void endResetModel_pub() { endResetModel(); } + void endResetModel_pub_parent() { QAbstractItemModel::endResetModel(); } + QModelIndexList persistentIndexList_pub() const { return persistentIndexList(); } + QModelIndexList persistentIndexList_pub_parent() const { return QAbstractItemModel::persistentIndexList(); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QAbstractItemModel::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QAbstractItemModel::timerEvent(event); } + public: + QModelIndex createIndex0_pub(int row, int column, Pointer p) const { return createIndex(row, column, p); } + public: + const QAbstractItemModelType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QAbstractItemModelType::cachedInstance(const QAbstractItemModelType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QAbstractItemModelType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QAbstractItemViewType.h b/src/lib/mu/MuQt6/MuQt6/QAbstractItemViewType.h new file mode 100644 index 000000000..535cd2b93 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QAbstractItemViewType.h @@ -0,0 +1,208 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QAbstractItemViewType__h__ +#define __MuQt6__QAbstractItemViewType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QAbstractItemView; + +class QAbstractItemViewType : public Class +{ + public: + + typedef MuQt_QAbstractItemView MuQtType; + typedef QAbstractItemView QtType; + + // + // Constructors + // + + QAbstractItemViewType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QAbstractItemViewType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[44]; +}; + +// Inheritable object + +class MuQt_QAbstractItemView : public QAbstractItemView +{ + public: + virtual ~MuQt_QAbstractItemView(); + MuQt_QAbstractItemView(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual QModelIndex indexAt(const QPoint & point) const ; + virtual void keyboardSearch(const QString & search) ; + virtual void scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) ; + virtual void setModel(QAbstractItemModel * model) ; + virtual void setSelectionModel(QItemSelectionModel * selectionModel) ; + virtual int sizeHintForColumn(int column) const; + virtual int sizeHintForRow(int row) const; + virtual QRect visualRect(const QModelIndex & index) const ; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual bool edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) ; + virtual int horizontalOffset() const ; + virtual bool isIndexHidden(const QModelIndex & index) const ; + virtual QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers) ; + virtual QModelIndexList selectedIndexes() const; + virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex & index, const QEvent * event) const; + virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags flags) ; + virtual void startDrag(Qt::DropActions supportedActions) ; + virtual int verticalOffset() const ; + virtual QRegion visualRegionForSelection(const QItemSelection & selection) const ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual bool eventFilter(QObject * object, QEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + virtual bool viewportEvent(QEvent * event) ; + virtual QSize viewportSizeHint() const; + public: + virtual void setupViewport(QWidget * viewport) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void scrollContentsBy(int dx, int dy) ; + virtual void contextMenuEvent(QContextMenuEvent * e) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + QPoint dirtyRegionOffset_pub() const { return dirtyRegionOffset(); } + QPoint dirtyRegionOffset_pub_parent() const { return QAbstractItemView::dirtyRegionOffset(); } + QAbstractItemView::DropIndicatorPosition dropIndicatorPosition_pub() const { return dropIndicatorPosition(); } + QAbstractItemView::DropIndicatorPosition dropIndicatorPosition_pub_parent() const { return QAbstractItemView::dropIndicatorPosition(); } + bool edit_pub(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return edit(index, trigger, event); } + bool edit_pub_parent(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return QAbstractItemView::edit(index, trigger, event); } + void executeDelayedItemsLayout_pub() { executeDelayedItemsLayout(); } + void executeDelayedItemsLayout_pub_parent() { QAbstractItemView::executeDelayedItemsLayout(); } + int horizontalOffset_pub() const { return horizontalOffset(); } + int horizontalOffset_pub_parent() const { return QAbstractItemView::horizontalOffset(); } + bool isIndexHidden_pub(const QModelIndex & index) const { return isIndexHidden(index); } + bool isIndexHidden_pub_parent(const QModelIndex & index) const { return QAbstractItemView::isIndexHidden(index); } + QModelIndex moveCursor_pub(MuQtPublicEnum cursorAction, Qt::KeyboardModifiers modifiers) { return moveCursor((QAbstractItemView::CursorAction)cursorAction, modifiers); } + QModelIndex moveCursor_pub_parent(MuQtPublicEnum cursorAction, Qt::KeyboardModifiers modifiers) { return QAbstractItemView::moveCursor((QAbstractItemView::CursorAction)cursorAction, modifiers); } + void scheduleDelayedItemsLayout_pub() { scheduleDelayedItemsLayout(); } + void scheduleDelayedItemsLayout_pub_parent() { QAbstractItemView::scheduleDelayedItemsLayout(); } + void scrollDirtyRegion_pub(int dx, int dy) { scrollDirtyRegion(dx, dy); } + void scrollDirtyRegion_pub_parent(int dx, int dy) { QAbstractItemView::scrollDirtyRegion(dx, dy); } + QModelIndexList selectedIndexes_pub() const { return selectedIndexes(); } + QModelIndexList selectedIndexes_pub_parent() const { return QAbstractItemView::selectedIndexes(); } + QItemSelectionModel::SelectionFlags selectionCommand_pub(const QModelIndex & index, const QEvent * event) const { return selectionCommand(index, event); } + QItemSelectionModel::SelectionFlags selectionCommand_pub_parent(const QModelIndex & index, const QEvent * event) const { return QAbstractItemView::selectionCommand(index, event); } + void setDirtyRegion_pub(const QRegion & region) { setDirtyRegion(region); } + void setDirtyRegion_pub_parent(const QRegion & region) { QAbstractItemView::setDirtyRegion(region); } + void setSelection_pub(const QRect & rect, QItemSelectionModel::SelectionFlags flags) { setSelection(rect, flags); } + void setSelection_pub_parent(const QRect & rect, QItemSelectionModel::SelectionFlags flags) { QAbstractItemView::setSelection(rect, flags); } + void setState_pub(MuQtPublicEnum state) { setState((QAbstractItemView::State)state); } + void setState_pub_parent(MuQtPublicEnum state) { QAbstractItemView::setState((QAbstractItemView::State)state); } + void startDrag_pub(Qt::DropActions supportedActions) { startDrag(supportedActions); } + void startDrag_pub_parent(Qt::DropActions supportedActions) { QAbstractItemView::startDrag(supportedActions); } + QAbstractItemView::State state_pub() const { return state(); } + QAbstractItemView::State state_pub_parent() const { return QAbstractItemView::state(); } + int verticalOffset_pub() const { return verticalOffset(); } + int verticalOffset_pub_parent() const { return QAbstractItemView::verticalOffset(); } + QRegion visualRegionForSelection_pub(const QItemSelection & selection) const { return visualRegionForSelection(selection); } + QRegion visualRegionForSelection_pub_parent(const QItemSelection & selection) const { return QAbstractItemView::visualRegionForSelection(selection); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QAbstractItemView::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QAbstractItemView::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QAbstractItemView::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QAbstractItemView::dropEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QAbstractItemView::event(event_); } + bool eventFilter_pub(QObject * object, QEvent * event) { return eventFilter(object, event); } + bool eventFilter_pub_parent(QObject * object, QEvent * event) { return QAbstractItemView::eventFilter(object, event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QAbstractItemView::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QAbstractItemView::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QAbstractItemView::focusOutEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QAbstractItemView::keyPressEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QAbstractItemView::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QAbstractItemView::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QAbstractItemView::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QAbstractItemView::mouseReleaseEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QAbstractItemView::resizeEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QAbstractItemView::timerEvent(event); } + bool viewportEvent_pub(QEvent * event) { return viewportEvent(event); } + bool viewportEvent_pub_parent(QEvent * event) { return QAbstractItemView::viewportEvent(event); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QAbstractItemView::viewportSizeHint(); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QAbstractItemView::scrollContentsBy(dx, dy); } + void contextMenuEvent_pub(QContextMenuEvent * e) { contextMenuEvent(e); } + void contextMenuEvent_pub_parent(QContextMenuEvent * e) { QAbstractItemView::contextMenuEvent(e); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QAbstractItemView::paintEvent(event); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QAbstractItemView::wheelEvent(e); } + public: + const QAbstractItemViewType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QAbstractItemViewType::cachedInstance(const QAbstractItemViewType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QAbstractItemViewType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QAbstractListModelType.h b/src/lib/mu/MuQt6/MuQt6/QAbstractListModelType.h new file mode 100644 index 000000000..321cb4f27 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QAbstractListModelType.h @@ -0,0 +1,107 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QAbstractListModelType__h__ +#define __MuQt6__QAbstractListModelType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QAbstractListModel; + +class QAbstractListModelType : public Class +{ + public: + + typedef MuQt_QAbstractListModel MuQtType; + typedef QAbstractListModel QtType; + + // + // Constructors + // + + QAbstractListModelType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QAbstractListModelType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[27]; +}; + +// Inheritable object + +class MuQt_QAbstractListModel : public QAbstractListModel +{ + public: + virtual ~MuQt_QAbstractListModel(); + MuQt_QAbstractListModel(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) ; + virtual Qt::ItemFlags flags(const QModelIndex & index) const; + virtual QModelIndex index(int row, int column, const QModelIndex & parent) const; + virtual QModelIndex sibling(int row, int column, const QModelIndex & idx) const; + virtual QModelIndex buddy(const QModelIndex & index) const; + virtual bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const; + virtual bool canFetchMore(const QModelIndex & parent) const; + virtual bool clearItemData(const QModelIndex & index) ; + virtual QVariant data(const QModelIndex & index, int role) const ; + virtual void fetchMore(const QModelIndex & parent) ; + virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; + virtual bool insertColumns(int column, int count, const QModelIndex & parent) ; + virtual bool insertRows(int row, int count, const QModelIndex & parent) ; + virtual QModelIndexList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const; + virtual QMimeData * mimeData(const QModelIndexList & indexes) const; + virtual QStringList mimeTypes() const; + virtual bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) ; + virtual bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) ; + virtual bool removeColumns(int column, int count, const QModelIndex & parent) ; + virtual bool removeRows(int row, int count, const QModelIndex & parent) ; + virtual int rowCount(const QModelIndex & parent) const ; + virtual bool setData(const QModelIndex & index, const QVariant & value, int role) ; + virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) ; + virtual void sort(int column, Qt::SortOrder order) ; + virtual QSize span(const QModelIndex & index) const; + virtual Qt::DropActions supportedDragActions() const; + virtual Qt::DropActions supportedDropActions() const; + public: + const QAbstractListModelType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QAbstractListModelType::cachedInstance(const QAbstractListModelType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QAbstractListModelType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QAbstractScrollAreaType.h b/src/lib/mu/MuQt6/MuQt6/QAbstractScrollAreaType.h new file mode 100644 index 000000000..62b234cc1 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QAbstractScrollAreaType.h @@ -0,0 +1,145 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QAbstractScrollAreaType__h__ +#define __MuQt6__QAbstractScrollAreaType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QAbstractScrollArea; + +class QAbstractScrollAreaType : public Class +{ + public: + + typedef MuQt_QAbstractScrollArea MuQtType; + typedef QAbstractScrollArea QtType; + + // + // Constructors + // + + QAbstractScrollAreaType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QAbstractScrollAreaType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[21]; +}; + +// Inheritable object + +class MuQt_QAbstractScrollArea : public QAbstractScrollArea +{ + public: + virtual ~MuQt_QAbstractScrollArea(); + MuQt_QAbstractScrollArea(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual void setupViewport(QWidget * viewport) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void scrollContentsBy(int dx, int dy) ; + virtual bool viewportEvent(QEvent * event) ; + virtual QSize viewportSizeHint() const; + virtual void contextMenuEvent(QContextMenuEvent * e) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void mouseDoubleClickEvent(QMouseEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void wheelEvent(QWheelEvent * e) ; + virtual void changeEvent(QEvent * ev) ; + public: + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QAbstractScrollArea::scrollContentsBy(dx, dy); } + void setViewportMargins_pub(int left, int top, int right, int bottom) { setViewportMargins(left, top, right, bottom); } + void setViewportMargins_pub_parent(int left, int top, int right, int bottom) { QAbstractScrollArea::setViewportMargins(left, top, right, bottom); } + void setViewportMargins_pub(const QMargins & margins) { setViewportMargins(margins); } + void setViewportMargins_pub_parent(const QMargins & margins) { QAbstractScrollArea::setViewportMargins(margins); } + bool viewportEvent_pub(QEvent * event) { return viewportEvent(event); } + bool viewportEvent_pub_parent(QEvent * event) { return QAbstractScrollArea::viewportEvent(event); } + QMargins viewportMargins_pub() const { return viewportMargins(); } + QMargins viewportMargins_pub_parent() const { return QAbstractScrollArea::viewportMargins(); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QAbstractScrollArea::viewportSizeHint(); } + void contextMenuEvent_pub(QContextMenuEvent * e) { contextMenuEvent(e); } + void contextMenuEvent_pub_parent(QContextMenuEvent * e) { QAbstractScrollArea::contextMenuEvent(e); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QAbstractScrollArea::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QAbstractScrollArea::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QAbstractScrollArea::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QAbstractScrollArea::dropEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QAbstractScrollArea::event(event_); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QAbstractScrollArea::keyPressEvent(e); } + void mouseDoubleClickEvent_pub(QMouseEvent * e) { mouseDoubleClickEvent(e); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * e) { QAbstractScrollArea::mouseDoubleClickEvent(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QAbstractScrollArea::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QAbstractScrollArea::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QAbstractScrollArea::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QAbstractScrollArea::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QAbstractScrollArea::resizeEvent(event); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QAbstractScrollArea::wheelEvent(e); } + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QAbstractScrollArea::changeEvent(ev); } + public: + const QAbstractScrollAreaType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QAbstractScrollAreaType::cachedInstance(const QAbstractScrollAreaType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QAbstractScrollAreaType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QAbstractSliderType.h b/src/lib/mu/MuQt6/MuQt6/QAbstractSliderType.h new file mode 100644 index 000000000..c9333137e --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QAbstractSliderType.h @@ -0,0 +1,177 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QAbstractSliderType__h__ +#define __MuQt6__QAbstractSliderType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QAbstractSlider; + +class QAbstractSliderType : public Class +{ + public: + + typedef MuQt_QAbstractSlider MuQtType; + typedef QAbstractSlider QtType; + + // + // Constructors + // + + QAbstractSliderType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QAbstractSliderType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[33]; +}; + +// Inheritable object + +class MuQt_QAbstractSlider : public QAbstractSlider +{ + public: + virtual ~MuQt_QAbstractSlider(); + MuQt_QAbstractSlider(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + protected: + virtual void sliderChange(QAbstractSlider::SliderChange change) ; + virtual void changeEvent(QEvent * ev) ; + virtual bool event(QEvent * e) ; + virtual void keyPressEvent(QKeyEvent * ev) ; + virtual void timerEvent(QTimerEvent * e) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + QAbstractSlider::SliderAction repeatAction_pub() const { return repeatAction(); } + QAbstractSlider::SliderAction repeatAction_pub_parent() const { return QAbstractSlider::repeatAction(); } + void setRepeatAction_pub(QAbstractSlider::SliderAction action, int thresholdTime, int repeatTime) { setRepeatAction(action, thresholdTime, repeatTime); } + void setRepeatAction_pub_parent(QAbstractSlider::SliderAction action, int thresholdTime, int repeatTime) { QAbstractSlider::setRepeatAction(action, thresholdTime, repeatTime); } + void sliderChange_pub(MuQtPublicEnum change) { sliderChange((QAbstractSlider::SliderChange)change); } + void sliderChange_pub_parent(MuQtPublicEnum change) { QAbstractSlider::sliderChange((QAbstractSlider::SliderChange)change); } + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QAbstractSlider::changeEvent(ev); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QAbstractSlider::event(e); } + void keyPressEvent_pub(QKeyEvent * ev) { keyPressEvent(ev); } + void keyPressEvent_pub_parent(QKeyEvent * ev) { QAbstractSlider::keyPressEvent(ev); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QAbstractSlider::timerEvent(e); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QAbstractSlider::wheelEvent(e); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QAbstractSlider::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QAbstractSlider::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QAbstractSlider::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QAbstractSlider::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QAbstractSlider::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QAbstractSlider::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QAbstractSlider::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QAbstractSlider::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QAbstractSlider::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QAbstractSlider::hideEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QAbstractSlider::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QAbstractSlider::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QAbstractSlider::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QAbstractSlider::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QAbstractSlider::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QAbstractSlider::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QAbstractSlider::moveEvent(event); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QAbstractSlider::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QAbstractSlider::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QAbstractSlider::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QAbstractSlider::tabletEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QAbstractSlider::metric(m); } + public: + const QAbstractSliderType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QAbstractSliderType::cachedInstance(const QAbstractSliderType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QAbstractSliderType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QAbstractSocketType.h b/src/lib/mu/MuQt6/MuQt6/QAbstractSocketType.h new file mode 100644 index 000000000..4de34eb79 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QAbstractSocketType.h @@ -0,0 +1,116 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QAbstractSocketType__h__ +#define __MuQt6__QAbstractSocketType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QAbstractSocket; + +class QAbstractSocketType : public Class +{ + public: + + typedef MuQt_QAbstractSocket MuQtType; + typedef QAbstractSocket QtType; + + // + // Constructors + // + + QAbstractSocketType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QAbstractSocketType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[21]; +}; + +// Inheritable object + +class MuQt_QAbstractSocket : public QAbstractSocket +{ + public: + virtual ~MuQt_QAbstractSocket(); + MuQt_QAbstractSocket(Pointer muobj, const CallEnvironment*, QAbstractSocket::SocketType socketType, QObject * parent) ; + virtual void disconnectFromHost() ; + virtual void resume() ; + virtual void setReadBufferSize(qint64 size) ; + virtual void setSocketOption(QAbstractSocket::SocketOption option, const QVariant & value) ; + virtual QVariant socketOption(QAbstractSocket::SocketOption option) ; + virtual bool waitForConnected(int msecs) ; + virtual bool waitForDisconnected(int msecs) ; + virtual qint64 bytesAvailable() const; + virtual qint64 bytesToWrite() const; + virtual void close() ; + virtual bool isSequential() const; + virtual bool waitForBytesWritten(int msecs) ; + virtual bool waitForReadyRead(int msecs) ; + protected: + virtual qint64 skipData(qint64 maxSize) ; + public: + virtual bool atEnd() const; + virtual bool canReadLine() const; + virtual bool open(QIODeviceBase::OpenMode mode) ; + virtual qint64 pos() const; + virtual bool reset() ; + virtual bool seek(qint64 pos) ; + virtual qint64 size() const; + public: + void setLocalAddress_pub(const QHostAddress & address) { setLocalAddress(address); } + void setLocalAddress_pub_parent(const QHostAddress & address) { QAbstractSocket::setLocalAddress(address); } + void setPeerAddress_pub(const QHostAddress & address) { setPeerAddress(address); } + void setPeerAddress_pub_parent(const QHostAddress & address) { QAbstractSocket::setPeerAddress(address); } + void setPeerName_pub(const QString & name) { setPeerName(name); } + void setPeerName_pub_parent(const QString & name) { QAbstractSocket::setPeerName(name); } + void setSocketError_pub(QAbstractSocket::SocketError socketError) { setSocketError(socketError); } + void setSocketError_pub_parent(QAbstractSocket::SocketError socketError) { QAbstractSocket::setSocketError(socketError); } + void setSocketState_pub(QAbstractSocket::SocketState state) { setSocketState(state); } + void setSocketState_pub_parent(QAbstractSocket::SocketState state) { QAbstractSocket::setSocketState(state); } + qint64 skipData_pub(qint64 maxSize) { return skipData(maxSize); } + qint64 skipData_pub_parent(qint64 maxSize) { return QAbstractSocket::skipData(maxSize); } + public: + const QAbstractSocketType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QAbstractSocketType::cachedInstance(const QAbstractSocketType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QAbstractSocketType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QAbstractSpinBoxType.h b/src/lib/mu/MuQt6/MuQt6/QAbstractSpinBoxType.h new file mode 100644 index 000000000..2ba1991f5 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QAbstractSpinBoxType.h @@ -0,0 +1,173 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QAbstractSpinBoxType__h__ +#define __MuQt6__QAbstractSpinBoxType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QAbstractSpinBox; + +class QAbstractSpinBoxType : public Class +{ + public: + + typedef MuQt_QAbstractSpinBox MuQtType; + typedef QAbstractSpinBox QtType; + + // + // Constructors + // + + QAbstractSpinBoxType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QAbstractSpinBoxType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[33]; +}; + +// Inheritable object + +class MuQt_QAbstractSpinBox : public QAbstractSpinBox +{ + public: + virtual ~MuQt_QAbstractSpinBox(); + MuQt_QAbstractSpinBox(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual void stepBy(int steps) ; + virtual bool event(QEvent * event_) ; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + protected: + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + QLineEdit * lineEdit_pub() const { return lineEdit(); } + QLineEdit * lineEdit_pub_parent() const { return QAbstractSpinBox::lineEdit(); } + void setLineEdit_pub(QLineEdit * lineEdit) { setLineEdit(lineEdit); } + void setLineEdit_pub_parent(QLineEdit * lineEdit) { QAbstractSpinBox::setLineEdit(lineEdit); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QAbstractSpinBox::changeEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QAbstractSpinBox::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QAbstractSpinBox::contextMenuEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QAbstractSpinBox::focusInEvent(event); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QAbstractSpinBox::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QAbstractSpinBox::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QAbstractSpinBox::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QAbstractSpinBox::keyReleaseEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QAbstractSpinBox::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QAbstractSpinBox::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QAbstractSpinBox::mouseReleaseEvent(event); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QAbstractSpinBox::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QAbstractSpinBox::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QAbstractSpinBox::showEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QAbstractSpinBox::timerEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QAbstractSpinBox::wheelEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QAbstractSpinBox::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QAbstractSpinBox::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QAbstractSpinBox::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QAbstractSpinBox::dropEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QAbstractSpinBox::focusNextPrevChild(next); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QAbstractSpinBox::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QAbstractSpinBox::mouseDoubleClickEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QAbstractSpinBox::moveEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QAbstractSpinBox::tabletEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QAbstractSpinBox::metric(m); } + public: + const QAbstractSpinBoxType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QAbstractSpinBoxType::cachedInstance(const QAbstractSpinBoxType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QAbstractSpinBoxType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QAbstractTableModelType.h b/src/lib/mu/MuQt6/MuQt6/QAbstractTableModelType.h new file mode 100644 index 000000000..eb99a3b68 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QAbstractTableModelType.h @@ -0,0 +1,108 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QAbstractTableModelType__h__ +#define __MuQt6__QAbstractTableModelType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QAbstractTableModel; + +class QAbstractTableModelType : public Class +{ + public: + + typedef MuQt_QAbstractTableModel MuQtType; + typedef QAbstractTableModel QtType; + + // + // Constructors + // + + QAbstractTableModelType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QAbstractTableModelType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[28]; +}; + +// Inheritable object + +class MuQt_QAbstractTableModel : public QAbstractTableModel +{ + public: + virtual ~MuQt_QAbstractTableModel(); + MuQt_QAbstractTableModel(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) ; + virtual Qt::ItemFlags flags(const QModelIndex & index) const; + virtual QModelIndex index(int row, int column, const QModelIndex & parent) const; + virtual QModelIndex sibling(int row, int column, const QModelIndex & idx) const; + virtual QModelIndex buddy(const QModelIndex & index) const; + virtual bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const; + virtual bool canFetchMore(const QModelIndex & parent) const; + virtual bool clearItemData(const QModelIndex & index) ; + virtual int columnCount(const QModelIndex & parent) const ; + virtual QVariant data(const QModelIndex & index, int role) const ; + virtual void fetchMore(const QModelIndex & parent) ; + virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; + virtual bool insertColumns(int column, int count, const QModelIndex & parent) ; + virtual bool insertRows(int row, int count, const QModelIndex & parent) ; + virtual QModelIndexList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const; + virtual QMimeData * mimeData(const QModelIndexList & indexes) const; + virtual QStringList mimeTypes() const; + virtual bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) ; + virtual bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) ; + virtual bool removeColumns(int column, int count, const QModelIndex & parent) ; + virtual bool removeRows(int row, int count, const QModelIndex & parent) ; + virtual int rowCount(const QModelIndex & parent) const ; + virtual bool setData(const QModelIndex & index, const QVariant & value, int role) ; + virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) ; + virtual void sort(int column, Qt::SortOrder order) ; + virtual QSize span(const QModelIndex & index) const; + virtual Qt::DropActions supportedDragActions() const; + virtual Qt::DropActions supportedDropActions() const; + public: + const QAbstractTableModelType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QAbstractTableModelType::cachedInstance(const QAbstractTableModelType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QAbstractTableModelType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QActionGroupType.h b/src/lib/mu/MuQt6/MuQt6/QActionGroupType.h new file mode 100644 index 000000000..9186f7870 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QActionGroupType.h @@ -0,0 +1,90 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QActionGroupType__h__ +#define __MuQt6__QActionGroupType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QActionGroup; + +class QActionGroupType : public Class +{ + public: + + typedef MuQt_QActionGroup MuQtType; + typedef QActionGroup QtType; + + // + // Constructors + // + + QActionGroupType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QActionGroupType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QActionGroup : public QActionGroup +{ + public: + virtual ~MuQt_QActionGroup(); + MuQt_QActionGroup(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QActionGroup::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QActionGroup::timerEvent(event); } + public: + const QActionGroupType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QActionGroupType::cachedInstance(const QActionGroupType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QActionGroupType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QActionType.h b/src/lib/mu/MuQt6/MuQt6/QActionType.h new file mode 100644 index 000000000..51912234c --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QActionType.h @@ -0,0 +1,96 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QActionType__h__ +#define __MuQt6__QActionType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QAction; + +class QActionType : public Class +{ + public: + + typedef MuQt_QAction MuQtType; + typedef QAction QtType; + + // + // Constructors + // + + QActionType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QActionType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QAction : public QAction +{ + public: + virtual ~MuQt_QAction(); + MuQt_QAction(Pointer muobj, const CallEnvironment*, QObject * parent) ; + MuQt_QAction(Pointer muobj, const CallEnvironment*, const QString & text, QObject * parent) ; + MuQt_QAction(Pointer muobj, const CallEnvironment*, const QIcon & icon, const QString & text, QObject * parent) ; + protected: + virtual bool event(QEvent * e) ; + public: + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QAction::event(e); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QAction::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QAction::timerEvent(event); } + public: + const QActionType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QActionType::cachedInstance(const QActionType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QActionType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QApplicationType.h b/src/lib/mu/MuQt6/MuQt6/QApplicationType.h new file mode 100644 index 000000000..8874ee7f2 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QApplicationType.h @@ -0,0 +1,85 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QApplicationType__h__ +#define __MuQt6__QApplicationType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QApplication; + +class QApplicationType : public Class +{ + public: + + typedef MuQt_QApplication MuQtType; + typedef QApplication QtType; + + // + // Constructors + // + + QApplicationType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QApplicationType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[2]; +}; + +// Inheritable object + +class MuQt_QApplication : public QApplication +{ + public: + virtual ~MuQt_QApplication(); + virtual bool notify(QObject * receiver, QEvent * e) ; + protected: + virtual bool event(QEvent * e) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QApplication::event(e); } + public: + const QApplicationType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QApplicationType::cachedInstance(const QApplicationType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QApplicationType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QBitmapType.h b/src/lib/mu/MuQt6/MuQt6/QBitmapType.h new file mode 100644 index 000000000..42b2619f2 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QBitmapType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QBitmapType__h__ +#define __MuQt5__QBitmapType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QBitmapType : public Class +{ + public: + // + // Types + // + + typedef QBitmap ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QBitmap value; + }; + + // + // Constructors + // + + QBitmapType(Context* context, const char* name, Class* superClass = 0); + virtual ~QBitmapType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QBitmapType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QBoxLayoutType.h b/src/lib/mu/MuQt6/MuQt6/QBoxLayoutType.h new file mode 100644 index 000000000..90549fb76 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QBoxLayoutType.h @@ -0,0 +1,101 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QBoxLayoutType__h__ +#define __MuQt6__QBoxLayoutType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QBoxLayout; + +class QBoxLayoutType : public Class +{ + public: + + typedef MuQt_QBoxLayout MuQtType; + typedef QBoxLayout QtType; + + // + // Constructors + // + + QBoxLayoutType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QBoxLayoutType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[21]; +}; + +// Inheritable object + +class MuQt_QBoxLayout : public QBoxLayout +{ + public: + virtual ~MuQt_QBoxLayout(); + MuQt_QBoxLayout(Pointer muobj, const CallEnvironment*, QBoxLayout::Direction dir, QWidget * parent) ; + virtual void addItem(QLayoutItem * item) ; + virtual int count() const; + virtual Qt::Orientations expandingDirections() const; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual void invalidate() ; + virtual QLayoutItem * itemAt(int index) const; + virtual QSize maximumSize() const; + virtual int minimumHeightForWidth(int w) const; + virtual QSize minimumSize() const; + virtual void setGeometry(const QRect & r) ; + virtual void setSpacing(int spacing) ; + virtual QSize sizeHint() const; + virtual int spacing() const; + virtual QLayoutItem * takeAt(int index) ; + virtual int indexOf(const QWidget * widget) const; + virtual QLayoutItem * replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options) ; + virtual QSizePolicy::ControlTypes controlTypes() const; + virtual QRect geometry() const; + virtual bool isEmpty() const; + virtual QLayout * layout() ; + public: + const QBoxLayoutType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QBoxLayoutType::cachedInstance(const QBoxLayoutType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QBoxLayoutType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QBrushType.h b/src/lib/mu/MuQt6/MuQt6/QBrushType.h new file mode 100644 index 000000000..38f12b0d4 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QBrushType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QBrushType__h__ +#define __MuQt5__QBrushType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QBrushType : public Class +{ + public: + // + // Types + // + + typedef QBrush ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QBrush value; + }; + + // + // Constructors + // + + QBrushType(Context* context, const char* name, Class* superClass = 0); + virtual ~QBrushType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QBrushType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QButtonGroupType.h b/src/lib/mu/MuQt6/MuQt6/QButtonGroupType.h new file mode 100644 index 000000000..bd7f0a6c2 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QButtonGroupType.h @@ -0,0 +1,90 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QButtonGroupType__h__ +#define __MuQt6__QButtonGroupType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QButtonGroup; + +class QButtonGroupType : public Class +{ + public: + + typedef MuQt_QButtonGroup MuQtType; + typedef QButtonGroup QtType; + + // + // Constructors + // + + QButtonGroupType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QButtonGroupType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QButtonGroup : public QButtonGroup +{ + public: + virtual ~MuQt_QButtonGroup(); + MuQt_QButtonGroup(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QButtonGroup::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QButtonGroup::timerEvent(event); } + public: + const QButtonGroupType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QButtonGroupType::cachedInstance(const QButtonGroupType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QButtonGroupType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QByteArrayType.h b/src/lib/mu/MuQt6/MuQt6/QByteArrayType.h new file mode 100644 index 000000000..990a3320f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QByteArrayType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QByteArrayType__h__ +#define __MuQt5__QByteArrayType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QByteArrayType : public Class +{ + public: + // + // Types + // + + typedef QByteArray ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QByteArray value; + }; + + // + // Constructors + // + + QByteArrayType(Context* context, const char* name, Class* superClass = 0); + virtual ~QByteArrayType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QByteArrayType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QCheckBoxType.h b/src/lib/mu/MuQt6/MuQt6/QCheckBoxType.h new file mode 100644 index 000000000..66f90c223 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QCheckBoxType.h @@ -0,0 +1,127 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QCheckBoxType__h__ +#define __MuQt6__QCheckBoxType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QCheckBox; + +class QCheckBoxType : public Class +{ + public: + + typedef MuQt_QCheckBox MuQtType; + typedef QCheckBox QtType; + + // + // Constructors + // + + QCheckBoxType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QCheckBoxType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[16]; +}; + +// Inheritable object + +class MuQt_QCheckBox : public QCheckBox +{ + public: + virtual ~MuQt_QCheckBox(); + MuQt_QCheckBox(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QCheckBox(Pointer muobj, const CallEnvironment*, const QString & text, QWidget * parent) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void checkStateSet() ; + virtual bool event(QEvent * e) ; + virtual bool hitButton(const QPoint & pos) const; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void nextCheckState() ; + virtual void paintEvent(QPaintEvent * _p14) ; + virtual void changeEvent(QEvent * e) ; + virtual void focusInEvent(QFocusEvent * e) ; + virtual void focusOutEvent(QFocusEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void timerEvent(QTimerEvent * e) ; + public: + void checkStateSet_pub() { checkStateSet(); } + void checkStateSet_pub_parent() { QCheckBox::checkStateSet(); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QCheckBox::event(e); } + bool hitButton_pub(const QPoint & pos) const { return hitButton(pos); } + bool hitButton_pub_parent(const QPoint & pos) const { return QCheckBox::hitButton(pos); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QCheckBox::mouseMoveEvent(e); } + void nextCheckState_pub() { nextCheckState(); } + void nextCheckState_pub_parent() { QCheckBox::nextCheckState(); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QCheckBox::paintEvent(_p14); } + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QCheckBox::changeEvent(e); } + void focusInEvent_pub(QFocusEvent * e) { focusInEvent(e); } + void focusInEvent_pub_parent(QFocusEvent * e) { QCheckBox::focusInEvent(e); } + void focusOutEvent_pub(QFocusEvent * e) { focusOutEvent(e); } + void focusOutEvent_pub_parent(QFocusEvent * e) { QCheckBox::focusOutEvent(e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QCheckBox::keyPressEvent(e); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QCheckBox::keyReleaseEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QCheckBox::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QCheckBox::mouseReleaseEvent(e); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QCheckBox::timerEvent(e); } + public: + const QCheckBoxType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QCheckBoxType::cachedInstance(const QCheckBoxType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QCheckBoxType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QClipboardType.h b/src/lib/mu/MuQt6/MuQt6/QClipboardType.h new file mode 100644 index 000000000..730909d3e --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QClipboardType.h @@ -0,0 +1,68 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QClipboardType__h__ +#define __MuQt6__QClipboardType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QClipboardType : public Class +{ + public: + + typedef QClipboard MuQt_QClipboard; + typedef MuQt_QClipboard MuQtType; + typedef QClipboard QtType; + + // + // Constructors + // + + QClipboardType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QClipboardType(); + + static bool isInheritable() { return false; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + + +inline ClassInstance* QClipboardType::cachedInstance(const QClipboardType::MuQtType* obj) { return 0; } + +} // Mu + +#endif // __MuQt__QClipboardType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QCloseEventType.h b/src/lib/mu/MuQt6/MuQt6/QCloseEventType.h new file mode 100644 index 000000000..94ac33d20 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QCloseEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QCloseEventType__h__ +#define __MuQt5__QCloseEventType__h__ +#include +#include + +namespace Mu { + +class QCloseEventType : public Class +{ + public: + // + // Types + // + + typedef QCloseEvent ValueType; + + struct Struct + { + QCloseEvent* object; + }; + + // + // Constructors + // + + QCloseEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QCloseEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QCloseEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QColorDialogType.h b/src/lib/mu/MuQt6/MuQt6/QColorDialogType.h new file mode 100644 index 000000000..485307ed2 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QColorDialogType.h @@ -0,0 +1,112 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QColorDialogType__h__ +#define __MuQt6__QColorDialogType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QColorDialog; + +class QColorDialogType : public Class +{ + public: + + typedef MuQt_QColorDialog MuQtType; + typedef QColorDialog QtType; + + // + // Constructors + // + + QColorDialogType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QColorDialogType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[11]; +}; + +// Inheritable object + +class MuQt_QColorDialog : public QColorDialog +{ + public: + virtual ~MuQt_QColorDialog(); + MuQt_QColorDialog(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QColorDialog(Pointer muobj, const CallEnvironment*, const QColor & initial, QWidget * parent) ; + virtual void setVisible(bool visible) ; + protected: + virtual void changeEvent(QEvent * e) ; + virtual void done(int result) ; + public: + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void closeEvent(QCloseEvent * e) ; + virtual void contextMenuEvent(QContextMenuEvent * e) ; + virtual bool eventFilter(QObject * o, QEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void resizeEvent(QResizeEvent * _p15) ; + virtual void showEvent(QShowEvent * event) ; + public: + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QColorDialog::changeEvent(e); } + void done_pub(int result) { done(result); } + void done_pub_parent(int result) { QColorDialog::done(result); } + void closeEvent_pub(QCloseEvent * e) { closeEvent(e); } + void closeEvent_pub_parent(QCloseEvent * e) { QColorDialog::closeEvent(e); } + void contextMenuEvent_pub(QContextMenuEvent * e) { contextMenuEvent(e); } + void contextMenuEvent_pub_parent(QContextMenuEvent * e) { QColorDialog::contextMenuEvent(e); } + bool eventFilter_pub(QObject * o, QEvent * e) { return eventFilter(o, e); } + bool eventFilter_pub_parent(QObject * o, QEvent * e) { return QColorDialog::eventFilter(o, e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QColorDialog::keyPressEvent(e); } + void resizeEvent_pub(QResizeEvent * _p15) { resizeEvent(_p15); } + void resizeEvent_pub_parent(QResizeEvent * _p15) { QColorDialog::resizeEvent(_p15); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QColorDialog::showEvent(event); } + public: + const QColorDialogType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QColorDialogType::cachedInstance(const QColorDialogType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QColorDialogType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QColorType.h b/src/lib/mu/MuQt6/MuQt6/QColorType.h new file mode 100644 index 000000000..4f622d191 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QColorType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QColorType__h__ +#define __MuQt5__QColorType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QColorType : public Class +{ + public: + // + // Types + // + + typedef QColor ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QColor value; + }; + + // + // Constructors + // + + QColorType(Context* context, const char* name, Class* superClass = 0); + virtual ~QColorType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QColorType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QColumnViewType.h b/src/lib/mu/MuQt6/MuQt6/QColumnViewType.h new file mode 100644 index 000000000..5aa151462 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QColumnViewType.h @@ -0,0 +1,191 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QColumnViewType__h__ +#define __MuQt6__QColumnViewType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QColumnView; + +class QColumnViewType : public Class +{ + public: + + typedef MuQt_QColumnView MuQtType; + typedef QColumnView QtType; + + // + // Constructors + // + + QColumnViewType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QColumnViewType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[43]; +}; + +// Inheritable object + +class MuQt_QColumnView : public QColumnView +{ + public: + virtual ~MuQt_QColumnView(); + MuQt_QColumnView(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual QModelIndex indexAt(const QPoint & point) const; + virtual void scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) ; + virtual void selectAll() ; + virtual void setModel(QAbstractItemModel * model) ; + virtual void setRootIndex(const QModelIndex & index) ; + virtual void setSelectionModel(QItemSelectionModel * newSelectionModel) ; + virtual QSize sizeHint() const; + virtual QRect visualRect(const QModelIndex & index) const; + protected: + virtual QAbstractItemView * createColumn(const QModelIndex & index) ; + virtual void currentChanged(const QModelIndex & current, const QModelIndex & previous) ; + virtual int horizontalOffset() const; + virtual bool isIndexHidden(const QModelIndex & index) const; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void rowsInserted(const QModelIndex & parent, int start, int end) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) ; + virtual int verticalOffset() const; + virtual QRegion visualRegionForSelection(const QItemSelection & selection) const; + public: + virtual void keyboardSearch(const QString & search) ; + virtual int sizeHintForColumn(int column) const; + virtual int sizeHintForRow(int row) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual bool edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) ; + virtual QModelIndexList selectedIndexes() const; + virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex & index, const QEvent * event) const; + virtual void startDrag(Qt::DropActions supportedActions) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual bool eventFilter(QObject * object, QEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + virtual bool viewportEvent(QEvent * event) ; + virtual QSize viewportSizeHint() const; + public: + QAbstractItemView * createColumn_pub(const QModelIndex & index) { return createColumn(index); } + QAbstractItemView * createColumn_pub_parent(const QModelIndex & index) { return QColumnView::createColumn(index); } + void initializeColumn_pub(QAbstractItemView * column) const { initializeColumn(column); } + void initializeColumn_pub_parent(QAbstractItemView * column) const { QColumnView::initializeColumn(column); } + void currentChanged_pub(const QModelIndex & current, const QModelIndex & previous) { currentChanged(current, previous); } + void currentChanged_pub_parent(const QModelIndex & current, const QModelIndex & previous) { QColumnView::currentChanged(current, previous); } + int horizontalOffset_pub() const { return horizontalOffset(); } + int horizontalOffset_pub_parent() const { return QColumnView::horizontalOffset(); } + bool isIndexHidden_pub(const QModelIndex & index) const { return isIndexHidden(index); } + bool isIndexHidden_pub_parent(const QModelIndex & index) const { return QColumnView::isIndexHidden(index); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QColumnView::resizeEvent(event); } + void rowsInserted_pub(const QModelIndex & parent, int start, int end) { rowsInserted(parent, start, end); } + void rowsInserted_pub_parent(const QModelIndex & parent, int start, int end) { QColumnView::rowsInserted(parent, start, end); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QColumnView::scrollContentsBy(dx, dy); } + void setSelection_pub(const QRect & rect, QItemSelectionModel::SelectionFlags command) { setSelection(rect, command); } + void setSelection_pub_parent(const QRect & rect, QItemSelectionModel::SelectionFlags command) { QColumnView::setSelection(rect, command); } + int verticalOffset_pub() const { return verticalOffset(); } + int verticalOffset_pub_parent() const { return QColumnView::verticalOffset(); } + QRegion visualRegionForSelection_pub(const QItemSelection & selection) const { return visualRegionForSelection(selection); } + QRegion visualRegionForSelection_pub_parent(const QItemSelection & selection) const { return QColumnView::visualRegionForSelection(selection); } + bool edit_pub(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return edit(index, trigger, event); } + bool edit_pub_parent(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return QColumnView::edit(index, trigger, event); } + QModelIndexList selectedIndexes_pub() const { return selectedIndexes(); } + QModelIndexList selectedIndexes_pub_parent() const { return QColumnView::selectedIndexes(); } + QItemSelectionModel::SelectionFlags selectionCommand_pub(const QModelIndex & index, const QEvent * event) const { return selectionCommand(index, event); } + QItemSelectionModel::SelectionFlags selectionCommand_pub_parent(const QModelIndex & index, const QEvent * event) const { return QColumnView::selectionCommand(index, event); } + void startDrag_pub(Qt::DropActions supportedActions) { startDrag(supportedActions); } + void startDrag_pub_parent(Qt::DropActions supportedActions) { QColumnView::startDrag(supportedActions); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QColumnView::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QColumnView::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QColumnView::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QColumnView::dropEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QColumnView::event(event_); } + bool eventFilter_pub(QObject * object, QEvent * event) { return eventFilter(object, event); } + bool eventFilter_pub_parent(QObject * object, QEvent * event) { return QColumnView::eventFilter(object, event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QColumnView::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QColumnView::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QColumnView::focusOutEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QColumnView::keyPressEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QColumnView::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QColumnView::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QColumnView::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QColumnView::mouseReleaseEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QColumnView::timerEvent(event); } + bool viewportEvent_pub(QEvent * event) { return viewportEvent(event); } + bool viewportEvent_pub_parent(QEvent * event) { return QColumnView::viewportEvent(event); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QColumnView::viewportSizeHint(); } + public: + const QColumnViewType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QColumnViewType::cachedInstance(const QColumnViewType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QColumnViewType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QComboBoxType.h b/src/lib/mu/MuQt6/MuQt6/QComboBoxType.h new file mode 100644 index 000000000..1d83b6cb5 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QComboBoxType.h @@ -0,0 +1,168 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QComboBoxType__h__ +#define __MuQt6__QComboBoxType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QComboBox; + +class QComboBoxType : public Class +{ + public: + + typedef MuQt_QComboBox MuQtType; + typedef QComboBox QtType; + + // + // Constructors + // + + QComboBoxType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QComboBoxType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[34]; +}; + +// Inheritable object + +class MuQt_QComboBox : public QComboBox +{ + public: + virtual ~MuQt_QComboBox(); + MuQt_QComboBox(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual void hidePopup() ; + virtual void setModel(QAbstractItemModel * model) ; + virtual void showPopup() ; + virtual bool event(QEvent * event_) ; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * e) ; + virtual void contextMenuEvent(QContextMenuEvent * e) ; + virtual void focusInEvent(QFocusEvent * e) ; + virtual void focusOutEvent(QFocusEvent * e) ; + virtual void hideEvent(QHideEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * e) ; + virtual void resizeEvent(QResizeEvent * e) ; + virtual void showEvent(QShowEvent * e) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QComboBox::changeEvent(e); } + void contextMenuEvent_pub(QContextMenuEvent * e) { contextMenuEvent(e); } + void contextMenuEvent_pub_parent(QContextMenuEvent * e) { QComboBox::contextMenuEvent(e); } + void focusInEvent_pub(QFocusEvent * e) { focusInEvent(e); } + void focusInEvent_pub_parent(QFocusEvent * e) { QComboBox::focusInEvent(e); } + void focusOutEvent_pub(QFocusEvent * e) { focusOutEvent(e); } + void focusOutEvent_pub_parent(QFocusEvent * e) { QComboBox::focusOutEvent(e); } + void hideEvent_pub(QHideEvent * e) { hideEvent(e); } + void hideEvent_pub_parent(QHideEvent * e) { QComboBox::hideEvent(e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QComboBox::keyPressEvent(e); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QComboBox::keyReleaseEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QComboBox::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QComboBox::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * e) { paintEvent(e); } + void paintEvent_pub_parent(QPaintEvent * e) { QComboBox::paintEvent(e); } + void resizeEvent_pub(QResizeEvent * e) { resizeEvent(e); } + void resizeEvent_pub_parent(QResizeEvent * e) { QComboBox::resizeEvent(e); } + void showEvent_pub(QShowEvent * e) { showEvent(e); } + void showEvent_pub_parent(QShowEvent * e) { QComboBox::showEvent(e); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QComboBox::wheelEvent(e); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QComboBox::closeEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QComboBox::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QComboBox::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QComboBox::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QComboBox::dropEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QComboBox::focusNextPrevChild(next); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QComboBox::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QComboBox::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QComboBox::mouseMoveEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QComboBox::moveEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QComboBox::tabletEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QComboBox::metric(m); } + public: + const QComboBoxType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QComboBoxType::cachedInstance(const QComboBoxType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QComboBoxType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QCompleterType.h b/src/lib/mu/MuQt6/MuQt6/QCompleterType.h new file mode 100644 index 000000000..15d9d8642 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QCompleterType.h @@ -0,0 +1,98 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QCompleterType__h__ +#define __MuQt6__QCompleterType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QCompleter; + +class QCompleterType : public Class +{ + public: + + typedef MuQt_QCompleter MuQtType; + typedef QCompleter QtType; + + // + // Constructors + // + + QCompleterType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QCompleterType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[6]; +}; + +// Inheritable object + +class MuQt_QCompleter : public QCompleter +{ + public: + virtual ~MuQt_QCompleter(); + MuQt_QCompleter(Pointer muobj, const CallEnvironment*, QObject * parent) ; + MuQt_QCompleter(Pointer muobj, const CallEnvironment*, QAbstractItemModel * model, QObject * parent) ; + MuQt_QCompleter(Pointer muobj, const CallEnvironment*, const QStringList & list, QObject * parent) ; + virtual QString pathFromIndex(const QModelIndex & index) const; + virtual QStringList splitPath(const QString & path) const; + protected: + virtual bool event(QEvent * ev) ; + virtual bool eventFilter(QObject * o, QEvent * e) ; + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + bool event_pub(QEvent * ev) { return event(ev); } + bool event_pub_parent(QEvent * ev) { return QCompleter::event(ev); } + bool eventFilter_pub(QObject * o, QEvent * e) { return eventFilter(o, e); } + bool eventFilter_pub_parent(QObject * o, QEvent * e) { return QCompleter::eventFilter(o, e); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QCompleter::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QCompleter::timerEvent(event); } + public: + const QCompleterType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QCompleterType::cachedInstance(const QCompleterType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QCompleterType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QConicalGradientType.h b/src/lib/mu/MuQt6/MuQt6/QConicalGradientType.h new file mode 100644 index 000000000..364ec71bc --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QConicalGradientType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QConicalGradientType__h__ +#define __MuQt5__QConicalGradientType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QConicalGradientType : public Class +{ + public: + // + // Types + // + + typedef QConicalGradient ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QConicalGradient value; + }; + + // + // Constructors + // + + QConicalGradientType(Context* context, const char* name, Class* superClass = 0); + virtual ~QConicalGradientType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QConicalGradientType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QContextMenuEventType.h b/src/lib/mu/MuQt6/MuQt6/QContextMenuEventType.h new file mode 100644 index 000000000..910696e77 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QContextMenuEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QContextMenuEventType__h__ +#define __MuQt5__QContextMenuEventType__h__ +#include +#include + +namespace Mu { + +class QContextMenuEventType : public Class +{ + public: + // + // Types + // + + typedef QContextMenuEvent ValueType; + + struct Struct + { + QContextMenuEvent* object; + }; + + // + // Constructors + // + + QContextMenuEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QContextMenuEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QContextMenuEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QCoreApplicationType.h b/src/lib/mu/MuQt6/MuQt6/QCoreApplicationType.h new file mode 100644 index 000000000..1659d1ab5 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QCoreApplicationType.h @@ -0,0 +1,94 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QCoreApplicationType__h__ +#define __MuQt6__QCoreApplicationType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QCoreApplication; + +class QCoreApplicationType : public Class +{ + public: + + typedef MuQt_QCoreApplication MuQtType; + typedef QCoreApplication QtType; + + // + // Constructors + // + + QCoreApplicationType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QCoreApplicationType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[5]; +}; + +// Inheritable object + +class MuQt_QCoreApplication : public QCoreApplication +{ + public: + virtual ~MuQt_QCoreApplication(); + virtual bool notify(QObject * receiver, QEvent * event) ; + protected: + virtual bool event(QEvent * e) ; + public: + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QCoreApplication::event(e); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QCoreApplication::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QCoreApplication::timerEvent(event); } + public: + const QCoreApplicationType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QCoreApplicationType::cachedInstance(const QCoreApplicationType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QCoreApplicationType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QCursorType.h b/src/lib/mu/MuQt6/MuQt6/QCursorType.h new file mode 100644 index 000000000..9ad42b683 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QCursorType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QCursorType__h__ +#define __MuQt5__QCursorType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QCursorType : public Class +{ + public: + // + // Types + // + + typedef QCursor ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QCursor value; + }; + + // + // Constructors + // + + QCursorType(Context* context, const char* name, Class* superClass = 0); + virtual ~QCursorType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QCursorType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QDateTimeType.h b/src/lib/mu/MuQt6/MuQt6/QDateTimeType.h new file mode 100644 index 000000000..723ef6f8e --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QDateTimeType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QDateTimeType__h__ +#define __MuQt5__QDateTimeType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QDateTimeType : public Class +{ + public: + // + // Types + // + + typedef QDateTime ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QDateTime value; + }; + + // + // Constructors + // + + QDateTimeType(Context* context, const char* name, Class* superClass = 0); + virtual ~QDateTimeType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QDateTimeType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QDateType.h b/src/lib/mu/MuQt6/MuQt6/QDateType.h new file mode 100644 index 000000000..ab646a951 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QDateType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QDateType__h__ +#define __MuQt5__QDateType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QDateType : public Class +{ + public: + // + // Types + // + + typedef QDate ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QDate value; + }; + + // + // Constructors + // + + QDateType(Context* context, const char* name, Class* superClass = 0); + virtual ~QDateType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QDateType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QDialType.h b/src/lib/mu/MuQt6/MuQt6/QDialType.h new file mode 100644 index 000000000..afda52667 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QDialType.h @@ -0,0 +1,114 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QDialType__h__ +#define __MuQt6__QDialType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QDial; + +class QDialType : public Class +{ + public: + + typedef MuQt_QDial MuQtType; + typedef QDial QtType; + + // + // Constructors + // + + QDialType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QDialType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[12]; +}; + +// Inheritable object + +class MuQt_QDial : public QDial +{ + public: + virtual ~MuQt_QDial(); + MuQt_QDial(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual bool event(QEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * pe) ; + virtual void resizeEvent(QResizeEvent * e) ; + virtual void changeEvent(QEvent * ev) ; + virtual void keyPressEvent(QKeyEvent * ev) ; + virtual void timerEvent(QTimerEvent * e) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QDial::event(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QDial::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QDial::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QDial::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * pe) { paintEvent(pe); } + void paintEvent_pub_parent(QPaintEvent * pe) { QDial::paintEvent(pe); } + void resizeEvent_pub(QResizeEvent * e) { resizeEvent(e); } + void resizeEvent_pub_parent(QResizeEvent * e) { QDial::resizeEvent(e); } + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QDial::changeEvent(ev); } + void keyPressEvent_pub(QKeyEvent * ev) { keyPressEvent(ev); } + void keyPressEvent_pub_parent(QKeyEvent * ev) { QDial::keyPressEvent(ev); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QDial::timerEvent(e); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QDial::wheelEvent(e); } + public: + const QDialType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QDialType::cachedInstance(const QDialType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QDialType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QDialogType.h b/src/lib/mu/MuQt6/MuQt6/QDialogType.h new file mode 100644 index 000000000..25e1e9702 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QDialogType.h @@ -0,0 +1,171 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QDialogType__h__ +#define __MuQt6__QDialogType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QDialog; + +class QDialogType : public Class +{ + public: + + typedef MuQt_QDialog MuQtType; + typedef QDialog QtType; + + // + // Constructors + // + + QDialogType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QDialogType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[33]; +}; + +// Inheritable object + +class MuQt_QDialog : public QDialog +{ + public: + virtual ~MuQt_QDialog(); + MuQt_QDialog(Pointer muobj, const CallEnvironment*, QWidget * parent, Qt::WindowFlags f) ; + virtual QSize minimumSizeHint() const; + virtual void setVisible(bool visible) ; + virtual QSize sizeHint() const; + protected: + virtual void closeEvent(QCloseEvent * e) ; + virtual void contextMenuEvent(QContextMenuEvent * e) ; + virtual bool eventFilter(QObject * o, QEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void resizeEvent(QResizeEvent * _p15) ; + virtual void showEvent(QShowEvent * event) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void closeEvent_pub(QCloseEvent * e) { closeEvent(e); } + void closeEvent_pub_parent(QCloseEvent * e) { QDialog::closeEvent(e); } + void contextMenuEvent_pub(QContextMenuEvent * e) { contextMenuEvent(e); } + void contextMenuEvent_pub_parent(QContextMenuEvent * e) { QDialog::contextMenuEvent(e); } + bool eventFilter_pub(QObject * o, QEvent * e) { return eventFilter(o, e); } + bool eventFilter_pub_parent(QObject * o, QEvent * e) { return QDialog::eventFilter(o, e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QDialog::keyPressEvent(e); } + void resizeEvent_pub(QResizeEvent * _p15) { resizeEvent(_p15); } + void resizeEvent_pub_parent(QResizeEvent * _p15) { QDialog::resizeEvent(_p15); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QDialog::showEvent(event); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QDialog::changeEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QDialog::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QDialog::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QDialog::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QDialog::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QDialog::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QDialog::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QDialog::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QDialog::hideEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QDialog::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QDialog::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QDialog::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QDialog::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QDialog::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QDialog::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QDialog::moveEvent(event); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QDialog::paintEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QDialog::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QDialog::wheelEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QDialog::event(event_); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QDialog::metric(m); } + public: + const QDialogType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QDialogType::cachedInstance(const QDialogType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QDialogType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QDirType.h b/src/lib/mu/MuQt6/MuQt6/QDirType.h new file mode 100644 index 000000000..5eb491bc4 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QDirType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QDirType__h__ +#define __MuQt5__QDirType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QDirType : public Class +{ + public: + // + // Types + // + + typedef QDir ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QDir value; + }; + + // + // Constructors + // + + QDirType(Context* context, const char* name, Class* superClass = 0); + virtual ~QDirType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QDirType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QDockWidgetType.h b/src/lib/mu/MuQt6/MuQt6/QDockWidgetType.h new file mode 100644 index 000000000..0a2157f1f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QDockWidgetType.h @@ -0,0 +1,168 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QDockWidgetType__h__ +#define __MuQt6__QDockWidgetType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QDockWidget; + +class QDockWidgetType : public Class +{ + public: + + typedef MuQt_QDockWidget MuQtType; + typedef QDockWidget QtType; + + // + // Constructors + // + + QDockWidgetType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QDockWidgetType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[31]; +}; + +// Inheritable object + +class MuQt_QDockWidget : public QDockWidget +{ + public: + virtual ~MuQt_QDockWidget(); + MuQt_QDockWidget(Pointer muobj, const CallEnvironment*, const QString & title, QWidget * parent, Qt::WindowFlags flags) ; + MuQt_QDockWidget(Pointer muobj, const CallEnvironment*, QWidget * parent, Qt::WindowFlags flags) ; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void closeEvent(QCloseEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual void paintEvent(QPaintEvent * event) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QDockWidget::changeEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QDockWidget::closeEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QDockWidget::event(event_); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QDockWidget::paintEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QDockWidget::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QDockWidget::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QDockWidget::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QDockWidget::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QDockWidget::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QDockWidget::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QDockWidget::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QDockWidget::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QDockWidget::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QDockWidget::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QDockWidget::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QDockWidget::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QDockWidget::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QDockWidget::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QDockWidget::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QDockWidget::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QDockWidget::moveEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QDockWidget::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QDockWidget::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QDockWidget::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QDockWidget::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QDockWidget::metric(m); } + public: + const QDockWidgetType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QDockWidgetType::cachedInstance(const QDockWidgetType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QDockWidgetType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QDragEnterEventType.h b/src/lib/mu/MuQt6/MuQt6/QDragEnterEventType.h new file mode 100644 index 000000000..8e5224e64 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QDragEnterEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QDragEnterEventType__h__ +#define __MuQt5__QDragEnterEventType__h__ +#include +#include + +namespace Mu { + +class QDragEnterEventType : public Class +{ + public: + // + // Types + // + + typedef QDragEnterEvent ValueType; + + struct Struct + { + QDragEnterEvent* object; + }; + + // + // Constructors + // + + QDragEnterEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QDragEnterEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QDragEnterEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QDragLeaveEventType.h b/src/lib/mu/MuQt6/MuQt6/QDragLeaveEventType.h new file mode 100644 index 000000000..6e2f2d8f8 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QDragLeaveEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QDragLeaveEventType__h__ +#define __MuQt5__QDragLeaveEventType__h__ +#include +#include + +namespace Mu { + +class QDragLeaveEventType : public Class +{ + public: + // + // Types + // + + typedef QDragLeaveEvent ValueType; + + struct Struct + { + QDragLeaveEvent* object; + }; + + // + // Constructors + // + + QDragLeaveEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QDragLeaveEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QDragLeaveEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QDragMoveEventType.h b/src/lib/mu/MuQt6/MuQt6/QDragMoveEventType.h new file mode 100644 index 000000000..47e3dee21 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QDragMoveEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QDragMoveEventType__h__ +#define __MuQt5__QDragMoveEventType__h__ +#include +#include + +namespace Mu { + +class QDragMoveEventType : public Class +{ + public: + // + // Types + // + + typedef QDragMoveEvent ValueType; + + struct Struct + { + QDragMoveEvent* object; + }; + + // + // Constructors + // + + QDragMoveEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QDragMoveEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QDragMoveEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QDropEventType.h b/src/lib/mu/MuQt6/MuQt6/QDropEventType.h new file mode 100644 index 000000000..ca726ed1a --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QDropEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QDropEventType__h__ +#define __MuQt5__QDropEventType__h__ +#include +#include + +namespace Mu { + +class QDropEventType : public Class +{ + public: + // + // Types + // + + typedef QDropEvent ValueType; + + struct Struct + { + QDropEvent* object; + }; + + // + // Constructors + // + + QDropEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QDropEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QDropEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QEventLoopType.h b/src/lib/mu/MuQt6/MuQt6/QEventLoopType.h new file mode 100644 index 000000000..d9d2fea04 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QEventLoopType.h @@ -0,0 +1,90 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QEventLoopType__h__ +#define __MuQt6__QEventLoopType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QEventLoop; + +class QEventLoopType : public Class +{ + public: + + typedef MuQt_QEventLoop MuQtType; + typedef QEventLoop QtType; + + // + // Constructors + // + + QEventLoopType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QEventLoopType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QEventLoop : public QEventLoop +{ + public: + virtual ~MuQt_QEventLoop(); + MuQt_QEventLoop(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual bool event(QEvent * event_) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QEventLoop::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QEventLoop::timerEvent(event); } + public: + const QEventLoopType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QEventLoopType::cachedInstance(const QEventLoopType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QEventLoopType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QEventType.h b/src/lib/mu/MuQt6/MuQt6/QEventType.h new file mode 100644 index 000000000..6c6f56906 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QEventType__h__ +#define __MuQt5__QEventType__h__ +#include +#include + +namespace Mu { + +class QEventType : public Class +{ + public: + // + // Types + // + + typedef QEvent ValueType; + + struct Struct + { + QEvent* object; + }; + + // + // Constructors + // + + QEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QFileDeviceType.h b/src/lib/mu/MuQt6/MuQt6/QFileDeviceType.h new file mode 100644 index 000000000..ef014a0d0 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QFileDeviceType.h @@ -0,0 +1,101 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QFileDeviceType__h__ +#define __MuQt6__QFileDeviceType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QFileDevice; + +class QFileDeviceType : public Class +{ + public: + + typedef MuQt_QFileDevice MuQtType; + typedef QFileDevice QtType; + + // + // Constructors + // + + QFileDeviceType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QFileDeviceType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[18]; +}; + +// Inheritable object + +class MuQt_QFileDevice : public QFileDevice +{ + public: + virtual ~MuQt_QFileDevice(); + virtual QString fileName() const; + virtual QFileDevice::Permissions permissions() const; + virtual bool resize(qint64 sz) ; + virtual bool setPermissions(QFileDevice::Permissions permissions) ; + virtual bool atEnd() const; + virtual void close() ; + virtual bool isSequential() const; + virtual qint64 pos() const; + virtual bool seek(qint64 pos) ; + virtual qint64 size() const; + virtual qint64 bytesAvailable() const; + virtual qint64 bytesToWrite() const; + virtual bool canReadLine() const; + virtual bool open(QIODeviceBase::OpenMode mode) ; + virtual bool reset() ; + virtual bool waitForBytesWritten(int msecs) ; + virtual bool waitForReadyRead(int msecs) ; + protected: + virtual qint64 skipData(qint64 maxSize) ; + public: + qint64 skipData_pub(qint64 maxSize) { return skipData(maxSize); } + qint64 skipData_pub_parent(qint64 maxSize) { return QFileDevice::skipData(maxSize); } + public: + const QFileDeviceType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QFileDeviceType::cachedInstance(const QFileDeviceType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QFileDeviceType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QFileDialogType.h b/src/lib/mu/MuQt6/MuQt6/QFileDialogType.h new file mode 100644 index 000000000..f46b0dfd6 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QFileDialogType.h @@ -0,0 +1,115 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QFileDialogType__h__ +#define __MuQt6__QFileDialogType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QFileDialog; + +class QFileDialogType : public Class +{ + public: + + typedef MuQt_QFileDialog MuQtType; + typedef QFileDialog QtType; + + // + // Constructors + // + + QFileDialogType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QFileDialogType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[12]; +}; + +// Inheritable object + +class MuQt_QFileDialog : public QFileDialog +{ + public: + virtual ~MuQt_QFileDialog(); + MuQt_QFileDialog(Pointer muobj, const CallEnvironment*, QWidget * parent, Qt::WindowFlags flags) ; + MuQt_QFileDialog(Pointer muobj, const CallEnvironment*, QWidget * parent, const QString & caption, const QString & directory, const QString & filter) ; + virtual void setVisible(bool visible) ; + protected: + virtual void accept() ; + virtual void changeEvent(QEvent * e) ; + virtual void done(int result) ; + public: + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void closeEvent(QCloseEvent * e) ; + virtual void contextMenuEvent(QContextMenuEvent * e) ; + virtual bool eventFilter(QObject * o, QEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void resizeEvent(QResizeEvent * _p15) ; + virtual void showEvent(QShowEvent * event) ; + public: + void accept_pub() { accept(); } + void accept_pub_parent() { QFileDialog::accept(); } + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QFileDialog::changeEvent(e); } + void done_pub(int result) { done(result); } + void done_pub_parent(int result) { QFileDialog::done(result); } + void closeEvent_pub(QCloseEvent * e) { closeEvent(e); } + void closeEvent_pub_parent(QCloseEvent * e) { QFileDialog::closeEvent(e); } + void contextMenuEvent_pub(QContextMenuEvent * e) { contextMenuEvent(e); } + void contextMenuEvent_pub_parent(QContextMenuEvent * e) { QFileDialog::contextMenuEvent(e); } + bool eventFilter_pub(QObject * o, QEvent * e) { return eventFilter(o, e); } + bool eventFilter_pub_parent(QObject * o, QEvent * e) { return QFileDialog::eventFilter(o, e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QFileDialog::keyPressEvent(e); } + void resizeEvent_pub(QResizeEvent * _p15) { resizeEvent(_p15); } + void resizeEvent_pub_parent(QResizeEvent * _p15) { QFileDialog::resizeEvent(_p15); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QFileDialog::showEvent(event); } + public: + const QFileDialogType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QFileDialogType::cachedInstance(const QFileDialogType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QFileDialogType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QFileInfoType.h b/src/lib/mu/MuQt6/MuQt6/QFileInfoType.h new file mode 100644 index 000000000..460508caa --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QFileInfoType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QFileInfoType__h__ +#define __MuQt5__QFileInfoType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QFileInfoType : public Class +{ + public: + // + // Types + // + + typedef QFileInfo ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QFileInfo value; + }; + + // + // Constructors + // + + QFileInfoType(Context* context, const char* name, Class* superClass = 0); + virtual ~QFileInfoType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QFileInfoType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QFileOpenEventType.h b/src/lib/mu/MuQt6/MuQt6/QFileOpenEventType.h new file mode 100644 index 000000000..9aedeac5f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QFileOpenEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QFileOpenEventType__h__ +#define __MuQt5__QFileOpenEventType__h__ +#include +#include + +namespace Mu { + +class QFileOpenEventType : public Class +{ + public: + // + // Types + // + + typedef QFileOpenEvent ValueType; + + struct Struct + { + QFileOpenEvent* object; + }; + + // + // Constructors + // + + QFileOpenEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QFileOpenEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QFileOpenEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QFileType.h b/src/lib/mu/MuQt6/MuQt6/QFileType.h new file mode 100644 index 000000000..1389e7705 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QFileType.h @@ -0,0 +1,93 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QFileType__h__ +#define __MuQt6__QFileType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QFile; + +class QFileType : public Class +{ + public: + + typedef MuQt_QFile MuQtType; + typedef QFile QtType; + + // + // Constructors + // + + QFileType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QFileType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[10]; +}; + +// Inheritable object + +class MuQt_QFile : public QFile +{ + public: + virtual ~MuQt_QFile(); + MuQt_QFile(Pointer muobj, const CallEnvironment*) ; + MuQt_QFile(Pointer muobj, const CallEnvironment*, const QString & name) ; + MuQt_QFile(Pointer muobj, const CallEnvironment*, QObject * parent) ; + MuQt_QFile(Pointer muobj, const CallEnvironment*, const QString & name, QObject * parent) ; + virtual QString fileName() const; + virtual bool open(QIODeviceBase::OpenMode mode) ; + virtual QFileDevice::Permissions permissions() const; + virtual bool resize(qint64 sz) ; + virtual qint64 size() const; + virtual bool atEnd() const; + virtual void close() ; + virtual bool isSequential() const; + virtual qint64 pos() const; + virtual bool seek(qint64 pos) ; + public: + const QFileType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QFileType::cachedInstance(const QFileType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QFileType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QFocusEventType.h b/src/lib/mu/MuQt6/MuQt6/QFocusEventType.h new file mode 100644 index 000000000..5a91e6c26 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QFocusEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QFocusEventType__h__ +#define __MuQt5__QFocusEventType__h__ +#include +#include + +namespace Mu { + +class QFocusEventType : public Class +{ + public: + // + // Types + // + + typedef QFocusEvent ValueType; + + struct Struct + { + QFocusEvent* object; + }; + + // + // Constructors + // + + QFocusEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QFocusEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QFocusEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QFontType.h b/src/lib/mu/MuQt6/MuQt6/QFontType.h new file mode 100644 index 000000000..d7b4e7646 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QFontType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QFontType__h__ +#define __MuQt5__QFontType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QFontType : public Class +{ + public: + // + // Types + // + + typedef QFont ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QFont value; + }; + + // + // Constructors + // + + QFontType(Context* context, const char* name, Class* superClass = 0); + virtual ~QFontType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QFontType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QFormLayoutType.h b/src/lib/mu/MuQt6/MuQt6/QFormLayoutType.h new file mode 100644 index 000000000..2b61d027f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QFormLayoutType.h @@ -0,0 +1,100 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QFormLayoutType__h__ +#define __MuQt6__QFormLayoutType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QFormLayout; + +class QFormLayoutType : public Class +{ + public: + + typedef MuQt_QFormLayout MuQtType; + typedef QFormLayout QtType; + + // + // Constructors + // + + QFormLayoutType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QFormLayoutType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[20]; +}; + +// Inheritable object + +class MuQt_QFormLayout : public QFormLayout +{ + public: + virtual ~MuQt_QFormLayout(); + MuQt_QFormLayout(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual void addItem(QLayoutItem * item) ; + virtual int count() const; + virtual Qt::Orientations expandingDirections() const; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int width) const; + virtual void invalidate() ; + virtual QLayoutItem * itemAt(int index) const; + virtual QSize minimumSize() const; + virtual void setGeometry(const QRect & rect) ; + virtual void setSpacing(int spacing) ; + virtual QSize sizeHint() const; + virtual int spacing() const; + virtual QLayoutItem * takeAt(int index) ; + virtual int indexOf(const QWidget * widget) const; + virtual QLayoutItem * replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options) ; + virtual QSizePolicy::ControlTypes controlTypes() const; + virtual QRect geometry() const; + virtual bool isEmpty() const; + virtual QLayout * layout() ; + virtual QSize maximumSize() const; + public: + const QFormLayoutType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QFormLayoutType::cachedInstance(const QFormLayoutType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QFormLayoutType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QFrameType.h b/src/lib/mu/MuQt6/MuQt6/QFrameType.h new file mode 100644 index 000000000..fd9d738ee --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QFrameType.h @@ -0,0 +1,167 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QFrameType__h__ +#define __MuQt6__QFrameType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QFrame; + +class QFrameType : public Class +{ + public: + + typedef MuQt_QFrame MuQtType; + typedef QFrame QtType; + + // + // Constructors + // + + QFrameType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QFrameType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[31]; +}; + +// Inheritable object + +class MuQt_QFrame : public QFrame +{ + public: + virtual ~MuQt_QFrame(); + MuQt_QFrame(Pointer muobj, const CallEnvironment*, QWidget * parent, Qt::WindowFlags f) ; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * ev) ; + virtual bool event(QEvent * e) ; + virtual void paintEvent(QPaintEvent * _p14) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QFrame::changeEvent(ev); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QFrame::event(e); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QFrame::paintEvent(_p14); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QFrame::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QFrame::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QFrame::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QFrame::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QFrame::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QFrame::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QFrame::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QFrame::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QFrame::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QFrame::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QFrame::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QFrame::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QFrame::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QFrame::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QFrame::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QFrame::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QFrame::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QFrame::moveEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QFrame::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QFrame::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QFrame::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QFrame::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QFrame::metric(m); } + public: + const QFrameType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QFrameType::cachedInstance(const QFrameType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QFrameType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QGestureEventType.h b/src/lib/mu/MuQt6/MuQt6/QGestureEventType.h new file mode 100644 index 000000000..1ac201c2b --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QGestureEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QGestureEventType__h__ +#define __MuQt5__QGestureEventType__h__ +#include +#include + +namespace Mu { + +class QGestureEventType : public Class +{ + public: + // + // Types + // + + typedef QGestureEvent ValueType; + + struct Struct + { + QGestureEvent* object; + }; + + // + // Constructors + // + + QGestureEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QGestureEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QGestureEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QGradientType.h b/src/lib/mu/MuQt6/MuQt6/QGradientType.h new file mode 100644 index 000000000..783743d7f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QGradientType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QGradientType__h__ +#define __MuQt5__QGradientType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QGradientType : public Class +{ + public: + // + // Types + // + + typedef QGradient ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QGradient value; + }; + + // + // Constructors + // + + QGradientType(Context* context, const char* name, Class* superClass = 0); + virtual ~QGradientType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QGradientType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QGridLayoutType.h b/src/lib/mu/MuQt6/MuQt6/QGridLayoutType.h new file mode 100644 index 000000000..97d848c7b --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QGridLayoutType.h @@ -0,0 +1,106 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QGridLayoutType__h__ +#define __MuQt6__QGridLayoutType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QGridLayout; + +class QGridLayoutType : public Class +{ + public: + + typedef MuQt_QGridLayout MuQtType; + typedef QGridLayout QtType; + + // + // Constructors + // + + QGridLayoutType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QGridLayoutType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[21]; +}; + +// Inheritable object + +class MuQt_QGridLayout : public QGridLayout +{ + public: + virtual ~MuQt_QGridLayout(); + MuQt_QGridLayout(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual int count() const; + virtual Qt::Orientations expandingDirections() const; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual void invalidate() ; + virtual QLayoutItem * itemAt(int index) const; + virtual QSize maximumSize() const; + virtual int minimumHeightForWidth(int w) const; + virtual QSize minimumSize() const; + virtual void setGeometry(const QRect & rect) ; + virtual void setSpacing(int spacing) ; + virtual QSize sizeHint() const; + virtual int spacing() const; + virtual QLayoutItem * takeAt(int index) ; + protected: + virtual void addItem(QLayoutItem * item) ; + public: + virtual int indexOf(const QWidget * widget) const; + virtual QLayoutItem * replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options) ; + virtual QSizePolicy::ControlTypes controlTypes() const; + virtual QRect geometry() const; + virtual bool isEmpty() const; + virtual QLayout * layout() ; + public: + void addItem_pub(QLayoutItem * item) { addItem(item); } + void addItem_pub_parent(QLayoutItem * item) { QGridLayout::addItem(item); } + public: + const QGridLayoutType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QGridLayoutType::cachedInstance(const QGridLayoutType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QGridLayoutType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QGroupBoxType.h b/src/lib/mu/MuQt6/MuQt6/QGroupBoxType.h new file mode 100644 index 000000000..c33d96557 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QGroupBoxType.h @@ -0,0 +1,168 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QGroupBoxType__h__ +#define __MuQt6__QGroupBoxType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QGroupBox; + +class QGroupBoxType : public Class +{ + public: + + typedef MuQt_QGroupBox MuQtType; + typedef QGroupBox QtType; + + // + // Constructors + // + + QGroupBoxType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QGroupBoxType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[31]; +}; + +// Inheritable object + +class MuQt_QGroupBox : public QGroupBox +{ + public: + virtual ~MuQt_QGroupBox(); + MuQt_QGroupBox(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QGroupBox(Pointer muobj, const CallEnvironment*, const QString & title, QWidget * parent) ; + virtual QSize minimumSizeHint() const; + protected: + virtual void changeEvent(QEvent * ev) ; + virtual bool event(QEvent * e) ; + virtual void focusInEvent(QFocusEvent * fe) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * e) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize sizeHint() const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QGroupBox::changeEvent(ev); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QGroupBox::event(e); } + void focusInEvent_pub(QFocusEvent * fe) { focusInEvent(fe); } + void focusInEvent_pub_parent(QFocusEvent * fe) { QGroupBox::focusInEvent(fe); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QGroupBox::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QGroupBox::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QGroupBox::mouseReleaseEvent(event); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QGroupBox::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * e) { resizeEvent(e); } + void resizeEvent_pub_parent(QResizeEvent * e) { QGroupBox::resizeEvent(e); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QGroupBox::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QGroupBox::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QGroupBox::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QGroupBox::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QGroupBox::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QGroupBox::dropEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QGroupBox::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QGroupBox::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QGroupBox::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QGroupBox::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QGroupBox::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QGroupBox::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QGroupBox::mouseDoubleClickEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QGroupBox::moveEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QGroupBox::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QGroupBox::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QGroupBox::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QGroupBox::metric(m); } + public: + const QGroupBoxType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QGroupBoxType::cachedInstance(const QGroupBoxType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QGroupBoxType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QGuiApplicationType.h b/src/lib/mu/MuQt6/MuQt6/QGuiApplicationType.h new file mode 100644 index 000000000..242d10cb6 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QGuiApplicationType.h @@ -0,0 +1,85 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QGuiApplicationType__h__ +#define __MuQt6__QGuiApplicationType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QGuiApplication; + +class QGuiApplicationType : public Class +{ + public: + + typedef MuQt_QGuiApplication MuQtType; + typedef QGuiApplication QtType; + + // + // Constructors + // + + QGuiApplicationType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QGuiApplicationType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[2]; +}; + +// Inheritable object + +class MuQt_QGuiApplication : public QGuiApplication +{ + public: + virtual ~MuQt_QGuiApplication(); + virtual bool notify(QObject * object, QEvent * event) ; + protected: + virtual bool event(QEvent * e) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QGuiApplication::event(e); } + public: + const QGuiApplicationType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QGuiApplicationType::cachedInstance(const QGuiApplicationType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QGuiApplicationType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QHBoxLayoutType.h b/src/lib/mu/MuQt6/MuQt6/QHBoxLayoutType.h new file mode 100644 index 000000000..6886b2351 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QHBoxLayoutType.h @@ -0,0 +1,96 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QHBoxLayoutType__h__ +#define __MuQt6__QHBoxLayoutType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QHBoxLayout; + +class QHBoxLayoutType : public Class +{ + public: + + typedef MuQt_QHBoxLayout MuQtType; + typedef QHBoxLayout QtType; + + // + // Constructors + // + + QHBoxLayoutType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QHBoxLayoutType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[15]; +}; + +// Inheritable object + +class MuQt_QHBoxLayout : public QHBoxLayout +{ + public: + virtual ~MuQt_QHBoxLayout(); + MuQt_QHBoxLayout(Pointer muobj, const CallEnvironment*) ; + MuQt_QHBoxLayout(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual void addItem(QLayoutItem * item) ; + virtual int count() const; + virtual Qt::Orientations expandingDirections() const; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual void invalidate() ; + virtual QLayoutItem * itemAt(int index) const; + virtual QSize maximumSize() const; + virtual int minimumHeightForWidth(int w) const; + virtual QSize minimumSize() const; + virtual void setGeometry(const QRect & r) ; + virtual void setSpacing(int spacing) ; + virtual QSize sizeHint() const; + virtual int spacing() const; + virtual QLayoutItem * takeAt(int index) ; + public: + const QHBoxLayoutType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QHBoxLayoutType::cachedInstance(const QHBoxLayoutType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QHBoxLayoutType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QHeaderViewType.h b/src/lib/mu/MuQt6/MuQt6/QHeaderViewType.h new file mode 100644 index 000000000..ff67f48e0 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QHeaderViewType.h @@ -0,0 +1,183 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QHeaderViewType__h__ +#define __MuQt6__QHeaderViewType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QHeaderView; + +class QHeaderViewType : public Class +{ + public: + + typedef MuQt_QHeaderView MuQtType; + typedef QHeaderView QtType; + + // + // Constructors + // + + QHeaderViewType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QHeaderViewType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[39]; +}; + +// Inheritable object + +class MuQt_QHeaderView : public QHeaderView +{ + public: + virtual ~MuQt_QHeaderView(); + MuQt_QHeaderView(Pointer muobj, const CallEnvironment*, Qt::Orientation orientation, QWidget * parent) ; + virtual void reset() ; + virtual void setModel(QAbstractItemModel * model) ; + virtual void setVisible(bool v) ; + virtual QSize sizeHint() const; + protected: + virtual QSize sectionSizeFromContents(int logicalIndex) const; + virtual void currentChanged(const QModelIndex & current, const QModelIndex & old) ; + virtual bool event(QEvent * e) ; + virtual int horizontalOffset() const; + virtual void mouseDoubleClickEvent(QMouseEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * e) ; + virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags flags) ; + virtual int verticalOffset() const; + virtual bool viewportEvent(QEvent * e) ; + public: + virtual void keyboardSearch(const QString & search) ; + virtual void setSelectionModel(QItemSelectionModel * selectionModel) ; + virtual int sizeHintForColumn(int column) const; + virtual int sizeHintForRow(int row) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual bool edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) ; + virtual bool isIndexHidden(const QModelIndex & index) const ; + virtual QModelIndexList selectedIndexes() const; + virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex & index, const QEvent * event) const; + virtual void startDrag(Qt::DropActions supportedActions) ; + virtual QRegion visualRegionForSelection(const QItemSelection & selection) const ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool eventFilter(QObject * object, QEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + virtual QSize viewportSizeHint() const; + public: + QSize sectionSizeFromContents_pub(int logicalIndex) const { return sectionSizeFromContents(logicalIndex); } + QSize sectionSizeFromContents_pub_parent(int logicalIndex) const { return QHeaderView::sectionSizeFromContents(logicalIndex); } + void currentChanged_pub(const QModelIndex & current, const QModelIndex & old) { currentChanged(current, old); } + void currentChanged_pub_parent(const QModelIndex & current, const QModelIndex & old) { QHeaderView::currentChanged(current, old); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QHeaderView::event(e); } + int horizontalOffset_pub() const { return horizontalOffset(); } + int horizontalOffset_pub_parent() const { return QHeaderView::horizontalOffset(); } + void mouseDoubleClickEvent_pub(QMouseEvent * e) { mouseDoubleClickEvent(e); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * e) { QHeaderView::mouseDoubleClickEvent(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QHeaderView::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QHeaderView::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QHeaderView::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * e) { paintEvent(e); } + void paintEvent_pub_parent(QPaintEvent * e) { QHeaderView::paintEvent(e); } + void setSelection_pub(const QRect & rect, QItemSelectionModel::SelectionFlags flags) { setSelection(rect, flags); } + void setSelection_pub_parent(const QRect & rect, QItemSelectionModel::SelectionFlags flags) { QHeaderView::setSelection(rect, flags); } + int verticalOffset_pub() const { return verticalOffset(); } + int verticalOffset_pub_parent() const { return QHeaderView::verticalOffset(); } + bool viewportEvent_pub(QEvent * e) { return viewportEvent(e); } + bool viewportEvent_pub_parent(QEvent * e) { return QHeaderView::viewportEvent(e); } + bool edit_pub(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return edit(index, trigger, event); } + bool edit_pub_parent(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return QHeaderView::edit(index, trigger, event); } + bool isIndexHidden_pub(const QModelIndex & index) const { return isIndexHidden(index); } + bool isIndexHidden_pub_parent(const QModelIndex & index) const { return QHeaderView::isIndexHidden(index); } + QModelIndexList selectedIndexes_pub() const { return selectedIndexes(); } + QModelIndexList selectedIndexes_pub_parent() const { return QHeaderView::selectedIndexes(); } + QItemSelectionModel::SelectionFlags selectionCommand_pub(const QModelIndex & index, const QEvent * event) const { return selectionCommand(index, event); } + QItemSelectionModel::SelectionFlags selectionCommand_pub_parent(const QModelIndex & index, const QEvent * event) const { return QHeaderView::selectionCommand(index, event); } + void startDrag_pub(Qt::DropActions supportedActions) { startDrag(supportedActions); } + void startDrag_pub_parent(Qt::DropActions supportedActions) { QHeaderView::startDrag(supportedActions); } + QRegion visualRegionForSelection_pub(const QItemSelection & selection) const { return visualRegionForSelection(selection); } + QRegion visualRegionForSelection_pub_parent(const QItemSelection & selection) const { return QHeaderView::visualRegionForSelection(selection); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QHeaderView::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QHeaderView::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QHeaderView::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QHeaderView::dropEvent(event); } + bool eventFilter_pub(QObject * object, QEvent * event) { return eventFilter(object, event); } + bool eventFilter_pub_parent(QObject * object, QEvent * event) { return QHeaderView::eventFilter(object, event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QHeaderView::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QHeaderView::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QHeaderView::focusOutEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QHeaderView::keyPressEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QHeaderView::resizeEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QHeaderView::timerEvent(event); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QHeaderView::viewportSizeHint(); } + public: + const QHeaderViewType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QHeaderViewType::cachedInstance(const QHeaderViewType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QHeaderViewType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QHelpEventType.h b/src/lib/mu/MuQt6/MuQt6/QHelpEventType.h new file mode 100644 index 000000000..1012fd62d --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QHelpEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QHelpEventType__h__ +#define __MuQt5__QHelpEventType__h__ +#include +#include + +namespace Mu { + +class QHelpEventType : public Class +{ + public: + // + // Types + // + + typedef QHelpEvent ValueType; + + struct Struct + { + QHelpEvent* object; + }; + + // + // Constructors + // + + QHelpEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QHelpEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QHelpEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QHideEventType.h b/src/lib/mu/MuQt6/MuQt6/QHideEventType.h new file mode 100644 index 000000000..771318ba7 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QHideEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QHideEventType__h__ +#define __MuQt5__QHideEventType__h__ +#include +#include + +namespace Mu { + +class QHideEventType : public Class +{ + public: + // + // Types + // + + typedef QHideEvent ValueType; + + struct Struct + { + QHideEvent* object; + }; + + // + // Constructors + // + + QHideEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QHideEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QHideEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QHostAddressType.h b/src/lib/mu/MuQt6/MuQt6/QHostAddressType.h new file mode 100644 index 000000000..c829e9d03 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QHostAddressType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QHostAddressType__h__ +#define __MuQt5__QHostAddressType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QHostAddressType : public Class +{ + public: + // + // Types + // + + typedef QHostAddress ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QHostAddress value; + }; + + // + // Constructors + // + + QHostAddressType(Context* context, const char* name, Class* superClass = 0); + virtual ~QHostAddressType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QHostAddressType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QHostInfoType.h b/src/lib/mu/MuQt6/MuQt6/QHostInfoType.h new file mode 100644 index 000000000..191bc3011 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QHostInfoType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QHostInfoType__h__ +#define __MuQt5__QHostInfoType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QHostInfoType : public Class +{ + public: + // + // Types + // + + typedef QHostInfo ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QHostInfo value; + }; + + // + // Constructors + // + + QHostInfoType(Context* context, const char* name, Class* superClass = 0); + virtual ~QHostInfoType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QHostInfoType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QHoverEventType.h b/src/lib/mu/MuQt6/MuQt6/QHoverEventType.h new file mode 100644 index 000000000..1989da6d1 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QHoverEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QHoverEventType__h__ +#define __MuQt5__QHoverEventType__h__ +#include +#include + +namespace Mu { + +class QHoverEventType : public Class +{ + public: + // + // Types + // + + typedef QHoverEvent ValueType; + + struct Struct + { + QHoverEvent* object; + }; + + // + // Constructors + // + + QHoverEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QHoverEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QHoverEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QIODeviceBaseType.h b/src/lib/mu/MuQt6/MuQt6/QIODeviceBaseType.h new file mode 100644 index 000000000..8e803f1df --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QIODeviceBaseType.h @@ -0,0 +1,61 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QIODeviceBaseType__h__ +#define __MuQt6__QIODeviceBaseType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QIODeviceBaseType : public Class +{ + public: + + struct Struct { QIODeviceBase* object; }; + typedef QIODeviceBase MuQt_QIODeviceBase; + typedef MuQt_QIODeviceBase MuQtType; + typedef QIODeviceBase QtType; + + // + // Constructors + // + + QIODeviceBaseType(Context* context, const char* name, Class* superClass = 0); + virtual ~QIODeviceBaseType(); + + static bool isInheritable() { return false; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[0]; +}; + + +inline ClassInstance* QIODeviceBaseType::cachedInstance(const QIODeviceBaseType::MuQtType* obj) { return 0; } + +} // Mu + +#endif // __MuQt6__QIODeviceBaseType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QIODeviceType.h b/src/lib/mu/MuQt6/MuQt6/QIODeviceType.h new file mode 100644 index 000000000..be62ab1f6 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QIODeviceType.h @@ -0,0 +1,68 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QIODeviceType__h__ +#define __MuQt6__QIODeviceType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QIODeviceType : public Class +{ + public: + + typedef QIODevice MuQt_QIODevice; + typedef MuQt_QIODevice MuQtType; + typedef QIODevice QtType; + + // + // Constructors + // + + QIODeviceType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QIODeviceType(); + + static bool isInheritable() { return false; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[18]; +}; + + +inline ClassInstance* QIODeviceType::cachedInstance(const QIODeviceType::MuQtType* obj) { return 0; } + +} // Mu + +#endif // __MuQt__QIODeviceType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QIconType.h b/src/lib/mu/MuQt6/MuQt6/QIconType.h new file mode 100644 index 000000000..79e00842f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QIconType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QIconType__h__ +#define __MuQt5__QIconType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QIconType : public Class +{ + public: + // + // Types + // + + typedef QIcon ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QIcon value; + }; + + // + // Constructors + // + + QIconType(Context* context, const char* name, Class* superClass = 0); + virtual ~QIconType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QIconType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QImageType.h b/src/lib/mu/MuQt6/MuQt6/QImageType.h new file mode 100644 index 000000000..c0f18d7a6 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QImageType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QImageType__h__ +#define __MuQt5__QImageType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QImageType : public Class +{ + public: + // + // Types + // + + typedef QImage ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QImage value; + }; + + // + // Constructors + // + + QImageType(Context* context, const char* name, Class* superClass = 0); + virtual ~QImageType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QImageType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QInputDialogType.h b/src/lib/mu/MuQt6/MuQt6/QInputDialogType.h new file mode 100644 index 000000000..f3e45a297 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QInputDialogType.h @@ -0,0 +1,104 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QInputDialogType__h__ +#define __MuQt6__QInputDialogType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QInputDialog; + +class QInputDialogType : public Class +{ + public: + + typedef MuQt_QInputDialog MuQtType; + typedef QInputDialog QtType; + + // + // Constructors + // + + QInputDialogType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QInputDialogType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[10]; +}; + +// Inheritable object + +class MuQt_QInputDialog : public QInputDialog +{ + public: + virtual ~MuQt_QInputDialog(); + MuQt_QInputDialog(Pointer muobj, const CallEnvironment*, QWidget * parent, Qt::WindowFlags flags) ; + virtual void done(int result) ; + virtual QSize minimumSizeHint() const; + virtual void setVisible(bool visible) ; + virtual QSize sizeHint() const; + protected: + virtual void closeEvent(QCloseEvent * e) ; + virtual void contextMenuEvent(QContextMenuEvent * e) ; + virtual bool eventFilter(QObject * o, QEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void resizeEvent(QResizeEvent * _p15) ; + virtual void showEvent(QShowEvent * event) ; + public: + void closeEvent_pub(QCloseEvent * e) { closeEvent(e); } + void closeEvent_pub_parent(QCloseEvent * e) { QInputDialog::closeEvent(e); } + void contextMenuEvent_pub(QContextMenuEvent * e) { contextMenuEvent(e); } + void contextMenuEvent_pub_parent(QContextMenuEvent * e) { QInputDialog::contextMenuEvent(e); } + bool eventFilter_pub(QObject * o, QEvent * e) { return eventFilter(o, e); } + bool eventFilter_pub_parent(QObject * o, QEvent * e) { return QInputDialog::eventFilter(o, e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QInputDialog::keyPressEvent(e); } + void resizeEvent_pub(QResizeEvent * _p15) { resizeEvent(_p15); } + void resizeEvent_pub_parent(QResizeEvent * _p15) { QInputDialog::resizeEvent(_p15); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QInputDialog::showEvent(event); } + public: + const QInputDialogType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QInputDialogType::cachedInstance(const QInputDialogType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QInputDialogType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QInputEventType.h b/src/lib/mu/MuQt6/MuQt6/QInputEventType.h new file mode 100644 index 000000000..1660cab5c --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QInputEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QInputEventType__h__ +#define __MuQt5__QInputEventType__h__ +#include +#include + +namespace Mu { + +class QInputEventType : public Class +{ + public: + // + // Types + // + + typedef QInputEvent ValueType; + + struct Struct + { + QInputEvent* object; + }; + + // + // Constructors + // + + QInputEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QInputEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QInputEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QItemSelectionModelType.h b/src/lib/mu/MuQt6/MuQt6/QItemSelectionModelType.h new file mode 100644 index 000000000..5ab6bcb7d --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QItemSelectionModelType.h @@ -0,0 +1,93 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QItemSelectionModelType__h__ +#define __MuQt6__QItemSelectionModelType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QItemSelectionModel; + +class QItemSelectionModelType : public Class +{ + public: + + typedef MuQt_QItemSelectionModel MuQtType; + typedef QItemSelectionModel QtType; + + // + // Constructors + // + + QItemSelectionModelType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QItemSelectionModelType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QItemSelectionModel : public QItemSelectionModel +{ + public: + virtual ~MuQt_QItemSelectionModel(); + MuQt_QItemSelectionModel(Pointer muobj, const CallEnvironment*, QAbstractItemModel * model) ; + MuQt_QItemSelectionModel(Pointer muobj, const CallEnvironment*, QAbstractItemModel * model, QObject * parent) ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void emitSelectionChanged_pub(const QItemSelection & newSelection, const QItemSelection & oldSelection) { emitSelectionChanged(newSelection, oldSelection); } + void emitSelectionChanged_pub_parent(const QItemSelection & newSelection, const QItemSelection & oldSelection) { QItemSelectionModel::emitSelectionChanged(newSelection, oldSelection); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QItemSelectionModel::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QItemSelectionModel::timerEvent(event); } + public: + const QItemSelectionModelType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QItemSelectionModelType::cachedInstance(const QItemSelectionModelType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QItemSelectionModelType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QItemSelectionRangeType.h b/src/lib/mu/MuQt6/MuQt6/QItemSelectionRangeType.h new file mode 100644 index 000000000..7f99c3ecc --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QItemSelectionRangeType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QItemSelectionRangeType__h__ +#define __MuQt5__QItemSelectionRangeType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QItemSelectionRangeType : public Class +{ + public: + // + // Types + // + + typedef QItemSelectionRange ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QItemSelectionRange value; + }; + + // + // Constructors + // + + QItemSelectionRangeType(Context* context, const char* name, Class* superClass = 0); + virtual ~QItemSelectionRangeType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QItemSelectionRangeType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QItemSelectionType.h b/src/lib/mu/MuQt6/MuQt6/QItemSelectionType.h new file mode 100644 index 000000000..eb1b9d759 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QItemSelectionType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QItemSelectionType__h__ +#define __MuQt5__QItemSelectionType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QItemSelectionType : public Class +{ + public: + // + // Types + // + + typedef QItemSelection ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QItemSelection value; + }; + + // + // Constructors + // + + QItemSelectionType(Context* context, const char* name, Class* superClass = 0); + virtual ~QItemSelectionType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QItemSelectionType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QJSEngineType.h b/src/lib/mu/MuQt6/MuQt6/QJSEngineType.h new file mode 100644 index 000000000..712d026e5 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QJSEngineType.h @@ -0,0 +1,91 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QJSEngineType__h__ +#define __MuQt6__QJSEngineType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QJSEngine; + +class QJSEngineType : public Class +{ + public: + + typedef MuQt_QJSEngine MuQtType; + typedef QJSEngine QtType; + + // + // Constructors + // + + QJSEngineType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QJSEngineType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QJSEngine : public QJSEngine +{ + public: + virtual ~MuQt_QJSEngine(); + MuQt_QJSEngine(Pointer muobj, const CallEnvironment*) ; + MuQt_QJSEngine(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QJSEngine::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QJSEngine::timerEvent(event); } + public: + const QJSEngineType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QJSEngineType::cachedInstance(const QJSEngineType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QJSEngineType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QKeyEventType.h b/src/lib/mu/MuQt6/MuQt6/QKeyEventType.h new file mode 100644 index 000000000..fc225cfa5 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QKeyEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QKeyEventType__h__ +#define __MuQt5__QKeyEventType__h__ +#include +#include + +namespace Mu { + +class QKeyEventType : public Class +{ + public: + // + // Types + // + + typedef QKeyEvent ValueType; + + struct Struct + { + QKeyEvent* object; + }; + + // + // Constructors + // + + QKeyEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QKeyEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QKeyEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QKeySequenceType.h b/src/lib/mu/MuQt6/MuQt6/QKeySequenceType.h new file mode 100644 index 000000000..2d910e947 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QKeySequenceType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QKeySequenceType__h__ +#define __MuQt5__QKeySequenceType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QKeySequenceType : public Class +{ + public: + // + // Types + // + + typedef QKeySequence ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QKeySequence value; + }; + + // + // Constructors + // + + QKeySequenceType(Context* context, const char* name, Class* superClass = 0); + virtual ~QKeySequenceType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QKeySequenceType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QLabelType.h b/src/lib/mu/MuQt6/MuQt6/QLabelType.h new file mode 100644 index 000000000..d58290546 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QLabelType.h @@ -0,0 +1,119 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QLabelType__h__ +#define __MuQt6__QLabelType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QLabel; + +class QLabelType : public Class +{ + public: + + typedef MuQt_QLabel MuQtType; + typedef QLabel QtType; + + // + // Constructors + // + + QLabelType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QLabelType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[14]; +}; + +// Inheritable object + +class MuQt_QLabel : public QLabel +{ + public: + virtual ~MuQt_QLabel(); + MuQt_QLabel(Pointer muobj, const CallEnvironment*, QWidget * parent, Qt::WindowFlags f) ; + MuQt_QLabel(Pointer muobj, const CallEnvironment*, const QString & text, QWidget * parent, Qt::WindowFlags f) ; + virtual int heightForWidth(int w) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * ev) ; + virtual void contextMenuEvent(QContextMenuEvent * ev) ; + virtual bool event(QEvent * e) ; + virtual void focusInEvent(QFocusEvent * ev) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * ev) ; + virtual void keyPressEvent(QKeyEvent * ev) ; + virtual void mouseMoveEvent(QMouseEvent * ev) ; + virtual void mousePressEvent(QMouseEvent * ev) ; + virtual void mouseReleaseEvent(QMouseEvent * ev) ; + virtual void paintEvent(QPaintEvent * _p14) ; + public: + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QLabel::changeEvent(ev); } + void contextMenuEvent_pub(QContextMenuEvent * ev) { contextMenuEvent(ev); } + void contextMenuEvent_pub_parent(QContextMenuEvent * ev) { QLabel::contextMenuEvent(ev); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QLabel::event(e); } + void focusInEvent_pub(QFocusEvent * ev) { focusInEvent(ev); } + void focusInEvent_pub_parent(QFocusEvent * ev) { QLabel::focusInEvent(ev); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QLabel::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * ev) { focusOutEvent(ev); } + void focusOutEvent_pub_parent(QFocusEvent * ev) { QLabel::focusOutEvent(ev); } + void keyPressEvent_pub(QKeyEvent * ev) { keyPressEvent(ev); } + void keyPressEvent_pub_parent(QKeyEvent * ev) { QLabel::keyPressEvent(ev); } + void mouseMoveEvent_pub(QMouseEvent * ev) { mouseMoveEvent(ev); } + void mouseMoveEvent_pub_parent(QMouseEvent * ev) { QLabel::mouseMoveEvent(ev); } + void mousePressEvent_pub(QMouseEvent * ev) { mousePressEvent(ev); } + void mousePressEvent_pub_parent(QMouseEvent * ev) { QLabel::mousePressEvent(ev); } + void mouseReleaseEvent_pub(QMouseEvent * ev) { mouseReleaseEvent(ev); } + void mouseReleaseEvent_pub_parent(QMouseEvent * ev) { QLabel::mouseReleaseEvent(ev); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QLabel::paintEvent(_p14); } + public: + const QLabelType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QLabelType::cachedInstance(const QLabelType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QLabelType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QLayoutItemType.h b/src/lib/mu/MuQt6/MuQt6/QLayoutItemType.h new file mode 100644 index 000000000..af99d9f5f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QLayoutItemType.h @@ -0,0 +1,87 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QLayoutItemType__h__ +#define __MuQt6__QLayoutItemType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QLayoutItem; + +class QLayoutItemType : public Class +{ + public: + + struct Struct { QLayoutItem* object; }; + typedef MuQt_QLayoutItem MuQtType; + typedef QLayoutItem QtType; + + // + // Constructors + // + + QLayoutItemType(Context* context, const char* name, Class* superClass = 0); + virtual ~QLayoutItemType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[14]; +}; + +// Inheritable object + +class MuQt_QLayoutItem : public QLayoutItem +{ + public: + virtual ~MuQt_QLayoutItem(); + MuQt_QLayoutItem(Pointer muobj, const CallEnvironment*, Qt::Alignment alignment) ; + virtual QSizePolicy::ControlTypes controlTypes() const; + virtual Qt::Orientations expandingDirections() const ; + virtual QRect geometry() const ; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int _p3) const; + virtual void invalidate() ; + virtual bool isEmpty() const ; + virtual QLayout * layout() ; + virtual QSize maximumSize() const ; + virtual int minimumHeightForWidth(int w) const; + virtual QSize minimumSize() const ; + virtual void setGeometry(const QRect & r) ; + virtual QSize sizeHint() const ; + virtual QWidget * widget() const; + public: + const QLayoutItemType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QLayoutItemType::cachedInstance(const QLayoutItemType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt6__QLayoutItemType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QLayoutType.h b/src/lib/mu/MuQt6/MuQt6/QLayoutType.h new file mode 100644 index 000000000..045d4b31d --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QLayoutType.h @@ -0,0 +1,119 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QLayoutType__h__ +#define __MuQt6__QLayoutType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QLayout; + +class QLayoutType : public Class +{ + public: + + typedef MuQt_QLayout MuQtType; + typedef QLayout QtType; + + // + // Constructors + // + + QLayoutType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QLayoutType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[27]; +}; + +// Inheritable object + +class MuQt_QLayout : public QLayout +{ + public: + MuQt_QLayout(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual void addItem(QLayoutItem * item) ; + virtual int count() const ; + virtual int indexOf(const QWidget * widget) const; + virtual int indexOf(const QLayoutItem * layoutItem) const; + virtual QLayoutItem * itemAt(int index) const ; + virtual QLayoutItem * replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options) ; + virtual void setSpacing(int _p3) ; + virtual int spacing() const; + virtual QLayoutItem * takeAt(int index) ; + virtual QSizePolicy::ControlTypes controlTypes() const; + virtual Qt::Orientations expandingDirections() const; + virtual QRect geometry() const; + virtual void invalidate() ; + virtual bool isEmpty() const; + virtual QLayout * layout() ; + virtual QSize maximumSize() const; + virtual QSize minimumSize() const; + virtual void setGeometry(const QRect & r) ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int _p3) const; + virtual int minimumHeightForWidth(int w) const; + virtual QSize sizeHint() const ; + virtual QWidget * widget() const; + public: + void addChildLayout_pub(QLayout * childLayout) { addChildLayout(childLayout); } + void addChildLayout_pub_parent(QLayout * childLayout) { QLayout::addChildLayout(childLayout); } + void addChildWidget_pub(QWidget * w) { addChildWidget(w); } + void addChildWidget_pub_parent(QWidget * w) { QLayout::addChildWidget(w); } + QRect alignmentRect_pub(const QRect & r) const { return alignmentRect(r); } + QRect alignmentRect_pub_parent(const QRect & r) const { return QLayout::alignmentRect(r); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QLayout::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QLayout::timerEvent(event); } + public: + const QLayoutType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QLayoutType::cachedInstance(const QLayoutType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QLayoutType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QLineEditType.h b/src/lib/mu/MuQt6/MuQt6/QLineEditType.h new file mode 100644 index 000000000..4dc371ac6 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QLineEditType.h @@ -0,0 +1,169 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QLineEditType__h__ +#define __MuQt6__QLineEditType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QLineEdit; + +class QLineEditType : public Class +{ + public: + + typedef MuQt_QLineEdit MuQtType; + typedef QLineEdit QtType; + + // + // Constructors + // + + QLineEditType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QLineEditType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[32]; +}; + +// Inheritable object + +class MuQt_QLineEdit : public QLineEdit +{ + public: + virtual ~MuQt_QLineEdit(); + MuQt_QLineEdit(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QLineEdit(Pointer muobj, const CallEnvironment*, const QString & contents, QWidget * parent) ; + virtual bool event(QEvent * e) ; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + virtual void timerEvent(QTimerEvent * e) ; + protected: + virtual void changeEvent(QEvent * ev) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * e) ; + virtual void dragLeaveEvent(QDragLeaveEvent * e) ; + virtual void dragMoveEvent(QDragMoveEvent * e) ; + virtual void dropEvent(QDropEvent * e) ; + virtual void focusInEvent(QFocusEvent * e) ; + virtual void focusOutEvent(QFocusEvent * e) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mouseDoubleClickEvent(QMouseEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * _p14) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + QRect cursorRect_pub() const { return cursorRect(); } + QRect cursorRect_pub_parent() const { return QLineEdit::cursorRect(); } + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QLineEdit::changeEvent(ev); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QLineEdit::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * e) { dragEnterEvent(e); } + void dragEnterEvent_pub_parent(QDragEnterEvent * e) { QLineEdit::dragEnterEvent(e); } + void dragLeaveEvent_pub(QDragLeaveEvent * e) { dragLeaveEvent(e); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * e) { QLineEdit::dragLeaveEvent(e); } + void dragMoveEvent_pub(QDragMoveEvent * e) { dragMoveEvent(e); } + void dragMoveEvent_pub_parent(QDragMoveEvent * e) { QLineEdit::dragMoveEvent(e); } + void dropEvent_pub(QDropEvent * e) { dropEvent(e); } + void dropEvent_pub_parent(QDropEvent * e) { QLineEdit::dropEvent(e); } + void focusInEvent_pub(QFocusEvent * e) { focusInEvent(e); } + void focusInEvent_pub_parent(QFocusEvent * e) { QLineEdit::focusInEvent(e); } + void focusOutEvent_pub(QFocusEvent * e) { focusOutEvent(e); } + void focusOutEvent_pub_parent(QFocusEvent * e) { QLineEdit::focusOutEvent(e); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QLineEdit::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QLineEdit::keyReleaseEvent(e); } + void mouseDoubleClickEvent_pub(QMouseEvent * e) { mouseDoubleClickEvent(e); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * e) { QLineEdit::mouseDoubleClickEvent(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QLineEdit::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QLineEdit::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QLineEdit::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QLineEdit::paintEvent(_p14); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QLineEdit::closeEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QLineEdit::focusNextPrevChild(next); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QLineEdit::hideEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QLineEdit::leaveEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QLineEdit::moveEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QLineEdit::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QLineEdit::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QLineEdit::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QLineEdit::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QLineEdit::metric(m); } + public: + const QLineEditType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QLineEditType::cachedInstance(const QLineEditType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QLineEditType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QLinearGradientType.h b/src/lib/mu/MuQt6/MuQt6/QLinearGradientType.h new file mode 100644 index 000000000..887c72025 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QLinearGradientType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QLinearGradientType__h__ +#define __MuQt5__QLinearGradientType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QLinearGradientType : public Class +{ + public: + // + // Types + // + + typedef QLinearGradient ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QLinearGradient value; + }; + + // + // Constructors + // + + QLinearGradientType(Context* context, const char* name, Class* superClass = 0); + virtual ~QLinearGradientType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QLinearGradientType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QListViewType.h b/src/lib/mu/MuQt6/MuQt6/QListViewType.h new file mode 100644 index 000000000..d28371a94 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QListViewType.h @@ -0,0 +1,203 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QListViewType__h__ +#define __MuQt6__QListViewType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QListView; + +class QListViewType : public Class +{ + public: + + typedef MuQt_QListView MuQtType; + typedef QListView QtType; + + // + // Constructors + // + + QListViewType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QListViewType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[45]; +}; + +// Inheritable object + +class MuQt_QListView : public QListView +{ + public: + virtual ~MuQt_QListView(); + MuQt_QListView(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual QModelIndex indexAt(const QPoint & p) const; + virtual void scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) ; + virtual void setRootIndex(const QModelIndex & index) ; + virtual QRect visualRect(const QModelIndex & index) const; + protected: + virtual void currentChanged(const QModelIndex & current, const QModelIndex & previous) ; + virtual void dragLeaveEvent(QDragLeaveEvent * e) ; + virtual void dragMoveEvent(QDragMoveEvent * e) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool event(QEvent * e) ; + virtual int horizontalOffset() const; + virtual bool isIndexHidden(const QModelIndex & index) const; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * e) ; + virtual void resizeEvent(QResizeEvent * e) ; + virtual void rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end) ; + virtual void rowsInserted(const QModelIndex & parent, int start, int end) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual QModelIndexList selectedIndexes() const; + virtual void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) ; + virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) ; + virtual void startDrag(Qt::DropActions supportedActions) ; + virtual void timerEvent(QTimerEvent * e) ; + virtual void updateGeometries() ; + virtual int verticalOffset() const; + virtual QSize viewportSizeHint() const; + virtual QRegion visualRegionForSelection(const QItemSelection & selection) const; + virtual void wheelEvent(QWheelEvent * e) ; + public: + virtual void keyboardSearch(const QString & search) ; + virtual void setModel(QAbstractItemModel * model) ; + virtual void setSelectionModel(QItemSelectionModel * selectionModel) ; + virtual int sizeHintForColumn(int column) const; + virtual int sizeHintForRow(int row) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual bool edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) ; + virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex & index, const QEvent * event) const; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual bool eventFilter(QObject * object, QEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual bool viewportEvent(QEvent * event) ; + public: + QRect rectForIndex_pub(const QModelIndex & index) const { return rectForIndex(index); } + QRect rectForIndex_pub_parent(const QModelIndex & index) const { return QListView::rectForIndex(index); } + void setPositionForIndex_pub(const QPoint & position, const QModelIndex & index) { setPositionForIndex(position, index); } + void setPositionForIndex_pub_parent(const QPoint & position, const QModelIndex & index) { QListView::setPositionForIndex(position, index); } + void currentChanged_pub(const QModelIndex & current, const QModelIndex & previous) { currentChanged(current, previous); } + void currentChanged_pub_parent(const QModelIndex & current, const QModelIndex & previous) { QListView::currentChanged(current, previous); } + void dragLeaveEvent_pub(QDragLeaveEvent * e) { dragLeaveEvent(e); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * e) { QListView::dragLeaveEvent(e); } + void dragMoveEvent_pub(QDragMoveEvent * e) { dragMoveEvent(e); } + void dragMoveEvent_pub_parent(QDragMoveEvent * e) { QListView::dragMoveEvent(e); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QListView::dropEvent(event); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QListView::event(e); } + int horizontalOffset_pub() const { return horizontalOffset(); } + int horizontalOffset_pub_parent() const { return QListView::horizontalOffset(); } + bool isIndexHidden_pub(const QModelIndex & index) const { return isIndexHidden(index); } + bool isIndexHidden_pub_parent(const QModelIndex & index) const { return QListView::isIndexHidden(index); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QListView::mouseMoveEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QListView::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * e) { paintEvent(e); } + void paintEvent_pub_parent(QPaintEvent * e) { QListView::paintEvent(e); } + void resizeEvent_pub(QResizeEvent * e) { resizeEvent(e); } + void resizeEvent_pub_parent(QResizeEvent * e) { QListView::resizeEvent(e); } + void rowsAboutToBeRemoved_pub(const QModelIndex & parent, int start, int end) { rowsAboutToBeRemoved(parent, start, end); } + void rowsAboutToBeRemoved_pub_parent(const QModelIndex & parent, int start, int end) { QListView::rowsAboutToBeRemoved(parent, start, end); } + void rowsInserted_pub(const QModelIndex & parent, int start, int end) { rowsInserted(parent, start, end); } + void rowsInserted_pub_parent(const QModelIndex & parent, int start, int end) { QListView::rowsInserted(parent, start, end); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QListView::scrollContentsBy(dx, dy); } + QModelIndexList selectedIndexes_pub() const { return selectedIndexes(); } + QModelIndexList selectedIndexes_pub_parent() const { return QListView::selectedIndexes(); } + void selectionChanged_pub(const QItemSelection & selected, const QItemSelection & deselected) { selectionChanged(selected, deselected); } + void selectionChanged_pub_parent(const QItemSelection & selected, const QItemSelection & deselected) { QListView::selectionChanged(selected, deselected); } + void setSelection_pub(const QRect & rect, QItemSelectionModel::SelectionFlags command) { setSelection(rect, command); } + void setSelection_pub_parent(const QRect & rect, QItemSelectionModel::SelectionFlags command) { QListView::setSelection(rect, command); } + void startDrag_pub(Qt::DropActions supportedActions) { startDrag(supportedActions); } + void startDrag_pub_parent(Qt::DropActions supportedActions) { QListView::startDrag(supportedActions); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QListView::timerEvent(e); } + void updateGeometries_pub() { updateGeometries(); } + void updateGeometries_pub_parent() { QListView::updateGeometries(); } + int verticalOffset_pub() const { return verticalOffset(); } + int verticalOffset_pub_parent() const { return QListView::verticalOffset(); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QListView::viewportSizeHint(); } + QRegion visualRegionForSelection_pub(const QItemSelection & selection) const { return visualRegionForSelection(selection); } + QRegion visualRegionForSelection_pub_parent(const QItemSelection & selection) const { return QListView::visualRegionForSelection(selection); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QListView::wheelEvent(e); } + bool edit_pub(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return edit(index, trigger, event); } + bool edit_pub_parent(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return QListView::edit(index, trigger, event); } + QItemSelectionModel::SelectionFlags selectionCommand_pub(const QModelIndex & index, const QEvent * event) const { return selectionCommand(index, event); } + QItemSelectionModel::SelectionFlags selectionCommand_pub_parent(const QModelIndex & index, const QEvent * event) const { return QListView::selectionCommand(index, event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QListView::dragEnterEvent(event); } + bool eventFilter_pub(QObject * object, QEvent * event) { return eventFilter(object, event); } + bool eventFilter_pub_parent(QObject * object, QEvent * event) { return QListView::eventFilter(object, event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QListView::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QListView::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QListView::focusOutEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QListView::keyPressEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QListView::mouseDoubleClickEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QListView::mousePressEvent(event); } + bool viewportEvent_pub(QEvent * event) { return viewportEvent(event); } + bool viewportEvent_pub_parent(QEvent * event) { return QListView::viewportEvent(event); } + public: + const QListViewType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QListViewType::cachedInstance(const QListViewType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QListViewType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QListWidgetItemType.h b/src/lib/mu/MuQt6/MuQt6/QListWidgetItemType.h new file mode 100644 index 000000000..0ee59da79 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QListWidgetItemType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QListWidgetItemType__h__ +#define __MuQt5__QListWidgetItemType__h__ +#include +#include + +namespace Mu { + +class QListWidgetItemType : public Class +{ + public: + // + // Types + // + + typedef QListWidgetItem ValueType; + + struct Struct + { + QListWidgetItem* object; + }; + + // + // Constructors + // + + QListWidgetItemType(Context* context, const char* name, Class* superClass = 0); + virtual ~QListWidgetItemType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QListWidgetItemType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QListWidgetType.h b/src/lib/mu/MuQt6/MuQt6/QListWidgetType.h new file mode 100644 index 000000000..51d76b459 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QListWidgetType.h @@ -0,0 +1,173 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QListWidgetType__h__ +#define __MuQt6__QListWidgetType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QListWidget; + +class QListWidgetType : public Class +{ + public: + + typedef MuQt_QListWidget MuQtType; + typedef QListWidget QtType; + + // + // Constructors + // + + QListWidgetType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QListWidgetType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[33]; +}; + +// Inheritable object + +class MuQt_QListWidget : public QListWidget +{ + public: + virtual ~MuQt_QListWidget(); + MuQt_QListWidget(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual void setSelectionModel(QItemSelectionModel * selectionModel) ; + protected: + virtual bool dropMimeData(int index, const QMimeData * data, Qt::DropAction action) ; + virtual QMimeData * mimeData(const QList & items) const; + virtual QStringList mimeTypes() const; + virtual Qt::DropActions supportedDropActions() const; + virtual void dropEvent(QDropEvent * event) ; + virtual bool event(QEvent * e) ; + public: + virtual QModelIndex indexAt(const QPoint & p) const; + virtual void scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) ; + virtual void setRootIndex(const QModelIndex & index) ; + virtual QRect visualRect(const QModelIndex & index) const; + protected: + virtual void currentChanged(const QModelIndex & current, const QModelIndex & previous) ; + virtual void dragLeaveEvent(QDragLeaveEvent * e) ; + virtual void dragMoveEvent(QDragMoveEvent * e) ; + virtual int horizontalOffset() const; + virtual bool isIndexHidden(const QModelIndex & index) const; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * e) ; + virtual void resizeEvent(QResizeEvent * e) ; + virtual void rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end) ; + virtual void rowsInserted(const QModelIndex & parent, int start, int end) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual QModelIndexList selectedIndexes() const; + virtual void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) ; + virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) ; + virtual void startDrag(Qt::DropActions supportedActions) ; + virtual void timerEvent(QTimerEvent * e) ; + virtual void updateGeometries() ; + virtual int verticalOffset() const; + virtual QSize viewportSizeHint() const; + virtual QRegion visualRegionForSelection(const QItemSelection & selection) const; + virtual void wheelEvent(QWheelEvent * e) ; + public: + bool dropMimeData_pub(int index, const QMimeData * data, Qt::DropAction action) { return dropMimeData(index, data, action); } + bool dropMimeData_pub_parent(int index, const QMimeData * data, Qt::DropAction action) { return QListWidget::dropMimeData(index, data, action); } + QMimeData * mimeData_pub(const QList & items) const { return mimeData(items); } + QMimeData * mimeData_pub_parent(const QList & items) const { return QListWidget::mimeData(items); } + QStringList mimeTypes_pub() const { return mimeTypes(); } + QStringList mimeTypes_pub_parent() const { return QListWidget::mimeTypes(); } + Qt::DropActions supportedDropActions_pub() const { return supportedDropActions(); } + Qt::DropActions supportedDropActions_pub_parent() const { return QListWidget::supportedDropActions(); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QListWidget::dropEvent(event); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QListWidget::event(e); } + void currentChanged_pub(const QModelIndex & current, const QModelIndex & previous) { currentChanged(current, previous); } + void currentChanged_pub_parent(const QModelIndex & current, const QModelIndex & previous) { QListWidget::currentChanged(current, previous); } + void dragLeaveEvent_pub(QDragLeaveEvent * e) { dragLeaveEvent(e); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * e) { QListWidget::dragLeaveEvent(e); } + void dragMoveEvent_pub(QDragMoveEvent * e) { dragMoveEvent(e); } + void dragMoveEvent_pub_parent(QDragMoveEvent * e) { QListWidget::dragMoveEvent(e); } + int horizontalOffset_pub() const { return horizontalOffset(); } + int horizontalOffset_pub_parent() const { return QListWidget::horizontalOffset(); } + bool isIndexHidden_pub(const QModelIndex & index) const { return isIndexHidden(index); } + bool isIndexHidden_pub_parent(const QModelIndex & index) const { return QListWidget::isIndexHidden(index); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QListWidget::mouseMoveEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QListWidget::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * e) { paintEvent(e); } + void paintEvent_pub_parent(QPaintEvent * e) { QListWidget::paintEvent(e); } + void resizeEvent_pub(QResizeEvent * e) { resizeEvent(e); } + void resizeEvent_pub_parent(QResizeEvent * e) { QListWidget::resizeEvent(e); } + void rowsAboutToBeRemoved_pub(const QModelIndex & parent, int start, int end) { rowsAboutToBeRemoved(parent, start, end); } + void rowsAboutToBeRemoved_pub_parent(const QModelIndex & parent, int start, int end) { QListWidget::rowsAboutToBeRemoved(parent, start, end); } + void rowsInserted_pub(const QModelIndex & parent, int start, int end) { rowsInserted(parent, start, end); } + void rowsInserted_pub_parent(const QModelIndex & parent, int start, int end) { QListWidget::rowsInserted(parent, start, end); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QListWidget::scrollContentsBy(dx, dy); } + QModelIndexList selectedIndexes_pub() const { return selectedIndexes(); } + QModelIndexList selectedIndexes_pub_parent() const { return QListWidget::selectedIndexes(); } + void selectionChanged_pub(const QItemSelection & selected, const QItemSelection & deselected) { selectionChanged(selected, deselected); } + void selectionChanged_pub_parent(const QItemSelection & selected, const QItemSelection & deselected) { QListWidget::selectionChanged(selected, deselected); } + void setSelection_pub(const QRect & rect, QItemSelectionModel::SelectionFlags command) { setSelection(rect, command); } + void setSelection_pub_parent(const QRect & rect, QItemSelectionModel::SelectionFlags command) { QListWidget::setSelection(rect, command); } + void startDrag_pub(Qt::DropActions supportedActions) { startDrag(supportedActions); } + void startDrag_pub_parent(Qt::DropActions supportedActions) { QListWidget::startDrag(supportedActions); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QListWidget::timerEvent(e); } + void updateGeometries_pub() { updateGeometries(); } + void updateGeometries_pub_parent() { QListWidget::updateGeometries(); } + int verticalOffset_pub() const { return verticalOffset(); } + int verticalOffset_pub_parent() const { return QListWidget::verticalOffset(); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QListWidget::viewportSizeHint(); } + QRegion visualRegionForSelection_pub(const QItemSelection & selection) const { return visualRegionForSelection(selection); } + QRegion visualRegionForSelection_pub_parent(const QItemSelection & selection) const { return QListWidget::visualRegionForSelection(selection); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QListWidget::wheelEvent(e); } + public: + const QListWidgetType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QListWidgetType::cachedInstance(const QListWidgetType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QListWidgetType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QLocalSocketType.h b/src/lib/mu/MuQt6/MuQt6/QLocalSocketType.h new file mode 100644 index 000000000..476ad59cc --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QLocalSocketType.h @@ -0,0 +1,99 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QLocalSocketType__h__ +#define __MuQt6__QLocalSocketType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QLocalSocket; + +class QLocalSocketType : public Class +{ + public: + + typedef MuQt_QLocalSocket MuQtType; + typedef QLocalSocket QtType; + + // + // Constructors + // + + QLocalSocketType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QLocalSocketType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[14]; +}; + +// Inheritable object + +class MuQt_QLocalSocket : public QLocalSocket +{ + public: + virtual ~MuQt_QLocalSocket(); + MuQt_QLocalSocket(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual qint64 bytesAvailable() const; + virtual qint64 bytesToWrite() const; + virtual bool canReadLine() const; + virtual void close() ; + virtual bool isSequential() const; + virtual bool open(QIODeviceBase::OpenMode openMode) ; + virtual bool waitForBytesWritten(int msecs) ; + virtual bool waitForReadyRead(int msecs) ; + protected: + virtual qint64 skipData(qint64 maxSize) ; + public: + virtual bool atEnd() const; + virtual qint64 pos() const; + virtual bool reset() ; + virtual bool seek(qint64 pos) ; + virtual qint64 size() const; + public: + qint64 skipData_pub(qint64 maxSize) { return skipData(maxSize); } + qint64 skipData_pub_parent(qint64 maxSize) { return QLocalSocket::skipData(maxSize); } + public: + const QLocalSocketType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QLocalSocketType::cachedInstance(const QLocalSocketType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QLocalSocketType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QMainWindowType.h b/src/lib/mu/MuQt6/MuQt6/QMainWindowType.h new file mode 100644 index 000000000..3879cbc81 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QMainWindowType.h @@ -0,0 +1,168 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QMainWindowType__h__ +#define __MuQt6__QMainWindowType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QMainWindow; + +class QMainWindowType : public Class +{ + public: + + typedef MuQt_QMainWindow MuQtType; + typedef QMainWindow QtType; + + // + // Constructors + // + + QMainWindowType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QMainWindowType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[32]; +}; + +// Inheritable object + +class MuQt_QMainWindow : public QMainWindow +{ + public: + virtual ~MuQt_QMainWindow(); + MuQt_QMainWindow(Pointer muobj, const CallEnvironment*, QWidget * parent, Qt::WindowFlags flags) ; + virtual QMenu * createPopupMenu() ; + protected: + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual bool event(QEvent * event_) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void closeEvent(QCloseEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QMainWindow::contextMenuEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QMainWindow::event(event_); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QMainWindow::changeEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QMainWindow::closeEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QMainWindow::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QMainWindow::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QMainWindow::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QMainWindow::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QMainWindow::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QMainWindow::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QMainWindow::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QMainWindow::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QMainWindow::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QMainWindow::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QMainWindow::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QMainWindow::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QMainWindow::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QMainWindow::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QMainWindow::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QMainWindow::moveEvent(event); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QMainWindow::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QMainWindow::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QMainWindow::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QMainWindow::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QMainWindow::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QMainWindow::metric(m); } + public: + const QMainWindowType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QMainWindowType::cachedInstance(const QMainWindowType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QMainWindowType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QMarginsType.h b/src/lib/mu/MuQt6/MuQt6/QMarginsType.h new file mode 100644 index 000000000..025271b28 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QMarginsType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QMarginsType__h__ +#define __MuQt5__QMarginsType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QMarginsType : public Class +{ + public: + // + // Types + // + + typedef QMargins ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QMargins value; + }; + + // + // Constructors + // + + QMarginsType(Context* context, const char* name, Class* superClass = 0); + virtual ~QMarginsType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QMarginsType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QMatrix4x4Type.h b/src/lib/mu/MuQt6/MuQt6/QMatrix4x4Type.h new file mode 100644 index 000000000..a7d6ccc16 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QMatrix4x4Type.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QMatrix4x4Type__h__ +#define __MuQt5__QMatrix4x4Type__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QMatrix4x4Type : public Class +{ + public: + // + // Types + // + + typedef QMatrix4x4 ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QMatrix4x4 value; + }; + + // + // Constructors + // + + QMatrix4x4Type(Context* context, const char* name, Class* superClass = 0); + virtual ~QMatrix4x4Type(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QMatrix4x4Type__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QMenuBarType.h b/src/lib/mu/MuQt6/MuQt6/QMenuBarType.h new file mode 100644 index 000000000..21d14ffda --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QMenuBarType.h @@ -0,0 +1,173 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QMenuBarType__h__ +#define __MuQt6__QMenuBarType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QMenuBar; + +class QMenuBarType : public Class +{ + public: + + typedef MuQt_QMenuBar MuQtType; + typedef QMenuBar QtType; + + // + // Constructors + // + + QMenuBarType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QMenuBarType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[33]; +}; + +// Inheritable object + +class MuQt_QMenuBar : public QMenuBar +{ + public: + virtual ~MuQt_QMenuBar(); + MuQt_QMenuBar(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual int heightForWidth(int _p3) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * e) ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * object, QEvent * event) ; + virtual void focusInEvent(QFocusEvent * _p14) ; + virtual void focusOutEvent(QFocusEvent * _p14) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void leaveEvent(QEvent * _p9) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * e) ; + virtual void resizeEvent(QResizeEvent * _p15) ; + virtual void timerEvent(QTimerEvent * e) ; + public: + virtual bool hasHeightForWidth() const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QMenuBar::changeEvent(e); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QMenuBar::event(e); } + bool eventFilter_pub(QObject * object, QEvent * event) { return eventFilter(object, event); } + bool eventFilter_pub_parent(QObject * object, QEvent * event) { return QMenuBar::eventFilter(object, event); } + void focusInEvent_pub(QFocusEvent * _p14) { focusInEvent(_p14); } + void focusInEvent_pub_parent(QFocusEvent * _p14) { QMenuBar::focusInEvent(_p14); } + void focusOutEvent_pub(QFocusEvent * _p14) { focusOutEvent(_p14); } + void focusOutEvent_pub_parent(QFocusEvent * _p14) { QMenuBar::focusOutEvent(_p14); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QMenuBar::keyPressEvent(e); } + void leaveEvent_pub(QEvent * _p9) { leaveEvent(_p9); } + void leaveEvent_pub_parent(QEvent * _p9) { QMenuBar::leaveEvent(_p9); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QMenuBar::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QMenuBar::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QMenuBar::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * e) { paintEvent(e); } + void paintEvent_pub_parent(QPaintEvent * e) { QMenuBar::paintEvent(e); } + void resizeEvent_pub(QResizeEvent * _p15) { resizeEvent(_p15); } + void resizeEvent_pub_parent(QResizeEvent * _p15) { QMenuBar::resizeEvent(_p15); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QMenuBar::timerEvent(e); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QMenuBar::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QMenuBar::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QMenuBar::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QMenuBar::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QMenuBar::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QMenuBar::dropEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QMenuBar::focusNextPrevChild(next); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QMenuBar::hideEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QMenuBar::keyReleaseEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QMenuBar::mouseDoubleClickEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QMenuBar::moveEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QMenuBar::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QMenuBar::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QMenuBar::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QMenuBar::metric(m); } + public: + const QMenuBarType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QMenuBarType::cachedInstance(const QMenuBarType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QMenuBarType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QMenuType.h b/src/lib/mu/MuQt6/MuQt6/QMenuType.h new file mode 100644 index 000000000..805c5af33 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QMenuType.h @@ -0,0 +1,173 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QMenuType__h__ +#define __MuQt6__QMenuType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QMenu; + +class QMenuType : public Class +{ + public: + + typedef MuQt_QMenu MuQtType; + typedef QMenu QtType; + + // + // Constructors + // + + QMenuType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QMenuType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[32]; +}; + +// Inheritable object + +class MuQt_QMenu : public QMenu +{ + public: + virtual ~MuQt_QMenu(); + MuQt_QMenu(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QMenu(Pointer muobj, const CallEnvironment*, const QString & title, QWidget * parent) ; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * e) ; + virtual bool event(QEvent * e) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void hideEvent(QHideEvent * _p13) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void leaveEvent(QEvent * _p9) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * e) ; + virtual void timerEvent(QTimerEvent * e) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + int columnCount_pub() const { return columnCount(); } + int columnCount_pub_parent() const { return QMenu::columnCount(); } + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QMenu::changeEvent(e); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QMenu::event(e); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QMenu::focusNextPrevChild(next); } + void hideEvent_pub(QHideEvent * _p13) { hideEvent(_p13); } + void hideEvent_pub_parent(QHideEvent * _p13) { QMenu::hideEvent(_p13); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QMenu::keyPressEvent(e); } + void leaveEvent_pub(QEvent * _p9) { leaveEvent(_p9); } + void leaveEvent_pub_parent(QEvent * _p9) { QMenu::leaveEvent(_p9); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QMenu::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QMenu::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QMenu::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * e) { paintEvent(e); } + void paintEvent_pub_parent(QPaintEvent * e) { QMenu::paintEvent(e); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QMenu::timerEvent(e); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QMenu::wheelEvent(e); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QMenu::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QMenu::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QMenu::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QMenu::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QMenu::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QMenu::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QMenu::focusInEvent(event); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QMenu::focusOutEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QMenu::keyReleaseEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QMenu::mouseDoubleClickEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QMenu::moveEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QMenu::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QMenu::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QMenu::tabletEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QMenu::metric(m); } + public: + const QMenuType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QMenuType::cachedInstance(const QMenuType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QMenuType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QMimeDataType.h b/src/lib/mu/MuQt6/MuQt6/QMimeDataType.h new file mode 100644 index 000000000..09dc7840e --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QMimeDataType.h @@ -0,0 +1,92 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QMimeDataType__h__ +#define __MuQt6__QMimeDataType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QMimeData; + +class QMimeDataType : public Class +{ + public: + + typedef MuQt_QMimeData MuQtType; + typedef QMimeData QtType; + + // + // Constructors + // + + QMimeDataType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QMimeDataType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[6]; +}; + +// Inheritable object + +class MuQt_QMimeData : public QMimeData +{ + public: + virtual ~MuQt_QMimeData(); + MuQt_QMimeData(Pointer muobj, const CallEnvironment*) ; + virtual QStringList formats() const; + virtual bool hasFormat(const QString & mimeType) const; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QMimeData::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QMimeData::timerEvent(event); } + public: + const QMimeDataType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QMimeDataType::cachedInstance(const QMimeDataType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QMimeDataType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QModelIndexType.h b/src/lib/mu/MuQt6/MuQt6/QModelIndexType.h new file mode 100644 index 000000000..4f82de24d --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QModelIndexType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QModelIndexType__h__ +#define __MuQt5__QModelIndexType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QModelIndexType : public Class +{ + public: + // + // Types + // + + typedef QModelIndex ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QModelIndex value; + }; + + // + // Constructors + // + + QModelIndexType(Context* context, const char* name, Class* superClass = 0); + virtual ~QModelIndexType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QModelIndexType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QMouseEventType.h b/src/lib/mu/MuQt6/MuQt6/QMouseEventType.h new file mode 100644 index 000000000..bc78c8fe8 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QMouseEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QMouseEventType__h__ +#define __MuQt5__QMouseEventType__h__ +#include +#include + +namespace Mu { + +class QMouseEventType : public Class +{ + public: + // + // Types + // + + typedef QMouseEvent ValueType; + + struct Struct + { + QMouseEvent* object; + }; + + // + // Constructors + // + + QMouseEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QMouseEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QMouseEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QMoveEventType.h b/src/lib/mu/MuQt6/MuQt6/QMoveEventType.h new file mode 100644 index 000000000..290b832ca --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QMoveEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QMoveEventType__h__ +#define __MuQt5__QMoveEventType__h__ +#include +#include + +namespace Mu { + +class QMoveEventType : public Class +{ + public: + // + // Types + // + + typedef QMoveEvent ValueType; + + struct Struct + { + QMoveEvent* object; + }; + + // + // Constructors + // + + QMoveEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QMoveEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QMoveEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QNetworkAccessManagerType.h b/src/lib/mu/MuQt6/MuQt6/QNetworkAccessManagerType.h new file mode 100644 index 000000000..d5c568384 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QNetworkAccessManagerType.h @@ -0,0 +1,91 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QNetworkAccessManagerType__h__ +#define __MuQt6__QNetworkAccessManagerType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QNetworkAccessManager; + +class QNetworkAccessManagerType : public Class +{ + public: + + typedef MuQt_QNetworkAccessManager MuQtType; + typedef QNetworkAccessManager QtType; + + // + // Constructors + // + + QNetworkAccessManagerType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QNetworkAccessManagerType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[5]; +}; + +// Inheritable object + +class MuQt_QNetworkAccessManager : public QNetworkAccessManager +{ + public: + virtual ~MuQt_QNetworkAccessManager(); + MuQt_QNetworkAccessManager(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual QStringList supportedSchemes() const; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QNetworkAccessManager::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QNetworkAccessManager::timerEvent(event); } + public: + const QNetworkAccessManagerType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QNetworkAccessManagerType::cachedInstance(const QNetworkAccessManagerType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QNetworkAccessManagerType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QNetworkCookieJarType.h b/src/lib/mu/MuQt6/MuQt6/QNetworkCookieJarType.h new file mode 100644 index 000000000..e9649feb7 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QNetworkCookieJarType.h @@ -0,0 +1,104 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QNetworkCookieJarType__h__ +#define __MuQt6__QNetworkCookieJarType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QNetworkCookieJar; + +class QNetworkCookieJarType : public Class +{ + public: + + typedef MuQt_QNetworkCookieJar MuQtType; + typedef QNetworkCookieJar QtType; + + // + // Constructors + // + + QNetworkCookieJarType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QNetworkCookieJarType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[10]; +}; + +// Inheritable object + +class MuQt_QNetworkCookieJar : public QNetworkCookieJar +{ + public: + virtual ~MuQt_QNetworkCookieJar(); + MuQt_QNetworkCookieJar(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual QList cookiesForUrl(const QUrl & url) const; + virtual bool deleteCookie(const QNetworkCookie & cookie) ; + virtual bool insertCookie(const QNetworkCookie & cookie) ; + virtual bool setCookiesFromUrl(const QList & cookieList, const QUrl & url) ; + virtual bool updateCookie(const QNetworkCookie & cookie) ; + protected: + virtual bool validateCookie(const QNetworkCookie & cookie, const QUrl & url) const; + public: + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + QList allCookies_pub() const { return allCookies(); } + QList allCookies_pub_parent() const { return QNetworkCookieJar::allCookies(); } + void setAllCookies_pub(const QList & cookieList) { setAllCookies(cookieList); } + void setAllCookies_pub_parent(const QList & cookieList) { QNetworkCookieJar::setAllCookies(cookieList); } + bool validateCookie_pub(const QNetworkCookie & cookie, const QUrl & url) const { return validateCookie(cookie, url); } + bool validateCookie_pub_parent(const QNetworkCookie & cookie, const QUrl & url) const { return QNetworkCookieJar::validateCookie(cookie, url); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QNetworkCookieJar::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QNetworkCookieJar::timerEvent(event); } + public: + const QNetworkCookieJarType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QNetworkCookieJarType::cachedInstance(const QNetworkCookieJarType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QNetworkCookieJarType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QNetworkCookieType.h b/src/lib/mu/MuQt6/MuQt6/QNetworkCookieType.h new file mode 100644 index 000000000..d9e1ee16b --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QNetworkCookieType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QNetworkCookieType__h__ +#define __MuQt5__QNetworkCookieType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QNetworkCookieType : public Class +{ + public: + // + // Types + // + + typedef QNetworkCookie ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QNetworkCookie value; + }; + + // + // Constructors + // + + QNetworkCookieType(Context* context, const char* name, Class* superClass = 0); + virtual ~QNetworkCookieType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QNetworkCookieType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QNetworkReplyType.h b/src/lib/mu/MuQt6/MuQt6/QNetworkReplyType.h new file mode 100644 index 000000000..6f8d371f7 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QNetworkReplyType.h @@ -0,0 +1,68 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QNetworkReplyType__h__ +#define __MuQt6__QNetworkReplyType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QNetworkReplyType : public Class +{ + public: + + typedef QNetworkReply MuQt_QNetworkReply; + typedef MuQt_QNetworkReply MuQtType; + typedef QNetworkReply QtType; + + // + // Constructors + // + + QNetworkReplyType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QNetworkReplyType(); + + static bool isInheritable() { return false; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[15]; +}; + + +inline ClassInstance* QNetworkReplyType::cachedInstance(const QNetworkReplyType::MuQtType* obj) { return 0; } + +} // Mu + +#endif // __MuQt__QNetworkReplyType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QObjectType.h b/src/lib/mu/MuQt6/MuQt6/QObjectType.h new file mode 100644 index 000000000..1ad382b0f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QObjectType.h @@ -0,0 +1,95 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QObjectType__h__ +#define __MuQt6__QObjectType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QObject; + +class QObjectType : public Class +{ + public: + + struct Struct { QObject* object; }; + typedef MuQt_QObject MuQtType; + typedef QObject QtType; + + // + // Constructors + // + + QObjectType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QObjectType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QObject : public QObject +{ + public: + virtual ~MuQt_QObject(); + MuQt_QObject(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QObject::customEvent(event); } + QObject * sender_pub() const { return sender(); } + QObject * sender_pub_parent() const { return QObject::sender(); } + int senderSignalIndex_pub() const { return senderSignalIndex(); } + int senderSignalIndex_pub_parent() const { return QObject::senderSignalIndex(); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QObject::timerEvent(event); } + public: + const QObjectType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QObjectType::cachedInstance(const QObjectType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QObjectType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QPaintDeviceType.h b/src/lib/mu/MuQt6/MuQt6/QPaintDeviceType.h new file mode 100644 index 000000000..d4c34b5b3 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QPaintDeviceType.h @@ -0,0 +1,78 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QPaintDeviceType__h__ +#define __MuQt6__QPaintDeviceType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QPaintDevice; + +class QPaintDeviceType : public Class +{ + public: + + struct Struct { QPaintDevice* object; }; + typedef MuQt_QPaintDevice MuQtType; + typedef QPaintDevice QtType; + + // + // Constructors + // + + QPaintDeviceType(Context* context, const char* name, Class* superClass = 0); + virtual ~QPaintDeviceType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[1]; +}; + +// Inheritable object + +class MuQt_QPaintDevice : public QPaintDevice +{ + public: + virtual ~MuQt_QPaintDevice(); + protected: + MuQt_QPaintDevice(Pointer muobj, const CallEnvironment*) ; + virtual int metric(QPaintDevice::PaintDeviceMetric metric_) const; + public: + int metric_pub(QPaintDevice::PaintDeviceMetric metric_) const { return metric(metric_); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric metric_) const { return QPaintDevice::metric(metric_); } + public: + const QPaintDeviceType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QPaintDeviceType::cachedInstance(const QPaintDeviceType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt6__QPaintDeviceType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QPaintEventType.h b/src/lib/mu/MuQt6/MuQt6/QPaintEventType.h new file mode 100644 index 000000000..1a871080b --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QPaintEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QPaintEventType__h__ +#define __MuQt5__QPaintEventType__h__ +#include +#include + +namespace Mu { + +class QPaintEventType : public Class +{ + public: + // + // Types + // + + typedef QPaintEvent ValueType; + + struct Struct + { + QPaintEvent* object; + }; + + // + // Constructors + // + + QPaintEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QPaintEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QPaintEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QPaletteType.h b/src/lib/mu/MuQt6/MuQt6/QPaletteType.h new file mode 100644 index 000000000..0fc68783e --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QPaletteType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QPaletteType__h__ +#define __MuQt5__QPaletteType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QPaletteType : public Class +{ + public: + // + // Types + // + + typedef QPalette ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QPalette value; + }; + + // + // Constructors + // + + QPaletteType(Context* context, const char* name, Class* superClass = 0); + virtual ~QPaletteType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QPaletteType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QPixmapType.h b/src/lib/mu/MuQt6/MuQt6/QPixmapType.h new file mode 100644 index 000000000..0c5148341 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QPixmapType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QPixmapType__h__ +#define __MuQt5__QPixmapType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QPixmapType : public Class +{ + public: + // + // Types + // + + typedef QPixmap ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QPixmap value; + }; + + // + // Constructors + // + + QPixmapType(Context* context, const char* name, Class* superClass = 0); + virtual ~QPixmapType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QPixmapType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QPlainTextEditType.h b/src/lib/mu/MuQt6/MuQt6/QPlainTextEditType.h new file mode 100644 index 000000000..c62daf8ee --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QPlainTextEditType.h @@ -0,0 +1,176 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QPlainTextEditType__h__ +#define __MuQt6__QPlainTextEditType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QPlainTextEdit; + +class QPlainTextEditType : public Class +{ + public: + + typedef MuQt_QPlainTextEdit MuQtType; + typedef QPlainTextEdit QtType; + + // + // Constructors + // + + QPlainTextEditType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QPlainTextEditType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[31]; +}; + +// Inheritable object + +class MuQt_QPlainTextEdit : public QPlainTextEdit +{ + public: + virtual ~MuQt_QPlainTextEdit(); + MuQt_QPlainTextEdit(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QPlainTextEdit(Pointer muobj, const CallEnvironment*, const QString & text, QWidget * parent) ; + virtual QVariant loadResource(int type, const QUrl & name) ; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; + protected: + virtual bool canInsertFromMimeData(const QMimeData * source) const; + virtual QMimeData * createMimeDataFromSelection() const; + virtual void insertFromMimeData(const QMimeData * source) ; + virtual void changeEvent(QEvent * e) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * e) ; + virtual void dragLeaveEvent(QDragLeaveEvent * e) ; + virtual void dragMoveEvent(QDragMoveEvent * e) ; + virtual void dropEvent(QDropEvent * e) ; + virtual void focusInEvent(QFocusEvent * e) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mouseDoubleClickEvent(QMouseEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * e) ; + virtual void resizeEvent(QResizeEvent * e) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual void showEvent(QShowEvent * _p13) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + virtual void setupViewport(QWidget * viewport) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual bool viewportEvent(QEvent * event) ; + virtual QSize viewportSizeHint() const; + virtual bool event(QEvent * event_) ; + public: + QRectF blockBoundingGeometry_pub(const QTextBlock & block) const { return blockBoundingGeometry(block); } + QRectF blockBoundingGeometry_pub_parent(const QTextBlock & block) const { return QPlainTextEdit::blockBoundingGeometry(block); } + QRectF blockBoundingRect_pub(const QTextBlock & block) const { return blockBoundingRect(block); } + QRectF blockBoundingRect_pub_parent(const QTextBlock & block) const { return QPlainTextEdit::blockBoundingRect(block); } + bool canInsertFromMimeData_pub(const QMimeData * source) const { return canInsertFromMimeData(source); } + bool canInsertFromMimeData_pub_parent(const QMimeData * source) const { return QPlainTextEdit::canInsertFromMimeData(source); } + QPointF contentOffset_pub() const { return contentOffset(); } + QPointF contentOffset_pub_parent() const { return QPlainTextEdit::contentOffset(); } + QMimeData * createMimeDataFromSelection_pub() const { return createMimeDataFromSelection(); } + QMimeData * createMimeDataFromSelection_pub_parent() const { return QPlainTextEdit::createMimeDataFromSelection(); } + QTextBlock firstVisibleBlock_pub() const { return firstVisibleBlock(); } + QTextBlock firstVisibleBlock_pub_parent() const { return QPlainTextEdit::firstVisibleBlock(); } + void insertFromMimeData_pub(const QMimeData * source) { insertFromMimeData(source); } + void insertFromMimeData_pub_parent(const QMimeData * source) { QPlainTextEdit::insertFromMimeData(source); } + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QPlainTextEdit::changeEvent(e); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QPlainTextEdit::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * e) { dragEnterEvent(e); } + void dragEnterEvent_pub_parent(QDragEnterEvent * e) { QPlainTextEdit::dragEnterEvent(e); } + void dragLeaveEvent_pub(QDragLeaveEvent * e) { dragLeaveEvent(e); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * e) { QPlainTextEdit::dragLeaveEvent(e); } + void dragMoveEvent_pub(QDragMoveEvent * e) { dragMoveEvent(e); } + void dragMoveEvent_pub_parent(QDragMoveEvent * e) { QPlainTextEdit::dragMoveEvent(e); } + void dropEvent_pub(QDropEvent * e) { dropEvent(e); } + void dropEvent_pub_parent(QDropEvent * e) { QPlainTextEdit::dropEvent(e); } + void focusInEvent_pub(QFocusEvent * e) { focusInEvent(e); } + void focusInEvent_pub_parent(QFocusEvent * e) { QPlainTextEdit::focusInEvent(e); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QPlainTextEdit::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * e) { focusOutEvent(e); } + void focusOutEvent_pub_parent(QFocusEvent * e) { QPlainTextEdit::focusOutEvent(e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QPlainTextEdit::keyPressEvent(e); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QPlainTextEdit::keyReleaseEvent(e); } + void mouseDoubleClickEvent_pub(QMouseEvent * e) { mouseDoubleClickEvent(e); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * e) { QPlainTextEdit::mouseDoubleClickEvent(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QPlainTextEdit::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QPlainTextEdit::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QPlainTextEdit::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * e) { paintEvent(e); } + void paintEvent_pub_parent(QPaintEvent * e) { QPlainTextEdit::paintEvent(e); } + void resizeEvent_pub(QResizeEvent * e) { resizeEvent(e); } + void resizeEvent_pub_parent(QResizeEvent * e) { QPlainTextEdit::resizeEvent(e); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QPlainTextEdit::scrollContentsBy(dx, dy); } + void showEvent_pub(QShowEvent * _p13) { showEvent(_p13); } + void showEvent_pub_parent(QShowEvent * _p13) { QPlainTextEdit::showEvent(_p13); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QPlainTextEdit::wheelEvent(e); } + bool viewportEvent_pub(QEvent * event) { return viewportEvent(event); } + bool viewportEvent_pub_parent(QEvent * event) { return QPlainTextEdit::viewportEvent(event); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QPlainTextEdit::viewportSizeHint(); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QPlainTextEdit::event(event_); } + public: + const QPlainTextEditType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QPlainTextEditType::cachedInstance(const QPlainTextEditType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QPlainTextEditType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QPointFType.h b/src/lib/mu/MuQt6/MuQt6/QPointFType.h new file mode 100644 index 000000000..34959ef9c --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QPointFType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QPointFType__h__ +#define __MuQt5__QPointFType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QPointFType : public Class +{ + public: + // + // Types + // + + typedef QPointF ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QPointF value; + }; + + // + // Constructors + // + + QPointFType(Context* context, const char* name, Class* superClass = 0); + virtual ~QPointFType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QPointFType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QPointType.h b/src/lib/mu/MuQt6/MuQt6/QPointType.h new file mode 100644 index 000000000..c2e9c2a41 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QPointType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QPointType__h__ +#define __MuQt5__QPointType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QPointType : public Class +{ + public: + // + // Types + // + + typedef QPoint ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QPoint value; + }; + + // + // Constructors + // + + QPointType(Context* context, const char* name, Class* superClass = 0); + virtual ~QPointType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QPointType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QPointerEventType.h b/src/lib/mu/MuQt6/MuQt6/QPointerEventType.h new file mode 100644 index 000000000..e3a5f72dc --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QPointerEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QPointerEventType__h__ +#define __MuQt5__QPointerEventType__h__ +#include +#include + +namespace Mu { + +class QPointerEventType : public Class +{ + public: + // + // Types + // + + typedef QPointerEvent ValueType; + + struct Struct + { + QPointerEvent* object; + }; + + // + // Constructors + // + + QPointerEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QPointerEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QPointerEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QProcessEnvironmentType.h b/src/lib/mu/MuQt6/MuQt6/QProcessEnvironmentType.h new file mode 100644 index 000000000..a993fdda8 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QProcessEnvironmentType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QProcessEnvironmentType__h__ +#define __MuQt5__QProcessEnvironmentType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QProcessEnvironmentType : public Class +{ + public: + // + // Types + // + + typedef QProcessEnvironment ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QProcessEnvironment value; + }; + + // + // Constructors + // + + QProcessEnvironmentType(Context* context, const char* name, Class* superClass = 0); + virtual ~QProcessEnvironmentType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QProcessEnvironmentType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QProcessType.h b/src/lib/mu/MuQt6/MuQt6/QProcessType.h new file mode 100644 index 000000000..1c15d4871 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QProcessType.h @@ -0,0 +1,100 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QProcessType__h__ +#define __MuQt6__QProcessType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QProcess; + +class QProcessType : public Class +{ + public: + + typedef MuQt_QProcess MuQtType; + typedef QProcess QtType; + + // + // Constructors + // + + QProcessType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QProcessType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[14]; +}; + +// Inheritable object + +class MuQt_QProcess : public QProcess +{ + public: + virtual ~MuQt_QProcess(); + MuQt_QProcess(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual qint64 bytesToWrite() const; + virtual void close() ; + virtual bool isSequential() const; + virtual bool open(QIODeviceBase::OpenMode mode) ; + virtual bool waitForBytesWritten(int msecs) ; + virtual bool waitForReadyRead(int msecs) ; + virtual bool atEnd() const; + virtual qint64 bytesAvailable() const; + virtual bool canReadLine() const; + virtual qint64 pos() const; + virtual bool reset() ; + virtual bool seek(qint64 pos) ; + virtual qint64 size() const; + protected: + virtual qint64 skipData(qint64 maxSize) ; + public: + void setProcessState_pub(QProcess::ProcessState state) { setProcessState(state); } + void setProcessState_pub_parent(QProcess::ProcessState state) { QProcess::setProcessState(state); } + qint64 skipData_pub(qint64 maxSize) { return skipData(maxSize); } + qint64 skipData_pub_parent(qint64 maxSize) { return QProcess::skipData(maxSize); } + public: + const QProcessType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QProcessType::cachedInstance(const QProcessType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QProcessType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QProgressBarType.h b/src/lib/mu/MuQt6/MuQt6/QProgressBarType.h new file mode 100644 index 000000000..2d9fa250c --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QProgressBarType.h @@ -0,0 +1,168 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QProgressBarType__h__ +#define __MuQt6__QProgressBarType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QProgressBar; + +class QProgressBarType : public Class +{ + public: + + typedef MuQt_QProgressBar MuQtType; + typedef QProgressBar QtType; + + // + // Constructors + // + + QProgressBarType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QProgressBarType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[32]; +}; + +// Inheritable object + +class MuQt_QProgressBar : public QProgressBar +{ + public: + virtual ~MuQt_QProgressBar(); + MuQt_QProgressBar(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual QString text() const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual bool event(QEvent * e) ; + virtual void paintEvent(QPaintEvent * _p14) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QProgressBar::event(e); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QProgressBar::paintEvent(_p14); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QProgressBar::changeEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QProgressBar::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QProgressBar::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QProgressBar::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QProgressBar::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QProgressBar::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QProgressBar::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QProgressBar::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QProgressBar::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QProgressBar::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QProgressBar::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QProgressBar::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QProgressBar::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QProgressBar::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QProgressBar::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QProgressBar::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QProgressBar::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QProgressBar::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QProgressBar::moveEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QProgressBar::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QProgressBar::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QProgressBar::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QProgressBar::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QProgressBar::metric(m); } + public: + const QProgressBarType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QProgressBarType::cachedInstance(const QProgressBarType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QProgressBarType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QPushButtonType.h b/src/lib/mu/MuQt6/MuQt6/QPushButtonType.h new file mode 100644 index 000000000..9a0f57e23 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QPushButtonType.h @@ -0,0 +1,128 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QPushButtonType__h__ +#define __MuQt6__QPushButtonType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QPushButton; + +class QPushButtonType : public Class +{ + public: + + typedef MuQt_QPushButton MuQtType; + typedef QPushButton QtType; + + // + // Constructors + // + + QPushButtonType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QPushButtonType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[16]; +}; + +// Inheritable object + +class MuQt_QPushButton : public QPushButton +{ + public: + virtual ~MuQt_QPushButton(); + MuQt_QPushButton(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QPushButton(Pointer muobj, const CallEnvironment*, const QString & text, QWidget * parent) ; + MuQt_QPushButton(Pointer muobj, const CallEnvironment*, const QIcon & icon, const QString & text, QWidget * parent) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual bool event(QEvent * e) ; + virtual void focusInEvent(QFocusEvent * e) ; + virtual void focusOutEvent(QFocusEvent * e) ; + virtual bool hitButton(const QPoint & pos) const; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * _p14) ; + virtual void checkStateSet() ; + virtual void nextCheckState() ; + virtual void changeEvent(QEvent * e) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void timerEvent(QTimerEvent * e) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QPushButton::event(e); } + void focusInEvent_pub(QFocusEvent * e) { focusInEvent(e); } + void focusInEvent_pub_parent(QFocusEvent * e) { QPushButton::focusInEvent(e); } + void focusOutEvent_pub(QFocusEvent * e) { focusOutEvent(e); } + void focusOutEvent_pub_parent(QFocusEvent * e) { QPushButton::focusOutEvent(e); } + bool hitButton_pub(const QPoint & pos) const { return hitButton(pos); } + bool hitButton_pub_parent(const QPoint & pos) const { return QPushButton::hitButton(pos); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QPushButton::keyPressEvent(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QPushButton::mouseMoveEvent(e); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QPushButton::paintEvent(_p14); } + void checkStateSet_pub() { checkStateSet(); } + void checkStateSet_pub_parent() { QPushButton::checkStateSet(); } + void nextCheckState_pub() { nextCheckState(); } + void nextCheckState_pub_parent() { QPushButton::nextCheckState(); } + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QPushButton::changeEvent(e); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QPushButton::keyReleaseEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QPushButton::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QPushButton::mouseReleaseEvent(e); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QPushButton::timerEvent(e); } + public: + const QPushButtonType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QPushButtonType::cachedInstance(const QPushButtonType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QPushButtonType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QQmlApplicationEngineType.h b/src/lib/mu/MuQt6/MuQt6/QQmlApplicationEngineType.h new file mode 100644 index 000000000..17d916aef --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QQmlApplicationEngineType.h @@ -0,0 +1,87 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QQmlApplicationEngineType__h__ +#define __MuQt6__QQmlApplicationEngineType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QQmlApplicationEngine; + +class QQmlApplicationEngineType : public Class +{ + public: + + typedef MuQt_QQmlApplicationEngine MuQtType; + typedef QQmlApplicationEngine QtType; + + // + // Constructors + // + + QQmlApplicationEngineType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QQmlApplicationEngineType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[1]; +}; + +// Inheritable object + +class MuQt_QQmlApplicationEngine : public QQmlApplicationEngine +{ + public: + virtual ~MuQt_QQmlApplicationEngine(); + MuQt_QQmlApplicationEngine(Pointer muobj, const CallEnvironment*, QObject * parent) ; + MuQt_QQmlApplicationEngine(Pointer muobj, const CallEnvironment*, const QUrl & url, QObject * parent) ; + MuQt_QQmlApplicationEngine(Pointer muobj, const CallEnvironment*, const QString & filePath, QObject * parent) ; + protected: + virtual bool event(QEvent * e) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QQmlApplicationEngine::event(e); } + public: + const QQmlApplicationEngineType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QQmlApplicationEngineType::cachedInstance(const QQmlApplicationEngineType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QQmlApplicationEngineType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QQmlContextType.h b/src/lib/mu/MuQt6/MuQt6/QQmlContextType.h new file mode 100644 index 000000000..e42a315bd --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QQmlContextType.h @@ -0,0 +1,91 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QQmlContextType__h__ +#define __MuQt6__QQmlContextType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QQmlContext; + +class QQmlContextType : public Class +{ + public: + + typedef MuQt_QQmlContext MuQtType; + typedef QQmlContext QtType; + + // + // Constructors + // + + QQmlContextType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QQmlContextType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QQmlContext : public QQmlContext +{ + public: + virtual ~MuQt_QQmlContext(); + MuQt_QQmlContext(Pointer muobj, const CallEnvironment*, QQmlEngine * engine, QObject * parent) ; + MuQt_QQmlContext(Pointer muobj, const CallEnvironment*, QQmlContext * parentContext, QObject * parent) ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QQmlContext::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QQmlContext::timerEvent(event); } + public: + const QQmlContextType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QQmlContextType::cachedInstance(const QQmlContextType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QQmlContextType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QQmlEngineType.h b/src/lib/mu/MuQt6/MuQt6/QQmlEngineType.h new file mode 100644 index 000000000..83b97a287 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QQmlEngineType.h @@ -0,0 +1,85 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QQmlEngineType__h__ +#define __MuQt6__QQmlEngineType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QQmlEngine; + +class QQmlEngineType : public Class +{ + public: + + typedef MuQt_QQmlEngine MuQtType; + typedef QQmlEngine QtType; + + // + // Constructors + // + + QQmlEngineType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QQmlEngineType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[1]; +}; + +// Inheritable object + +class MuQt_QQmlEngine : public QQmlEngine +{ + public: + virtual ~MuQt_QQmlEngine(); + MuQt_QQmlEngine(Pointer muobj, const CallEnvironment*, QObject * parent) ; + protected: + virtual bool event(QEvent * e) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QQmlEngine::event(e); } + public: + const QQmlEngineType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QQmlEngineType::cachedInstance(const QQmlEngineType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QQmlEngineType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QQuickItemType.h b/src/lib/mu/MuQt6/MuQt6/QQuickItemType.h new file mode 100644 index 000000000..0c9564925 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QQuickItemType.h @@ -0,0 +1,179 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QQuickItemType__h__ +#define __MuQt6__QQuickItemType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QQuickItem; + +class QQuickItemType : public Class +{ + public: + + typedef MuQt_QQuickItem MuQtType; + typedef QQuickItem QtType; + + // + // Constructors + // + + QQuickItemType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QQuickItemType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[33]; +}; + +// Inheritable object + +class MuQt_QQuickItem : public QQuickItem +{ + public: + virtual ~MuQt_QQuickItem(); + MuQt_QQuickItem(Pointer muobj, const CallEnvironment*, QQuickItem * parent) ; + virtual QRectF boundingRect() const; + virtual QRectF clipRect() const; + virtual bool contains(const QPointF & point) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual bool isTextureProvider() const; + protected: + virtual bool childMouseEventFilter(QQuickItem * item, QEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * _p14) ; + virtual void focusOutEvent(QFocusEvent * _p14) ; + virtual void geometryChange(const QRectF & newGeometry, const QRectF & oldGeometry) ; + virtual void hoverEnterEvent(QHoverEvent * event) ; + virtual void hoverLeaveEvent(QHoverEvent * event) ; + virtual void hoverMoveEvent(QHoverEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void mouseUngrabEvent() ; + virtual void releaseResources() ; + virtual void touchUngrabEvent() ; + virtual void updatePolish() ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual void classBegin() ; + virtual void componentComplete() ; + virtual bool event(QEvent * ev) ; + public: + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + bool childMouseEventFilter_pub(QQuickItem * item, QEvent * event) { return childMouseEventFilter(item, event); } + bool childMouseEventFilter_pub_parent(QQuickItem * item, QEvent * event) { return QQuickItem::childMouseEventFilter(item, event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QQuickItem::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QQuickItem::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QQuickItem::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QQuickItem::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * _p14) { focusInEvent(_p14); } + void focusInEvent_pub_parent(QFocusEvent * _p14) { QQuickItem::focusInEvent(_p14); } + void focusOutEvent_pub(QFocusEvent * _p14) { focusOutEvent(_p14); } + void focusOutEvent_pub_parent(QFocusEvent * _p14) { QQuickItem::focusOutEvent(_p14); } + void geometryChange_pub(const QRectF & newGeometry, const QRectF & oldGeometry) { geometryChange(newGeometry, oldGeometry); } + void geometryChange_pub_parent(const QRectF & newGeometry, const QRectF & oldGeometry) { QQuickItem::geometryChange(newGeometry, oldGeometry); } + bool heightValid_pub() const { return heightValid(); } + bool heightValid_pub_parent() const { return QQuickItem::heightValid(); } + void hoverEnterEvent_pub(QHoverEvent * event) { hoverEnterEvent(event); } + void hoverEnterEvent_pub_parent(QHoverEvent * event) { QQuickItem::hoverEnterEvent(event); } + void hoverLeaveEvent_pub(QHoverEvent * event) { hoverLeaveEvent(event); } + void hoverLeaveEvent_pub_parent(QHoverEvent * event) { QQuickItem::hoverLeaveEvent(event); } + void hoverMoveEvent_pub(QHoverEvent * event) { hoverMoveEvent(event); } + void hoverMoveEvent_pub_parent(QHoverEvent * event) { QQuickItem::hoverMoveEvent(event); } + bool isComponentComplete_pub() const { return isComponentComplete(); } + bool isComponentComplete_pub_parent() const { return QQuickItem::isComponentComplete(); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QQuickItem::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QQuickItem::keyReleaseEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QQuickItem::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QQuickItem::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QQuickItem::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QQuickItem::mouseReleaseEvent(event); } + void mouseUngrabEvent_pub() { mouseUngrabEvent(); } + void mouseUngrabEvent_pub_parent() { QQuickItem::mouseUngrabEvent(); } + void releaseResources_pub() { releaseResources(); } + void releaseResources_pub_parent() { QQuickItem::releaseResources(); } + void touchUngrabEvent_pub() { touchUngrabEvent(); } + void touchUngrabEvent_pub_parent() { QQuickItem::touchUngrabEvent(); } + void updateInputMethod_pub(Qt::InputMethodQueries queries) { updateInputMethod(queries); } + void updateInputMethod_pub_parent(Qt::InputMethodQueries queries) { QQuickItem::updateInputMethod(queries); } + void updatePolish_pub() { updatePolish(); } + void updatePolish_pub_parent() { QQuickItem::updatePolish(); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QQuickItem::wheelEvent(event); } + bool widthValid_pub() const { return widthValid(); } + bool widthValid_pub_parent() const { return QQuickItem::widthValid(); } + void classBegin_pub() { classBegin(); } + void classBegin_pub_parent() { QQuickItem::classBegin(); } + void componentComplete_pub() { componentComplete(); } + void componentComplete_pub_parent() { QQuickItem::componentComplete(); } + bool event_pub(QEvent * ev) { return event(ev); } + bool event_pub_parent(QEvent * ev) { return QQuickItem::event(ev); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QQuickItem::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QQuickItem::timerEvent(event); } + public: + const QQuickItemType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QQuickItemType::cachedInstance(const QQuickItemType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QQuickItemType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QQuickWidgetType.h b/src/lib/mu/MuQt6/MuQt6/QQuickWidgetType.h new file mode 100644 index 000000000..1fe098212 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QQuickWidgetType.h @@ -0,0 +1,169 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QQuickWidgetType__h__ +#define __MuQt6__QQuickWidgetType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QQuickWidget; + +class QQuickWidgetType : public Class +{ + public: + + typedef MuQt_QQuickWidget MuQtType; + typedef QQuickWidget QtType; + + // + // Constructors + // + + QQuickWidgetType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QQuickWidgetType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[31]; +}; + +// Inheritable object + +class MuQt_QQuickWidget : public QQuickWidget +{ + public: + virtual ~MuQt_QQuickWidget(); + MuQt_QQuickWidget(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QQuickWidget(Pointer muobj, const CallEnvironment*, QQmlEngine * engine, QWidget * parent) ; + MuQt_QQuickWidget(Pointer muobj, const CallEnvironment*, const QUrl & source, QWidget * parent) ; + protected: + virtual void dragEnterEvent(QDragEnterEvent * e) ; + virtual void dragLeaveEvent(QDragLeaveEvent * e) ; + virtual void dragMoveEvent(QDragMoveEvent * e) ; + virtual void dropEvent(QDropEvent * e) ; + virtual bool event(QEvent * e) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * _p13) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mouseDoubleClickEvent(QMouseEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void showEvent(QShowEvent * _p13) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void dragEnterEvent_pub(QDragEnterEvent * e) { dragEnterEvent(e); } + void dragEnterEvent_pub_parent(QDragEnterEvent * e) { QQuickWidget::dragEnterEvent(e); } + void dragLeaveEvent_pub(QDragLeaveEvent * e) { dragLeaveEvent(e); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * e) { QQuickWidget::dragLeaveEvent(e); } + void dragMoveEvent_pub(QDragMoveEvent * e) { dragMoveEvent(e); } + void dragMoveEvent_pub_parent(QDragMoveEvent * e) { QQuickWidget::dragMoveEvent(e); } + void dropEvent_pub(QDropEvent * e) { dropEvent(e); } + void dropEvent_pub_parent(QDropEvent * e) { QQuickWidget::dropEvent(e); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QQuickWidget::event(e); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QQuickWidget::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QQuickWidget::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QQuickWidget::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * _p13) { hideEvent(_p13); } + void hideEvent_pub_parent(QHideEvent * _p13) { QQuickWidget::hideEvent(_p13); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QQuickWidget::keyPressEvent(e); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QQuickWidget::keyReleaseEvent(e); } + void mouseDoubleClickEvent_pub(QMouseEvent * e) { mouseDoubleClickEvent(e); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * e) { QQuickWidget::mouseDoubleClickEvent(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QQuickWidget::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QQuickWidget::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QQuickWidget::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QQuickWidget::paintEvent(event); } + void showEvent_pub(QShowEvent * _p13) { showEvent(_p13); } + void showEvent_pub_parent(QShowEvent * _p13) { QQuickWidget::showEvent(_p13); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QQuickWidget::wheelEvent(e); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QQuickWidget::changeEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QQuickWidget::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QQuickWidget::contextMenuEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QQuickWidget::leaveEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QQuickWidget::moveEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QQuickWidget::resizeEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QQuickWidget::tabletEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QQuickWidget::metric(m); } + public: + const QQuickWidgetType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QQuickWidgetType::cachedInstance(const QQuickWidgetType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QQuickWidgetType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QRadialGradientType.h b/src/lib/mu/MuQt6/MuQt6/QRadialGradientType.h new file mode 100644 index 000000000..0889407fd --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QRadialGradientType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QRadialGradientType__h__ +#define __MuQt5__QRadialGradientType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QRadialGradientType : public Class +{ + public: + // + // Types + // + + typedef QRadialGradient ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QRadialGradient value; + }; + + // + // Constructors + // + + QRadialGradientType(Context* context, const char* name, Class* superClass = 0); + virtual ~QRadialGradientType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QRadialGradientType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QRadioButtonType.h b/src/lib/mu/MuQt6/MuQt6/QRadioButtonType.h new file mode 100644 index 000000000..675ee1cd6 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QRadioButtonType.h @@ -0,0 +1,127 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QRadioButtonType__h__ +#define __MuQt6__QRadioButtonType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QRadioButton; + +class QRadioButtonType : public Class +{ + public: + + typedef MuQt_QRadioButton MuQtType; + typedef QRadioButton QtType; + + // + // Constructors + // + + QRadioButtonType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QRadioButtonType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[16]; +}; + +// Inheritable object + +class MuQt_QRadioButton : public QRadioButton +{ + public: + virtual ~MuQt_QRadioButton(); + MuQt_QRadioButton(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QRadioButton(Pointer muobj, const CallEnvironment*, const QString & text, QWidget * parent) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual bool event(QEvent * e) ; + virtual bool hitButton(const QPoint & pos) const; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * _p14) ; + virtual void checkStateSet() ; + virtual void nextCheckState() ; + virtual void changeEvent(QEvent * e) ; + virtual void focusInEvent(QFocusEvent * e) ; + virtual void focusOutEvent(QFocusEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void timerEvent(QTimerEvent * e) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QRadioButton::event(e); } + bool hitButton_pub(const QPoint & pos) const { return hitButton(pos); } + bool hitButton_pub_parent(const QPoint & pos) const { return QRadioButton::hitButton(pos); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QRadioButton::mouseMoveEvent(e); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QRadioButton::paintEvent(_p14); } + void checkStateSet_pub() { checkStateSet(); } + void checkStateSet_pub_parent() { QRadioButton::checkStateSet(); } + void nextCheckState_pub() { nextCheckState(); } + void nextCheckState_pub_parent() { QRadioButton::nextCheckState(); } + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QRadioButton::changeEvent(e); } + void focusInEvent_pub(QFocusEvent * e) { focusInEvent(e); } + void focusInEvent_pub_parent(QFocusEvent * e) { QRadioButton::focusInEvent(e); } + void focusOutEvent_pub(QFocusEvent * e) { focusOutEvent(e); } + void focusOutEvent_pub_parent(QFocusEvent * e) { QRadioButton::focusOutEvent(e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QRadioButton::keyPressEvent(e); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QRadioButton::keyReleaseEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QRadioButton::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QRadioButton::mouseReleaseEvent(e); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QRadioButton::timerEvent(e); } + public: + const QRadioButtonType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QRadioButtonType::cachedInstance(const QRadioButtonType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QRadioButtonType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QRectFType.h b/src/lib/mu/MuQt6/MuQt6/QRectFType.h new file mode 100644 index 000000000..d042034c4 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QRectFType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QRectFType__h__ +#define __MuQt5__QRectFType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QRectFType : public Class +{ + public: + // + // Types + // + + typedef QRectF ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QRectF value; + }; + + // + // Constructors + // + + QRectFType(Context* context, const char* name, Class* superClass = 0); + virtual ~QRectFType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QRectFType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QRectType.h b/src/lib/mu/MuQt6/MuQt6/QRectType.h new file mode 100644 index 000000000..536c28f0b --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QRectType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QRectType__h__ +#define __MuQt5__QRectType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QRectType : public Class +{ + public: + // + // Types + // + + typedef QRect ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QRect value; + }; + + // + // Constructors + // + + QRectType(Context* context, const char* name, Class* superClass = 0); + virtual ~QRectType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QRectType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QRegionType.h b/src/lib/mu/MuQt6/MuQt6/QRegionType.h new file mode 100644 index 000000000..ec526337a --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QRegionType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QRegionType__h__ +#define __MuQt5__QRegionType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QRegionType : public Class +{ + public: + // + // Types + // + + typedef QRegion ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QRegion value; + }; + + // + // Constructors + // + + QRegionType(Context* context, const char* name, Class* superClass = 0); + virtual ~QRegionType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QRegionType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QRegularExpressionType.h b/src/lib/mu/MuQt6/MuQt6/QRegularExpressionType.h new file mode 100644 index 000000000..4b70e0299 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QRegularExpressionType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QRegularExpressionType__h__ +#define __MuQt5__QRegularExpressionType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QRegularExpressionType : public Class +{ + public: + // + // Types + // + + typedef QRegularExpression ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QRegularExpression value; + }; + + // + // Constructors + // + + QRegularExpressionType(Context* context, const char* name, Class* superClass = 0); + virtual ~QRegularExpressionType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QRegularExpressionType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QResizeEventType.h b/src/lib/mu/MuQt6/MuQt6/QResizeEventType.h new file mode 100644 index 000000000..c20d8d79f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QResizeEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QResizeEventType__h__ +#define __MuQt5__QResizeEventType__h__ +#include +#include + +namespace Mu { + +class QResizeEventType : public Class +{ + public: + // + // Types + // + + typedef QResizeEvent ValueType; + + struct Struct + { + QResizeEvent* object; + }; + + // + // Constructors + // + + QResizeEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QResizeEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QResizeEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QScreenType.h b/src/lib/mu/MuQt6/MuQt6/QScreenType.h new file mode 100644 index 000000000..3e5e7aa85 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QScreenType.h @@ -0,0 +1,89 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QScreenType__h__ +#define __MuQt6__QScreenType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QScreen; + +class QScreenType : public Class +{ + public: + + typedef MuQt_QScreen MuQtType; + typedef QScreen QtType; + + // + // Constructors + // + + QScreenType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QScreenType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QScreen : public QScreen +{ + public: + virtual ~MuQt_QScreen(); + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QScreen::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QScreen::timerEvent(event); } + public: + const QScreenType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QScreenType::cachedInstance(const QScreenType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QScreenType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QScrollAreaType.h b/src/lib/mu/MuQt6/MuQt6/QScrollAreaType.h new file mode 100644 index 000000000..556df3cd5 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QScrollAreaType.h @@ -0,0 +1,142 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QScrollAreaType__h__ +#define __MuQt6__QScrollAreaType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QScrollArea; + +class QScrollAreaType : public Class +{ + public: + + typedef MuQt_QScrollArea MuQtType; + typedef QScrollArea QtType; + + // + // Constructors + // + + QScrollAreaType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QScrollAreaType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[22]; +}; + +// Inheritable object + +class MuQt_QScrollArea : public QScrollArea +{ + public: + virtual ~MuQt_QScrollArea(); + MuQt_QScrollArea(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual bool focusNextPrevChild(bool next) ; + virtual QSize sizeHint() const; + protected: + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * o, QEvent * e) ; + virtual void resizeEvent(QResizeEvent * _p15) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual QSize viewportSizeHint() const; + public: + virtual void setupViewport(QWidget * viewport) ; + virtual QSize minimumSizeHint() const; + protected: + virtual bool viewportEvent(QEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * e) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void mouseDoubleClickEvent(QMouseEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QScrollArea::event(e); } + bool eventFilter_pub(QObject * o, QEvent * e) { return eventFilter(o, e); } + bool eventFilter_pub_parent(QObject * o, QEvent * e) { return QScrollArea::eventFilter(o, e); } + void resizeEvent_pub(QResizeEvent * _p15) { resizeEvent(_p15); } + void resizeEvent_pub_parent(QResizeEvent * _p15) { QScrollArea::resizeEvent(_p15); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QScrollArea::scrollContentsBy(dx, dy); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QScrollArea::viewportSizeHint(); } + bool viewportEvent_pub(QEvent * event) { return viewportEvent(event); } + bool viewportEvent_pub_parent(QEvent * event) { return QScrollArea::viewportEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * e) { contextMenuEvent(e); } + void contextMenuEvent_pub_parent(QContextMenuEvent * e) { QScrollArea::contextMenuEvent(e); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QScrollArea::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QScrollArea::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QScrollArea::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QScrollArea::dropEvent(event); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QScrollArea::keyPressEvent(e); } + void mouseDoubleClickEvent_pub(QMouseEvent * e) { mouseDoubleClickEvent(e); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * e) { QScrollArea::mouseDoubleClickEvent(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QScrollArea::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QScrollArea::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QScrollArea::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QScrollArea::paintEvent(event); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QScrollArea::wheelEvent(e); } + public: + const QScrollAreaType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QScrollAreaType::cachedInstance(const QScrollAreaType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QScrollAreaType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QShortcutEventType.h b/src/lib/mu/MuQt6/MuQt6/QShortcutEventType.h new file mode 100644 index 000000000..d6ebb1519 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QShortcutEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QShortcutEventType__h__ +#define __MuQt5__QShortcutEventType__h__ +#include +#include + +namespace Mu { + +class QShortcutEventType : public Class +{ + public: + // + // Types + // + + typedef QShortcutEvent ValueType; + + struct Struct + { + QShortcutEvent* object; + }; + + // + // Constructors + // + + QShortcutEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QShortcutEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QShortcutEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QShowEventType.h b/src/lib/mu/MuQt6/MuQt6/QShowEventType.h new file mode 100644 index 000000000..e63be1997 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QShowEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QShowEventType__h__ +#define __MuQt5__QShowEventType__h__ +#include +#include + +namespace Mu { + +class QShowEventType : public Class +{ + public: + // + // Types + // + + typedef QShowEvent ValueType; + + struct Struct + { + QShowEvent* object; + }; + + // + // Constructors + // + + QShowEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QShowEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QShowEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QSinglePointEventType.h b/src/lib/mu/MuQt6/MuQt6/QSinglePointEventType.h new file mode 100644 index 000000000..87f53b7b6 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QSinglePointEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QSinglePointEventType__h__ +#define __MuQt5__QSinglePointEventType__h__ +#include +#include + +namespace Mu { + +class QSinglePointEventType : public Class +{ + public: + // + // Types + // + + typedef QSinglePointEvent ValueType; + + struct Struct + { + QSinglePointEvent* object; + }; + + // + // Constructors + // + + QSinglePointEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QSinglePointEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QSinglePointEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QSizeType.h b/src/lib/mu/MuQt6/MuQt6/QSizeType.h new file mode 100644 index 000000000..8e010c030 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QSizeType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QSizeType__h__ +#define __MuQt5__QSizeType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QSizeType : public Class +{ + public: + // + // Types + // + + typedef QSize ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QSize value; + }; + + // + // Constructors + // + + QSizeType(Context* context, const char* name, Class* superClass = 0); + virtual ~QSizeType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QSizeType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QSliderType.h b/src/lib/mu/MuQt6/MuQt6/QSliderType.h new file mode 100644 index 000000000..7ff489bd4 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QSliderType.h @@ -0,0 +1,110 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QSliderType__h__ +#define __MuQt6__QSliderType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QSlider; + +class QSliderType : public Class +{ + public: + + typedef MuQt_QSlider MuQtType; + typedef QSlider QtType; + + // + // Constructors + // + + QSliderType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QSliderType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[11]; +}; + +// Inheritable object + +class MuQt_QSlider : public QSlider +{ + public: + virtual ~MuQt_QSlider(); + MuQt_QSlider(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QSlider(Pointer muobj, const CallEnvironment*, Qt::Orientation orientation, QWidget * parent) ; + virtual bool event(QEvent * event_) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void mouseMoveEvent(QMouseEvent * ev) ; + virtual void mousePressEvent(QMouseEvent * ev) ; + virtual void mouseReleaseEvent(QMouseEvent * ev) ; + virtual void paintEvent(QPaintEvent * ev) ; + virtual void changeEvent(QEvent * ev) ; + virtual void keyPressEvent(QKeyEvent * ev) ; + virtual void timerEvent(QTimerEvent * e) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + void mouseMoveEvent_pub(QMouseEvent * ev) { mouseMoveEvent(ev); } + void mouseMoveEvent_pub_parent(QMouseEvent * ev) { QSlider::mouseMoveEvent(ev); } + void mousePressEvent_pub(QMouseEvent * ev) { mousePressEvent(ev); } + void mousePressEvent_pub_parent(QMouseEvent * ev) { QSlider::mousePressEvent(ev); } + void mouseReleaseEvent_pub(QMouseEvent * ev) { mouseReleaseEvent(ev); } + void mouseReleaseEvent_pub_parent(QMouseEvent * ev) { QSlider::mouseReleaseEvent(ev); } + void paintEvent_pub(QPaintEvent * ev) { paintEvent(ev); } + void paintEvent_pub_parent(QPaintEvent * ev) { QSlider::paintEvent(ev); } + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QSlider::changeEvent(ev); } + void keyPressEvent_pub(QKeyEvent * ev) { keyPressEvent(ev); } + void keyPressEvent_pub_parent(QKeyEvent * ev) { QSlider::keyPressEvent(ev); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QSlider::timerEvent(e); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QSlider::wheelEvent(e); } + public: + const QSliderType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QSliderType::cachedInstance(const QSliderType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QSliderType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QSpacerItemType.h b/src/lib/mu/MuQt6/MuQt6/QSpacerItemType.h new file mode 100644 index 000000000..b28fbb37f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QSpacerItemType.h @@ -0,0 +1,86 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QSpacerItemType__h__ +#define __MuQt6__QSpacerItemType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QSpacerItem; + +class QSpacerItemType : public Class +{ + public: + + typedef MuQt_QSpacerItem MuQtType; + typedef QSpacerItem QtType; + + // + // Constructors + // + + QSpacerItemType(Context* context, const char* name, Class* superClass = 0); + virtual ~QSpacerItemType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[14]; +}; + +// Inheritable object + +class MuQt_QSpacerItem : public QSpacerItem +{ + public: + virtual ~MuQt_QSpacerItem(); + MuQt_QSpacerItem(Pointer muobj, const CallEnvironment*, int w, int h, QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy) ; + virtual Qt::Orientations expandingDirections() const; + virtual QRect geometry() const; + virtual bool isEmpty() const; + virtual QSize maximumSize() const; + virtual QSize minimumSize() const; + virtual void setGeometry(const QRect & r) ; + virtual QSize sizeHint() const; + virtual QSizePolicy::ControlTypes controlTypes() const; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int _p3) const; + virtual void invalidate() ; + virtual QLayout * layout() ; + virtual int minimumHeightForWidth(int w) const; + virtual QWidget * widget() const; + public: + const QSpacerItemType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QSpacerItemType::cachedInstance(const QSpacerItemType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt6__QSpacerItemType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QSpinBoxType.h b/src/lib/mu/MuQt6/MuQt6/QSpinBoxType.h new file mode 100644 index 000000000..552eae2fa --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QSpinBoxType.h @@ -0,0 +1,148 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QSpinBoxType__h__ +#define __MuQt6__QSpinBoxType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QSpinBox; + +class QSpinBoxType : public Class +{ + public: + + typedef MuQt_QSpinBox MuQtType; + typedef QSpinBox QtType; + + // + // Constructors + // + + QSpinBoxType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QSpinBoxType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[24]; +}; + +// Inheritable object + +class MuQt_QSpinBox : public QSpinBox +{ + public: + virtual ~MuQt_QSpinBox(); + MuQt_QSpinBox(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + protected: + virtual QString textFromValue(int value) const; + virtual int valueFromText(const QString & text) const; + virtual bool event(QEvent * event_) ; + public: + virtual void stepBy(int steps) ; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual QAbstractSpinBox::StepEnabled stepEnabled() const; + virtual void changeEvent(QEvent * event) ; + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + public: + QString textFromValue_pub(int value) const { return textFromValue(value); } + QString textFromValue_pub_parent(int value) const { return QSpinBox::textFromValue(value); } + int valueFromText_pub(const QString & text) const { return valueFromText(text); } + int valueFromText_pub_parent(const QString & text) const { return QSpinBox::valueFromText(text); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QSpinBox::event(event_); } + QAbstractSpinBox::StepEnabled stepEnabled_pub() const { return stepEnabled(); } + QAbstractSpinBox::StepEnabled stepEnabled_pub_parent() const { return QSpinBox::stepEnabled(); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QSpinBox::changeEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QSpinBox::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QSpinBox::contextMenuEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QSpinBox::focusInEvent(event); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QSpinBox::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QSpinBox::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QSpinBox::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QSpinBox::keyReleaseEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QSpinBox::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QSpinBox::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QSpinBox::mouseReleaseEvent(event); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QSpinBox::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QSpinBox::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QSpinBox::showEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QSpinBox::timerEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QSpinBox::wheelEvent(event); } + public: + const QSpinBoxType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QSpinBoxType::cachedInstance(const QSpinBoxType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QSpinBoxType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QSplitterType.h b/src/lib/mu/MuQt6/MuQt6/QSplitterType.h new file mode 100644 index 000000000..d9ec06bd5 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QSplitterType.h @@ -0,0 +1,103 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QSplitterType__h__ +#define __MuQt6__QSplitterType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QSplitter; + +class QSplitterType : public Class +{ + public: + + typedef MuQt_QSplitter MuQtType; + typedef QSplitter QtType; + + // + // Constructors + // + + QSplitterType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QSplitterType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[6]; +}; + +// Inheritable object + +class MuQt_QSplitter : public QSplitter +{ + public: + virtual ~MuQt_QSplitter(); + MuQt_QSplitter(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QSplitter(Pointer muobj, const CallEnvironment*, Qt::Orientation orientation, QWidget * parent) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * ev) ; + virtual bool event(QEvent * e) ; + virtual void resizeEvent(QResizeEvent * _p15) ; + virtual void paintEvent(QPaintEvent * _p14) ; + public: + int closestLegalPosition_pub(int pos, int index) { return closestLegalPosition(pos, index); } + int closestLegalPosition_pub_parent(int pos, int index) { return QSplitter::closestLegalPosition(pos, index); } + void moveSplitter_pub(int pos, int index) { moveSplitter(pos, index); } + void moveSplitter_pub_parent(int pos, int index) { QSplitter::moveSplitter(pos, index); } + void setRubberBand_pub(int pos) { setRubberBand(pos); } + void setRubberBand_pub_parent(int pos) { QSplitter::setRubberBand(pos); } + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QSplitter::changeEvent(ev); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QSplitter::event(e); } + void resizeEvent_pub(QResizeEvent * _p15) { resizeEvent(_p15); } + void resizeEvent_pub_parent(QResizeEvent * _p15) { QSplitter::resizeEvent(_p15); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QSplitter::paintEvent(_p14); } + public: + const QSplitterType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QSplitterType::cachedInstance(const QSplitterType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QSplitterType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QStackedLayoutType.h b/src/lib/mu/MuQt6/MuQt6/QStackedLayoutType.h new file mode 100644 index 000000000..c47ef8883 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QStackedLayoutType.h @@ -0,0 +1,102 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QStackedLayoutType__h__ +#define __MuQt6__QStackedLayoutType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QStackedLayout; + +class QStackedLayoutType : public Class +{ + public: + + typedef MuQt_QStackedLayout MuQtType; + typedef QStackedLayout QtType; + + // + // Constructors + // + + QStackedLayoutType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QStackedLayoutType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[20]; +}; + +// Inheritable object + +class MuQt_QStackedLayout : public QStackedLayout +{ + public: + virtual ~MuQt_QStackedLayout(); + MuQt_QStackedLayout(Pointer muobj, const CallEnvironment*) ; + MuQt_QStackedLayout(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QStackedLayout(Pointer muobj, const CallEnvironment*, QLayout * parentLayout) ; + virtual void addItem(QLayoutItem * item) ; + virtual int count() const; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int width) const; + virtual QLayoutItem * itemAt(int index) const; + virtual QSize minimumSize() const; + virtual void setGeometry(const QRect & rect) ; + virtual QSize sizeHint() const; + virtual QLayoutItem * takeAt(int index) ; + virtual int indexOf(const QWidget * widget) const; + virtual QLayoutItem * replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options) ; + virtual void setSpacing(int _p3) ; + virtual int spacing() const; + virtual QSizePolicy::ControlTypes controlTypes() const; + virtual Qt::Orientations expandingDirections() const; + virtual QRect geometry() const; + virtual void invalidate() ; + virtual bool isEmpty() const; + virtual QLayout * layout() ; + virtual QSize maximumSize() const; + public: + const QStackedLayoutType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QStackedLayoutType::cachedInstance(const QStackedLayoutType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QStackedLayoutType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QStackedWidgetType.h b/src/lib/mu/MuQt6/MuQt6/QStackedWidgetType.h new file mode 100644 index 000000000..0a8645cce --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QStackedWidgetType.h @@ -0,0 +1,94 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QStackedWidgetType__h__ +#define __MuQt6__QStackedWidgetType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QStackedWidget; + +class QStackedWidgetType : public Class +{ + public: + + typedef MuQt_QStackedWidget MuQtType; + typedef QStackedWidget QtType; + + // + // Constructors + // + + QStackedWidgetType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QStackedWidgetType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QStackedWidget : public QStackedWidget +{ + public: + virtual ~MuQt_QStackedWidget(); + MuQt_QStackedWidget(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + protected: + virtual bool event(QEvent * e) ; + public: + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * ev) ; + virtual void paintEvent(QPaintEvent * _p14) ; + public: + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QStackedWidget::event(e); } + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QStackedWidget::changeEvent(ev); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QStackedWidget::paintEvent(_p14); } + public: + const QStackedWidgetType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QStackedWidgetType::cachedInstance(const QStackedWidgetType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QStackedWidgetType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QStandardItemModelType.h b/src/lib/mu/MuQt6/MuQt6/QStandardItemModelType.h new file mode 100644 index 000000000..3ce095d10 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QStandardItemModelType.h @@ -0,0 +1,111 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QStandardItemModelType__h__ +#define __MuQt6__QStandardItemModelType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QStandardItemModel; + +class QStandardItemModelType : public Class +{ + public: + + typedef MuQt_QStandardItemModel MuQtType; + typedef QStandardItemModel QtType; + + // + // Constructors + // + + QStandardItemModelType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QStandardItemModelType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[30]; +}; + +// Inheritable object + +class MuQt_QStandardItemModel : public QStandardItemModel +{ + public: + virtual ~MuQt_QStandardItemModel(); + MuQt_QStandardItemModel(Pointer muobj, const CallEnvironment*, QObject * parent) ; + MuQt_QStandardItemModel(Pointer muobj, const CallEnvironment*, int rows, int columns, QObject * parent) ; + virtual bool clearItemData(const QModelIndex & index) ; + virtual int columnCount(const QModelIndex & parent) const; + virtual QVariant data(const QModelIndex & index, int role) const; + virtual bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) ; + virtual Qt::ItemFlags flags(const QModelIndex & index) const; + virtual bool hasChildren(const QModelIndex & parent) const; + virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; + virtual QModelIndex index(int row, int column, const QModelIndex & parent) const; + virtual bool insertColumns(int column, int count, const QModelIndex & parent) ; + virtual bool insertRows(int row, int count, const QModelIndex & parent) ; + virtual QMimeData * mimeData(const QModelIndexList & indexes) const; + virtual QStringList mimeTypes() const; + virtual QModelIndex parent(const QModelIndex & child) const; + virtual bool removeColumns(int column, int count, const QModelIndex & parent) ; + virtual bool removeRows(int row, int count, const QModelIndex & parent) ; + virtual int rowCount(const QModelIndex & parent) const; + virtual bool setData(const QModelIndex & index, const QVariant & value, int role) ; + virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) ; + virtual void sort(int column, Qt::SortOrder order) ; + virtual Qt::DropActions supportedDropActions() const; + virtual QModelIndex buddy(const QModelIndex & index) const; + virtual bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const; + virtual bool canFetchMore(const QModelIndex & parent) const; + virtual void fetchMore(const QModelIndex & parent) ; + virtual QModelIndexList match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const; + virtual bool moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) ; + virtual bool moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) ; + virtual QModelIndex sibling(int row, int column, const QModelIndex & index) const; + virtual QSize span(const QModelIndex & index) const; + virtual Qt::DropActions supportedDragActions() const; + public: + const QStandardItemModelType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QStandardItemModelType::cachedInstance(const QStandardItemModelType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QStandardItemModelType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QStandardItemType.h b/src/lib/mu/MuQt6/MuQt6/QStandardItemType.h new file mode 100644 index 000000000..f0f4bc2c5 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QStandardItemType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QStandardItemType__h__ +#define __MuQt5__QStandardItemType__h__ +#include +#include + +namespace Mu { + +class QStandardItemType : public Class +{ + public: + // + // Types + // + + typedef QStandardItem ValueType; + + struct Struct + { + QStandardItem* object; + }; + + // + // Constructors + // + + QStandardItemType(Context* context, const char* name, Class* superClass = 0); + virtual ~QStandardItemType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QStandardItemType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QStatusBarType.h b/src/lib/mu/MuQt6/MuQt6/QStatusBarType.h new file mode 100644 index 000000000..a7658422d --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QStatusBarType.h @@ -0,0 +1,171 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QStatusBarType__h__ +#define __MuQt6__QStatusBarType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QStatusBar; + +class QStatusBarType : public Class +{ + public: + + typedef MuQt_QStatusBar MuQtType; + typedef QStatusBar QtType; + + // + // Constructors + // + + QStatusBarType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QStatusBarType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[31]; +}; + +// Inheritable object + +class MuQt_QStatusBar : public QStatusBar +{ + public: + virtual ~MuQt_QStatusBar(); + MuQt_QStatusBar(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + protected: + virtual bool event(QEvent * e) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * e) ; + virtual void showEvent(QShowEvent * _p13) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void hideOrShow_pub() { hideOrShow(); } + void hideOrShow_pub_parent() { QStatusBar::hideOrShow(); } + void reformat_pub() { reformat(); } + void reformat_pub_parent() { QStatusBar::reformat(); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QStatusBar::event(e); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QStatusBar::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * e) { resizeEvent(e); } + void resizeEvent_pub_parent(QResizeEvent * e) { QStatusBar::resizeEvent(e); } + void showEvent_pub(QShowEvent * _p13) { showEvent(_p13); } + void showEvent_pub_parent(QShowEvent * _p13) { QStatusBar::showEvent(_p13); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QStatusBar::changeEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QStatusBar::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QStatusBar::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QStatusBar::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QStatusBar::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QStatusBar::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QStatusBar::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QStatusBar::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QStatusBar::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QStatusBar::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QStatusBar::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QStatusBar::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QStatusBar::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QStatusBar::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QStatusBar::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QStatusBar::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QStatusBar::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QStatusBar::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QStatusBar::moveEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QStatusBar::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QStatusBar::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QStatusBar::metric(m); } + public: + const QStatusBarType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QStatusBarType::cachedInstance(const QStatusBarType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QStatusBarType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QStringConverterType.h b/src/lib/mu/MuQt6/MuQt6/QStringConverterType.h new file mode 100644 index 000000000..556745f36 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QStringConverterType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QStringConverterType__h__ +#define __MuQt5__QStringConverterType__h__ +#include +#include + +namespace Mu { + +class QStringConverterType : public Class +{ + public: + // + // Types + // + + typedef QStringConverter ValueType; + + struct Struct + { + QStringConverter* object; + }; + + // + // Constructors + // + + QStringConverterType(Context* context, const char* name, Class* superClass = 0); + virtual ~QStringConverterType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QStringConverterType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QSvgWidgetType.h b/src/lib/mu/MuQt6/MuQt6/QSvgWidgetType.h new file mode 100644 index 000000000..0a617368e --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QSvgWidgetType.h @@ -0,0 +1,168 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QSvgWidgetType__h__ +#define __MuQt6__QSvgWidgetType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QSvgWidget; + +class QSvgWidgetType : public Class +{ + public: + + typedef MuQt_QSvgWidget MuQtType; + typedef QSvgWidget QtType; + + // + // Constructors + // + + QSvgWidgetType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QSvgWidgetType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[31]; +}; + +// Inheritable object + +class MuQt_QSvgWidget : public QSvgWidget +{ + public: + virtual ~MuQt_QSvgWidget(); + MuQt_QSvgWidget(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QSvgWidget(Pointer muobj, const CallEnvironment*, const QString & file, QWidget * parent) ; + virtual QSize sizeHint() const; + protected: + virtual void paintEvent(QPaintEvent * event) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QSvgWidget::paintEvent(event); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QSvgWidget::changeEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QSvgWidget::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QSvgWidget::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QSvgWidget::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QSvgWidget::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QSvgWidget::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QSvgWidget::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QSvgWidget::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QSvgWidget::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QSvgWidget::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QSvgWidget::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QSvgWidget::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QSvgWidget::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QSvgWidget::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QSvgWidget::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QSvgWidget::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QSvgWidget::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QSvgWidget::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QSvgWidget::moveEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QSvgWidget::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QSvgWidget::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QSvgWidget::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QSvgWidget::wheelEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QSvgWidget::event(event_); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QSvgWidget::metric(m); } + public: + const QSvgWidgetType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QSvgWidgetType::cachedInstance(const QSvgWidgetType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QSvgWidgetType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTabBarType.h b/src/lib/mu/MuQt6/MuQt6/QTabBarType.h new file mode 100644 index 000000000..9455d9487 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTabBarType.h @@ -0,0 +1,185 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTabBarType__h__ +#define __MuQt6__QTabBarType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTabBar; + +class QTabBarType : public Class +{ + public: + + typedef MuQt_QTabBar MuQtType; + typedef QTabBar QtType; + + // + // Constructors + // + + QTabBarType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTabBarType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[37]; +}; + +// Inheritable object + +class MuQt_QTabBar : public QTabBar +{ + public: + virtual ~MuQt_QTabBar(); + MuQt_QTabBar(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual QSize minimumTabSizeHint(int index) const; + virtual void tabInserted(int index) ; + virtual void tabLayoutChange() ; + virtual void tabRemoved(int index) ; + virtual QSize tabSizeHint(int index) const; + virtual void changeEvent(QEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual void hideEvent(QHideEvent * _p13) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void paintEvent(QPaintEvent * _p14) ; + virtual void resizeEvent(QResizeEvent * _p15) ; + virtual void showEvent(QShowEvent * _p13) ; + virtual void timerEvent(QTimerEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + QSize minimumTabSizeHint_pub(int index) const { return minimumTabSizeHint(index); } + QSize minimumTabSizeHint_pub_parent(int index) const { return QTabBar::minimumTabSizeHint(index); } + void tabInserted_pub(int index) { tabInserted(index); } + void tabInserted_pub_parent(int index) { QTabBar::tabInserted(index); } + void tabLayoutChange_pub() { tabLayoutChange(); } + void tabLayoutChange_pub_parent() { QTabBar::tabLayoutChange(); } + void tabRemoved_pub(int index) { tabRemoved(index); } + void tabRemoved_pub_parent(int index) { QTabBar::tabRemoved(index); } + QSize tabSizeHint_pub(int index) const { return tabSizeHint(index); } + QSize tabSizeHint_pub_parent(int index) const { return QTabBar::tabSizeHint(index); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QTabBar::changeEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QTabBar::event(event_); } + void hideEvent_pub(QHideEvent * _p13) { hideEvent(_p13); } + void hideEvent_pub_parent(QHideEvent * _p13) { QTabBar::hideEvent(_p13); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QTabBar::keyPressEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QTabBar::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QTabBar::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QTabBar::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QTabBar::mouseReleaseEvent(event); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QTabBar::paintEvent(_p14); } + void resizeEvent_pub(QResizeEvent * _p15) { resizeEvent(_p15); } + void resizeEvent_pub_parent(QResizeEvent * _p15) { QTabBar::resizeEvent(_p15); } + void showEvent_pub(QShowEvent * _p13) { showEvent(_p13); } + void showEvent_pub_parent(QShowEvent * _p13) { QTabBar::showEvent(_p13); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QTabBar::timerEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QTabBar::wheelEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QTabBar::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QTabBar::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QTabBar::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QTabBar::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QTabBar::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QTabBar::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QTabBar::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QTabBar::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QTabBar::focusOutEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QTabBar::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QTabBar::leaveEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QTabBar::moveEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QTabBar::tabletEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QTabBar::metric(m); } + public: + const QTabBarType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTabBarType::cachedInstance(const QTabBarType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTabBarType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTabWidgetType.h b/src/lib/mu/MuQt6/MuQt6/QTabWidgetType.h new file mode 100644 index 000000000..4f594b2ff --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTabWidgetType.h @@ -0,0 +1,175 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTabWidgetType__h__ +#define __MuQt6__QTabWidgetType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTabWidget; + +class QTabWidgetType : public Class +{ + public: + + typedef MuQt_QTabWidget MuQtType; + typedef QTabWidget QtType; + + // + // Constructors + // + + QTabWidgetType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTabWidgetType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[33]; +}; + +// Inheritable object + +class MuQt_QTabWidget : public QTabWidget +{ + public: + virtual ~MuQt_QTabWidget(); + MuQt_QTabWidget(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int width) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void tabInserted(int index) ; + virtual void tabRemoved(int index) ; + virtual void changeEvent(QEvent * ev) ; + virtual bool event(QEvent * ev) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * e) ; + virtual void showEvent(QShowEvent * _p13) ; + public: + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void setTabBar_pub(QTabBar * tb) { setTabBar(tb); } + void setTabBar_pub_parent(QTabBar * tb) { QTabWidget::setTabBar(tb); } + void tabInserted_pub(int index) { tabInserted(index); } + void tabInserted_pub_parent(int index) { QTabWidget::tabInserted(index); } + void tabRemoved_pub(int index) { tabRemoved(index); } + void tabRemoved_pub_parent(int index) { QTabWidget::tabRemoved(index); } + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QTabWidget::changeEvent(ev); } + bool event_pub(QEvent * ev) { return event(ev); } + bool event_pub_parent(QEvent * ev) { return QTabWidget::event(ev); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QTabWidget::keyPressEvent(e); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QTabWidget::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * e) { resizeEvent(e); } + void resizeEvent_pub_parent(QResizeEvent * e) { QTabWidget::resizeEvent(e); } + void showEvent_pub(QShowEvent * _p13) { showEvent(_p13); } + void showEvent_pub_parent(QShowEvent * _p13) { QTabWidget::showEvent(_p13); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QTabWidget::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QTabWidget::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QTabWidget::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QTabWidget::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QTabWidget::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QTabWidget::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QTabWidget::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QTabWidget::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QTabWidget::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QTabWidget::hideEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QTabWidget::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QTabWidget::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QTabWidget::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QTabWidget::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QTabWidget::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QTabWidget::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QTabWidget::moveEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QTabWidget::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QTabWidget::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QTabWidget::metric(m); } + public: + const QTabWidgetType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTabWidgetType::cachedInstance(const QTabWidgetType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTabWidgetType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTableViewType.h b/src/lib/mu/MuQt6/MuQt6/QTableViewType.h new file mode 100644 index 000000000..d4766d271 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTableViewType.h @@ -0,0 +1,194 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTableViewType__h__ +#define __MuQt6__QTableViewType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTableView; + +class QTableViewType : public Class +{ + public: + + typedef MuQt_QTableView MuQtType; + typedef QTableView QtType; + + // + // Constructors + // + + QTableViewType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTableViewType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[42]; +}; + +// Inheritable object + +class MuQt_QTableView : public QTableView +{ + public: + virtual ~MuQt_QTableView(); + MuQt_QTableView(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual QModelIndex indexAt(const QPoint & pos) const; + virtual void scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) ; + virtual void setModel(QAbstractItemModel * model) ; + virtual void setRootIndex(const QModelIndex & index) ; + virtual void setSelectionModel(QItemSelectionModel * selectionModel) ; + virtual QRect visualRect(const QModelIndex & index) const; + protected: + virtual void currentChanged(const QModelIndex & current, const QModelIndex & previous) ; + virtual int horizontalOffset() const; + virtual bool isIndexHidden(const QModelIndex & index) const; + virtual void paintEvent(QPaintEvent * event) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual QModelIndexList selectedIndexes() const; + virtual void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) ; + virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags flags) ; + virtual int sizeHintForColumn(int column) const; + virtual int sizeHintForRow(int row) const; + virtual void timerEvent(QTimerEvent * event) ; + virtual void updateGeometries() ; + virtual int verticalOffset() const; + virtual QSize viewportSizeHint() const; + virtual QRegion visualRegionForSelection(const QItemSelection & selection) const; + public: + virtual void keyboardSearch(const QString & search) ; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual bool edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) ; + virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex & index, const QEvent * event) const; + virtual void startDrag(Qt::DropActions supportedActions) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual bool eventFilter(QObject * object, QEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual bool viewportEvent(QEvent * event) ; + public: + void currentChanged_pub(const QModelIndex & current, const QModelIndex & previous) { currentChanged(current, previous); } + void currentChanged_pub_parent(const QModelIndex & current, const QModelIndex & previous) { QTableView::currentChanged(current, previous); } + int horizontalOffset_pub() const { return horizontalOffset(); } + int horizontalOffset_pub_parent() const { return QTableView::horizontalOffset(); } + bool isIndexHidden_pub(const QModelIndex & index) const { return isIndexHidden(index); } + bool isIndexHidden_pub_parent(const QModelIndex & index) const { return QTableView::isIndexHidden(index); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QTableView::paintEvent(event); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QTableView::scrollContentsBy(dx, dy); } + QModelIndexList selectedIndexes_pub() const { return selectedIndexes(); } + QModelIndexList selectedIndexes_pub_parent() const { return QTableView::selectedIndexes(); } + void selectionChanged_pub(const QItemSelection & selected, const QItemSelection & deselected) { selectionChanged(selected, deselected); } + void selectionChanged_pub_parent(const QItemSelection & selected, const QItemSelection & deselected) { QTableView::selectionChanged(selected, deselected); } + void setSelection_pub(const QRect & rect, QItemSelectionModel::SelectionFlags flags) { setSelection(rect, flags); } + void setSelection_pub_parent(const QRect & rect, QItemSelectionModel::SelectionFlags flags) { QTableView::setSelection(rect, flags); } + int sizeHintForColumn_pub(int column) const { return sizeHintForColumn(column); } + int sizeHintForColumn_pub_parent(int column) const { return QTableView::sizeHintForColumn(column); } + int sizeHintForRow_pub(int row) const { return sizeHintForRow(row); } + int sizeHintForRow_pub_parent(int row) const { return QTableView::sizeHintForRow(row); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QTableView::timerEvent(event); } + void updateGeometries_pub() { updateGeometries(); } + void updateGeometries_pub_parent() { QTableView::updateGeometries(); } + int verticalOffset_pub() const { return verticalOffset(); } + int verticalOffset_pub_parent() const { return QTableView::verticalOffset(); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QTableView::viewportSizeHint(); } + QRegion visualRegionForSelection_pub(const QItemSelection & selection) const { return visualRegionForSelection(selection); } + QRegion visualRegionForSelection_pub_parent(const QItemSelection & selection) const { return QTableView::visualRegionForSelection(selection); } + bool edit_pub(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return edit(index, trigger, event); } + bool edit_pub_parent(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return QTableView::edit(index, trigger, event); } + QItemSelectionModel::SelectionFlags selectionCommand_pub(const QModelIndex & index, const QEvent * event) const { return selectionCommand(index, event); } + QItemSelectionModel::SelectionFlags selectionCommand_pub_parent(const QModelIndex & index, const QEvent * event) const { return QTableView::selectionCommand(index, event); } + void startDrag_pub(Qt::DropActions supportedActions) { startDrag(supportedActions); } + void startDrag_pub_parent(Qt::DropActions supportedActions) { QTableView::startDrag(supportedActions); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QTableView::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QTableView::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QTableView::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QTableView::dropEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QTableView::event(event_); } + bool eventFilter_pub(QObject * object, QEvent * event) { return eventFilter(object, event); } + bool eventFilter_pub_parent(QObject * object, QEvent * event) { return QTableView::eventFilter(object, event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QTableView::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QTableView::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QTableView::focusOutEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QTableView::keyPressEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QTableView::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QTableView::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QTableView::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QTableView::mouseReleaseEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QTableView::resizeEvent(event); } + bool viewportEvent_pub(QEvent * event) { return viewportEvent(event); } + bool viewportEvent_pub_parent(QEvent * event) { return QTableView::viewportEvent(event); } + public: + const QTableViewType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTableViewType::cachedInstance(const QTableViewType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTableViewType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTableWidgetItemType.h b/src/lib/mu/MuQt6/MuQt6/QTableWidgetItemType.h new file mode 100644 index 000000000..8c7296d1a --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTableWidgetItemType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QTableWidgetItemType__h__ +#define __MuQt5__QTableWidgetItemType__h__ +#include +#include + +namespace Mu { + +class QTableWidgetItemType : public Class +{ + public: + // + // Types + // + + typedef QTableWidgetItem ValueType; + + struct Struct + { + QTableWidgetItem* object; + }; + + // + // Constructors + // + + QTableWidgetItemType(Context* context, const char* name, Class* superClass = 0); + virtual ~QTableWidgetItemType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QTableWidgetItemType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTableWidgetType.h b/src/lib/mu/MuQt6/MuQt6/QTableWidgetType.h new file mode 100644 index 000000000..8b3272698 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTableWidgetType.h @@ -0,0 +1,153 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTableWidgetType__h__ +#define __MuQt6__QTableWidgetType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTableWidget; + +class QTableWidgetType : public Class +{ + public: + + typedef MuQt_QTableWidget MuQtType; + typedef QTableWidget QtType; + + // + // Constructors + // + + QTableWidgetType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTableWidgetType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[26]; +}; + +// Inheritable object + +class MuQt_QTableWidget : public QTableWidget +{ + public: + virtual ~MuQt_QTableWidget(); + MuQt_QTableWidget(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QTableWidget(Pointer muobj, const CallEnvironment*, int rows, int columns, QWidget * parent) ; + protected: + virtual bool dropMimeData(int row, int column, const QMimeData * data, Qt::DropAction action) ; + virtual QMimeData * mimeData(const QList & items) const; + virtual QStringList mimeTypes() const; + virtual Qt::DropActions supportedDropActions() const; + virtual void dropEvent(QDropEvent * event) ; + virtual bool event(QEvent * e) ; + public: + virtual QModelIndex indexAt(const QPoint & pos) const; + virtual void scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) ; + virtual void setRootIndex(const QModelIndex & index) ; + virtual void setSelectionModel(QItemSelectionModel * selectionModel) ; + virtual QRect visualRect(const QModelIndex & index) const; + protected: + virtual void currentChanged(const QModelIndex & current, const QModelIndex & previous) ; + virtual int horizontalOffset() const; + virtual bool isIndexHidden(const QModelIndex & index) const; + virtual void paintEvent(QPaintEvent * event) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual QModelIndexList selectedIndexes() const; + virtual void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) ; + virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags flags) ; + virtual int sizeHintForColumn(int column) const; + virtual int sizeHintForRow(int row) const; + virtual void timerEvent(QTimerEvent * event) ; + virtual void updateGeometries() ; + virtual int verticalOffset() const; + virtual QSize viewportSizeHint() const; + virtual QRegion visualRegionForSelection(const QItemSelection & selection) const; + public: + bool dropMimeData_pub(int row, int column, const QMimeData * data, Qt::DropAction action) { return dropMimeData(row, column, data, action); } + bool dropMimeData_pub_parent(int row, int column, const QMimeData * data, Qt::DropAction action) { return QTableWidget::dropMimeData(row, column, data, action); } + QMimeData * mimeData_pub(const QList & items) const { return mimeData(items); } + QMimeData * mimeData_pub_parent(const QList & items) const { return QTableWidget::mimeData(items); } + QStringList mimeTypes_pub() const { return mimeTypes(); } + QStringList mimeTypes_pub_parent() const { return QTableWidget::mimeTypes(); } + Qt::DropActions supportedDropActions_pub() const { return supportedDropActions(); } + Qt::DropActions supportedDropActions_pub_parent() const { return QTableWidget::supportedDropActions(); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QTableWidget::dropEvent(event); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QTableWidget::event(e); } + void currentChanged_pub(const QModelIndex & current, const QModelIndex & previous) { currentChanged(current, previous); } + void currentChanged_pub_parent(const QModelIndex & current, const QModelIndex & previous) { QTableWidget::currentChanged(current, previous); } + int horizontalOffset_pub() const { return horizontalOffset(); } + int horizontalOffset_pub_parent() const { return QTableWidget::horizontalOffset(); } + bool isIndexHidden_pub(const QModelIndex & index) const { return isIndexHidden(index); } + bool isIndexHidden_pub_parent(const QModelIndex & index) const { return QTableWidget::isIndexHidden(index); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QTableWidget::paintEvent(event); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QTableWidget::scrollContentsBy(dx, dy); } + QModelIndexList selectedIndexes_pub() const { return selectedIndexes(); } + QModelIndexList selectedIndexes_pub_parent() const { return QTableWidget::selectedIndexes(); } + void selectionChanged_pub(const QItemSelection & selected, const QItemSelection & deselected) { selectionChanged(selected, deselected); } + void selectionChanged_pub_parent(const QItemSelection & selected, const QItemSelection & deselected) { QTableWidget::selectionChanged(selected, deselected); } + void setSelection_pub(const QRect & rect, QItemSelectionModel::SelectionFlags flags) { setSelection(rect, flags); } + void setSelection_pub_parent(const QRect & rect, QItemSelectionModel::SelectionFlags flags) { QTableWidget::setSelection(rect, flags); } + int sizeHintForColumn_pub(int column) const { return sizeHintForColumn(column); } + int sizeHintForColumn_pub_parent(int column) const { return QTableWidget::sizeHintForColumn(column); } + int sizeHintForRow_pub(int row) const { return sizeHintForRow(row); } + int sizeHintForRow_pub_parent(int row) const { return QTableWidget::sizeHintForRow(row); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QTableWidget::timerEvent(event); } + void updateGeometries_pub() { updateGeometries(); } + void updateGeometries_pub_parent() { QTableWidget::updateGeometries(); } + int verticalOffset_pub() const { return verticalOffset(); } + int verticalOffset_pub_parent() const { return QTableWidget::verticalOffset(); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QTableWidget::viewportSizeHint(); } + QRegion visualRegionForSelection_pub(const QItemSelection & selection) const { return visualRegionForSelection(selection); } + QRegion visualRegionForSelection_pub_parent(const QItemSelection & selection) const { return QTableWidget::visualRegionForSelection(selection); } + public: + const QTableWidgetType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTableWidgetType::cachedInstance(const QTableWidgetType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTableWidgetType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTabletEventType.h b/src/lib/mu/MuQt6/MuQt6/QTabletEventType.h new file mode 100644 index 000000000..538265ad0 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTabletEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QTabletEventType__h__ +#define __MuQt5__QTabletEventType__h__ +#include +#include + +namespace Mu { + +class QTabletEventType : public Class +{ + public: + // + // Types + // + + typedef QTabletEvent ValueType; + + struct Struct + { + QTabletEvent* object; + }; + + // + // Constructors + // + + QTabletEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QTabletEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QTabletEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTcpServerType.h b/src/lib/mu/MuQt6/MuQt6/QTcpServerType.h new file mode 100644 index 000000000..ef2cb2742 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTcpServerType.h @@ -0,0 +1,94 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTcpServerType__h__ +#define __MuQt6__QTcpServerType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTcpServer; + +class QTcpServerType : public Class +{ + public: + + typedef MuQt_QTcpServer MuQtType; + typedef QTcpServer QtType; + + // + // Constructors + // + + QTcpServerType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTcpServerType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[6]; +}; + +// Inheritable object + +class MuQt_QTcpServer : public QTcpServer +{ + public: + virtual ~MuQt_QTcpServer(); + MuQt_QTcpServer(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual bool hasPendingConnections() const; + virtual QTcpSocket * nextPendingConnection() ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void addPendingConnection_pub(QTcpSocket * socket) { addPendingConnection(socket); } + void addPendingConnection_pub_parent(QTcpSocket * socket) { QTcpServer::addPendingConnection(socket); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QTcpServer::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QTcpServer::timerEvent(event); } + public: + const QTcpServerType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTcpServerType::cachedInstance(const QTcpServerType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTcpServerType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTcpSocketType.h b/src/lib/mu/MuQt6/MuQt6/QTcpSocketType.h new file mode 100644 index 000000000..c401fbb03 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTcpSocketType.h @@ -0,0 +1,98 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTcpSocketType__h__ +#define __MuQt6__QTcpSocketType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTcpSocket; + +class QTcpSocketType : public Class +{ + public: + + typedef MuQt_QTcpSocket MuQtType; + typedef QTcpSocket QtType; + + // + // Constructors + // + + QTcpSocketType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTcpSocketType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[14]; +}; + +// Inheritable object + +class MuQt_QTcpSocket : public QTcpSocket +{ + public: + virtual ~MuQt_QTcpSocket(); + MuQt_QTcpSocket(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual void disconnectFromHost() ; + virtual void resume() ; + virtual void setReadBufferSize(qint64 size) ; + virtual void setSocketOption(QAbstractSocket::SocketOption option, const QVariant & value) ; + virtual QVariant socketOption(QAbstractSocket::SocketOption option) ; + virtual bool waitForConnected(int msecs) ; + virtual bool waitForDisconnected(int msecs) ; + virtual qint64 bytesAvailable() const; + virtual qint64 bytesToWrite() const; + virtual void close() ; + virtual bool isSequential() const; + virtual bool waitForBytesWritten(int msecs) ; + virtual bool waitForReadyRead(int msecs) ; + protected: + virtual qint64 skipData(qint64 maxSize) ; + public: + qint64 skipData_pub(qint64 maxSize) { return skipData(maxSize); } + qint64 skipData_pub_parent(qint64 maxSize) { return QTcpSocket::skipData(maxSize); } + public: + const QTcpSocketType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTcpSocketType::cachedInstance(const QTcpSocketType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTcpSocketType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTextBlockType.h b/src/lib/mu/MuQt6/MuQt6/QTextBlockType.h new file mode 100644 index 000000000..01e737b05 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTextBlockType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QTextBlockType__h__ +#define __MuQt5__QTextBlockType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QTextBlockType : public Class +{ + public: + // + // Types + // + + typedef QTextBlock ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QTextBlock value; + }; + + // + // Constructors + // + + QTextBlockType(Context* context, const char* name, Class* superClass = 0); + virtual ~QTextBlockType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QTextBlockType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTextBrowserType.h b/src/lib/mu/MuQt6/MuQt6/QTextBrowserType.h new file mode 100644 index 000000000..07e1750e0 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTextBrowserType.h @@ -0,0 +1,160 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTextBrowserType__h__ +#define __MuQt6__QTextBrowserType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTextBrowser; + +class QTextBrowserType : public Class +{ + public: + + typedef MuQt_QTextBrowser MuQtType; + typedef QTextBrowser QtType; + + // + // Constructors + // + + QTextBrowserType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTextBrowserType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[27]; +}; + +// Inheritable object + +class MuQt_QTextBrowser : public QTextBrowser +{ + public: + MuQt_QTextBrowser(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual QVariant loadResource(int type, const QUrl & name) ; + protected: + virtual void doSetSource(const QUrl & url, QTextDocument::ResourceType type) ; + virtual bool event(QEvent * e) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * ev) ; + virtual void keyPressEvent(QKeyEvent * ev) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * e) ; + public: + virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; + protected: + virtual bool canInsertFromMimeData(const QMimeData * source) const; + virtual QMimeData * createMimeDataFromSelection() const; + virtual void insertFromMimeData(const QMimeData * source) ; + virtual void changeEvent(QEvent * e) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * e) ; + virtual void dragLeaveEvent(QDragLeaveEvent * e) ; + virtual void dragMoveEvent(QDragMoveEvent * e) ; + virtual void dropEvent(QDropEvent * e) ; + virtual void focusInEvent(QFocusEvent * e) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mouseDoubleClickEvent(QMouseEvent * e) ; + virtual void resizeEvent(QResizeEvent * e) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual void showEvent(QShowEvent * _p13) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + void doSetSource_pub(const QUrl & url, QTextDocument::ResourceType type) { doSetSource(url, type); } + void doSetSource_pub_parent(const QUrl & url, QTextDocument::ResourceType type) { QTextBrowser::doSetSource(url, type); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QTextBrowser::event(e); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QTextBrowser::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * ev) { focusOutEvent(ev); } + void focusOutEvent_pub_parent(QFocusEvent * ev) { QTextBrowser::focusOutEvent(ev); } + void keyPressEvent_pub(QKeyEvent * ev) { keyPressEvent(ev); } + void keyPressEvent_pub_parent(QKeyEvent * ev) { QTextBrowser::keyPressEvent(ev); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QTextBrowser::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QTextBrowser::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QTextBrowser::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * e) { paintEvent(e); } + void paintEvent_pub_parent(QPaintEvent * e) { QTextBrowser::paintEvent(e); } + bool canInsertFromMimeData_pub(const QMimeData * source) const { return canInsertFromMimeData(source); } + bool canInsertFromMimeData_pub_parent(const QMimeData * source) const { return QTextBrowser::canInsertFromMimeData(source); } + QMimeData * createMimeDataFromSelection_pub() const { return createMimeDataFromSelection(); } + QMimeData * createMimeDataFromSelection_pub_parent() const { return QTextBrowser::createMimeDataFromSelection(); } + void insertFromMimeData_pub(const QMimeData * source) { insertFromMimeData(source); } + void insertFromMimeData_pub_parent(const QMimeData * source) { QTextBrowser::insertFromMimeData(source); } + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QTextBrowser::changeEvent(e); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QTextBrowser::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * e) { dragEnterEvent(e); } + void dragEnterEvent_pub_parent(QDragEnterEvent * e) { QTextBrowser::dragEnterEvent(e); } + void dragLeaveEvent_pub(QDragLeaveEvent * e) { dragLeaveEvent(e); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * e) { QTextBrowser::dragLeaveEvent(e); } + void dragMoveEvent_pub(QDragMoveEvent * e) { dragMoveEvent(e); } + void dragMoveEvent_pub_parent(QDragMoveEvent * e) { QTextBrowser::dragMoveEvent(e); } + void dropEvent_pub(QDropEvent * e) { dropEvent(e); } + void dropEvent_pub_parent(QDropEvent * e) { QTextBrowser::dropEvent(e); } + void focusInEvent_pub(QFocusEvent * e) { focusInEvent(e); } + void focusInEvent_pub_parent(QFocusEvent * e) { QTextBrowser::focusInEvent(e); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QTextBrowser::keyReleaseEvent(e); } + void mouseDoubleClickEvent_pub(QMouseEvent * e) { mouseDoubleClickEvent(e); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * e) { QTextBrowser::mouseDoubleClickEvent(e); } + void resizeEvent_pub(QResizeEvent * e) { resizeEvent(e); } + void resizeEvent_pub_parent(QResizeEvent * e) { QTextBrowser::resizeEvent(e); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QTextBrowser::scrollContentsBy(dx, dy); } + void showEvent_pub(QShowEvent * _p13) { showEvent(_p13); } + void showEvent_pub_parent(QShowEvent * _p13) { QTextBrowser::showEvent(_p13); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QTextBrowser::wheelEvent(e); } + public: + const QTextBrowserType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTextBrowserType::cachedInstance(const QTextBrowserType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTextBrowserType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTextCursorType.h b/src/lib/mu/MuQt6/MuQt6/QTextCursorType.h new file mode 100644 index 000000000..3c0f4990c --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTextCursorType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QTextCursorType__h__ +#define __MuQt5__QTextCursorType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QTextCursorType : public Class +{ + public: + // + // Types + // + + typedef QTextCursor ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QTextCursor value; + }; + + // + // Constructors + // + + QTextCursorType(Context* context, const char* name, Class* superClass = 0); + virtual ~QTextCursorType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QTextCursorType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTextDocumentType.h b/src/lib/mu/MuQt6/MuQt6/QTextDocumentType.h new file mode 100644 index 000000000..71f0857fc --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTextDocumentType.h @@ -0,0 +1,97 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTextDocumentType__h__ +#define __MuQt6__QTextDocumentType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTextDocument; + +class QTextDocumentType : public Class +{ + public: + + typedef MuQt_QTextDocument MuQtType; + typedef QTextDocument QtType; + + // + // Constructors + // + + QTextDocumentType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTextDocumentType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[6]; +}; + +// Inheritable object + +class MuQt_QTextDocument : public QTextDocument +{ + public: + virtual ~MuQt_QTextDocument(); + MuQt_QTextDocument(Pointer muobj, const CallEnvironment*, QObject * parent) ; + MuQt_QTextDocument(Pointer muobj, const CallEnvironment*, const QString & text, QObject * parent) ; + virtual void clear() ; + protected: + virtual QVariant loadResource(int type, const QUrl & name) ; + public: + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + QVariant loadResource_pub(int type, const QUrl & name) { return loadResource(type, name); } + QVariant loadResource_pub_parent(int type, const QUrl & name) { return QTextDocument::loadResource(type, name); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QTextDocument::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QTextDocument::timerEvent(event); } + public: + const QTextDocumentType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTextDocumentType::cachedInstance(const QTextDocumentType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTextDocumentType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTextEditType.h b/src/lib/mu/MuQt6/MuQt6/QTextEditType.h new file mode 100644 index 000000000..b0118dc00 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTextEditType.h @@ -0,0 +1,168 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTextEditType__h__ +#define __MuQt6__QTextEditType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTextEdit; + +class QTextEditType : public Class +{ + public: + + typedef MuQt_QTextEdit MuQtType; + typedef QTextEdit QtType; + + // + // Constructors + // + + QTextEditType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTextEditType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[31]; +}; + +// Inheritable object + +class MuQt_QTextEdit : public QTextEdit +{ + public: + virtual ~MuQt_QTextEdit(); + MuQt_QTextEdit(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QTextEdit(Pointer muobj, const CallEnvironment*, const QString & text, QWidget * parent) ; + virtual QVariant loadResource(int type, const QUrl & name) ; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; + protected: + virtual bool canInsertFromMimeData(const QMimeData * source) const; + virtual QMimeData * createMimeDataFromSelection() const; + virtual void insertFromMimeData(const QMimeData * source) ; + virtual void changeEvent(QEvent * e) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * e) ; + virtual void dragLeaveEvent(QDragLeaveEvent * e) ; + virtual void dragMoveEvent(QDragMoveEvent * e) ; + virtual void dropEvent(QDropEvent * e) ; + virtual void focusInEvent(QFocusEvent * e) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mouseDoubleClickEvent(QMouseEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * e) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual void showEvent(QShowEvent * _p13) ; + virtual void wheelEvent(QWheelEvent * e) ; + public: + virtual void setupViewport(QWidget * viewport) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual bool viewportEvent(QEvent * event) ; + virtual QSize viewportSizeHint() const; + virtual bool event(QEvent * event_) ; + public: + bool canInsertFromMimeData_pub(const QMimeData * source) const { return canInsertFromMimeData(source); } + bool canInsertFromMimeData_pub_parent(const QMimeData * source) const { return QTextEdit::canInsertFromMimeData(source); } + QMimeData * createMimeDataFromSelection_pub() const { return createMimeDataFromSelection(); } + QMimeData * createMimeDataFromSelection_pub_parent() const { return QTextEdit::createMimeDataFromSelection(); } + void insertFromMimeData_pub(const QMimeData * source) { insertFromMimeData(source); } + void insertFromMimeData_pub_parent(const QMimeData * source) { QTextEdit::insertFromMimeData(source); } + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QTextEdit::changeEvent(e); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QTextEdit::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * e) { dragEnterEvent(e); } + void dragEnterEvent_pub_parent(QDragEnterEvent * e) { QTextEdit::dragEnterEvent(e); } + void dragLeaveEvent_pub(QDragLeaveEvent * e) { dragLeaveEvent(e); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * e) { QTextEdit::dragLeaveEvent(e); } + void dragMoveEvent_pub(QDragMoveEvent * e) { dragMoveEvent(e); } + void dragMoveEvent_pub_parent(QDragMoveEvent * e) { QTextEdit::dragMoveEvent(e); } + void dropEvent_pub(QDropEvent * e) { dropEvent(e); } + void dropEvent_pub_parent(QDropEvent * e) { QTextEdit::dropEvent(e); } + void focusInEvent_pub(QFocusEvent * e) { focusInEvent(e); } + void focusInEvent_pub_parent(QFocusEvent * e) { QTextEdit::focusInEvent(e); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QTextEdit::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * e) { focusOutEvent(e); } + void focusOutEvent_pub_parent(QFocusEvent * e) { QTextEdit::focusOutEvent(e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QTextEdit::keyPressEvent(e); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QTextEdit::keyReleaseEvent(e); } + void mouseDoubleClickEvent_pub(QMouseEvent * e) { mouseDoubleClickEvent(e); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * e) { QTextEdit::mouseDoubleClickEvent(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QTextEdit::mouseMoveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QTextEdit::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QTextEdit::mouseReleaseEvent(e); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QTextEdit::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * e) { resizeEvent(e); } + void resizeEvent_pub_parent(QResizeEvent * e) { QTextEdit::resizeEvent(e); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QTextEdit::scrollContentsBy(dx, dy); } + void showEvent_pub(QShowEvent * _p13) { showEvent(_p13); } + void showEvent_pub_parent(QShowEvent * _p13) { QTextEdit::showEvent(_p13); } + void wheelEvent_pub(QWheelEvent * e) { wheelEvent(e); } + void wheelEvent_pub_parent(QWheelEvent * e) { QTextEdit::wheelEvent(e); } + bool viewportEvent_pub(QEvent * event) { return viewportEvent(event); } + bool viewportEvent_pub_parent(QEvent * event) { return QTextEdit::viewportEvent(event); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QTextEdit::viewportSizeHint(); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QTextEdit::event(event_); } + public: + const QTextEditType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTextEditType::cachedInstance(const QTextEditType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTextEditType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTextOptionType.h b/src/lib/mu/MuQt6/MuQt6/QTextOptionType.h new file mode 100644 index 000000000..e7cb5084e --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTextOptionType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QTextOptionType__h__ +#define __MuQt5__QTextOptionType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QTextOptionType : public Class +{ + public: + // + // Types + // + + typedef QTextOption ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QTextOption value; + }; + + // + // Constructors + // + + QTextOptionType(Context* context, const char* name, Class* superClass = 0); + virtual ~QTextOptionType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QTextOptionType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTextStreamType.h b/src/lib/mu/MuQt6/MuQt6/QTextStreamType.h new file mode 100644 index 000000000..4e6247e98 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTextStreamType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QTextStreamType__h__ +#define __MuQt5__QTextStreamType__h__ +#include +#include + +namespace Mu { + +class QTextStreamType : public Class +{ + public: + // + // Types + // + + typedef QTextStream ValueType; + + struct Struct + { + QTextStream* object; + }; + + // + // Constructors + // + + QTextStreamType(Context* context, const char* name, Class* superClass = 0); + virtual ~QTextStreamType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QTextStreamType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTimeType.h b/src/lib/mu/MuQt6/MuQt6/QTimeType.h new file mode 100644 index 000000000..36e29d4e6 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTimeType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QTimeType__h__ +#define __MuQt5__QTimeType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QTimeType : public Class +{ + public: + // + // Types + // + + typedef QTime ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QTime value; + }; + + // + // Constructors + // + + QTimeType(Context* context, const char* name, Class* superClass = 0); + virtual ~QTimeType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QTimeType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTimerEventType.h b/src/lib/mu/MuQt6/MuQt6/QTimerEventType.h new file mode 100644 index 000000000..f8394cfbf --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTimerEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QTimerEventType__h__ +#define __MuQt5__QTimerEventType__h__ +#include +#include + +namespace Mu { + +class QTimerEventType : public Class +{ + public: + // + // Types + // + + typedef QTimerEvent ValueType; + + struct Struct + { + QTimerEvent* object; + }; + + // + // Constructors + // + + QTimerEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QTimerEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QTimerEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTimerType.h b/src/lib/mu/MuQt6/MuQt6/QTimerType.h new file mode 100644 index 000000000..9bf6434ff --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTimerType.h @@ -0,0 +1,92 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTimerType__h__ +#define __MuQt6__QTimerType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTimer; + +class QTimerType : public Class +{ + public: + + typedef MuQt_QTimer MuQtType; + typedef QTimer QtType; + + // + // Constructors + // + + QTimerType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTimerType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QTimer : public QTimer +{ + public: + virtual ~MuQt_QTimer(); + MuQt_QTimer(Pointer muobj, const CallEnvironment*, QObject * parent) ; + protected: + virtual void timerEvent(QTimerEvent * e) ; + public: + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + public: + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QTimer::timerEvent(e); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QTimer::customEvent(event); } + public: + const QTimerType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTimerType::cachedInstance(const QTimerType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTimerType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QToolBarType.h b/src/lib/mu/MuQt6/MuQt6/QToolBarType.h new file mode 100644 index 000000000..b3d1c6ba1 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QToolBarType.h @@ -0,0 +1,168 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QToolBarType__h__ +#define __MuQt6__QToolBarType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QToolBar; + +class QToolBarType : public Class +{ + public: + + typedef MuQt_QToolBar MuQtType; + typedef QToolBar QtType; + + // + // Constructors + // + + QToolBarType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QToolBarType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[31]; +}; + +// Inheritable object + +class MuQt_QToolBar : public QToolBar +{ + public: + virtual ~MuQt_QToolBar(); + MuQt_QToolBar(Pointer muobj, const CallEnvironment*, const QString & title, QWidget * parent) ; + MuQt_QToolBar(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + protected: + virtual void changeEvent(QEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual void paintEvent(QPaintEvent * event) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QToolBar::changeEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QToolBar::event(event_); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QToolBar::paintEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QToolBar::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QToolBar::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QToolBar::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QToolBar::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QToolBar::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QToolBar::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QToolBar::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QToolBar::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QToolBar::focusOutEvent(event); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QToolBar::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QToolBar::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QToolBar::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QToolBar::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QToolBar::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QToolBar::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QToolBar::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QToolBar::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QToolBar::moveEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QToolBar::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QToolBar::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QToolBar::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QToolBar::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QToolBar::metric(m); } + public: + const QToolBarType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QToolBarType::cachedInstance(const QToolBarType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QToolBarType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QToolBoxType.h b/src/lib/mu/MuQt6/MuQt6/QToolBoxType.h new file mode 100644 index 000000000..11aef4511 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QToolBoxType.h @@ -0,0 +1,103 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QToolBoxType__h__ +#define __MuQt6__QToolBoxType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QToolBox; + +class QToolBoxType : public Class +{ + public: + + typedef MuQt_QToolBox MuQtType; + typedef QToolBox QtType; + + // + // Constructors + // + + QToolBoxType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QToolBoxType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[7]; +}; + +// Inheritable object + +class MuQt_QToolBox : public QToolBox +{ + public: + virtual ~MuQt_QToolBox(); + MuQt_QToolBox(Pointer muobj, const CallEnvironment*, QWidget * parent, Qt::WindowFlags f) ; + protected: + virtual void itemInserted(int index) ; + virtual void itemRemoved(int index) ; + virtual void changeEvent(QEvent * ev) ; + virtual bool event(QEvent * e) ; + virtual void showEvent(QShowEvent * e) ; + public: + virtual QSize sizeHint() const; + protected: + virtual void paintEvent(QPaintEvent * _p14) ; + public: + void itemInserted_pub(int index) { itemInserted(index); } + void itemInserted_pub_parent(int index) { QToolBox::itemInserted(index); } + void itemRemoved_pub(int index) { itemRemoved(index); } + void itemRemoved_pub_parent(int index) { QToolBox::itemRemoved(index); } + void changeEvent_pub(QEvent * ev) { changeEvent(ev); } + void changeEvent_pub_parent(QEvent * ev) { QToolBox::changeEvent(ev); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QToolBox::event(e); } + void showEvent_pub(QShowEvent * e) { showEvent(e); } + void showEvent_pub_parent(QShowEvent * e) { QToolBox::showEvent(e); } + void paintEvent_pub(QPaintEvent * _p14) { paintEvent(_p14); } + void paintEvent_pub_parent(QPaintEvent * _p14) { QToolBox::paintEvent(_p14); } + public: + const QToolBoxType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QToolBoxType::cachedInstance(const QToolBoxType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QToolBoxType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QToolButtonType.h b/src/lib/mu/MuQt6/MuQt6/QToolButtonType.h new file mode 100644 index 000000000..bdfaddd42 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QToolButtonType.h @@ -0,0 +1,129 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QToolButtonType__h__ +#define __MuQt6__QToolButtonType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QToolButton; + +class QToolButtonType : public Class +{ + public: + + typedef MuQt_QToolButton MuQtType; + typedef QToolButton QtType; + + // + // Constructors + // + + QToolButtonType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QToolButtonType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[17]; +}; + +// Inheritable object + +class MuQt_QToolButton : public QToolButton +{ + public: + virtual ~MuQt_QToolButton(); + MuQt_QToolButton(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * e) ; + virtual void checkStateSet() ; + virtual bool event(QEvent * event_) ; + virtual bool hitButton(const QPoint & pos) const; + virtual void leaveEvent(QEvent * e) ; + virtual void mousePressEvent(QMouseEvent * e) ; + virtual void mouseReleaseEvent(QMouseEvent * e) ; + virtual void nextCheckState() ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void timerEvent(QTimerEvent * e) ; + virtual void focusInEvent(QFocusEvent * e) ; + virtual void focusOutEvent(QFocusEvent * e) ; + virtual void keyPressEvent(QKeyEvent * e) ; + virtual void keyReleaseEvent(QKeyEvent * e) ; + virtual void mouseMoveEvent(QMouseEvent * e) ; + public: + void changeEvent_pub(QEvent * e) { changeEvent(e); } + void changeEvent_pub_parent(QEvent * e) { QToolButton::changeEvent(e); } + void checkStateSet_pub() { checkStateSet(); } + void checkStateSet_pub_parent() { QToolButton::checkStateSet(); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QToolButton::event(event_); } + bool hitButton_pub(const QPoint & pos) const { return hitButton(pos); } + bool hitButton_pub_parent(const QPoint & pos) const { return QToolButton::hitButton(pos); } + void leaveEvent_pub(QEvent * e) { leaveEvent(e); } + void leaveEvent_pub_parent(QEvent * e) { QToolButton::leaveEvent(e); } + void mousePressEvent_pub(QMouseEvent * e) { mousePressEvent(e); } + void mousePressEvent_pub_parent(QMouseEvent * e) { QToolButton::mousePressEvent(e); } + void mouseReleaseEvent_pub(QMouseEvent * e) { mouseReleaseEvent(e); } + void mouseReleaseEvent_pub_parent(QMouseEvent * e) { QToolButton::mouseReleaseEvent(e); } + void nextCheckState_pub() { nextCheckState(); } + void nextCheckState_pub_parent() { QToolButton::nextCheckState(); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QToolButton::paintEvent(event); } + void timerEvent_pub(QTimerEvent * e) { timerEvent(e); } + void timerEvent_pub_parent(QTimerEvent * e) { QToolButton::timerEvent(e); } + void focusInEvent_pub(QFocusEvent * e) { focusInEvent(e); } + void focusInEvent_pub_parent(QFocusEvent * e) { QToolButton::focusInEvent(e); } + void focusOutEvent_pub(QFocusEvent * e) { focusOutEvent(e); } + void focusOutEvent_pub_parent(QFocusEvent * e) { QToolButton::focusOutEvent(e); } + void keyPressEvent_pub(QKeyEvent * e) { keyPressEvent(e); } + void keyPressEvent_pub_parent(QKeyEvent * e) { QToolButton::keyPressEvent(e); } + void keyReleaseEvent_pub(QKeyEvent * e) { keyReleaseEvent(e); } + void keyReleaseEvent_pub_parent(QKeyEvent * e) { QToolButton::keyReleaseEvent(e); } + void mouseMoveEvent_pub(QMouseEvent * e) { mouseMoveEvent(e); } + void mouseMoveEvent_pub_parent(QMouseEvent * e) { QToolButton::mouseMoveEvent(e); } + public: + const QToolButtonType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QToolButtonType::cachedInstance(const QToolButtonType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QToolButtonType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTransformType.h b/src/lib/mu/MuQt6/MuQt6/QTransformType.h new file mode 100644 index 000000000..679f1e4a7 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTransformType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QTransformType__h__ +#define __MuQt5__QTransformType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QTransformType : public Class +{ + public: + // + // Types + // + + typedef QTransform ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QTransform value; + }; + + // + // Constructors + // + + QTransformType(Context* context, const char* name, Class* superClass = 0); + virtual ~QTransformType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QTransformType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTreeViewType.h b/src/lib/mu/MuQt6/MuQt6/QTreeViewType.h new file mode 100644 index 000000000..1296eefd9 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTreeViewType.h @@ -0,0 +1,207 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTreeViewType__h__ +#define __MuQt6__QTreeViewType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTreeView; + +class QTreeViewType : public Class +{ + public: + + typedef MuQt_QTreeView MuQtType; + typedef QTreeView QtType; + + // + // Constructors + // + + QTreeViewType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTreeViewType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[47]; +}; + +// Inheritable object + +class MuQt_QTreeView : public QTreeView +{ + public: + virtual ~MuQt_QTreeView(); + MuQt_QTreeView(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual QModelIndex indexAt(const QPoint & point) const; + virtual void keyboardSearch(const QString & search) ; + virtual void reset() ; + virtual void scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) ; + virtual void selectAll() ; + virtual void setModel(QAbstractItemModel * model) ; + virtual void setRootIndex(const QModelIndex & index) ; + virtual void setSelectionModel(QItemSelectionModel * selectionModel) ; + virtual QRect visualRect(const QModelIndex & index) const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void currentChanged(const QModelIndex & current, const QModelIndex & previous) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual int horizontalOffset() const; + virtual bool isIndexHidden(const QModelIndex & index) const; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end) ; + virtual void rowsInserted(const QModelIndex & parent, int start, int end) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual QModelIndexList selectedIndexes() const; + virtual void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) ; + virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) ; + virtual int sizeHintForColumn(int column) const; + virtual void timerEvent(QTimerEvent * event) ; + virtual void updateGeometries() ; + virtual int verticalOffset() const; + virtual bool viewportEvent(QEvent * event) ; + virtual QSize viewportSizeHint() const; + virtual QRegion visualRegionForSelection(const QItemSelection & selection) const; + public: + virtual int sizeHintForRow(int row) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + protected: + virtual bool edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) ; + virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex & index, const QEvent * event) const; + virtual void startDrag(Qt::DropActions supportedActions) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual bool eventFilter(QObject * object, QEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + public: + int indexRowSizeHint_pub(const QModelIndex & index) const { return indexRowSizeHint(index); } + int indexRowSizeHint_pub_parent(const QModelIndex & index) const { return QTreeView::indexRowSizeHint(index); } + int rowHeight_pub(const QModelIndex & index) const { return rowHeight(index); } + int rowHeight_pub_parent(const QModelIndex & index) const { return QTreeView::rowHeight(index); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QTreeView::changeEvent(event); } + void currentChanged_pub(const QModelIndex & current, const QModelIndex & previous) { currentChanged(current, previous); } + void currentChanged_pub_parent(const QModelIndex & current, const QModelIndex & previous) { QTreeView::currentChanged(current, previous); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QTreeView::dragMoveEvent(event); } + int horizontalOffset_pub() const { return horizontalOffset(); } + int horizontalOffset_pub_parent() const { return QTreeView::horizontalOffset(); } + bool isIndexHidden_pub(const QModelIndex & index) const { return isIndexHidden(index); } + bool isIndexHidden_pub_parent(const QModelIndex & index) const { return QTreeView::isIndexHidden(index); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QTreeView::keyPressEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QTreeView::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QTreeView::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QTreeView::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QTreeView::mouseReleaseEvent(event); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QTreeView::paintEvent(event); } + void rowsAboutToBeRemoved_pub(const QModelIndex & parent, int start, int end) { rowsAboutToBeRemoved(parent, start, end); } + void rowsAboutToBeRemoved_pub_parent(const QModelIndex & parent, int start, int end) { QTreeView::rowsAboutToBeRemoved(parent, start, end); } + void rowsInserted_pub(const QModelIndex & parent, int start, int end) { rowsInserted(parent, start, end); } + void rowsInserted_pub_parent(const QModelIndex & parent, int start, int end) { QTreeView::rowsInserted(parent, start, end); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QTreeView::scrollContentsBy(dx, dy); } + QModelIndexList selectedIndexes_pub() const { return selectedIndexes(); } + QModelIndexList selectedIndexes_pub_parent() const { return QTreeView::selectedIndexes(); } + void selectionChanged_pub(const QItemSelection & selected, const QItemSelection & deselected) { selectionChanged(selected, deselected); } + void selectionChanged_pub_parent(const QItemSelection & selected, const QItemSelection & deselected) { QTreeView::selectionChanged(selected, deselected); } + void setSelection_pub(const QRect & rect, QItemSelectionModel::SelectionFlags command) { setSelection(rect, command); } + void setSelection_pub_parent(const QRect & rect, QItemSelectionModel::SelectionFlags command) { QTreeView::setSelection(rect, command); } + int sizeHintForColumn_pub(int column) const { return sizeHintForColumn(column); } + int sizeHintForColumn_pub_parent(int column) const { return QTreeView::sizeHintForColumn(column); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QTreeView::timerEvent(event); } + void updateGeometries_pub() { updateGeometries(); } + void updateGeometries_pub_parent() { QTreeView::updateGeometries(); } + int verticalOffset_pub() const { return verticalOffset(); } + int verticalOffset_pub_parent() const { return QTreeView::verticalOffset(); } + bool viewportEvent_pub(QEvent * event) { return viewportEvent(event); } + bool viewportEvent_pub_parent(QEvent * event) { return QTreeView::viewportEvent(event); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QTreeView::viewportSizeHint(); } + QRegion visualRegionForSelection_pub(const QItemSelection & selection) const { return visualRegionForSelection(selection); } + QRegion visualRegionForSelection_pub_parent(const QItemSelection & selection) const { return QTreeView::visualRegionForSelection(selection); } + bool edit_pub(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return edit(index, trigger, event); } + bool edit_pub_parent(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) { return QTreeView::edit(index, trigger, event); } + QItemSelectionModel::SelectionFlags selectionCommand_pub(const QModelIndex & index, const QEvent * event) const { return selectionCommand(index, event); } + QItemSelectionModel::SelectionFlags selectionCommand_pub_parent(const QModelIndex & index, const QEvent * event) const { return QTreeView::selectionCommand(index, event); } + void startDrag_pub(Qt::DropActions supportedActions) { startDrag(supportedActions); } + void startDrag_pub_parent(Qt::DropActions supportedActions) { QTreeView::startDrag(supportedActions); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QTreeView::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QTreeView::dragLeaveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QTreeView::dropEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QTreeView::event(event_); } + bool eventFilter_pub(QObject * object, QEvent * event) { return eventFilter(object, event); } + bool eventFilter_pub_parent(QObject * object, QEvent * event) { return QTreeView::eventFilter(object, event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QTreeView::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QTreeView::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QTreeView::focusOutEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QTreeView::resizeEvent(event); } + public: + const QTreeViewType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTreeViewType::cachedInstance(const QTreeViewType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTreeViewType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTreeWidgetItemType.h b/src/lib/mu/MuQt6/MuQt6/QTreeWidgetItemType.h new file mode 100644 index 000000000..cbed73e30 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTreeWidgetItemType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QTreeWidgetItemType__h__ +#define __MuQt5__QTreeWidgetItemType__h__ +#include +#include + +namespace Mu { + +class QTreeWidgetItemType : public Class +{ + public: + // + // Types + // + + typedef QTreeWidgetItem ValueType; + + struct Struct + { + QTreeWidgetItem* object; + }; + + // + // Constructors + // + + QTreeWidgetItemType(Context* context, const char* name, Class* superClass = 0); + virtual ~QTreeWidgetItemType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QTreeWidgetItemType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QTreeWidgetType.h b/src/lib/mu/MuQt6/MuQt6/QTreeWidgetType.h new file mode 100644 index 000000000..3d3ecd723 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QTreeWidgetType.h @@ -0,0 +1,182 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QTreeWidgetType__h__ +#define __MuQt6__QTreeWidgetType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QTreeWidget; + +class QTreeWidgetType : public Class +{ + public: + + typedef MuQt_QTreeWidget MuQtType; + typedef QTreeWidget QtType; + + // + // Constructors + // + + QTreeWidgetType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QTreeWidgetType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[38]; +}; + +// Inheritable object + +class MuQt_QTreeWidget : public QTreeWidget +{ + public: + virtual ~MuQt_QTreeWidget(); + MuQt_QTreeWidget(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual void setSelectionModel(QItemSelectionModel * selectionModel) ; + protected: + virtual bool dropMimeData(QTreeWidgetItem * parent, int index, const QMimeData * data, Qt::DropAction action) ; + virtual QMimeData * mimeData(const QList & items) const; + virtual QStringList mimeTypes() const; + virtual Qt::DropActions supportedDropActions() const; + virtual void dropEvent(QDropEvent * event) ; + virtual bool event(QEvent * e) ; + public: + virtual QModelIndex indexAt(const QPoint & point) const; + virtual void keyboardSearch(const QString & search) ; + virtual void reset() ; + virtual void scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) ; + virtual void selectAll() ; + virtual void setRootIndex(const QModelIndex & index) ; + virtual QRect visualRect(const QModelIndex & index) const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void currentChanged(const QModelIndex & current, const QModelIndex & previous) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual int horizontalOffset() const; + virtual bool isIndexHidden(const QModelIndex & index) const; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end) ; + virtual void rowsInserted(const QModelIndex & parent, int start, int end) ; + virtual void scrollContentsBy(int dx, int dy) ; + virtual QModelIndexList selectedIndexes() const; + virtual void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) ; + virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) ; + virtual int sizeHintForColumn(int column) const; + virtual void timerEvent(QTimerEvent * event) ; + virtual void updateGeometries() ; + virtual int verticalOffset() const; + virtual bool viewportEvent(QEvent * event) ; + virtual QSize viewportSizeHint() const; + virtual QRegion visualRegionForSelection(const QItemSelection & selection) const; + public: + bool dropMimeData_pub(QTreeWidgetItem * parent, int index, const QMimeData * data, Qt::DropAction action) { return dropMimeData(parent, index, data, action); } + bool dropMimeData_pub_parent(QTreeWidgetItem * parent, int index, const QMimeData * data, Qt::DropAction action) { return QTreeWidget::dropMimeData(parent, index, data, action); } + QMimeData * mimeData_pub(const QList & items) const { return mimeData(items); } + QMimeData * mimeData_pub_parent(const QList & items) const { return QTreeWidget::mimeData(items); } + QStringList mimeTypes_pub() const { return mimeTypes(); } + QStringList mimeTypes_pub_parent() const { return QTreeWidget::mimeTypes(); } + Qt::DropActions supportedDropActions_pub() const { return supportedDropActions(); } + Qt::DropActions supportedDropActions_pub_parent() const { return QTreeWidget::supportedDropActions(); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QTreeWidget::dropEvent(event); } + bool event_pub(QEvent * e) { return event(e); } + bool event_pub_parent(QEvent * e) { return QTreeWidget::event(e); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QTreeWidget::changeEvent(event); } + void currentChanged_pub(const QModelIndex & current, const QModelIndex & previous) { currentChanged(current, previous); } + void currentChanged_pub_parent(const QModelIndex & current, const QModelIndex & previous) { QTreeWidget::currentChanged(current, previous); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QTreeWidget::dragMoveEvent(event); } + int horizontalOffset_pub() const { return horizontalOffset(); } + int horizontalOffset_pub_parent() const { return QTreeWidget::horizontalOffset(); } + bool isIndexHidden_pub(const QModelIndex & index) const { return isIndexHidden(index); } + bool isIndexHidden_pub_parent(const QModelIndex & index) const { return QTreeWidget::isIndexHidden(index); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QTreeWidget::keyPressEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QTreeWidget::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QTreeWidget::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QTreeWidget::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QTreeWidget::mouseReleaseEvent(event); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QTreeWidget::paintEvent(event); } + void rowsAboutToBeRemoved_pub(const QModelIndex & parent, int start, int end) { rowsAboutToBeRemoved(parent, start, end); } + void rowsAboutToBeRemoved_pub_parent(const QModelIndex & parent, int start, int end) { QTreeWidget::rowsAboutToBeRemoved(parent, start, end); } + void rowsInserted_pub(const QModelIndex & parent, int start, int end) { rowsInserted(parent, start, end); } + void rowsInserted_pub_parent(const QModelIndex & parent, int start, int end) { QTreeWidget::rowsInserted(parent, start, end); } + void scrollContentsBy_pub(int dx, int dy) { scrollContentsBy(dx, dy); } + void scrollContentsBy_pub_parent(int dx, int dy) { QTreeWidget::scrollContentsBy(dx, dy); } + QModelIndexList selectedIndexes_pub() const { return selectedIndexes(); } + QModelIndexList selectedIndexes_pub_parent() const { return QTreeWidget::selectedIndexes(); } + void selectionChanged_pub(const QItemSelection & selected, const QItemSelection & deselected) { selectionChanged(selected, deselected); } + void selectionChanged_pub_parent(const QItemSelection & selected, const QItemSelection & deselected) { QTreeWidget::selectionChanged(selected, deselected); } + void setSelection_pub(const QRect & rect, QItemSelectionModel::SelectionFlags command) { setSelection(rect, command); } + void setSelection_pub_parent(const QRect & rect, QItemSelectionModel::SelectionFlags command) { QTreeWidget::setSelection(rect, command); } + int sizeHintForColumn_pub(int column) const { return sizeHintForColumn(column); } + int sizeHintForColumn_pub_parent(int column) const { return QTreeWidget::sizeHintForColumn(column); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QTreeWidget::timerEvent(event); } + void updateGeometries_pub() { updateGeometries(); } + void updateGeometries_pub_parent() { QTreeWidget::updateGeometries(); } + int verticalOffset_pub() const { return verticalOffset(); } + int verticalOffset_pub_parent() const { return QTreeWidget::verticalOffset(); } + bool viewportEvent_pub(QEvent * event) { return viewportEvent(event); } + bool viewportEvent_pub_parent(QEvent * event) { return QTreeWidget::viewportEvent(event); } + QSize viewportSizeHint_pub() const { return viewportSizeHint(); } + QSize viewportSizeHint_pub_parent() const { return QTreeWidget::viewportSizeHint(); } + QRegion visualRegionForSelection_pub(const QItemSelection & selection) const { return visualRegionForSelection(selection); } + QRegion visualRegionForSelection_pub_parent(const QItemSelection & selection) const { return QTreeWidget::visualRegionForSelection(selection); } + public: + const QTreeWidgetType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QTreeWidgetType::cachedInstance(const QTreeWidgetType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QTreeWidgetType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QUdpSocketType.h b/src/lib/mu/MuQt6/MuQt6/QUdpSocketType.h new file mode 100644 index 000000000..40c16ea74 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QUdpSocketType.h @@ -0,0 +1,98 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QUdpSocketType__h__ +#define __MuQt6__QUdpSocketType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QUdpSocket; + +class QUdpSocketType : public Class +{ + public: + + typedef MuQt_QUdpSocket MuQtType; + typedef QUdpSocket QtType; + + // + // Constructors + // + + QUdpSocketType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QUdpSocketType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[14]; +}; + +// Inheritable object + +class MuQt_QUdpSocket : public QUdpSocket +{ + public: + virtual ~MuQt_QUdpSocket(); + MuQt_QUdpSocket(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual void disconnectFromHost() ; + virtual void resume() ; + virtual void setReadBufferSize(qint64 size) ; + virtual void setSocketOption(QAbstractSocket::SocketOption option, const QVariant & value) ; + virtual QVariant socketOption(QAbstractSocket::SocketOption option) ; + virtual bool waitForConnected(int msecs) ; + virtual bool waitForDisconnected(int msecs) ; + virtual qint64 bytesAvailable() const; + virtual qint64 bytesToWrite() const; + virtual void close() ; + virtual bool isSequential() const; + virtual bool waitForBytesWritten(int msecs) ; + virtual bool waitForReadyRead(int msecs) ; + protected: + virtual qint64 skipData(qint64 maxSize) ; + public: + qint64 skipData_pub(qint64 maxSize) { return skipData(maxSize); } + qint64 skipData_pub_parent(qint64 maxSize) { return QUdpSocket::skipData(maxSize); } + public: + const QUdpSocketType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QUdpSocketType::cachedInstance(const QUdpSocketType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QUdpSocketType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QUrlQueryType.h b/src/lib/mu/MuQt6/MuQt6/QUrlQueryType.h new file mode 100644 index 000000000..be951bc6a --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QUrlQueryType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QUrlQueryType__h__ +#define __MuQt5__QUrlQueryType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QUrlQueryType : public Class +{ + public: + // + // Types + // + + typedef QUrlQuery ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QUrlQuery value; + }; + + // + // Constructors + // + + QUrlQueryType(Context* context, const char* name, Class* superClass = 0); + virtual ~QUrlQueryType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QUrlQueryType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QUrlType.h b/src/lib/mu/MuQt6/MuQt6/QUrlType.h new file mode 100644 index 000000000..c03656e2d --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QUrlType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QUrlType__h__ +#define __MuQt5__QUrlType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QUrlType : public Class +{ + public: + // + // Types + // + + typedef QUrl ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QUrl value; + }; + + // + // Constructors + // + + QUrlType(Context* context, const char* name, Class* superClass = 0); + virtual ~QUrlType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QUrlType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QVBoxLayoutType.h b/src/lib/mu/MuQt6/MuQt6/QVBoxLayoutType.h new file mode 100644 index 000000000..d0fd370cb --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QVBoxLayoutType.h @@ -0,0 +1,96 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QVBoxLayoutType__h__ +#define __MuQt6__QVBoxLayoutType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QVBoxLayout; + +class QVBoxLayoutType : public Class +{ + public: + + typedef MuQt_QVBoxLayout MuQtType; + typedef QVBoxLayout QtType; + + // + // Constructors + // + + QVBoxLayoutType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QVBoxLayoutType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[15]; +}; + +// Inheritable object + +class MuQt_QVBoxLayout : public QVBoxLayout +{ + public: + virtual ~MuQt_QVBoxLayout(); + MuQt_QVBoxLayout(Pointer muobj, const CallEnvironment*) ; + MuQt_QVBoxLayout(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + virtual void addItem(QLayoutItem * item) ; + virtual int count() const; + virtual Qt::Orientations expandingDirections() const; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual void invalidate() ; + virtual QLayoutItem * itemAt(int index) const; + virtual QSize maximumSize() const; + virtual int minimumHeightForWidth(int w) const; + virtual QSize minimumSize() const; + virtual void setGeometry(const QRect & r) ; + virtual void setSpacing(int spacing) ; + virtual QSize sizeHint() const; + virtual int spacing() const; + virtual QLayoutItem * takeAt(int index) ; + public: + const QVBoxLayoutType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QVBoxLayoutType::cachedInstance(const QVBoxLayoutType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QVBoxLayoutType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QVariantType.h b/src/lib/mu/MuQt6/MuQt6/QVariantType.h new file mode 100644 index 000000000..375424d12 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QVariantType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QVariantType__h__ +#define __MuQt5__QVariantType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class QVariantType : public Class +{ + public: + // + // Types + // + + typedef QVariant ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + QVariant value; + }; + + // + // Constructors + // + + QVariantType(Context* context, const char* name, Class* superClass = 0); + virtual ~QVariantType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__QVariantType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWebChannelType.h b/src/lib/mu/MuQt6/MuQt6/QWebChannelType.h new file mode 100644 index 000000000..7ad40b46c --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWebChannelType.h @@ -0,0 +1,90 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QWebChannelType__h__ +#define __MuQt6__QWebChannelType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QWebChannel; + +class QWebChannelType : public Class +{ + public: + + typedef MuQt_QWebChannel MuQtType; + typedef QWebChannel QtType; + + // + // Constructors + // + + QWebChannelType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QWebChannelType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QWebChannel : public QWebChannel +{ + public: + virtual ~MuQt_QWebChannel(); + MuQt_QWebChannel(Pointer muobj, const CallEnvironment*, QObject * parent) ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QWebChannel::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QWebChannel::timerEvent(event); } + public: + const QWebChannelType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QWebChannelType::cachedInstance(const QWebChannelType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QWebChannelType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWebEngineCookieStoreType.h b/src/lib/mu/MuQt6/MuQt6/QWebEngineCookieStoreType.h new file mode 100644 index 000000000..48b752966 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWebEngineCookieStoreType.h @@ -0,0 +1,89 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QWebEngineCookieStoreType__h__ +#define __MuQt6__QWebEngineCookieStoreType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QWebEngineCookieStore; + +class QWebEngineCookieStoreType : public Class +{ + public: + + typedef MuQt_QWebEngineCookieStore MuQtType; + typedef QWebEngineCookieStore QtType; + + // + // Constructors + // + + QWebEngineCookieStoreType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QWebEngineCookieStoreType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QWebEngineCookieStore : public QWebEngineCookieStore +{ + public: + virtual ~MuQt_QWebEngineCookieStore(); + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QWebEngineCookieStore::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QWebEngineCookieStore::timerEvent(event); } + public: + const QWebEngineCookieStoreType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QWebEngineCookieStoreType::cachedInstance(const QWebEngineCookieStoreType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QWebEngineCookieStoreType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWebEngineHistoryType.h b/src/lib/mu/MuQt6/MuQt6/QWebEngineHistoryType.h new file mode 100644 index 000000000..9383f099b --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWebEngineHistoryType.h @@ -0,0 +1,89 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QWebEngineHistoryType__h__ +#define __MuQt6__QWebEngineHistoryType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QWebEngineHistory; + +class QWebEngineHistoryType : public Class +{ + public: + + typedef MuQt_QWebEngineHistory MuQtType; + typedef QWebEngineHistory QtType; + + // + // Constructors + // + + QWebEngineHistoryType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QWebEngineHistoryType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QWebEngineHistory : public QWebEngineHistory +{ + public: + virtual ~MuQt_QWebEngineHistory(); + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QWebEngineHistory::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QWebEngineHistory::timerEvent(event); } + public: + const QWebEngineHistoryType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QWebEngineHistoryType::cachedInstance(const QWebEngineHistoryType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QWebEngineHistoryType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWebEnginePageType.h b/src/lib/mu/MuQt6/MuQt6/QWebEnginePageType.h new file mode 100644 index 000000000..81e9dc415 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWebEnginePageType.h @@ -0,0 +1,112 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QWebEnginePageType__h__ +#define __MuQt6__QWebEnginePageType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QWebEnginePage; + +class QWebEnginePageType : public Class +{ + public: + + typedef MuQt_QWebEnginePage MuQtType; + typedef QWebEnginePage QtType; + + // + // Constructors + // + + QWebEnginePageType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QWebEnginePageType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[11]; +}; + +// Inheritable object + +class MuQt_QWebEnginePage : public QWebEnginePage +{ + public: + virtual ~MuQt_QWebEnginePage(); + MuQt_QWebEnginePage(Pointer muobj, const CallEnvironment*, QObject * parent) ; + MuQt_QWebEnginePage(Pointer muobj, const CallEnvironment*, QWebEngineProfile * profile, QObject * parent) ; + virtual void triggerAction(QWebEnginePage::WebAction action, bool checked) ; + virtual bool event(QEvent * e) ; + protected: + virtual bool acceptNavigationRequest(const QUrl & url, QWebEnginePage::NavigationType type, bool isMainFrame) ; + virtual QStringList chooseFiles(QWebEnginePage::FileSelectionMode mode, const QStringList & oldFiles, const QStringList & acceptedMimeTypes) ; + virtual QWebEnginePage * createWindow(QWebEnginePage::WebWindowType type) ; + virtual void javaScriptAlert(const QUrl & securityOrigin, const QString & msg) ; + virtual bool javaScriptConfirm(const QUrl & securityOrigin, const QString & msg) ; + virtual void javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel level, const QString & message, int lineNumber, const QString & sourceID) ; + public: + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + bool acceptNavigationRequest_pub(const QUrl & url, QWebEnginePage::NavigationType type, bool isMainFrame) { return acceptNavigationRequest(url, type, isMainFrame); } + bool acceptNavigationRequest_pub_parent(const QUrl & url, QWebEnginePage::NavigationType type, bool isMainFrame) { return QWebEnginePage::acceptNavigationRequest(url, type, isMainFrame); } + QStringList chooseFiles_pub(QWebEnginePage::FileSelectionMode mode, const QStringList & oldFiles, const QStringList & acceptedMimeTypes) { return chooseFiles(mode, oldFiles, acceptedMimeTypes); } + QStringList chooseFiles_pub_parent(QWebEnginePage::FileSelectionMode mode, const QStringList & oldFiles, const QStringList & acceptedMimeTypes) { return QWebEnginePage::chooseFiles(mode, oldFiles, acceptedMimeTypes); } + QWebEnginePage * createWindow_pub(QWebEnginePage::WebWindowType type) { return createWindow(type); } + QWebEnginePage * createWindow_pub_parent(QWebEnginePage::WebWindowType type) { return QWebEnginePage::createWindow(type); } + void javaScriptAlert_pub(const QUrl & securityOrigin, const QString & msg) { javaScriptAlert(securityOrigin, msg); } + void javaScriptAlert_pub_parent(const QUrl & securityOrigin, const QString & msg) { QWebEnginePage::javaScriptAlert(securityOrigin, msg); } + bool javaScriptConfirm_pub(const QUrl & securityOrigin, const QString & msg) { return javaScriptConfirm(securityOrigin, msg); } + bool javaScriptConfirm_pub_parent(const QUrl & securityOrigin, const QString & msg) { return QWebEnginePage::javaScriptConfirm(securityOrigin, msg); } + void javaScriptConsoleMessage_pub(QWebEnginePage::JavaScriptConsoleMessageLevel level, const QString & message, int lineNumber, const QString & sourceID) { javaScriptConsoleMessage(level, message, lineNumber, sourceID); } + void javaScriptConsoleMessage_pub_parent(QWebEnginePage::JavaScriptConsoleMessageLevel level, const QString & message, int lineNumber, const QString & sourceID) { QWebEnginePage::javaScriptConsoleMessage(level, message, lineNumber, sourceID); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QWebEnginePage::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QWebEnginePage::timerEvent(event); } + public: + const QWebEnginePageType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QWebEnginePageType::cachedInstance(const QWebEnginePageType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QWebEnginePageType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWebEngineProfileType.h b/src/lib/mu/MuQt6/MuQt6/QWebEngineProfileType.h new file mode 100644 index 000000000..adabc326c --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWebEngineProfileType.h @@ -0,0 +1,90 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QWebEngineProfileType__h__ +#define __MuQt6__QWebEngineProfileType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QWebEngineProfile; + +class QWebEngineProfileType : public Class +{ + public: + + typedef MuQt_QWebEngineProfile MuQtType; + typedef QWebEngineProfile QtType; + + // + // Constructors + // + + QWebEngineProfileType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QWebEngineProfileType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QWebEngineProfile : public QWebEngineProfile +{ + public: + MuQt_QWebEngineProfile(Pointer muobj, const CallEnvironment*, QObject * parent) ; + MuQt_QWebEngineProfile(Pointer muobj, const CallEnvironment*, const QString & storageName, QObject * parent) ; + virtual bool event(QEvent * e) ; + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QWebEngineProfile::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QWebEngineProfile::timerEvent(event); } + public: + const QWebEngineProfileType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QWebEngineProfileType::cachedInstance(const QWebEngineProfileType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QWebEngineProfileType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWebEngineSettingsType.h b/src/lib/mu/MuQt6/MuQt6/QWebEngineSettingsType.h new file mode 100644 index 000000000..c89cb71ad --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWebEngineSettingsType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QWebEngineSettingsType__h__ +#define __MuQt5__QWebEngineSettingsType__h__ +#include +#include + +namespace Mu { + +class QWebEngineSettingsType : public Class +{ + public: + // + // Types + // + + typedef QWebEngineSettings ValueType; + + struct Struct + { + QWebEngineSettings* object; + }; + + // + // Constructors + // + + QWebEngineSettingsType(Context* context, const char* name, Class* superClass = 0); + virtual ~QWebEngineSettingsType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QWebEngineSettingsType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWebEngineViewType.h b/src/lib/mu/MuQt6/MuQt6/QWebEngineViewType.h new file mode 100644 index 000000000..6c928d893 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWebEngineViewType.h @@ -0,0 +1,172 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QWebEngineViewType__h__ +#define __MuQt6__QWebEngineViewType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QWebEngineView; + +class QWebEngineViewType : public Class +{ + public: + + typedef MuQt_QWebEngineView MuQtType; + typedef QWebEngineView QtType; + + // + // Constructors + // + + QWebEngineViewType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QWebEngineViewType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[32]; +}; + +// Inheritable object + +class MuQt_QWebEngineView : public QWebEngineView +{ + public: + virtual ~MuQt_QWebEngineView(); + MuQt_QWebEngineView(Pointer muobj, const CallEnvironment*, QWidget * parent) ; + MuQt_QWebEngineView(Pointer muobj, const CallEnvironment*, QWebEngineProfile * profile, QWidget * parent) ; + MuQt_QWebEngineView(Pointer muobj, const CallEnvironment*, QWebEnginePage * page, QWidget * parent) ; + virtual QSize sizeHint() const; + protected: + virtual QWebEngineView * createWindow(QWebEnginePage::WebWindowType type) ; + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * e) ; + virtual void dragLeaveEvent(QDragLeaveEvent * e) ; + virtual void dragMoveEvent(QDragMoveEvent * e) ; + virtual void dropEvent(QDropEvent * e) ; + virtual bool event(QEvent * ev) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + public: + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + QWebEngineView * createWindow_pub(QWebEnginePage::WebWindowType type) { return createWindow(type); } + QWebEngineView * createWindow_pub_parent(QWebEnginePage::WebWindowType type) { return QWebEngineView::createWindow(type); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QWebEngineView::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QWebEngineView::contextMenuEvent(event); } + void dragEnterEvent_pub(QDragEnterEvent * e) { dragEnterEvent(e); } + void dragEnterEvent_pub_parent(QDragEnterEvent * e) { QWebEngineView::dragEnterEvent(e); } + void dragLeaveEvent_pub(QDragLeaveEvent * e) { dragLeaveEvent(e); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * e) { QWebEngineView::dragLeaveEvent(e); } + void dragMoveEvent_pub(QDragMoveEvent * e) { dragMoveEvent(e); } + void dragMoveEvent_pub_parent(QDragMoveEvent * e) { QWebEngineView::dragMoveEvent(e); } + void dropEvent_pub(QDropEvent * e) { dropEvent(e); } + void dropEvent_pub_parent(QDropEvent * e) { QWebEngineView::dropEvent(e); } + bool event_pub(QEvent * ev) { return event(ev); } + bool event_pub_parent(QEvent * ev) { return QWebEngineView::event(ev); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QWebEngineView::hideEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QWebEngineView::showEvent(event); } + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QWebEngineView::changeEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QWebEngineView::focusInEvent(event); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QWebEngineView::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QWebEngineView::focusOutEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QWebEngineView::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QWebEngineView::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QWebEngineView::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QWebEngineView::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QWebEngineView::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QWebEngineView::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QWebEngineView::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QWebEngineView::moveEvent(event); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QWebEngineView::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QWebEngineView::resizeEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QWebEngineView::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QWebEngineView::wheelEvent(event); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QWebEngineView::metric(m); } + public: + const QWebEngineViewType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QWebEngineViewType::cachedInstance(const QWebEngineViewType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QWebEngineViewType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWheelEventType.h b/src/lib/mu/MuQt6/MuQt6/QWheelEventType.h new file mode 100644 index 000000000..6993277f5 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWheelEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QWheelEventType__h__ +#define __MuQt5__QWheelEventType__h__ +#include +#include + +namespace Mu { + +class QWheelEventType : public Class +{ + public: + // + // Types + // + + typedef QWheelEvent ValueType; + + struct Struct + { + QWheelEvent* object; + }; + + // + // Constructors + // + + QWheelEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QWheelEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QWheelEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWidgetActionType.h b/src/lib/mu/MuQt6/MuQt6/QWidgetActionType.h new file mode 100644 index 000000000..fa40b4302 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWidgetActionType.h @@ -0,0 +1,94 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QWidgetActionType__h__ +#define __MuQt6__QWidgetActionType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QWidgetAction; + +class QWidgetActionType : public Class +{ + public: + + typedef MuQt_QWidgetAction MuQtType; + typedef QWidgetAction QtType; + + // + // Constructors + // + + QWidgetActionType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QWidgetActionType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[4]; +}; + +// Inheritable object + +class MuQt_QWidgetAction : public QWidgetAction +{ + public: + virtual ~MuQt_QWidgetAction(); + MuQt_QWidgetAction(Pointer muobj, const CallEnvironment*, QObject * parent) ; + protected: + virtual QWidget * createWidget(QWidget * parent) ; + virtual void deleteWidget(QWidget * widget) ; + virtual bool event(QEvent * event_) ; + virtual bool eventFilter(QObject * obj, QEvent * event) ; + public: + QWidget * createWidget_pub(QWidget * parent) { return createWidget(parent); } + QWidget * createWidget_pub_parent(QWidget * parent) { return QWidgetAction::createWidget(parent); } + void deleteWidget_pub(QWidget * widget) { deleteWidget(widget); } + void deleteWidget_pub_parent(QWidget * widget) { QWidgetAction::deleteWidget(widget); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QWidgetAction::event(event_); } + bool eventFilter_pub(QObject * obj, QEvent * event) { return eventFilter(obj, event); } + bool eventFilter_pub_parent(QObject * obj, QEvent * event) { return QWidgetAction::eventFilter(obj, event); } + public: + const QWidgetActionType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QWidgetActionType::cachedInstance(const QWidgetActionType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QWidgetActionType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWidgetItemType.h b/src/lib/mu/MuQt6/MuQt6/QWidgetItemType.h new file mode 100644 index 000000000..2c8be9c8c --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWidgetItemType.h @@ -0,0 +1,86 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QWidgetItemType__h__ +#define __MuQt6__QWidgetItemType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QWidgetItem; + +class QWidgetItemType : public Class +{ + public: + + typedef MuQt_QWidgetItem MuQtType; + typedef QWidgetItem QtType; + + // + // Constructors + // + + QWidgetItemType(Context* context, const char* name, Class* superClass = 0); + virtual ~QWidgetItemType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[14]; +}; + +// Inheritable object + +class MuQt_QWidgetItem : public QWidgetItem +{ + public: + virtual ~MuQt_QWidgetItem(); + MuQt_QWidgetItem(Pointer muobj, const CallEnvironment*, QWidget * widget) ; + virtual QSizePolicy::ControlTypes controlTypes() const; + virtual Qt::Orientations expandingDirections() const; + virtual QRect geometry() const; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual bool isEmpty() const; + virtual QSize maximumSize() const; + virtual QSize minimumSize() const; + virtual void setGeometry(const QRect & rect) ; + virtual QSize sizeHint() const; + virtual QWidget * widget() const; + virtual void invalidate() ; + virtual QLayout * layout() ; + virtual int minimumHeightForWidth(int w) const; + public: + const QWidgetItemType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QWidgetItemType::cachedInstance(const QWidgetItemType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt6__QWidgetItemType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWidgetType.h b/src/lib/mu/MuQt6/MuQt6/QWidgetType.h new file mode 100644 index 000000000..a27d794c0 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWidgetType.h @@ -0,0 +1,180 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__QWidgetType__h__ +#define __MuQt6__QWidgetType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +class MuQt_QWidget; + +class QWidgetType : public Class +{ + public: + + typedef MuQt_QWidget MuQtType; + typedef QWidget QtType; + + // + // Constructors + // + + QWidgetType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~QWidgetType(); + + static bool isInheritable() { return true; } + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + MemberFunction* _func[34]; +}; + +// Inheritable object + +class MuQt_QWidget : public QWidget +{ + public: + virtual ~MuQt_QWidget(); + MuQt_QWidget(Pointer muobj, const CallEnvironment*, QWidget * parent, Qt::WindowFlags f) ; + virtual bool hasHeightForWidth() const; + virtual int heightForWidth(int w) const; + virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; + virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; + protected: + virtual void changeEvent(QEvent * event) ; + virtual void closeEvent(QCloseEvent * event) ; + virtual void contextMenuEvent(QContextMenuEvent * event) ; + virtual void dragEnterEvent(QDragEnterEvent * event) ; + virtual void dragLeaveEvent(QDragLeaveEvent * event) ; + virtual void dragMoveEvent(QDragMoveEvent * event) ; + virtual void dropEvent(QDropEvent * event) ; + virtual void focusInEvent(QFocusEvent * event) ; + virtual bool focusNextPrevChild(bool next) ; + virtual void focusOutEvent(QFocusEvent * event) ; + virtual void hideEvent(QHideEvent * event) ; + virtual void keyPressEvent(QKeyEvent * event) ; + virtual void keyReleaseEvent(QKeyEvent * event) ; + virtual void leaveEvent(QEvent * event) ; + virtual void mouseDoubleClickEvent(QMouseEvent * event) ; + virtual void mouseMoveEvent(QMouseEvent * event) ; + virtual void mousePressEvent(QMouseEvent * event) ; + virtual void mouseReleaseEvent(QMouseEvent * event) ; + virtual void moveEvent(QMoveEvent * event) ; + virtual void paintEvent(QPaintEvent * event) ; + virtual void resizeEvent(QResizeEvent * event) ; + virtual void showEvent(QShowEvent * event) ; + virtual void tabletEvent(QTabletEvent * event) ; + virtual void wheelEvent(QWheelEvent * event) ; + virtual bool event(QEvent * event_) ; + virtual int metric(QPaintDevice::PaintDeviceMetric m) const; + public: + virtual bool eventFilter(QObject * watched, QEvent * event) ; + protected: + virtual void customEvent(QEvent * event) ; + virtual void timerEvent(QTimerEvent * event) ; + public: + void changeEvent_pub(QEvent * event) { changeEvent(event); } + void changeEvent_pub_parent(QEvent * event) { QWidget::changeEvent(event); } + void closeEvent_pub(QCloseEvent * event) { closeEvent(event); } + void closeEvent_pub_parent(QCloseEvent * event) { QWidget::closeEvent(event); } + void contextMenuEvent_pub(QContextMenuEvent * event) { contextMenuEvent(event); } + void contextMenuEvent_pub_parent(QContextMenuEvent * event) { QWidget::contextMenuEvent(event); } + void destroy_pub(bool destroyWindow, bool destroySubWindows) { destroy(destroyWindow, destroySubWindows); } + void destroy_pub_parent(bool destroyWindow, bool destroySubWindows) { QWidget::destroy(destroyWindow, destroySubWindows); } + void dragEnterEvent_pub(QDragEnterEvent * event) { dragEnterEvent(event); } + void dragEnterEvent_pub_parent(QDragEnterEvent * event) { QWidget::dragEnterEvent(event); } + void dragLeaveEvent_pub(QDragLeaveEvent * event) { dragLeaveEvent(event); } + void dragLeaveEvent_pub_parent(QDragLeaveEvent * event) { QWidget::dragLeaveEvent(event); } + void dragMoveEvent_pub(QDragMoveEvent * event) { dragMoveEvent(event); } + void dragMoveEvent_pub_parent(QDragMoveEvent * event) { QWidget::dragMoveEvent(event); } + void dropEvent_pub(QDropEvent * event) { dropEvent(event); } + void dropEvent_pub_parent(QDropEvent * event) { QWidget::dropEvent(event); } + void focusInEvent_pub(QFocusEvent * event) { focusInEvent(event); } + void focusInEvent_pub_parent(QFocusEvent * event) { QWidget::focusInEvent(event); } + bool focusNextChild_pub() { return focusNextChild(); } + bool focusNextChild_pub_parent() { return QWidget::focusNextChild(); } + bool focusNextPrevChild_pub(bool next) { return focusNextPrevChild(next); } + bool focusNextPrevChild_pub_parent(bool next) { return QWidget::focusNextPrevChild(next); } + void focusOutEvent_pub(QFocusEvent * event) { focusOutEvent(event); } + void focusOutEvent_pub_parent(QFocusEvent * event) { QWidget::focusOutEvent(event); } + bool focusPreviousChild_pub() { return focusPreviousChild(); } + bool focusPreviousChild_pub_parent() { return QWidget::focusPreviousChild(); } + void hideEvent_pub(QHideEvent * event) { hideEvent(event); } + void hideEvent_pub_parent(QHideEvent * event) { QWidget::hideEvent(event); } + void keyPressEvent_pub(QKeyEvent * event) { keyPressEvent(event); } + void keyPressEvent_pub_parent(QKeyEvent * event) { QWidget::keyPressEvent(event); } + void keyReleaseEvent_pub(QKeyEvent * event) { keyReleaseEvent(event); } + void keyReleaseEvent_pub_parent(QKeyEvent * event) { QWidget::keyReleaseEvent(event); } + void leaveEvent_pub(QEvent * event) { leaveEvent(event); } + void leaveEvent_pub_parent(QEvent * event) { QWidget::leaveEvent(event); } + void mouseDoubleClickEvent_pub(QMouseEvent * event) { mouseDoubleClickEvent(event); } + void mouseDoubleClickEvent_pub_parent(QMouseEvent * event) { QWidget::mouseDoubleClickEvent(event); } + void mouseMoveEvent_pub(QMouseEvent * event) { mouseMoveEvent(event); } + void mouseMoveEvent_pub_parent(QMouseEvent * event) { QWidget::mouseMoveEvent(event); } + void mousePressEvent_pub(QMouseEvent * event) { mousePressEvent(event); } + void mousePressEvent_pub_parent(QMouseEvent * event) { QWidget::mousePressEvent(event); } + void mouseReleaseEvent_pub(QMouseEvent * event) { mouseReleaseEvent(event); } + void mouseReleaseEvent_pub_parent(QMouseEvent * event) { QWidget::mouseReleaseEvent(event); } + void moveEvent_pub(QMoveEvent * event) { moveEvent(event); } + void moveEvent_pub_parent(QMoveEvent * event) { QWidget::moveEvent(event); } + void paintEvent_pub(QPaintEvent * event) { paintEvent(event); } + void paintEvent_pub_parent(QPaintEvent * event) { QWidget::paintEvent(event); } + void resizeEvent_pub(QResizeEvent * event) { resizeEvent(event); } + void resizeEvent_pub_parent(QResizeEvent * event) { QWidget::resizeEvent(event); } + void showEvent_pub(QShowEvent * event) { showEvent(event); } + void showEvent_pub_parent(QShowEvent * event) { QWidget::showEvent(event); } + void tabletEvent_pub(QTabletEvent * event) { tabletEvent(event); } + void tabletEvent_pub_parent(QTabletEvent * event) { QWidget::tabletEvent(event); } + void wheelEvent_pub(QWheelEvent * event) { wheelEvent(event); } + void wheelEvent_pub_parent(QWheelEvent * event) { QWidget::wheelEvent(event); } + bool event_pub(QEvent * event_) { return event(event_); } + bool event_pub_parent(QEvent * event_) { return QWidget::event(event_); } + int metric_pub(QPaintDevice::PaintDeviceMetric m) const { return metric(m); } + int metric_pub_parent(QPaintDevice::PaintDeviceMetric m) const { return QWidget::metric(m); } + void customEvent_pub(QEvent * event) { customEvent(event); } + void customEvent_pub_parent(QEvent * event) { QWidget::customEvent(event); } + void timerEvent_pub(QTimerEvent * event) { timerEvent(event); } + void timerEvent_pub_parent(QTimerEvent * event) { QWidget::timerEvent(event); } + public: + const QWidgetType* _baseType; + ClassInstance* _obj; + const CallEnvironment* _env; +}; + +inline ClassInstance* QWidgetType::cachedInstance(const QWidgetType::MuQtType* obj) { return obj->_obj; } + +} // Mu + +#endif // __MuQt__QWidgetType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QWindowStateChangeEventType.h b/src/lib/mu/MuQt6/MuQt6/QWindowStateChangeEventType.h new file mode 100644 index 000000000..c80dbc898 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QWindowStateChangeEventType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__QWindowStateChangeEventType__h__ +#define __MuQt5__QWindowStateChangeEventType__h__ +#include +#include + +namespace Mu { + +class QWindowStateChangeEventType : public Class +{ + public: + // + // Types + // + + typedef QWindowStateChangeEvent ValueType; + + struct Struct + { + QWindowStateChangeEvent* object; + }; + + // + // Constructors + // + + QWindowStateChangeEventType(Context* context, const char* name, Class* superClass = 0); + virtual ~QWindowStateChangeEventType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__QWindowStateChangeEventType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/QtColorTriangleType.h b/src/lib/mu/MuQt6/MuQt6/QtColorTriangleType.h new file mode 100644 index 000000000..4ab4be555 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/QtColorTriangleType.h @@ -0,0 +1,33 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#ifndef __MuQt__$TType__h__ +#define __MuQt__$TType__h__ +#include +#include + +namespace Mu { + +class QtColorTriangleType : public Class +{ + public: + // + // Constructors + // + + QtColorTriangleType(Context* context, const char* name, Class* superClass = 0); + virtual ~QtColorTriangleType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt__QtColorTriangleType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/RvNetworkAccessManager.h b/src/lib/mu/MuQt6/MuQt6/RvNetworkAccessManager.h new file mode 100644 index 000000000..a94c1536f --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/RvNetworkAccessManager.h @@ -0,0 +1,36 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#ifndef __RvNetworkAccessManager__h__ +#define __RvNetworkAccessManager__h__ + +#include +#include +#include +#include + +class RvNetworkAccessManager : public QNetworkAccessManager +{ + Q_OBJECT + + public: + virtual ~RvNetworkAccessManager() {} + RvNetworkAccessManager (QObject*); + + virtual QNetworkReply* createRequest ( + QNetworkAccessManager::Operation operation, + const QNetworkRequest& request, + QIODevice* device); + + public slots: + void sslErrorsManagerSlot (QNetworkReply*, QList); + void authenticationRequiredManagerSlot (QNetworkReply*, QAuthenticator*); + void finishedManagerSlot (QNetworkReply*); + void errorReplySlot (QNetworkReply::NetworkError); + void sslErrorsReplySlot (QList); + +}; + +#endif // __RvNetworkAccessManager__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/SignalSpy.h b/src/lib/mu/MuQt6/MuQt6/SignalSpy.h new file mode 100644 index 000000000..0953d65ba --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/SignalSpy.h @@ -0,0 +1,59 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#ifndef __MuQt__SignalSpy__h__ +#define __MuQt__SignalSpy__h__ +#include +#include +#include +#include + +namespace Mu { + +class SignalSpy : public QSignalSpy +{ + Q_OBJECT + + public: + enum Types + { + UnknownArg, + IntArg, + StringArg, + BoolArg, + PointArg, + ObjectArg, + ActionArg, + ColorArg, + TreeItemArg, + ListItemArg, + TableItemArg, + StandardItemArg, + ModelIndexArg, + ItemSelectionArg, + UrlArg, + VariantArg + }; + + SignalSpy(QObject*, + const char* signal, + const Function* F, + Process* p); + + virtual ~SignalSpy(); + + int original_qt_metacall(QMetaObject::Call, int, void**); + + private: + const Function* _F; + Process* _process; + const CallEnvironment* _env; + std::vector _argTypes; +}; + +} // Mu + +#endif // __MuQt__SignalSpy__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/generated/.gitignore b/src/lib/mu/MuQt6/MuQt6/generated/.gitignore new file mode 100644 index 000000000..04a614eb9 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/generated/.gitignore @@ -0,0 +1 @@ +moc_SignalSpy_filtered.hpp \ No newline at end of file diff --git a/src/lib/mu/MuQt6/MuQt6/qtGlobals.h b/src/lib/mu/MuQt6/MuQt6/qtGlobals.h new file mode 100644 index 000000000..90e7fe8e8 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/qtGlobals.h @@ -0,0 +1,16 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#ifndef __MuQt__GlobalType__h__ +#define __MuQt__GlobalType__h__ +#include +#include +#include +#include +#include + + +#endif // __MuQt__GlobalType__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/qtModule.h b/src/lib/mu/MuQt6/MuQt6/qtModule.h new file mode 100644 index 000000000..6866de357 --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/qtModule.h @@ -0,0 +1,28 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#ifndef __MuQt__qtModule__h__ +#define __MuQt__qtModule__h__ +#include +#include + +namespace Mu { + +class qtModule : public Module +{ + public: + qtModule(Context* c, const char *name = "qt"); + virtual ~qtModule(); + + // TODO_QT: Remove if everything works. + // Assuming it is not needed: qtGlobals.cpp stopped being generated since Qt 4.6 + //void loadGlobals(); + virtual void load(); +}; + +} // Mu + +#endif // __MuQt__qtModule__h__ diff --git a/src/lib/mu/MuQt6/MuQt6/qtModuleIncludes.h b/src/lib/mu/MuQt6/MuQt6/qtModuleIncludes.h new file mode 100644 index 000000000..a6e559a2a --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/qtModuleIncludes.h @@ -0,0 +1,177 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/src/lib/mu/MuQt6/MuQt6/qtUtils.h b/src/lib/mu/MuQt6/MuQt6/qtUtils.h new file mode 100644 index 000000000..b7b10442b --- /dev/null +++ b/src/lib/mu/MuQt6/MuQt6/qtUtils.h @@ -0,0 +1,513 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#ifndef __MuQt__qtUtils__h__ +#define __MuQt__qtUtils__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +Q_DECLARE_METATYPE(QTreeWidgetItem*); +Q_DECLARE_METATYPE(QListWidgetItem*); +Q_DECLARE_METATYPE(QTableWidgetItem*); +Q_DECLARE_METATYPE(QAction*); +Q_DECLARE_METATYPE(QStandardItem*); +Q_DECLARE_METATYPE(QModelIndex); +Q_DECLARE_METATYPE(QPixmap); +//Q_DECLARE_METATYPE(QItemSelection); +Q_DECLARE_METATYPE(Qt::DockWidgetArea); +Q_DECLARE_METATYPE(Qt::DockWidgetAreas); +Q_DECLARE_METATYPE(QDockWidget::DockWidgetFeatures); + +typedef int MuQtPublicEnum; + +namespace Mu { + +bool isMuQtObject(QObject*); +bool isMuQtLayoutItem(QLayoutItem*); +bool isMuQtPaintDevice(QPaintDevice*); +bool isMuQtIODeviceBase(QIODeviceBase*); + +template +T* object (Pointer obj) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + return dynamic_cast(i->data()->object); + else + return 0; +} + +inline +void setobject (Pointer obj, const QObject* object) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + i->data()->object = (QObject*)object; +} + +template +T* layoutitem (Pointer obj) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + return dynamic_cast(i->data()->object); + else + return 0; +} + +inline +void setlayoutitem (Pointer obj, const QLayoutItem* object) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + i->data()->object = (QLayoutItem*)object; +} + +template +T* paintdevice (Pointer obj) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + return dynamic_cast(i->data()->object); + else + return 0; +} + +inline +void setpaintdevice (Pointer obj, const QPaintDevice* object) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + i->data()->object = (QPaintDevice*)object; +} + +inline +void setpaintdevice (Pointer obj, const QPaintDevice& object) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + i->data()->object = (QPaintDevice*)&object; +} + +inline +void setiodevicebase (Pointer obj, const QIODeviceBase* object) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + i->data()->object = (QIODeviceBase*)object; +} + +inline +void setiodevicebase (Pointer obj, const QIODeviceBase& object) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + i->data()->object = (QIODeviceBase*)&object; +} + +template +inline +typename Type::ValueType* getqpointer (Pointer obj) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + return dynamic_cast(i->data()->object); + else + return 0; +} + +template +inline +void setqpointer (Pointer obj, const typename Type::ValueType* object) +{ + if (ClassInstance* i = reinterpret_cast(obj)) + i->data()->object = (typename Type::ValueType*)object; +} + +template +inline +ClassInstance* +makeqpointer(Context* c, const typename Type::ValueType* object, const char* name) +{ + if (!object) return 0; + const Class* type = c->findSymbolOfTypeByQualifiedName(c->internName(name), false); + ClassInstance* i = ClassInstance::allocate(type); + setqpointer(i, (typename Type::ValueType*)object); + return i; +} + +template +inline +ClassInstance* +makeqpointer(const Type* type, const typename Type::ValueType* qobject) +{ + if (!qobject) return 0; + ClassInstance* i = ClassInstance::allocate(type); + setqpointer(i, (typename Type::ValueType*)qobject); + return i; +} + +template +QList +qpointerlist(Pointer p) +{ + QList list; + DynamicArray* array = reinterpret_cast(p); + for (size_t i = 0; i < array->size(); i++) + { + list.push_back(getqpointer(array->element(i))); + } + + return list; +} + +template +DynamicArray* +makeqpointerlist(Context* c, const QList& list, const char* name) +{ + MuLangContext* lc = static_cast(c); + const Class* t = lc->findSymbolOfTypeByQualifiedName(c->internName(name), false); + DynamicArray* array = new DynamicArray(static_cast(lc->arrayType(t, 1, 0)), 1); + array->resize(list.size()); + for (size_t i = 0; i < list.size(); i++) + { + array->element(i) = makeqpointer(c, list[i], name); + } + + return array; +} + + +template +ClassInstance* +makeinstance (Context* c, const QObject* object, const char* name) +{ + const typename MuType::MuQtType* mobj = 0; + + if (MuType::isInheritable() && + (mobj = dynamic_cast(object))) + { + return MuType::cachedInstance(mobj); + } + else + { + const Class* type = c->findSymbolOfTypeByQualifiedName(c->internName(name), false); + ClassInstance* i = ClassInstance::allocate(type); + setobject(i, (QObject*)object); + return i; + } +} + +template +ClassInstance* +makelayoutitem (Context* c, const QLayoutItem* item, const char* name) +{ + const typename MuType::MuQtType* mobj = 0; + + if (MuType::isInheritable() && + (mobj = dynamic_cast(item))) + { + return MuType::cachedInstance(mobj); + } + else + { + const Class* type = c->findSymbolOfTypeByQualifiedName(c->internName(name), false); + ClassInstance* i = ClassInstance::allocate(type); + setlayoutitem(i, (QLayoutItem*)item); + return i; + } +} + +template +ClassInstance* +makepaintdevice (Context* c, const QPaintDevice* device, const char* name) +{ + const typename MuType::MuQtType* mobj = 0; + + if (MuType::isInheritable() && + (mobj = dynamic_cast(device))) + { + return MuType::cachedInstance(mobj); + } + else + { + const Class* type = c->findSymbolOfTypeByQualifiedName(c->internName(name), false); + ClassInstance* i = ClassInstance::allocate(type); + setpaintdevice(i, (QPaintDevice*)device); + return i; + } +} + +template +ClassInstance* +makeinstance(const T* type, const QObject* qobject) +{ + const typename T::MuQtType* mobj = 0; + + if (T::isInheritable() && + (mobj = dynamic_cast(qobject))) + { + return T::cachedInstance(mobj); + } + else + { + ClassInstance* i = ClassInstance::allocate(type); + setobject(i, (QObject*)qobject); + return i; + } +} + +template +ClassInstance* +makelayoutitem(const T* type, const QLayoutItem* qitem) +{ + const typename T::MuQtType* mobj = 0; + + if (T::isInheritable() && + (mobj = dynamic_cast(qitem))) + { + return T::cachedInstance(mobj); + } + else + { + ClassInstance* i = ClassInstance::allocate(type); + setlayoutitem(i, (QLayoutItem*)qitem); + return i; + } +} + +template +ClassInstance* +makepaintdevice(const T* type, const QPaintDevice* device) +{ + const typename T::MuQtType* mobj = 0; + + if (T::isInheritable() && + (mobj = dynamic_cast(device))) + { + return T::cachedInstance(mobj); + } + else + { + ClassInstance* i = ClassInstance::allocate(type); + setpaintdevice(i, (QPaintDevice*)device); + return i; + } +} + +inline +QString qstring(Pointer p) +{ + if (!p) return QString(); + return QString::fromUtf8(reinterpret_cast(p)->c_str()); +} + +inline +StringType::String* +makestring (Context* c, const QString& qstr) +{ + MuLangContext* lc = static_cast(c); + return lc->stringType()->allocate(qstr.toUtf8().constData()); +} + +inline +StringType::String* +makestring (Context* c, const char* str) +{ + if (str) + { + MuLangContext* lc = static_cast(c); + return lc->stringType()->allocate(str); + } + else + { + return 0; + } +} + +inline +QStringList qstringlist(Pointer p) +{ + QStringList list; + DynamicArray* array = reinterpret_cast(p); + for (size_t i = 0; i < array->size(); i++) + { + list.push_back(array->element(i)->c_str()); + } + + return list; +} + +inline +DynamicArray* +makestringlist(Context* c, const QStringList& list) +{ + MuLangContext* lc = static_cast(c); + DynamicArray* array = + new DynamicArray(static_cast(lc->arrayType(lc->stringType(), 1, 0)), 1); + array->resize(list.size()); + for (size_t i = 0; i < list.size(); i++) + { + array->element(i) = makestring(c, list[i]); + } + + return array; +} + +template +inline +typename Type::ValueType& +getqtype(Pointer p) +{ + return reinterpret_cast(p)->value; +} + +template +inline +void +setqtype(Pointer p, const typename Type::ValueType& value) +{ + reinterpret_cast(p)->value = value; +} + +template +inline +ClassInstance* +makeqtype(const Class* type, const typename Type::ValueType& value) +{ + typename Type::Instance* i = new typename Type::Instance(type); + Type::registerFinalizer(i); + setqtype(i, value); + return i; +} + +template +inline +ClassInstance* +makeqtype (Context* c, const typename Type::ValueType& value, const char* muType) +{ + const Class* type = c->findSymbolOfTypeByQualifiedName(c->internName(muType), false); + typename Type::Instance* i = new typename Type::Instance(type); + Type::registerFinalizer(i); + setqtype(i, value); + return i; +} + +template +inline +QList qtypelist(Pointer p) +{ + QList list; + DynamicArray* array = reinterpret_cast(p); + for (size_t i = 0; i < array->size(); i++) + { + list.push_back(array->element(i)->value); + } + + return list; +} + +template +inline +DynamicArray* +makeqtypelist(Context* c, const QList& list, const char* muType) +{ + MuLangContext* lc = static_cast(c); + const Class* type = c->findSymbolOfTypeByQualifiedName(lc->internName(muType), false); + DynamicArray* array = + new DynamicArray(static_cast(lc->arrayType(type, 1, 0)), 1); + array->resize(list.size()); + for (size_t i = 0; i < list.size(); i++) + { + array->element(i) = makeqtype(type, list[i]); + } + + return array; +} + +Pointer assertNotNil(Thread& thread, const Node& node, Pointer p, size_t n); + +inline +QModelIndexList qmodelindexlist(Pointer p) +{ + QModelIndexList list; + DynamicArray* array = reinterpret_cast(p); + for (size_t i = 0; i < array->size(); i++) + { + list.push_back(array->element(i)->value); + } + + return list; +} + +inline +DynamicArray* +makeqmodelindexlist(Context* c, const QModelIndexList& list) +{ + MuLangContext* lc = static_cast(c); + DynamicArray* array = + new DynamicArray(static_cast(lc->arrayType(lc->stringType(), 1, 0)), 1); + array->resize(list.size()); + for (size_t i = 0; i < list.size(); i++) + { + array->element(i) = + makeqtype(c, list[i], "qt.QModelIndex"); + } + + return array; +} + +inline +QFileInfoList qfileinfolist(Pointer p) +{ + QFileInfoList list; + DynamicArray* array = reinterpret_cast(p); + for (size_t i = 0; i < array->size(); i++) + { + list.push_back(array->element(i)->value); + } + + return list; +} + +inline +DynamicArray* +makeqfileinfolist(Context* c, const QFileInfoList& list) +{ + MuLangContext* lc = static_cast(c); + DynamicArray* array = + new DynamicArray(static_cast(lc->arrayType(lc->stringType(), 1, 0)), 1); + array->resize(list.size()); + for (size_t i = 0; i < list.size(); i++) + { + array->element(i) = + makeqtype(c, list[i], "qt.QFileInfo"); + } + + return array; +} + +#define NONNIL_NODE_ARG(N,T) assertNotNil(NODE_THREAD, NODE_THIS, NODE_ARG(N,T), N) + +template inline T defaultValue () { return T(0); } +template <> inline QModelIndex defaultValue<> () { return QModelIndex(); } +template <> inline QRegion defaultValue<> () { return QRegion(); } +template <> inline QRect defaultValue<> () { return QRect(); } +template <> inline QSize defaultValue<> () { return QSize(); } + +Class::ClassVector vectorOf2(Class* a, Class *b); + +//NODE_DECLARATION(__allocate_register_gc_qobject, Pointer); + +} // Mu + +#endif // __MuQt__qtUtils__h__ diff --git a/src/lib/mu/MuQt6/QAbstractButtonType.cpp b/src/lib/mu/MuQt6/QAbstractButtonType.cpp new file mode 100644 index 000000000..607263913 --- /dev/null +++ b/src/lib/mu/MuQt6/QAbstractButtonType.cpp @@ -0,0 +1,1425 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QAbstractButton::~MuQt_QAbstractButton() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QAbstractButton::MuQt_QAbstractButton(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QAbstractButton(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractButton")); +} + +void MuQt_QAbstractButton::checkStateSet() +{ + if (!_env) { QAbstractButton::checkStateSet(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::checkStateSet(); + } +} + +bool MuQt_QAbstractButton::hitButton(const QPoint & pos) const +{ + if (!_env) return QAbstractButton::hitButton(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,pos,"qt.QPoint")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractButton::hitButton(pos); + } +} + +void MuQt_QAbstractButton::nextCheckState() +{ + if (!_env) { QAbstractButton::nextCheckState(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::nextCheckState(); + } +} + +void MuQt_QAbstractButton::changeEvent(QEvent * e) +{ + if (!_env) { QAbstractButton::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::changeEvent(e); + } +} + +bool MuQt_QAbstractButton::event(QEvent * e) +{ + if (!_env) return QAbstractButton::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractButton::event(e); + } +} + +void MuQt_QAbstractButton::focusInEvent(QFocusEvent * e) +{ + if (!_env) { QAbstractButton::focusInEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::focusInEvent(e); + } +} + +void MuQt_QAbstractButton::focusOutEvent(QFocusEvent * e) +{ + if (!_env) { QAbstractButton::focusOutEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::focusOutEvent(e); + } +} + +void MuQt_QAbstractButton::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QAbstractButton::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::keyPressEvent(e); + } +} + +void MuQt_QAbstractButton::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QAbstractButton::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::keyReleaseEvent(e); + } +} + +void MuQt_QAbstractButton::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QAbstractButton::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::mouseMoveEvent(e); + } +} + +void MuQt_QAbstractButton::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QAbstractButton::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::mousePressEvent(e); + } +} + +void MuQt_QAbstractButton::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QAbstractButton::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::mouseReleaseEvent(e); + } +} + +void MuQt_QAbstractButton::paintEvent(QPaintEvent * e) // pure virtual +{ + if (!_env) return; + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + defaultValue(); + } +} + +void MuQt_QAbstractButton::timerEvent(QTimerEvent * e) +{ + if (!_env) { QAbstractButton::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::timerEvent(e); + } +} + +bool MuQt_QAbstractButton::hasHeightForWidth() const +{ + if (!_env) return QAbstractButton::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractButton::hasHeightForWidth(); + } +} + +int MuQt_QAbstractButton::heightForWidth(int w) const +{ + if (!_env) return QAbstractButton::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QAbstractButton::heightForWidth(w); + } +} + +QVariant MuQt_QAbstractButton::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QAbstractButton::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractButton::inputMethodQuery(query); + } +} + +QSize MuQt_QAbstractButton::minimumSizeHint() const +{ + if (!_env) return QAbstractButton::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractButton::minimumSizeHint(); + } +} + +QSize MuQt_QAbstractButton::sizeHint() const +{ + if (!_env) return QAbstractButton::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractButton::sizeHint(); + } +} + +void MuQt_QAbstractButton::closeEvent(QCloseEvent * event) +{ + if (!_env) { QAbstractButton::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::closeEvent(event); + } +} + +void MuQt_QAbstractButton::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QAbstractButton::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::contextMenuEvent(event); + } +} + +void MuQt_QAbstractButton::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QAbstractButton::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::dragEnterEvent(event); + } +} + +void MuQt_QAbstractButton::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QAbstractButton::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::dragLeaveEvent(event); + } +} + +void MuQt_QAbstractButton::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QAbstractButton::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::dragMoveEvent(event); + } +} + +void MuQt_QAbstractButton::dropEvent(QDropEvent * event) +{ + if (!_env) { QAbstractButton::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::dropEvent(event); + } +} + +bool MuQt_QAbstractButton::focusNextPrevChild(bool next) +{ + if (!_env) return QAbstractButton::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractButton::focusNextPrevChild(next); + } +} + +void MuQt_QAbstractButton::hideEvent(QHideEvent * event) +{ + if (!_env) { QAbstractButton::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::hideEvent(event); + } +} + +void MuQt_QAbstractButton::leaveEvent(QEvent * event) +{ + if (!_env) { QAbstractButton::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::leaveEvent(event); + } +} + +void MuQt_QAbstractButton::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractButton::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::mouseDoubleClickEvent(event); + } +} + +void MuQt_QAbstractButton::moveEvent(QMoveEvent * event) +{ + if (!_env) { QAbstractButton::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::moveEvent(event); + } +} + +void MuQt_QAbstractButton::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QAbstractButton::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::resizeEvent(event); + } +} + +void MuQt_QAbstractButton::showEvent(QShowEvent * event) +{ + if (!_env) { QAbstractButton::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::showEvent(event); + } +} + +void MuQt_QAbstractButton::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QAbstractButton::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::tabletEvent(event); + } +} + +void MuQt_QAbstractButton::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QAbstractButton::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractButton::wheelEvent(event); + } +} + +int MuQt_QAbstractButton::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QAbstractButton::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[34]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QAbstractButton::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QAbstractButtonType::QAbstractButtonType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QAbstractButtonType::~QAbstractButtonType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QAbstractButton_QAbstractButton_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QAbstractButton* w = object(widget)) + { + QAbstractButtonType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractButton"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QAbstractButton_QAbstractButton_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QAbstractButton_QAbstractButton_QAbstractButton_QAbstractButton_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QAbstractButton(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QAbstractButton_group_QButtonGroup_QAbstractButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + return makeinstance(c, arg0->group(), "qt.QButtonGroup"); +} + +void qt_QAbstractButton_checkStateSet_void_QAbstractButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->checkStateSet_pub_parent(); + else ((MuQt_QAbstractButton*)arg0)->checkStateSet_pub(); +} + +bool qt_QAbstractButton_hitButton_bool_QAbstractButton_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return isMuQtObject(arg0) ? ((MuQt_QAbstractButton*)arg0)->hitButton_pub_parent(arg1) : ((MuQt_QAbstractButton*)arg0)->hitButton_pub(arg1); +} + +void qt_QAbstractButton_nextCheckState_void_QAbstractButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->nextCheckState_pub_parent(); + else ((MuQt_QAbstractButton*)arg0)->nextCheckState_pub(); +} + +void qt_QAbstractButton_changeEvent_void_QAbstractButton_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QAbstractButton_event_bool_QAbstractButton_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QAbstractButton*)arg0)->event_pub_parent(arg1) : ((MuQt_QAbstractButton*)arg0)->event_pub(arg1); +} + +void qt_QAbstractButton_focusInEvent_void_QAbstractButton_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QAbstractButton_focusOutEvent_void_QAbstractButton_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QAbstractButton_keyPressEvent_void_QAbstractButton_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QAbstractButton_keyReleaseEvent_void_QAbstractButton_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QAbstractButton_mouseMoveEvent_void_QAbstractButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QAbstractButton_mousePressEvent_void_QAbstractButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QAbstractButton_mouseReleaseEvent_void_QAbstractButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QAbstractButton_paintEvent_void_QAbstractButton_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_e); + ((MuQt_QAbstractButton*)arg0)->paintEvent_pub(arg1); +} + +void qt_QAbstractButton_timerEvent_void_QAbstractButton_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->timerEvent_pub(arg1); +} + +bool qt_QAbstractButton_hasHeightForWidth_bool_QAbstractButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractButton::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QAbstractButton_heightForWidth_int_QAbstractButton_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QAbstractButton::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QAbstractButton_inputMethodQuery_QVariant_QAbstractButton_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractButton::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QAbstractButton_minimumSizeHint_QSize_QAbstractButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractButton::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QAbstractButton_sizeHint_QSize_QAbstractButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractButton::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QAbstractButton_closeEvent_void_QAbstractButton_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->closeEvent_pub(arg1); +} + +void qt_QAbstractButton_contextMenuEvent_void_QAbstractButton_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QAbstractButton_dragEnterEvent_void_QAbstractButton_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QAbstractButton_dragLeaveEvent_void_QAbstractButton_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QAbstractButton_dragMoveEvent_void_QAbstractButton_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QAbstractButton_dropEvent_void_QAbstractButton_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QAbstractButton_focusNextPrevChild_bool_QAbstractButton_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QAbstractButton*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QAbstractButton*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QAbstractButton_hideEvent_void_QAbstractButton_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->hideEvent_pub(arg1); +} + +void qt_QAbstractButton_leaveEvent_void_QAbstractButton_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QAbstractButton_mouseDoubleClickEvent_void_QAbstractButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QAbstractButton_moveEvent_void_QAbstractButton_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->moveEvent_pub(arg1); +} + +void qt_QAbstractButton_resizeEvent_void_QAbstractButton_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QAbstractButton_showEvent_void_QAbstractButton_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->showEvent_pub(arg1); +} + +void qt_QAbstractButton_tabletEvent_void_QAbstractButton_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QAbstractButton_wheelEvent_void_QAbstractButton_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractButton*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QAbstractButton*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QAbstractButton_metric_int_QAbstractButton_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractButton* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QAbstractButton*)arg0)->metric_pub_parent(arg1) : ((MuQt_QAbstractButton*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QAbstractButton0, Pointer) +{ + NODE_RETURN(qt_QAbstractButton_QAbstractButton_QAbstractButton_QAbstractButton_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_group0, Pointer) +{ + NODE_RETURN(qt_QAbstractButton_group_QButtonGroup_QAbstractButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_checkStateSet0, void) +{ + qt_QAbstractButton_checkStateSet_void_QAbstractButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hitButton0, bool) +{ + NODE_RETURN(qt_QAbstractButton_hitButton_bool_QAbstractButton_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nextCheckState0, void) +{ + qt_QAbstractButton_nextCheckState_void_QAbstractButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QAbstractButton_changeEvent_void_QAbstractButton_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QAbstractButton_event_bool_QAbstractButton_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QAbstractButton_focusInEvent_void_QAbstractButton_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QAbstractButton_focusOutEvent_void_QAbstractButton_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QAbstractButton_keyPressEvent_void_QAbstractButton_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QAbstractButton_keyReleaseEvent_void_QAbstractButton_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QAbstractButton_mouseMoveEvent_void_QAbstractButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QAbstractButton_mousePressEvent_void_QAbstractButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QAbstractButton_mouseReleaseEvent_void_QAbstractButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QAbstractButton_paintEvent_void_QAbstractButton_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QAbstractButton_timerEvent_void_QAbstractButton_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QAbstractButton_hasHeightForWidth_bool_QAbstractButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QAbstractButton_heightForWidth_int_QAbstractButton_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QAbstractButton_inputMethodQuery_QVariant_QAbstractButton_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractButton_minimumSizeHint_QSize_QAbstractButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractButton_sizeHint_QSize_QAbstractButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QAbstractButton_closeEvent_void_QAbstractButton_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QAbstractButton_contextMenuEvent_void_QAbstractButton_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QAbstractButton_dragEnterEvent_void_QAbstractButton_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QAbstractButton_dragLeaveEvent_void_QAbstractButton_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QAbstractButton_dragMoveEvent_void_QAbstractButton_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QAbstractButton_dropEvent_void_QAbstractButton_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QAbstractButton_focusNextPrevChild_bool_QAbstractButton_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QAbstractButton_hideEvent_void_QAbstractButton_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QAbstractButton_leaveEvent_void_QAbstractButton_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QAbstractButton_mouseDoubleClickEvent_void_QAbstractButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QAbstractButton_moveEvent_void_QAbstractButton_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QAbstractButton_resizeEvent_void_QAbstractButton_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QAbstractButton_showEvent_void_QAbstractButton_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QAbstractButton_tabletEvent_void_QAbstractButton_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QAbstractButton_wheelEvent_void_QAbstractButton_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QAbstractButton_metric_int_QAbstractButton_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QAbstractButtonType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QAbstractButton_QAbstractButton_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QAbstractButton", _n_QAbstractButton0, None, Compiled, qt_QAbstractButton_QAbstractButton_QAbstractButton_QAbstractButton_QWidget, Return, "qt.QAbstractButton", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: autoExclusive (bool; QAbstractButton this) + // PROP: autoRepeat (bool; QAbstractButton this) + // PROP: autoRepeatDelay (int; QAbstractButton this) + // PROP: autoRepeatInterval (int; QAbstractButton this) + new Function(c, "group", _n_group0, None, Compiled, qt_QAbstractButton_group_QButtonGroup_QAbstractButton, Return, "qt.QButtonGroup", Parameters, new Param(c, "this", "qt.QAbstractButton"), End), + // PROP: icon (QIcon; QAbstractButton this) + // PROP: iconSize (QSize; QAbstractButton this) + // PROP: isCheckable (bool; QAbstractButton this) + // PROP: isChecked (bool; QAbstractButton this) + // PROP: isDown (bool; QAbstractButton this) + // PROP: setAutoExclusive (void; QAbstractButton this, bool _p4) + // PROP: setAutoRepeat (void; QAbstractButton this, bool _p4) + // PROP: setAutoRepeatDelay (void; QAbstractButton this, int _p3) + // PROP: setAutoRepeatInterval (void; QAbstractButton this, int _p3) + // PROP: setCheckable (void; QAbstractButton this, bool _p4) + // PROP: setDown (void; QAbstractButton this, bool _p4) + // PROP: setIcon (void; QAbstractButton this, QIcon icon) + // PROP: setShortcut (void; QAbstractButton this, QKeySequence key) + // PROP: setText (void; QAbstractButton this, string text) + // PROP: shortcut (QKeySequence; QAbstractButton this) + // PROP: text (string; QAbstractButton this) + _func[0] = new MemberFunction(c, "checkStateSet", _n_checkStateSet0, None, Compiled, qt_QAbstractButton_checkStateSet_void_QAbstractButton, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), End), + _func[1] = new MemberFunction(c, "hitButton", _n_hitButton0, None, Compiled, qt_QAbstractButton_hitButton_bool_QAbstractButton_QPoint, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "pos", "qt.QPoint"), End), + _func[2] = new MemberFunction(c, "nextCheckState", _n_nextCheckState0, None, Compiled, qt_QAbstractButton_nextCheckState_void_QAbstractButton, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), End), + _func[3] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QAbstractButton_changeEvent_void_QAbstractButton_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QEvent"), End), + _func[4] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QAbstractButton_event_bool_QAbstractButton_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QEvent"), End), + _func[5] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QAbstractButton_focusInEvent_void_QAbstractButton_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[6] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QAbstractButton_focusOutEvent_void_QAbstractButton_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[7] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QAbstractButton_keyPressEvent_void_QAbstractButton_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[8] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QAbstractButton_keyReleaseEvent_void_QAbstractButton_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[9] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QAbstractButton_mouseMoveEvent_void_QAbstractButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[10] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QAbstractButton_mousePressEvent_void_QAbstractButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[11] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QAbstractButton_mouseReleaseEvent_void_QAbstractButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[12] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QAbstractButton_paintEvent_void_QAbstractButton_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QPaintEvent"), End), + _func[13] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QAbstractButton_timerEvent_void_QAbstractButton_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "e", "qt.QTimerEvent"), End), + _func[14] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QAbstractButton_hasHeightForWidth_bool_QAbstractButton, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractButton"), End), + _func[15] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QAbstractButton_heightForWidth_int_QAbstractButton_int, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "w", "int"), End), + _func[16] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QAbstractButton_inputMethodQuery_QVariant_QAbstractButton_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "query", "int"), End), + _func[17] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QAbstractButton_minimumSizeHint_QSize_QAbstractButton, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractButton"), End), + _func[18] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QAbstractButton_sizeHint_QSize_QAbstractButton, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractButton"), End), + // MISSING: paintEngine ("QPaintEngine *"; QAbstractButton this) + // MISSING: actionEvent (void; QAbstractButton this, "QActionEvent *" event) // protected + _func[19] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QAbstractButton_closeEvent_void_QAbstractButton_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[20] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QAbstractButton_contextMenuEvent_void_QAbstractButton_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[21] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QAbstractButton_dragEnterEvent_void_QAbstractButton_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[22] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QAbstractButton_dragLeaveEvent_void_QAbstractButton_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[23] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QAbstractButton_dragMoveEvent_void_QAbstractButton_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[24] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QAbstractButton_dropEvent_void_QAbstractButton_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QAbstractButton this, "QEnterEvent *" event) // protected + _func[25] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QAbstractButton_focusNextPrevChild_bool_QAbstractButton_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "next", "bool"), End), + _func[26] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QAbstractButton_hideEvent_void_QAbstractButton_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QAbstractButton this, "QInputMethodEvent *" event) // protected + _func[27] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QAbstractButton_leaveEvent_void_QAbstractButton_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QEvent"), End), + _func[28] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QAbstractButton_mouseDoubleClickEvent_void_QAbstractButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[29] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QAbstractButton_moveEvent_void_QAbstractButton_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QAbstractButton this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[30] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QAbstractButton_resizeEvent_void_QAbstractButton_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[31] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QAbstractButton_showEvent_void_QAbstractButton_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QShowEvent"), End), + _func[32] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QAbstractButton_tabletEvent_void_QAbstractButton_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[33] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QAbstractButton_wheelEvent_void_QAbstractButton_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QAbstractButton this, "QPainter *" painter) // protected + _func[34] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QAbstractButton_metric_int_QAbstractButton_int, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractButton"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QAbstractButton::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QAbstractItemModelType.cpp b/src/lib/mu/MuQt6/QAbstractItemModelType.cpp new file mode 100644 index 000000000..a92405c80 --- /dev/null +++ b/src/lib/mu/MuQt6/QAbstractItemModelType.cpp @@ -0,0 +1,1833 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QAbstractItemModel::~MuQt_QAbstractItemModel() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QAbstractItemModel::MuQt_QAbstractItemModel(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QAbstractItemModel(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractItemModel")); +} + +QModelIndex MuQt_QAbstractItemModel::buddy(const QModelIndex & index) const +{ + if (!_env) return QAbstractItemModel::buddy(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractItemModel::buddy(index); + } +} + +bool MuQt_QAbstractItemModel::canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const +{ + if (!_env) return QAbstractItemModel::canDropMimeData(data, action, row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,data,"qt.QMimeData")); + args[2] = Value(int(action)); + args[3] = Value(row); + args[4] = Value(column); + args[5] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::canDropMimeData(data, action, row, column, parent); + } +} + +bool MuQt_QAbstractItemModel::canFetchMore(const QModelIndex & parent) const +{ + if (!_env) return QAbstractItemModel::canFetchMore(parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::canFetchMore(parent); + } +} + +bool MuQt_QAbstractItemModel::clearItemData(const QModelIndex & index) +{ + if (!_env) return QAbstractItemModel::clearItemData(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::clearItemData(index); + } +} + +int MuQt_QAbstractItemModel::columnCount(const QModelIndex & parent) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return defaultValue(); + } +} + +QVariant MuQt_QAbstractItemModel::data(const QModelIndex & index, int role) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(role); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +bool MuQt_QAbstractItemModel::dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) +{ + if (!_env) return QAbstractItemModel::dropMimeData(data, action, row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,data,"qt.QMimeData")); + args[2] = Value(int(action)); + args[3] = Value(row); + args[4] = Value(column); + args[5] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::dropMimeData(data, action, row, column, parent); + } +} + +void MuQt_QAbstractItemModel::fetchMore(const QModelIndex & parent) +{ + if (!_env) { QAbstractItemModel::fetchMore(parent); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemModel::fetchMore(parent); + } +} + +Qt::ItemFlags MuQt_QAbstractItemModel::flags(const QModelIndex & index) const +{ + if (!_env) return QAbstractItemModel::flags(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (Qt::ItemFlags)(rval._int); + } + else + { + return QAbstractItemModel::flags(index); + } +} + +bool MuQt_QAbstractItemModel::hasChildren(const QModelIndex & parent) const +{ + if (!_env) return QAbstractItemModel::hasChildren(parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::hasChildren(parent); + } +} + +QVariant MuQt_QAbstractItemModel::headerData(int section, Qt::Orientation orientation, int role) const +{ + if (!_env) return QAbstractItemModel::headerData(section, orientation, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(section); + args[2] = Value(int(orientation)); + args[3] = Value(role); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractItemModel::headerData(section, orientation, role); + } +} + +QModelIndex MuQt_QAbstractItemModel::index(int row, int column, const QModelIndex & parent) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(column); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +bool MuQt_QAbstractItemModel::insertColumns(int column, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractItemModel::insertColumns(column, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::insertColumns(column, count, parent); + } +} + +bool MuQt_QAbstractItemModel::insertRows(int row, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractItemModel::insertRows(row, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::insertRows(row, count, parent); + } +} + +QModelIndexList MuQt_QAbstractItemModel::match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const +{ + if (!_env) return QAbstractItemModel::match(start, role, value, hits, flags); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,start,"qt.QModelIndex")); + args[2] = Value(role); + args[3] = Value(makeqtype(c,value,"qt.QVariant")); + args[4] = Value(hits); + args[5] = Value(int(flags)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QAbstractItemModel::match(start, role, value, hits, flags); + } +} + +QMimeData * MuQt_QAbstractItemModel::mimeData(const QModelIndexList & indexes) const +{ + if (!_env) return QAbstractItemModel::mimeData(indexes); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqmodelindexlist(c,indexes)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QAbstractItemModel::mimeData(indexes); + } +} + +QStringList MuQt_QAbstractItemModel::mimeTypes() const +{ + if (!_env) return QAbstractItemModel::mimeTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QAbstractItemModel::mimeTypes(); + } +} + +bool MuQt_QAbstractItemModel::moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) +{ + if (!_env) return QAbstractItemModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,sourceParent,"qt.QModelIndex")); + args[2] = Value(sourceColumn); + args[3] = Value(count); + args[4] = Value(makeqtype(c,destinationParent,"qt.QModelIndex")); + args[5] = Value(destinationChild); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); + } +} + +bool MuQt_QAbstractItemModel::moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) +{ + if (!_env) return QAbstractItemModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,sourceParent,"qt.QModelIndex")); + args[2] = Value(sourceRow); + args[3] = Value(count); + args[4] = Value(makeqtype(c,destinationParent,"qt.QModelIndex")); + args[5] = Value(destinationChild); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); + } +} + +QModelIndex MuQt_QAbstractItemModel::parent(const QModelIndex & index) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +bool MuQt_QAbstractItemModel::removeColumns(int column, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractItemModel::removeColumns(column, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::removeColumns(column, count, parent); + } +} + +bool MuQt_QAbstractItemModel::removeRows(int row, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractItemModel::removeRows(row, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::removeRows(row, count, parent); + } +} + +int MuQt_QAbstractItemModel::rowCount(const QModelIndex & parent) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return defaultValue(); + } +} + +bool MuQt_QAbstractItemModel::setData(const QModelIndex & index, const QVariant & value, int role) +{ + if (!_env) return QAbstractItemModel::setData(index, value, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,value,"qt.QVariant")); + args[3] = Value(role); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::setData(index, value, role); + } +} + +bool MuQt_QAbstractItemModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) +{ + if (!_env) return QAbstractItemModel::setHeaderData(section, orientation, value, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(5); + args[0] = Value(Pointer(_obj)); + args[1] = Value(section); + args[2] = Value(int(orientation)); + args[3] = Value(makeqtype(c,value,"qt.QVariant")); + args[4] = Value(role); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::setHeaderData(section, orientation, value, role); + } +} + +QModelIndex MuQt_QAbstractItemModel::sibling(int row, int column, const QModelIndex & index) const +{ + if (!_env) return QAbstractItemModel::sibling(row, column, index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(column); + args[3] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractItemModel::sibling(row, column, index); + } +} + +void MuQt_QAbstractItemModel::sort(int column, Qt::SortOrder order) +{ + if (!_env) { QAbstractItemModel::sort(column, order); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(int(order)); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemModel::sort(column, order); + } +} + +QSize MuQt_QAbstractItemModel::span(const QModelIndex & index) const +{ + if (!_env) return QAbstractItemModel::span(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractItemModel::span(index); + } +} + +Qt::DropActions MuQt_QAbstractItemModel::supportedDragActions() const +{ + if (!_env) return QAbstractItemModel::supportedDragActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QAbstractItemModel::supportedDragActions(); + } +} + +Qt::DropActions MuQt_QAbstractItemModel::supportedDropActions() const +{ + if (!_env) return QAbstractItemModel::supportedDropActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QAbstractItemModel::supportedDropActions(); + } +} + +bool MuQt_QAbstractItemModel::event(QEvent * e) +{ + if (!_env) return QAbstractItemModel::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::event(e); + } +} + +bool MuQt_QAbstractItemModel::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QAbstractItemModel::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemModel::eventFilter(watched, event); + } +} + +void MuQt_QAbstractItemModel::customEvent(QEvent * event) +{ + if (!_env) { QAbstractItemModel::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemModel::customEvent(event); + } +} + +void MuQt_QAbstractItemModel::timerEvent(QTimerEvent * event) +{ + if (!_env) { QAbstractItemModel::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemModel::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QAbstractItemModelType::QAbstractItemModelType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QAbstractItemModelType::~QAbstractItemModelType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QAbstractItemModel_QAbstractItemModel_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QAbstractItemModel* w = object(widget)) + { + QAbstractItemModelType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractItemModel"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QAbstractItemModel_QAbstractItemModel_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QAbstractItemModel_QAbstractItemModel_QAbstractItemModel_QAbstractItemModel_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QAbstractItemModel(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QAbstractItemModel_buddy_QModelIndex_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractItemModel::buddy(arg1),"qt.QModelIndex") : makeqtype(c,arg0->buddy(arg1),"qt.QModelIndex"); +} + +bool qt_QAbstractItemModel_canDropMimeData_bool_QAbstractItemModel_QMimeData_int_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, int param_action, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QMimeData * arg1 = object(param_data); + Qt::DropAction arg2 = (Qt::DropAction)(param_action); + int arg3 = (int)(param_row); + int arg4 = (int)(param_column); + const QModelIndex arg5 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::canDropMimeData(arg1, arg2, arg3, arg4, arg5) : arg0->canDropMimeData(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QAbstractItemModel_canFetchMore_bool_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::canFetchMore(arg1) : arg0->canFetchMore(arg1); +} + +bool qt_QAbstractItemModel_clearItemData_bool_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::clearItemData(arg1) : arg0->clearItemData(arg1); +} + +int qt_QAbstractItemModel_columnCount_int_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return arg0->columnCount(arg1); +} + +Pointer qt_QAbstractItemModel_data_QVariant_QAbstractItemModel_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + int arg2 = (int)(param_role); + return makeqtype(c,arg0->data(arg1, arg2),"qt.QVariant"); +} + +bool qt_QAbstractItemModel_dropMimeData_bool_QAbstractItemModel_QMimeData_int_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, int param_action, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QMimeData * arg1 = object(param_data); + Qt::DropAction arg2 = (Qt::DropAction)(param_action); + int arg3 = (int)(param_row); + int arg4 = (int)(param_column); + const QModelIndex arg5 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::dropMimeData(arg1, arg2, arg3, arg4, arg5) : arg0->dropMimeData(arg1, arg2, arg3, arg4, arg5); +} + +void qt_QAbstractItemModel_fetchMore_void_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + if (isMuQtObject(arg0)) arg0->QAbstractItemModel::fetchMore(arg1); + else arg0->fetchMore(arg1); +} + +int qt_QAbstractItemModel_flags_int_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? int(arg0->QAbstractItemModel::flags(arg1)) : int(arg0->flags(arg1)); +} + +bool qt_QAbstractItemModel_hasChildren_bool_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::hasChildren(arg1) : arg0->hasChildren(arg1); +} + +bool qt_QAbstractItemModel_hasIndex_bool_QAbstractItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QModelIndex arg3 = getqtype(param_parent); + return arg0->hasIndex(arg1, arg2, arg3); +} + +Pointer qt_QAbstractItemModel_headerData_QVariant_QAbstractItemModel_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_section, int param_orientation, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_section); + Qt::Orientation arg2 = (Qt::Orientation)(param_orientation); + int arg3 = (int)(param_role); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractItemModel::headerData(arg1, arg2, arg3),"qt.QVariant") : makeqtype(c,arg0->headerData(arg1, arg2, arg3),"qt.QVariant"); +} + +Pointer qt_QAbstractItemModel_index_QModelIndex_QAbstractItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QModelIndex arg3 = getqtype(param_parent); + return makeqtype(c,arg0->index(arg1, arg2, arg3),"qt.QModelIndex"); +} + +bool qt_QAbstractItemModel_insertColumn_bool_QAbstractItemModel_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->insertColumn(arg1, arg2); +} + +bool qt_QAbstractItemModel_insertColumns_bool_QAbstractItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::insertColumns(arg1, arg2, arg3) : arg0->insertColumns(arg1, arg2, arg3); +} + +bool qt_QAbstractItemModel_insertRow_bool_QAbstractItemModel_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->insertRow(arg1, arg2); +} + +bool qt_QAbstractItemModel_insertRows_bool_QAbstractItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::insertRows(arg1, arg2, arg3) : arg0->insertRows(arg1, arg2, arg3); +} + +Pointer qt_QAbstractItemModel_match_qt__QModelIndexBSB_ESB__QAbstractItemModel_QModelIndex_int_QVariant_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_start, int param_role, Pointer param_value, int param_hits, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_start); + int arg2 = (int)(param_role); + const QVariant arg3 = getqtype(param_value); + int arg4 = (int)(param_hits); + Qt::MatchFlags arg5 = (Qt::MatchFlags)(param_flags); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,arg0->QAbstractItemModel::match(arg1, arg2, arg3, arg4, arg5)) : makeqmodelindexlist(c,arg0->match(arg1, arg2, arg3, arg4, arg5)); +} + +Pointer qt_QAbstractItemModel_mimeData_QMimeData_QAbstractItemModel_qt__QModelIndexBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_indexes) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndexList arg1 = qmodelindexlist(param_indexes); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QAbstractItemModel::mimeData(arg1), "qt.QMimeData") : makeinstance(c, arg0->mimeData(arg1), "qt.QMimeData"); +} + +Pointer qt_QAbstractItemModel_mimeTypes_stringBSB_ESB__QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestringlist(c,arg0->QAbstractItemModel::mimeTypes()) : makestringlist(c,arg0->mimeTypes()); +} + +bool qt_QAbstractItemModel_moveColumn_bool_QAbstractItemModel_QModelIndex_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceColumn, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceColumn); + const QModelIndex arg3 = getqtype(param_destinationParent); + int arg4 = (int)(param_destinationChild); + return arg0->moveColumn(arg1, arg2, arg3, arg4); +} + +bool qt_QAbstractItemModel_moveColumns_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceColumn, int param_count, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceColumn); + int arg3 = (int)(param_count); + const QModelIndex arg4 = getqtype(param_destinationParent); + int arg5 = (int)(param_destinationChild); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::moveColumns(arg1, arg2, arg3, arg4, arg5) : arg0->moveColumns(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QAbstractItemModel_moveRow_bool_QAbstractItemModel_QModelIndex_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceRow, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceRow); + const QModelIndex arg3 = getqtype(param_destinationParent); + int arg4 = (int)(param_destinationChild); + return arg0->moveRow(arg1, arg2, arg3, arg4); +} + +bool qt_QAbstractItemModel_moveRows_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceRow, int param_count, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceRow); + int arg3 = (int)(param_count); + const QModelIndex arg4 = getqtype(param_destinationParent); + int arg5 = (int)(param_destinationChild); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::moveRows(arg1, arg2, arg3, arg4, arg5) : arg0->moveRows(arg1, arg2, arg3, arg4, arg5); +} + +Pointer qt_QAbstractItemModel_parent_QModelIndex_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeqtype(c,arg0->parent(arg1),"qt.QModelIndex"); +} + +bool qt_QAbstractItemModel_removeColumn_bool_QAbstractItemModel_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->removeColumn(arg1, arg2); +} + +bool qt_QAbstractItemModel_removeColumns_bool_QAbstractItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::removeColumns(arg1, arg2, arg3) : arg0->removeColumns(arg1, arg2, arg3); +} + +bool qt_QAbstractItemModel_removeRow_bool_QAbstractItemModel_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->removeRow(arg1, arg2); +} + +bool qt_QAbstractItemModel_removeRows_bool_QAbstractItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::removeRows(arg1, arg2, arg3) : arg0->removeRows(arg1, arg2, arg3); +} + +int qt_QAbstractItemModel_rowCount_int_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return arg0->rowCount(arg1); +} + +bool qt_QAbstractItemModel_setData_bool_QAbstractItemModel_QModelIndex_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_value, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + const QVariant arg2 = getqtype(param_value); + int arg3 = (int)(param_role); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::setData(arg1, arg2, arg3) : arg0->setData(arg1, arg2, arg3); +} + +bool qt_QAbstractItemModel_setHeaderData_bool_QAbstractItemModel_int_int_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_section, int param_orientation, Pointer param_value, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_section); + Qt::Orientation arg2 = (Qt::Orientation)(param_orientation); + const QVariant arg3 = getqtype(param_value); + int arg4 = (int)(param_role); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::setHeaderData(arg1, arg2, arg3, arg4) : arg0->setHeaderData(arg1, arg2, arg3, arg4); +} + +Pointer qt_QAbstractItemModel_sibling_QModelIndex_QAbstractItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QModelIndex arg3 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractItemModel::sibling(arg1, arg2, arg3),"qt.QModelIndex") : makeqtype(c,arg0->sibling(arg1, arg2, arg3),"qt.QModelIndex"); +} + +void qt_QAbstractItemModel_sort_void_QAbstractItemModel_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_order) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + Qt::SortOrder arg2 = (Qt::SortOrder)(param_order); + if (isMuQtObject(arg0)) arg0->QAbstractItemModel::sort(arg1, arg2); + else arg0->sort(arg1, arg2); +} + +Pointer qt_QAbstractItemModel_span_QSize_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractItemModel::span(arg1),"qt.QSize") : makeqtype(c,arg0->span(arg1),"qt.QSize"); +} + +int qt_QAbstractItemModel_supportedDragActions_int_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QAbstractItemModel::supportedDragActions()) : int(arg0->supportedDragActions()); +} + +int qt_QAbstractItemModel_supportedDropActions_int_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QAbstractItemModel::supportedDropActions()) : int(arg0->supportedDropActions()); +} + +void qt_QAbstractItemModel_beginInsertColumns_void_QAbstractItemModel_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_first, int param_last) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_first); + int arg3 = (int)(param_last); + ((MuQt_QAbstractItemModel*)arg0)->beginInsertColumns_pub(arg1, arg2, arg3); +} + +void qt_QAbstractItemModel_beginInsertRows_void_QAbstractItemModel_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_first, int param_last) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_first); + int arg3 = (int)(param_last); + ((MuQt_QAbstractItemModel*)arg0)->beginInsertRows_pub(arg1, arg2, arg3); +} + +bool qt_QAbstractItemModel_beginMoveColumns_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceFirst, int param_sourceLast, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceFirst); + int arg3 = (int)(param_sourceLast); + const QModelIndex arg4 = getqtype(param_destinationParent); + int arg5 = (int)(param_destinationChild); + return ((MuQt_QAbstractItemModel*)arg0)->beginMoveColumns_pub(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QAbstractItemModel_beginMoveRows_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceFirst, int param_sourceLast, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceFirst); + int arg3 = (int)(param_sourceLast); + const QModelIndex arg4 = getqtype(param_destinationParent); + int arg5 = (int)(param_destinationChild); + return ((MuQt_QAbstractItemModel*)arg0)->beginMoveRows_pub(arg1, arg2, arg3, arg4, arg5); +} + +void qt_QAbstractItemModel_beginRemoveColumns_void_QAbstractItemModel_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_first, int param_last) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_first); + int arg3 = (int)(param_last); + ((MuQt_QAbstractItemModel*)arg0)->beginRemoveColumns_pub(arg1, arg2, arg3); +} + +void qt_QAbstractItemModel_beginRemoveRows_void_QAbstractItemModel_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_first, int param_last) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_first); + int arg3 = (int)(param_last); + ((MuQt_QAbstractItemModel*)arg0)->beginRemoveRows_pub(arg1, arg2, arg3); +} + +void qt_QAbstractItemModel_beginResetModel_void_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + ((MuQt_QAbstractItemModel*)arg0)->beginResetModel_pub(); +} + +void qt_QAbstractItemModel_changePersistentIndex_void_QAbstractItemModel_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_from, Pointer param_to) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_from); + const QModelIndex arg2 = getqtype(param_to); + ((MuQt_QAbstractItemModel*)arg0)->changePersistentIndex_pub(arg1, arg2); +} + +void qt_QAbstractItemModel_changePersistentIndexList_void_QAbstractItemModel_qt__QModelIndexBSB_ESB__qt__QModelIndexBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_from, Pointer param_to) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + const QModelIndexList arg1 = qmodelindexlist(param_from); + const QModelIndexList arg2 = qmodelindexlist(param_to); + ((MuQt_QAbstractItemModel*)arg0)->changePersistentIndexList_pub(arg1, arg2); +} + +void qt_QAbstractItemModel_endInsertColumns_void_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + ((MuQt_QAbstractItemModel*)arg0)->endInsertColumns_pub(); +} + +void qt_QAbstractItemModel_endInsertRows_void_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + ((MuQt_QAbstractItemModel*)arg0)->endInsertRows_pub(); +} + +void qt_QAbstractItemModel_endMoveColumns_void_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + ((MuQt_QAbstractItemModel*)arg0)->endMoveColumns_pub(); +} + +void qt_QAbstractItemModel_endMoveRows_void_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + ((MuQt_QAbstractItemModel*)arg0)->endMoveRows_pub(); +} + +void qt_QAbstractItemModel_endRemoveColumns_void_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + ((MuQt_QAbstractItemModel*)arg0)->endRemoveColumns_pub(); +} + +void qt_QAbstractItemModel_endRemoveRows_void_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + ((MuQt_QAbstractItemModel*)arg0)->endRemoveRows_pub(); +} + +void qt_QAbstractItemModel_endResetModel_void_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + ((MuQt_QAbstractItemModel*)arg0)->endResetModel_pub(); +} + +Pointer qt_QAbstractItemModel_persistentIndexList_qt__QModelIndexBSB_ESB__QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + return makeqmodelindexlist(c,((MuQt_QAbstractItemModel*)arg0)->persistentIndexList_pub()); +} + +bool qt_QAbstractItemModel_event_bool_QAbstractItemModel_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::event(arg1) : arg0->event(arg1); +} + +bool qt_QAbstractItemModel_eventFilter_bool_QAbstractItemModel_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QAbstractItemModel::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QAbstractItemModel_customEvent_void_QAbstractItemModel_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemModel*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemModel*)arg0)->customEvent_pub(arg1); +} + +void qt_QAbstractItemModel_timerEvent_void_QAbstractItemModel_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemModel*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemModel*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QAbstractItemModel0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_QAbstractItemModel_QAbstractItemModel_QAbstractItemModel_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_buddy0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_buddy_QModelIndex_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canDropMimeData0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_canDropMimeData_bool_QAbstractItemModel_QMimeData_int_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canFetchMore0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_canFetchMore_bool_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearItemData0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_clearItemData_bool_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_columnCount0, int) +{ + NODE_RETURN(qt_QAbstractItemModel_columnCount_int_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_data_QVariant_QAbstractItemModel_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_dropMimeData0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_dropMimeData_bool_QAbstractItemModel_QMimeData_int_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fetchMore0, void) +{ + qt_QAbstractItemModel_fetchMore_void_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QAbstractItemModel_flags_int_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasChildren0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_hasChildren_bool_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasIndex0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_hasIndex_bool_QAbstractItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_headerData0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_headerData_QVariant_QAbstractItemModel_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_index0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_index_QModelIndex_QAbstractItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertColumn0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_insertColumn_bool_QAbstractItemModel_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertColumns0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_insertColumns_bool_QAbstractItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertRow0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_insertRow_bool_QAbstractItemModel_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertRows0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_insertRows_bool_QAbstractItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_match0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_match_qt__QModelIndexBSB_ESB__QAbstractItemModel_QModelIndex_int_QVariant_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_mimeData0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_mimeData_QMimeData_QAbstractItemModel_qt__QModelIndexBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mimeTypes0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_mimeTypes_stringBSB_ESB__QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_moveColumn0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_moveColumn_bool_QAbstractItemModel_QModelIndex_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_moveColumns0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_moveColumns_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, Pointer), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_moveRow0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_moveRow_bool_QAbstractItemModel_QModelIndex_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_moveRows0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_moveRows_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, Pointer), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_parent0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_parent_QModelIndex_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeColumn0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_removeColumn_bool_QAbstractItemModel_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeColumns0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_removeColumns_bool_QAbstractItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeRow0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_removeRow_bool_QAbstractItemModel_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeRows0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_removeRows_bool_QAbstractItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rowCount0, int) +{ + NODE_RETURN(qt_QAbstractItemModel_rowCount_int_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setData0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_setData_bool_QAbstractItemModel_QModelIndex_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_setHeaderData0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_setHeaderData_bool_QAbstractItemModel_int_int_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_sibling0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_sibling_QModelIndex_QAbstractItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sort0, void) +{ + qt_QAbstractItemModel_sort_void_QAbstractItemModel_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_span0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_span_QSize_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportedDragActions0, int) +{ + NODE_RETURN(qt_QAbstractItemModel_supportedDragActions_int_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportedDropActions0, int) +{ + NODE_RETURN(qt_QAbstractItemModel_supportedDropActions_int_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_beginInsertColumns0, void) +{ + qt_QAbstractItemModel_beginInsertColumns_void_QAbstractItemModel_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_beginInsertRows0, void) +{ + qt_QAbstractItemModel_beginInsertRows_void_QAbstractItemModel_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_beginMoveColumns0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_beginMoveColumns_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, Pointer), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_beginMoveRows0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_beginMoveRows_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, Pointer), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_beginRemoveColumns0, void) +{ + qt_QAbstractItemModel_beginRemoveColumns_void_QAbstractItemModel_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_beginRemoveRows0, void) +{ + qt_QAbstractItemModel_beginRemoveRows_void_QAbstractItemModel_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_beginResetModel0, void) +{ + qt_QAbstractItemModel_beginResetModel_void_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changePersistentIndex0, void) +{ + qt_QAbstractItemModel_changePersistentIndex_void_QAbstractItemModel_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changePersistentIndexList0, void) +{ + qt_QAbstractItemModel_changePersistentIndexList_void_QAbstractItemModel_qt__QModelIndexBSB_ESB__qt__QModelIndexBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_endInsertColumns0, void) +{ + qt_QAbstractItemModel_endInsertColumns_void_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_endInsertRows0, void) +{ + qt_QAbstractItemModel_endInsertRows_void_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_endMoveColumns0, void) +{ + qt_QAbstractItemModel_endMoveColumns_void_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_endMoveRows0, void) +{ + qt_QAbstractItemModel_endMoveRows_void_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_endRemoveColumns0, void) +{ + qt_QAbstractItemModel_endRemoveColumns_void_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_endRemoveRows0, void) +{ + qt_QAbstractItemModel_endRemoveRows_void_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_endResetModel0, void) +{ + qt_QAbstractItemModel_endResetModel_void_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_persistentIndexList0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_persistentIndexList_qt__QModelIndexBSB_ESB__QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_event_bool_QAbstractItemModel_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QAbstractItemModel_eventFilter_bool_QAbstractItemModel_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QAbstractItemModel_customEvent_void_QAbstractItemModel_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QAbstractItemModel_timerEvent_void_QAbstractItemModel_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + + +Pointer qt_QAbstractItemModel_createIndex_QModelIndex_QAbstractItemModel_int_int_object(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_any) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + MuQt_QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + Pointer arg3 = (Pointer)(param_any); + return makeqtype(c,arg0->createIndex0_pub(arg1, arg2, arg3),"qt.QModelIndex"); +} + +static NODE_IMPLEMENTATION(_n_createIndex0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_createIndex_QModelIndex_QAbstractItemModel_int_int_object(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +void +QAbstractItemModelType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QAbstractItemModel_QAbstractItemModel_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QAbstractItemModel", _n_QAbstractItemModel0, None, Compiled, qt_QAbstractItemModel_QAbstractItemModel_QAbstractItemModel_QAbstractItemModel_QObject, Return, "qt.QAbstractItemModel", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QObject"), End), + _func[0] = new MemberFunction(c, "buddy", _n_buddy0, None, Compiled, qt_QAbstractItemModel_buddy_QModelIndex_QAbstractItemModel_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[1] = new MemberFunction(c, "canDropMimeData", _n_canDropMimeData0, None, Compiled, qt_QAbstractItemModel_canDropMimeData_bool_QAbstractItemModel_QMimeData_int_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[2] = new MemberFunction(c, "canFetchMore", _n_canFetchMore0, None, Compiled, qt_QAbstractItemModel_canFetchMore_bool_QAbstractItemModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[3] = new MemberFunction(c, "clearItemData", _n_clearItemData0, None, Compiled, qt_QAbstractItemModel_clearItemData_bool_QAbstractItemModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[4] = new MemberFunction(c, "columnCount", _n_columnCount0, None, Compiled, qt_QAbstractItemModel_columnCount_int_QAbstractItemModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[5] = new MemberFunction(c, "data", _n_data0, None, Compiled, qt_QAbstractItemModel_data_QVariant_QAbstractItemModel_QModelIndex_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "role", "int", Value((int)Qt::DisplayRole)), End), + _func[6] = new MemberFunction(c, "dropMimeData", _n_dropMimeData0, None, Compiled, qt_QAbstractItemModel_dropMimeData_bool_QAbstractItemModel_QMimeData_int_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[7] = new MemberFunction(c, "fetchMore", _n_fetchMore0, None, Compiled, qt_QAbstractItemModel_fetchMore_void_QAbstractItemModel_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[8] = new MemberFunction(c, "flags", _n_flags0, None, Compiled, qt_QAbstractItemModel_flags_int_QAbstractItemModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[9] = new MemberFunction(c, "hasChildren", _n_hasChildren0, None, Compiled, qt_QAbstractItemModel_hasChildren_bool_QAbstractItemModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QModelIndex"), End), + new Function(c, "hasIndex", _n_hasIndex0, None, Compiled, qt_QAbstractItemModel_hasIndex_bool_QAbstractItemModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[10] = new MemberFunction(c, "headerData", _n_headerData0, None, Compiled, qt_QAbstractItemModel_headerData_QVariant_QAbstractItemModel_int_int_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "section", "int"), new Param(c, "orientation", "int"), new Param(c, "role", "int", Value((int)Qt::DisplayRole)), End), + _func[11] = new MemberFunction(c, "index", _n_index0, None, Compiled, qt_QAbstractItemModel_index_QModelIndex_QAbstractItemModel_int_int_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + new Function(c, "insertColumn", _n_insertColumn0, None, Compiled, qt_QAbstractItemModel_insertColumn_bool_QAbstractItemModel_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[12] = new MemberFunction(c, "insertColumns", _n_insertColumns0, None, Compiled, qt_QAbstractItemModel_insertColumns_bool_QAbstractItemModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "column", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + new Function(c, "insertRow", _n_insertRow0, None, Compiled, qt_QAbstractItemModel_insertRow_bool_QAbstractItemModel_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "row", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[13] = new MemberFunction(c, "insertRows", _n_insertRows0, None, Compiled, qt_QAbstractItemModel_insertRows_bool_QAbstractItemModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "row", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + // MISSING: itemData ("QMap"; QAbstractItemModel this, QModelIndex index) + _func[14] = new MemberFunction(c, "match", _n_match0, None, Compiled, qt_QAbstractItemModel_match_qt__QModelIndexBSB_ESB__QAbstractItemModel_QModelIndex_int_QVariant_int_int, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "start", "qt.QModelIndex"), new Param(c, "role", "int"), new Param(c, "value", "qt.QVariant"), new Param(c, "hits", "int", Value((int)1)), new Param(c, "flags", "int", Value((int)Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap))), End), + _func[15] = new MemberFunction(c, "mimeData", _n_mimeData0, None, Compiled, qt_QAbstractItemModel_mimeData_QMimeData_QAbstractItemModel_qt__QModelIndexBSB_ESB_, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "indexes", "qt.QModelIndex[]"), End), + _func[16] = new MemberFunction(c, "mimeTypes", _n_mimeTypes0, None, Compiled, qt_QAbstractItemModel_mimeTypes_stringBSB_ESB__QAbstractItemModel, Return, "string[]", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + new Function(c, "moveColumn", _n_moveColumn0, None, Compiled, qt_QAbstractItemModel_moveColumn_bool_QAbstractItemModel_QModelIndex_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceColumn", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + _func[17] = new MemberFunction(c, "moveColumns", _n_moveColumns0, None, Compiled, qt_QAbstractItemModel_moveColumns_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceColumn", "int"), new Param(c, "count", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + new Function(c, "moveRow", _n_moveRow0, None, Compiled, qt_QAbstractItemModel_moveRow_bool_QAbstractItemModel_QModelIndex_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceRow", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + _func[18] = new MemberFunction(c, "moveRows", _n_moveRows0, None, Compiled, qt_QAbstractItemModel_moveRows_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceRow", "int"), new Param(c, "count", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + // MISSING: multiData (void; QAbstractItemModel this, QModelIndex index, "QModelRoleDataSpan" roleDataSpan) + _func[19] = new MemberFunction(c, "parent", _n_parent0, None, Compiled, qt_QAbstractItemModel_parent_QModelIndex_QAbstractItemModel_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "removeColumn", _n_removeColumn0, None, Compiled, qt_QAbstractItemModel_removeColumn_bool_QAbstractItemModel_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[20] = new MemberFunction(c, "removeColumns", _n_removeColumns0, None, Compiled, qt_QAbstractItemModel_removeColumns_bool_QAbstractItemModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "column", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + new Function(c, "removeRow", _n_removeRow0, None, Compiled, qt_QAbstractItemModel_removeRow_bool_QAbstractItemModel_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "row", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[21] = new MemberFunction(c, "removeRows", _n_removeRows0, None, Compiled, qt_QAbstractItemModel_removeRows_bool_QAbstractItemModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "row", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + // MISSING: roleNames ("QHash"; QAbstractItemModel this) + _func[22] = new MemberFunction(c, "rowCount", _n_rowCount0, None, Compiled, qt_QAbstractItemModel_rowCount_int_QAbstractItemModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[23] = new MemberFunction(c, "setData", _n_setData0, None, Compiled, qt_QAbstractItemModel_setData_bool_QAbstractItemModel_QModelIndex_QVariant_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "value", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::EditRole)), End), + _func[24] = new MemberFunction(c, "setHeaderData", _n_setHeaderData0, None, Compiled, qt_QAbstractItemModel_setHeaderData_bool_QAbstractItemModel_int_int_QVariant_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "section", "int"), new Param(c, "orientation", "int"), new Param(c, "value", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::EditRole)), End), + // MISSING: setItemData (bool; QAbstractItemModel this, QModelIndex index, "const QMap &" roles) + _func[25] = new MemberFunction(c, "sibling", _n_sibling0, None, Compiled, qt_QAbstractItemModel_sibling_QModelIndex_QAbstractItemModel_int_int_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "index", "qt.QModelIndex"), End), + _func[26] = new MemberFunction(c, "sort", _n_sort0, None, Compiled, qt_QAbstractItemModel_sort_void_QAbstractItemModel_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "column", "int"), new Param(c, "order", "int", Value((int)Qt::AscendingOrder)), End), + _func[27] = new MemberFunction(c, "span", _n_span0, None, Compiled, qt_QAbstractItemModel_span_QSize_QAbstractItemModel_QModelIndex, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[28] = new MemberFunction(c, "supportedDragActions", _n_supportedDragActions0, None, Compiled, qt_QAbstractItemModel_supportedDragActions_int_QAbstractItemModel, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + _func[29] = new MemberFunction(c, "supportedDropActions", _n_supportedDropActions0, None, Compiled, qt_QAbstractItemModel_supportedDropActions_int_QAbstractItemModel, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + new Function(c, "beginInsertColumns", _n_beginInsertColumns0, None, Compiled, qt_QAbstractItemModel_beginInsertColumns_void_QAbstractItemModel_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "first", "int"), new Param(c, "last", "int"), End), + new Function(c, "beginInsertRows", _n_beginInsertRows0, None, Compiled, qt_QAbstractItemModel_beginInsertRows_void_QAbstractItemModel_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "first", "int"), new Param(c, "last", "int"), End), + new Function(c, "beginMoveColumns", _n_beginMoveColumns0, None, Compiled, qt_QAbstractItemModel_beginMoveColumns_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceFirst", "int"), new Param(c, "sourceLast", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + new Function(c, "beginMoveRows", _n_beginMoveRows0, None, Compiled, qt_QAbstractItemModel_beginMoveRows_bool_QAbstractItemModel_QModelIndex_int_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceFirst", "int"), new Param(c, "sourceLast", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + new Function(c, "beginRemoveColumns", _n_beginRemoveColumns0, None, Compiled, qt_QAbstractItemModel_beginRemoveColumns_void_QAbstractItemModel_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "first", "int"), new Param(c, "last", "int"), End), + new Function(c, "beginRemoveRows", _n_beginRemoveRows0, None, Compiled, qt_QAbstractItemModel_beginRemoveRows_void_QAbstractItemModel_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "first", "int"), new Param(c, "last", "int"), End), + new Function(c, "beginResetModel", _n_beginResetModel0, None, Compiled, qt_QAbstractItemModel_beginResetModel_void_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + new Function(c, "changePersistentIndex", _n_changePersistentIndex0, None, Compiled, qt_QAbstractItemModel_changePersistentIndex_void_QAbstractItemModel_QModelIndex_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "from", "qt.QModelIndex"), new Param(c, "to", "qt.QModelIndex"), End), + new Function(c, "changePersistentIndexList", _n_changePersistentIndexList0, None, Compiled, qt_QAbstractItemModel_changePersistentIndexList_void_QAbstractItemModel_qt__QModelIndexBSB_ESB__qt__QModelIndexBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "from", "qt.QModelIndex[]"), new Param(c, "to", "qt.QModelIndex[]"), End), + // MISSING: createIndex (QModelIndex; QAbstractItemModel this, int row, int column, "const void *" ptr) // protected + // MISSING: createIndex (QModelIndex; QAbstractItemModel this, int row, int column, "quintptr" id) // protected + new Function(c, "endInsertColumns", _n_endInsertColumns0, None, Compiled, qt_QAbstractItemModel_endInsertColumns_void_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + new Function(c, "endInsertRows", _n_endInsertRows0, None, Compiled, qt_QAbstractItemModel_endInsertRows_void_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + new Function(c, "endMoveColumns", _n_endMoveColumns0, None, Compiled, qt_QAbstractItemModel_endMoveColumns_void_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + new Function(c, "endMoveRows", _n_endMoveRows0, None, Compiled, qt_QAbstractItemModel_endMoveRows_void_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + new Function(c, "endRemoveColumns", _n_endRemoveColumns0, None, Compiled, qt_QAbstractItemModel_endRemoveColumns_void_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + new Function(c, "endRemoveRows", _n_endRemoveRows0, None, Compiled, qt_QAbstractItemModel_endRemoveRows_void_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + new Function(c, "endResetModel", _n_endResetModel0, None, Compiled, qt_QAbstractItemModel_endResetModel_void_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + new Function(c, "persistentIndexList", _n_persistentIndexList0, None, Compiled, qt_QAbstractItemModel_persistentIndexList_qt__QModelIndexBSB_ESB__QAbstractItemModel, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), End), + _func[30] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QAbstractItemModel_event_bool_QAbstractItemModel_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "e", "qt.QEvent"), End), + _func[31] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QAbstractItemModel_eventFilter_bool_QAbstractItemModel_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QAbstractItemModel this) + // MISSING: childEvent (void; QAbstractItemModel this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QAbstractItemModel this, "const QMetaMethod &" signal) // protected + _func[32] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QAbstractItemModel_customEvent_void_QAbstractItemModel_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QAbstractItemModel this, "const QMetaMethod &" signal) // protected + _func[33] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QAbstractItemModel_timerEvent_void_QAbstractItemModel_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemModel"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +addSymbols( + + new Function(c, "createIndex", _n_createIndex0, None, + Compiled, qt_QAbstractItemModel_createIndex_QModelIndex_QAbstractItemModel_int_int_object, + Return, "qt.QModelIndex", + Parameters, + new Param(c, "this", "qt.QAbstractItemModel"), + new Param(c, "row", "int"), + new Param(c, "column", "int"), + new Param(c, "any", "object"), + End), + + EndArguments); + + const char** propExclusions = 0; + + populate(this, QAbstractItemModel::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QAbstractItemViewType.cpp b/src/lib/mu/MuQt6/QAbstractItemViewType.cpp new file mode 100644 index 000000000..b8320630e --- /dev/null +++ b/src/lib/mu/MuQt6/QAbstractItemViewType.cpp @@ -0,0 +1,2019 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QAbstractItemView::~MuQt_QAbstractItemView() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QAbstractItemView::MuQt_QAbstractItemView(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QAbstractItemView(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractItemView")); +} + +QModelIndex MuQt_QAbstractItemView::indexAt(const QPoint & point) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,point,"qt.QPoint")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +void MuQt_QAbstractItemView::keyboardSearch(const QString & search) +{ + if (!_env) { QAbstractItemView::keyboardSearch(search); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makestring(c,search)); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::keyboardSearch(search); + } +} + +void MuQt_QAbstractItemView::scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) // pure virtual +{ + if (!_env) return; + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(hint)); + Value rval = _env->call(F, args); + } + else + { + defaultValue(); + } +} + +void MuQt_QAbstractItemView::setModel(QAbstractItemModel * model) +{ + if (!_env) { QAbstractItemView::setModel(model); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,model,"qt.QAbstractItemModel")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::setModel(model); + } +} + +void MuQt_QAbstractItemView::setSelectionModel(QItemSelectionModel * selectionModel) +{ + if (!_env) { QAbstractItemView::setSelectionModel(selectionModel); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,selectionModel,"qt.QItemSelectionModel")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::setSelectionModel(selectionModel); + } +} + +int MuQt_QAbstractItemView::sizeHintForColumn(int column) const +{ + if (!_env) return QAbstractItemView::sizeHintForColumn(column); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QAbstractItemView::sizeHintForColumn(column); + } +} + +int MuQt_QAbstractItemView::sizeHintForRow(int row) const +{ + if (!_env) return QAbstractItemView::sizeHintForRow(row); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QAbstractItemView::sizeHintForRow(row); + } +} + +QRect MuQt_QAbstractItemView::visualRect(const QModelIndex & index) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +QVariant MuQt_QAbstractItemView::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QAbstractItemView::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractItemView::inputMethodQuery(query); + } +} + +bool MuQt_QAbstractItemView::edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) +{ + if (!_env) return QAbstractItemView::edit(index, trigger, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(trigger)); + args[3] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemView::edit(index, trigger, event); + } +} + +int MuQt_QAbstractItemView::horizontalOffset() const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return defaultValue(); + } +} + +bool MuQt_QAbstractItemView::isIndexHidden(const QModelIndex & index) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return defaultValue(); + } +} + +QModelIndex MuQt_QAbstractItemView::moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers) // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(cursorAction)); + args[2] = Value(int(modifiers)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +QModelIndexList MuQt_QAbstractItemView::selectedIndexes() const +{ + if (!_env) return QAbstractItemView::selectedIndexes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QAbstractItemView::selectedIndexes(); + } +} + +QItemSelectionModel::SelectionFlags MuQt_QAbstractItemView::selectionCommand(const QModelIndex & index, const QEvent * event) const +{ + if (!_env) return QAbstractItemView::selectionCommand(index, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (QItemSelectionModel::SelectionFlags)(rval._int); + } + else + { + return QAbstractItemView::selectionCommand(index, event); + } +} + +void MuQt_QAbstractItemView::setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags flags) // pure virtual +{ + if (!_env) return; + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + args[2] = Value(int(flags)); + Value rval = _env->call(F, args); + } + else + { + defaultValue(); + } +} + +void MuQt_QAbstractItemView::startDrag(Qt::DropActions supportedActions) +{ + if (!_env) { QAbstractItemView::startDrag(supportedActions); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(supportedActions)); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::startDrag(supportedActions); + } +} + +int MuQt_QAbstractItemView::verticalOffset() const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return defaultValue(); + } +} + +QRegion MuQt_QAbstractItemView::visualRegionForSelection(const QItemSelection & selection) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selection,"qt.QItemSelection")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +void MuQt_QAbstractItemView::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QAbstractItemView::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::dragEnterEvent(event); + } +} + +void MuQt_QAbstractItemView::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QAbstractItemView::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::dragLeaveEvent(event); + } +} + +void MuQt_QAbstractItemView::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QAbstractItemView::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::dragMoveEvent(event); + } +} + +void MuQt_QAbstractItemView::dropEvent(QDropEvent * event) +{ + if (!_env) { QAbstractItemView::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::dropEvent(event); + } +} + +bool MuQt_QAbstractItemView::event(QEvent * event_) +{ + if (!_env) return QAbstractItemView::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemView::event(event_); + } +} + +bool MuQt_QAbstractItemView::eventFilter(QObject * object, QEvent * event) +{ + if (!_env) return QAbstractItemView::eventFilter(object, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,object,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemView::eventFilter(object, event); + } +} + +void MuQt_QAbstractItemView::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QAbstractItemView::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::focusInEvent(event); + } +} + +bool MuQt_QAbstractItemView::focusNextPrevChild(bool next) +{ + if (!_env) return QAbstractItemView::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemView::focusNextPrevChild(next); + } +} + +void MuQt_QAbstractItemView::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QAbstractItemView::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::focusOutEvent(event); + } +} + +void MuQt_QAbstractItemView::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QAbstractItemView::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::keyPressEvent(event); + } +} + +void MuQt_QAbstractItemView::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractItemView::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::mouseDoubleClickEvent(event); + } +} + +void MuQt_QAbstractItemView::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractItemView::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::mouseMoveEvent(event); + } +} + +void MuQt_QAbstractItemView::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractItemView::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::mousePressEvent(event); + } +} + +void MuQt_QAbstractItemView::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractItemView::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::mouseReleaseEvent(event); + } +} + +void MuQt_QAbstractItemView::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QAbstractItemView::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::resizeEvent(event); + } +} + +void MuQt_QAbstractItemView::timerEvent(QTimerEvent * event) +{ + if (!_env) { QAbstractItemView::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[34]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::timerEvent(event); + } +} + +bool MuQt_QAbstractItemView::viewportEvent(QEvent * event) +{ + if (!_env) return QAbstractItemView::viewportEvent(event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[35]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractItemView::viewportEvent(event); + } +} + +QSize MuQt_QAbstractItemView::viewportSizeHint() const +{ + if (!_env) return QAbstractItemView::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[36]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractItemView::viewportSizeHint(); + } +} + +void MuQt_QAbstractItemView::setupViewport(QWidget * viewport) +{ + if (!_env) { QAbstractItemView::setupViewport(viewport); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[37]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,viewport,"qt.QWidget")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::setupViewport(viewport); + } +} + +QSize MuQt_QAbstractItemView::minimumSizeHint() const +{ + if (!_env) return QAbstractItemView::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[38]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractItemView::minimumSizeHint(); + } +} + +QSize MuQt_QAbstractItemView::sizeHint() const +{ + if (!_env) return QAbstractItemView::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[39]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractItemView::sizeHint(); + } +} + +void MuQt_QAbstractItemView::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QAbstractItemView::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[40]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::scrollContentsBy(dx, dy); + } +} + +void MuQt_QAbstractItemView::contextMenuEvent(QContextMenuEvent * e) +{ + if (!_env) { QAbstractItemView::contextMenuEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[41]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::contextMenuEvent(e); + } +} + +void MuQt_QAbstractItemView::paintEvent(QPaintEvent * event) +{ + if (!_env) { QAbstractItemView::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[42]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::paintEvent(event); + } +} + +void MuQt_QAbstractItemView::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QAbstractItemView::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[43]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractItemView::wheelEvent(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QAbstractItemViewType::QAbstractItemViewType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QAbstractItemViewType::~QAbstractItemViewType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QAbstractItemView_QAbstractItemView_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QAbstractItemView* w = object(widget)) + { + QAbstractItemViewType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractItemView"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QAbstractItemView_QAbstractItemView_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QAbstractItemView_QAbstractItemView_QAbstractItemView_QAbstractItemView_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QAbstractItemView(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QAbstractItemView_closePersistentEditor_void_QAbstractItemView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + arg0->closePersistentEditor(arg1); +} + +Pointer qt_QAbstractItemView_currentIndex_QModelIndex_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return makeqtype(c,arg0->currentIndex(),"qt.QModelIndex"); +} + +Pointer qt_QAbstractItemView_indexAt_QModelIndex_QAbstractItemView_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_point); + return makeqtype(c,arg0->indexAt(arg1),"qt.QModelIndex"); +} + +Pointer qt_QAbstractItemView_indexWidget_QWidget_QAbstractItemView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeinstance(c, arg0->indexWidget(arg1), "qt.QWidget"); +} + +bool qt_QAbstractItemView_isPersistentEditorOpen_bool_QAbstractItemView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return arg0->isPersistentEditorOpen(arg1); +} + +void qt_QAbstractItemView_keyboardSearch_void_QAbstractItemView_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_search) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QString arg1 = qstring(param_search); + if (isMuQtObject(arg0)) arg0->QAbstractItemView::keyboardSearch(arg1); + else arg0->keyboardSearch(arg1); +} + +Pointer qt_QAbstractItemView_model_QAbstractItemModel_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return makeinstance(c, arg0->model(), "qt.QAbstractItemModel"); +} + +void qt_QAbstractItemView_openPersistentEditor_void_QAbstractItemView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + arg0->openPersistentEditor(arg1); +} + +Pointer qt_QAbstractItemView_rootIndex_QModelIndex_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return makeqtype(c,arg0->rootIndex(),"qt.QModelIndex"); +} + +void qt_QAbstractItemView_scrollTo_void_QAbstractItemView_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_hint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::ScrollHint arg2 = (QAbstractItemView::ScrollHint)(param_hint); + arg0->scrollTo(arg1, arg2); +} + +Pointer qt_QAbstractItemView_selectionModel_QItemSelectionModel_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return makeinstance(c, arg0->selectionModel(), "qt.QItemSelectionModel"); +} + +void qt_QAbstractItemView_setIndexWidget_void_QAbstractItemView_QModelIndex_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QWidget * arg2 = object(param_widget); + arg0->setIndexWidget(arg1, arg2); +} + +void qt_QAbstractItemView_setModel_void_QAbstractItemView_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QAbstractItemModel * arg1 = object(param_model); + if (isMuQtObject(arg0)) arg0->QAbstractItemView::setModel(arg1); + else arg0->setModel(arg1); +} + +void qt_QAbstractItemView_setSelectionModel_void_QAbstractItemView_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selectionModel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QItemSelectionModel * arg1 = object(param_selectionModel); + if (isMuQtObject(arg0)) arg0->QAbstractItemView::setSelectionModel(arg1); + else arg0->setSelectionModel(arg1); +} + +int qt_QAbstractItemView_sizeHintForColumn_int_QAbstractItemView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return isMuQtObject(arg0) ? arg0->QAbstractItemView::sizeHintForColumn(arg1) : arg0->sizeHintForColumn(arg1); +} + +Pointer qt_QAbstractItemView_sizeHintForIndex_QSize_QAbstractItemView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeqtype(c,arg0->sizeHintForIndex(arg1),"qt.QSize"); +} + +int qt_QAbstractItemView_sizeHintForRow_int_QAbstractItemView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + int arg1 = (int)(param_row); + return isMuQtObject(arg0) ? arg0->QAbstractItemView::sizeHintForRow(arg1) : arg0->sizeHintForRow(arg1); +} + +Pointer qt_QAbstractItemView_visualRect_QRect_QAbstractItemView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeqtype(c,arg0->visualRect(arg1),"qt.QRect"); +} + +Pointer qt_QAbstractItemView_inputMethodQuery_QVariant_QAbstractItemView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractItemView::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QAbstractItemView_dirtyRegionOffset_QPoint_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return makeqtype(c,((MuQt_QAbstractItemView*)arg0)->dirtyRegionOffset_pub(),"qt.QPoint"); +} + +int qt_QAbstractItemView_dropIndicatorPosition_int_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return int(((MuQt_QAbstractItemView*)arg0)->dropIndicatorPosition_pub()); +} + +bool qt_QAbstractItemView_edit_bool_QAbstractItemView_QModelIndex_int_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_trigger, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::EditTrigger arg2 = (QAbstractItemView::EditTrigger)(param_trigger); + QEvent * arg3 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QAbstractItemView*)arg0)->edit_pub_parent(arg1, arg2, arg3) : ((MuQt_QAbstractItemView*)arg0)->edit_pub(arg1, arg2, arg3); +} + +void qt_QAbstractItemView_executeDelayedItemsLayout_void_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + ((MuQt_QAbstractItemView*)arg0)->executeDelayedItemsLayout_pub(); +} + +int qt_QAbstractItemView_horizontalOffset_int_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return ((MuQt_QAbstractItemView*)arg0)->horizontalOffset_pub(); +} + +bool qt_QAbstractItemView_isIndexHidden_bool_QAbstractItemView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return ((MuQt_QAbstractItemView*)arg0)->isIndexHidden_pub(arg1); +} + +Pointer qt_QAbstractItemView_moveCursor_QModelIndex_QAbstractItemView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_cursorAction, int param_modifiers) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + MuQtPublicEnum arg1 = (MuQtPublicEnum)(param_cursorAction); + Qt::KeyboardModifiers arg2 = (Qt::KeyboardModifiers)(param_modifiers); + return makeqtype(c,((MuQt_QAbstractItemView*)arg0)->moveCursor_pub(arg1, arg2),"qt.QModelIndex"); +} + +void qt_QAbstractItemView_scheduleDelayedItemsLayout_void_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + ((MuQt_QAbstractItemView*)arg0)->scheduleDelayedItemsLayout_pub(); +} + +void qt_QAbstractItemView_scrollDirtyRegion_void_QAbstractItemView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + ((MuQt_QAbstractItemView*)arg0)->scrollDirtyRegion_pub(arg1, arg2); +} + +Pointer qt_QAbstractItemView_selectedIndexes_qt__QModelIndexBSB_ESB__QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,((MuQt_QAbstractItemView*)arg0)->selectedIndexes_pub_parent()) : makeqmodelindexlist(c,((MuQt_QAbstractItemView*)arg0)->selectedIndexes_pub()); +} + +int qt_QAbstractItemView_selectionCommand_int_QAbstractItemView_QModelIndex_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + const QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? int(((MuQt_QAbstractItemView*)arg0)->selectionCommand_pub_parent(arg1, arg2)) : int(((MuQt_QAbstractItemView*)arg0)->selectionCommand_pub(arg1, arg2)); +} + +void qt_QAbstractItemView_setDirtyRegion_void_QAbstractItemView_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_region) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QRegion arg1 = getqtype(param_region); + ((MuQt_QAbstractItemView*)arg0)->setDirtyRegion_pub(arg1); +} + +void qt_QAbstractItemView_setSelection_void_QAbstractItemView_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_flags); + ((MuQt_QAbstractItemView*)arg0)->setSelection_pub(arg1, arg2); +} + +void qt_QAbstractItemView_setState_void_QAbstractItemView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + MuQtPublicEnum arg1 = (MuQtPublicEnum)(param_state); + ((MuQt_QAbstractItemView*)arg0)->setState_pub(arg1); +} + +void qt_QAbstractItemView_startDrag_void_QAbstractItemView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_supportedActions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + Qt::DropActions arg1 = (Qt::DropActions)(param_supportedActions); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->startDrag_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->startDrag_pub(arg1); +} + +int qt_QAbstractItemView_state_int_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return int(((MuQt_QAbstractItemView*)arg0)->state_pub()); +} + +int qt_QAbstractItemView_verticalOffset_int_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return ((MuQt_QAbstractItemView*)arg0)->verticalOffset_pub(); +} + +Pointer qt_QAbstractItemView_visualRegionForSelection_QRegion_QAbstractItemView_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selection); + return makeqtype(c,((MuQt_QAbstractItemView*)arg0)->visualRegionForSelection_pub(arg1),"qt.QRegion"); +} + +void qt_QAbstractItemView_dragEnterEvent_void_QAbstractItemView_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QAbstractItemView_dragLeaveEvent_void_QAbstractItemView_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QAbstractItemView_dragMoveEvent_void_QAbstractItemView_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QAbstractItemView_dropEvent_void_QAbstractItemView_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QAbstractItemView_event_bool_QAbstractItemView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QAbstractItemView*)arg0)->event_pub_parent(arg1) : ((MuQt_QAbstractItemView*)arg0)->event_pub(arg1); +} + +bool qt_QAbstractItemView_eventFilter_bool_QAbstractItemView_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QObject * arg1 = object(param_object); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QAbstractItemView*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QAbstractItemView*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QAbstractItemView_focusInEvent_void_QAbstractItemView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QAbstractItemView_focusNextPrevChild_bool_QAbstractItemView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QAbstractItemView*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QAbstractItemView*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QAbstractItemView_focusOutEvent_void_QAbstractItemView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QAbstractItemView_keyPressEvent_void_QAbstractItemView_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QAbstractItemView_mouseDoubleClickEvent_void_QAbstractItemView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QAbstractItemView_mouseMoveEvent_void_QAbstractItemView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QAbstractItemView_mousePressEvent_void_QAbstractItemView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QAbstractItemView_mouseReleaseEvent_void_QAbstractItemView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QAbstractItemView_resizeEvent_void_QAbstractItemView_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QAbstractItemView_timerEvent_void_QAbstractItemView_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->timerEvent_pub(arg1); +} + +bool qt_QAbstractItemView_viewportEvent_bool_QAbstractItemView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QAbstractItemView*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QAbstractItemView*)arg0)->viewportEvent_pub(arg1); +} + +Pointer qt_QAbstractItemView_viewportSizeHint_QSize_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QAbstractItemView*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QAbstractItemView*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +void qt_QAbstractItemView_setupViewport_void_QAbstractItemView_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_viewport) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QWidget * arg1 = object(param_viewport); + if (isMuQtObject(arg0)) arg0->QAbstractItemView::setupViewport(arg1); + else arg0->setupViewport(arg1); +} + +Pointer qt_QAbstractItemView_minimumSizeHint_QSize_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractItemView::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QAbstractItemView_sizeHint_QSize_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractItemView::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QAbstractItemView_scrollContentsBy_void_QAbstractItemView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QAbstractItemView*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +void qt_QAbstractItemView_contextMenuEvent_void_QAbstractItemView_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QAbstractItemView_paintEvent_void_QAbstractItemView_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->paintEvent_pub(arg1); +} + +void qt_QAbstractItemView_wheelEvent_void_QAbstractItemView_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemView* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractItemView*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QAbstractItemView*)arg0)->wheelEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QAbstractItemView0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_QAbstractItemView_QAbstractItemView_QAbstractItemView_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closePersistentEditor0, void) +{ + qt_QAbstractItemView_closePersistentEditor_void_QAbstractItemView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_currentIndex0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_currentIndex_QModelIndex_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexAt0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_indexAt_QModelIndex_QAbstractItemView_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexWidget0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_indexWidget_QWidget_QAbstractItemView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isPersistentEditorOpen0, bool) +{ + NODE_RETURN(qt_QAbstractItemView_isPersistentEditorOpen_bool_QAbstractItemView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyboardSearch0, void) +{ + qt_QAbstractItemView_keyboardSearch_void_QAbstractItemView_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_model0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_model_QAbstractItemModel_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_openPersistentEditor0, void) +{ + qt_QAbstractItemView_openPersistentEditor_void_QAbstractItemView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_rootIndex0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_rootIndex_QModelIndex_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scrollTo0, void) +{ + qt_QAbstractItemView_scrollTo_void_QAbstractItemView_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectionModel0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_selectionModel_QItemSelectionModel_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setIndexWidget0, void) +{ + qt_QAbstractItemView_setIndexWidget_void_QAbstractItemView_QModelIndex_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setModel0, void) +{ + qt_QAbstractItemView_setModel_void_QAbstractItemView_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelectionModel0, void) +{ + qt_QAbstractItemView_setSelectionModel_void_QAbstractItemView_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForColumn0, int) +{ + NODE_RETURN(qt_QAbstractItemView_sizeHintForColumn_int_QAbstractItemView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForIndex0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_sizeHintForIndex_QSize_QAbstractItemView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForRow0, int) +{ + NODE_RETURN(qt_QAbstractItemView_sizeHintForRow_int_QAbstractItemView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_visualRect0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_visualRect_QRect_QAbstractItemView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_inputMethodQuery_QVariant_QAbstractItemView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_dirtyRegionOffset0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_dirtyRegionOffset_QPoint_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dropIndicatorPosition0, int) +{ + NODE_RETURN(qt_QAbstractItemView_dropIndicatorPosition_int_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_edit0, bool) +{ + NODE_RETURN(qt_QAbstractItemView_edit_bool_QAbstractItemView_QModelIndex_int_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_executeDelayedItemsLayout0, void) +{ + qt_QAbstractItemView_executeDelayedItemsLayout_void_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_horizontalOffset0, int) +{ + NODE_RETURN(qt_QAbstractItemView_horizontalOffset_int_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIndexHidden0, bool) +{ + NODE_RETURN(qt_QAbstractItemView_isIndexHidden_bool_QAbstractItemView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_moveCursor0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_moveCursor_QModelIndex_QAbstractItemView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_scheduleDelayedItemsLayout0, void) +{ + qt_QAbstractItemView_scheduleDelayedItemsLayout_void_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_scrollDirtyRegion0, void) +{ + qt_QAbstractItemView_scrollDirtyRegion_void_QAbstractItemView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectedIndexes0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_selectedIndexes_qt__QModelIndexBSB_ESB__QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionCommand0, int) +{ + NODE_RETURN(qt_QAbstractItemView_selectionCommand_int_QAbstractItemView_QModelIndex_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setDirtyRegion0, void) +{ + qt_QAbstractItemView_setDirtyRegion_void_QAbstractItemView_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QAbstractItemView_setSelection_void_QAbstractItemView_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setState0, void) +{ + qt_QAbstractItemView_setState_void_QAbstractItemView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_startDrag0, void) +{ + qt_QAbstractItemView_startDrag_void_QAbstractItemView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_state0, int) +{ + NODE_RETURN(qt_QAbstractItemView_state_int_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_verticalOffset0, int) +{ + NODE_RETURN(qt_QAbstractItemView_verticalOffset_int_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualRegionForSelection0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_visualRegionForSelection_QRegion_QAbstractItemView_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QAbstractItemView_dragEnterEvent_void_QAbstractItemView_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QAbstractItemView_dragLeaveEvent_void_QAbstractItemView_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QAbstractItemView_dragMoveEvent_void_QAbstractItemView_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QAbstractItemView_dropEvent_void_QAbstractItemView_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QAbstractItemView_event_bool_QAbstractItemView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QAbstractItemView_eventFilter_bool_QAbstractItemView_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QAbstractItemView_focusInEvent_void_QAbstractItemView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QAbstractItemView_focusNextPrevChild_bool_QAbstractItemView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QAbstractItemView_focusOutEvent_void_QAbstractItemView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QAbstractItemView_keyPressEvent_void_QAbstractItemView_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QAbstractItemView_mouseDoubleClickEvent_void_QAbstractItemView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QAbstractItemView_mouseMoveEvent_void_QAbstractItemView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QAbstractItemView_mousePressEvent_void_QAbstractItemView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QAbstractItemView_mouseReleaseEvent_void_QAbstractItemView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QAbstractItemView_resizeEvent_void_QAbstractItemView_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QAbstractItemView_timerEvent_void_QAbstractItemView_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QAbstractItemView_viewportEvent_bool_QAbstractItemView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_viewportSizeHint_QSize_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setupViewport0, void) +{ + qt_QAbstractItemView_setupViewport_void_QAbstractItemView_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_minimumSizeHint_QSize_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemView_sizeHint_QSize_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QAbstractItemView_scrollContentsBy_void_QAbstractItemView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QAbstractItemView_contextMenuEvent_void_QAbstractItemView_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QAbstractItemView_paintEvent_void_QAbstractItemView_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QAbstractItemView_wheelEvent_void_QAbstractItemView_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QAbstractItemViewType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QAbstractItemView_QAbstractItemView_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + new Alias(c, "CursorAction", "int") /* PROTECTED ENUM */, + new SymbolicConstant(c, "MoveUp", "int", Value(int(0))), + new SymbolicConstant(c, "MoveDown", "int", Value(int(1))), + new SymbolicConstant(c, "MoveLeft", "int", Value(int(2))), + new SymbolicConstant(c, "MoveRight", "int", Value(int(3))), + new SymbolicConstant(c, "MoveHome", "int", Value(int(4))), + new SymbolicConstant(c, "MoveEnd", "int", Value(int(5))), + new SymbolicConstant(c, "MovePageUp", "int", Value(int(6))), + new SymbolicConstant(c, "MovePageDown", "int", Value(int(7))), + new SymbolicConstant(c, "MoveNext", "int", Value(int(8))), + new SymbolicConstant(c, "MovePrevious", "int", Value(int(9))), + new Alias(c, "DropIndicatorPosition", "int") /* PROTECTED ENUM */, + new SymbolicConstant(c, "OnItem", "int", Value(int(0))), + new SymbolicConstant(c, "AboveItem", "int", Value(int(1))), + new SymbolicConstant(c, "BelowItem", "int", Value(int(2))), + new SymbolicConstant(c, "OnViewport", "int", Value(int(3))), + new Alias(c, "State", "int") /* PROTECTED ENUM */, + new SymbolicConstant(c, "NoState", "int", Value(int(0))), + new SymbolicConstant(c, "DraggingState", "int", Value(int(1))), + new SymbolicConstant(c, "DragSelectingState", "int", Value(int(2))), + new SymbolicConstant(c, "EditingState", "int", Value(int(3))), + new SymbolicConstant(c, "ExpandingState", "int", Value(int(4))), + new SymbolicConstant(c, "CollapsingState", "int", Value(int(5))), + new SymbolicConstant(c, "AnimatingState", "int", Value(int(6))), + // member functions + new Function(c, "QAbstractItemView", _n_QAbstractItemView0, None, Compiled, qt_QAbstractItemView_QAbstractItemView_QAbstractItemView_QAbstractItemView_QWidget, Return, "qt.QAbstractItemView", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: alternatingRowColors (bool; QAbstractItemView this) + // PROP: autoScrollMargin (int; QAbstractItemView this) + new Function(c, "closePersistentEditor", _n_closePersistentEditor0, None, Compiled, qt_QAbstractItemView_closePersistentEditor_void_QAbstractItemView_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "currentIndex", _n_currentIndex0, None, Compiled, qt_QAbstractItemView_currentIndex_QModelIndex_QAbstractItemView, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + // PROP: defaultDropAction (flags Qt::DropAction; QAbstractItemView this) + // PROP: dragDropMode (flags QAbstractItemView::DragDropMode; QAbstractItemView this) + // PROP: dragDropOverwriteMode (bool; QAbstractItemView this) + // PROP: dragEnabled (bool; QAbstractItemView this) + // PROP: editTriggers (flags QAbstractItemView::EditTriggers; QAbstractItemView this) + // PROP: hasAutoScroll (bool; QAbstractItemView this) + // PROP: horizontalScrollMode (flags QAbstractItemView::ScrollMode; QAbstractItemView this) + // PROP: iconSize (QSize; QAbstractItemView this) + _func[0] = new MemberFunction(c, "indexAt", _n_indexAt0, None, Compiled, qt_QAbstractItemView_indexAt_QModelIndex_QAbstractItemView_QPoint, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "point", "qt.QPoint"), End), + new Function(c, "indexWidget", _n_indexWidget0, None, Compiled, qt_QAbstractItemView_indexWidget_QWidget_QAbstractItemView_QModelIndex, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "isPersistentEditorOpen", _n_isPersistentEditorOpen0, None, Compiled, qt_QAbstractItemView_isPersistentEditorOpen_bool_QAbstractItemView_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), End), + // MISSING: itemDelegate ("QAbstractItemDelegate *"; QAbstractItemView this) + // MISSING: itemDelegateForColumn ("QAbstractItemDelegate *"; QAbstractItemView this, int column) + // MISSING: itemDelegateForIndex ("QAbstractItemDelegate *"; QAbstractItemView this, QModelIndex index) + // MISSING: itemDelegateForRow ("QAbstractItemDelegate *"; QAbstractItemView this, int row) + _func[1] = new MemberFunction(c, "keyboardSearch", _n_keyboardSearch0, None, Compiled, qt_QAbstractItemView_keyboardSearch_void_QAbstractItemView_string, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "search", "string"), End), + new Function(c, "model", _n_model0, None, Compiled, qt_QAbstractItemView_model_QAbstractItemModel_QAbstractItemView, Return, "qt.QAbstractItemModel", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + new Function(c, "openPersistentEditor", _n_openPersistentEditor0, None, Compiled, qt_QAbstractItemView_openPersistentEditor_void_QAbstractItemView_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), End), + // PROP: resetHorizontalScrollMode (void; QAbstractItemView this) + // PROP: resetVerticalScrollMode (void; QAbstractItemView this) + new Function(c, "rootIndex", _n_rootIndex0, None, Compiled, qt_QAbstractItemView_rootIndex_QModelIndex_QAbstractItemView, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + _func[2] = new MemberFunction(c, "scrollTo", _n_scrollTo0, None, Compiled, qt_QAbstractItemView_scrollTo_void_QAbstractItemView_QModelIndex_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "hint", "int", Value((int)QAbstractItemView::EnsureVisible)), End), + // PROP: selectionBehavior (flags QAbstractItemView::SelectionBehavior; QAbstractItemView this) + // PROP: selectionMode (flags QAbstractItemView::SelectionMode; QAbstractItemView this) + new Function(c, "selectionModel", _n_selectionModel0, None, Compiled, qt_QAbstractItemView_selectionModel_QItemSelectionModel_QAbstractItemView, Return, "qt.QItemSelectionModel", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + // PROP: setAlternatingRowColors (void; QAbstractItemView this, bool enable) + // PROP: setAutoScroll (void; QAbstractItemView this, bool enable) + // PROP: setAutoScrollMargin (void; QAbstractItemView this, int margin) + // PROP: setDefaultDropAction (void; QAbstractItemView this, flags Qt::DropAction dropAction) + // PROP: setDragDropMode (void; QAbstractItemView this, flags QAbstractItemView::DragDropMode behavior) + // PROP: setDragDropOverwriteMode (void; QAbstractItemView this, bool overwrite) + // PROP: setDragEnabled (void; QAbstractItemView this, bool enable) + // PROP: setDropIndicatorShown (void; QAbstractItemView this, bool enable) + // PROP: setEditTriggers (void; QAbstractItemView this, flags QAbstractItemView::EditTriggers triggers) + // PROP: setHorizontalScrollMode (void; QAbstractItemView this, flags QAbstractItemView::ScrollMode mode) + // PROP: setIconSize (void; QAbstractItemView this, QSize size) + new Function(c, "setIndexWidget", _n_setIndexWidget0, None, Compiled, qt_QAbstractItemView_setIndexWidget_void_QAbstractItemView_QModelIndex_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "widget", "qt.QWidget"), End), + // MISSING: setItemDelegate (void; QAbstractItemView this, "QAbstractItemDelegate *" delegate) + // MISSING: setItemDelegateForColumn (void; QAbstractItemView this, int column, "QAbstractItemDelegate *" delegate) + // MISSING: setItemDelegateForRow (void; QAbstractItemView this, int row, "QAbstractItemDelegate *" delegate) + _func[3] = new MemberFunction(c, "setModel", _n_setModel0, None, Compiled, qt_QAbstractItemView_setModel_void_QAbstractItemView_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "model", "qt.QAbstractItemModel"), End), + // PROP: setSelectionBehavior (void; QAbstractItemView this, flags QAbstractItemView::SelectionBehavior behavior) + // PROP: setSelectionMode (void; QAbstractItemView this, flags QAbstractItemView::SelectionMode mode) + _func[4] = new MemberFunction(c, "setSelectionModel", _n_setSelectionModel0, None, Compiled, qt_QAbstractItemView_setSelectionModel_void_QAbstractItemView_QItemSelectionModel, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "selectionModel", "qt.QItemSelectionModel"), End), + // PROP: setTabKeyNavigation (void; QAbstractItemView this, bool enable) + // PROP: setTextElideMode (void; QAbstractItemView this, flags Qt::TextElideMode mode) + // PROP: setVerticalScrollMode (void; QAbstractItemView this, flags QAbstractItemView::ScrollMode mode) + // PROP: showDropIndicator (bool; QAbstractItemView this) + _func[5] = new MemberFunction(c, "sizeHintForColumn", _n_sizeHintForColumn0, None, Compiled, qt_QAbstractItemView_sizeHintForColumn_int_QAbstractItemView_int, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "column", "int"), End), + new Function(c, "sizeHintForIndex", _n_sizeHintForIndex0, None, Compiled, qt_QAbstractItemView_sizeHintForIndex_QSize_QAbstractItemView_QModelIndex, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[6] = new MemberFunction(c, "sizeHintForRow", _n_sizeHintForRow0, None, Compiled, qt_QAbstractItemView_sizeHintForRow_int_QAbstractItemView_int, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "row", "int"), End), + // PROP: tabKeyNavigation (bool; QAbstractItemView this) + // PROP: textElideMode (flags Qt::TextElideMode; QAbstractItemView this) + // PROP: verticalScrollMode (flags QAbstractItemView::ScrollMode; QAbstractItemView this) + _func[7] = new MemberFunction(c, "visualRect", _n_visualRect0, None, Compiled, qt_QAbstractItemView_visualRect_QRect_QAbstractItemView_QModelIndex, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[8] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QAbstractItemView_inputMethodQuery_QVariant_QAbstractItemView_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "query", "int"), End), + new Function(c, "dirtyRegionOffset", _n_dirtyRegionOffset0, None, Compiled, qt_QAbstractItemView_dirtyRegionOffset_QPoint_QAbstractItemView, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + new Function(c, "dropIndicatorPosition", _n_dropIndicatorPosition0, None, Compiled, qt_QAbstractItemView_dropIndicatorPosition_int_QAbstractItemView, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + _func[9] = new MemberFunction(c, "edit", _n_edit0, None, Compiled, qt_QAbstractItemView_edit_bool_QAbstractItemView_QModelIndex_int_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "trigger", "int"), new Param(c, "event", "qt.QEvent"), End), + new Function(c, "executeDelayedItemsLayout", _n_executeDelayedItemsLayout0, None, Compiled, qt_QAbstractItemView_executeDelayedItemsLayout_void_QAbstractItemView, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + _func[10] = new MemberFunction(c, "horizontalOffset", _n_horizontalOffset0, None, Compiled, qt_QAbstractItemView_horizontalOffset_int_QAbstractItemView, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + // MISSING: initViewItemOption (void; QAbstractItemView this, "QStyleOptionViewItem *" option) // protected + _func[11] = new MemberFunction(c, "isIndexHidden", _n_isIndexHidden0, None, Compiled, qt_QAbstractItemView_isIndexHidden_bool_QAbstractItemView_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[12] = new MemberFunction(c, "moveCursor", _n_moveCursor0, None, Compiled, qt_QAbstractItemView_moveCursor_QModelIndex_QAbstractItemView_int_int, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "cursorAction", "int"), new Param(c, "modifiers", "int"), End), + new Function(c, "scheduleDelayedItemsLayout", _n_scheduleDelayedItemsLayout0, None, Compiled, qt_QAbstractItemView_scheduleDelayedItemsLayout_void_QAbstractItemView, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + new Function(c, "scrollDirtyRegion", _n_scrollDirtyRegion0, None, Compiled, qt_QAbstractItemView_scrollDirtyRegion_void_QAbstractItemView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[13] = new MemberFunction(c, "selectedIndexes", _n_selectedIndexes0, None, Compiled, qt_QAbstractItemView_selectedIndexes_qt__QModelIndexBSB_ESB__QAbstractItemView, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + _func[14] = new MemberFunction(c, "selectionCommand", _n_selectionCommand0, None, Compiled, qt_QAbstractItemView_selectionCommand_int_QAbstractItemView_QModelIndex_QEvent, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "event", "qt.QEvent"), End), + new Function(c, "setDirtyRegion", _n_setDirtyRegion0, None, Compiled, qt_QAbstractItemView_setDirtyRegion_void_QAbstractItemView_QRegion, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "region", "qt.QRegion"), End), + _func[15] = new MemberFunction(c, "setSelection", _n_setSelection0, None, Compiled, qt_QAbstractItemView_setSelection_void_QAbstractItemView_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "rect", "qt.QRect"), new Param(c, "flags", "int"), End), + new Function(c, "setState", _n_setState0, None, Compiled, qt_QAbstractItemView_setState_void_QAbstractItemView_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "state", "int"), End), + _func[16] = new MemberFunction(c, "startDrag", _n_startDrag0, None, Compiled, qt_QAbstractItemView_startDrag_void_QAbstractItemView_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "supportedActions", "int"), End), + new Function(c, "state", _n_state0, None, Compiled, qt_QAbstractItemView_state_int_QAbstractItemView, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + _func[17] = new MemberFunction(c, "verticalOffset", _n_verticalOffset0, None, Compiled, qt_QAbstractItemView_verticalOffset_int_QAbstractItemView, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + _func[18] = new MemberFunction(c, "visualRegionForSelection", _n_visualRegionForSelection0, None, Compiled, qt_QAbstractItemView_visualRegionForSelection_QRegion_QAbstractItemView_QItemSelection, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "selection", "qt.QItemSelection"), End), + _func[19] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QAbstractItemView_dragEnterEvent_void_QAbstractItemView_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[20] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QAbstractItemView_dragLeaveEvent_void_QAbstractItemView_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[21] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QAbstractItemView_dragMoveEvent_void_QAbstractItemView_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[22] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QAbstractItemView_dropEvent_void_QAbstractItemView_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QDropEvent"), End), + _func[23] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QAbstractItemView_event_bool_QAbstractItemView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event_", "qt.QEvent"), End), + _func[24] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QAbstractItemView_eventFilter_bool_QAbstractItemView_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "object", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + _func[25] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QAbstractItemView_focusInEvent_void_QAbstractItemView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[26] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QAbstractItemView_focusNextPrevChild_bool_QAbstractItemView_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "next", "bool"), End), + _func[27] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QAbstractItemView_focusOutEvent_void_QAbstractItemView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QAbstractItemView this, "QInputMethodEvent *" event) // protected + _func[28] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QAbstractItemView_keyPressEvent_void_QAbstractItemView_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[29] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QAbstractItemView_mouseDoubleClickEvent_void_QAbstractItemView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[30] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QAbstractItemView_mouseMoveEvent_void_QAbstractItemView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[31] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QAbstractItemView_mousePressEvent_void_QAbstractItemView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[32] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QAbstractItemView_mouseReleaseEvent_void_QAbstractItemView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[33] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QAbstractItemView_resizeEvent_void_QAbstractItemView_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[34] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QAbstractItemView_timerEvent_void_QAbstractItemView_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[35] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QAbstractItemView_viewportEvent_bool_QAbstractItemView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QEvent"), End), + _func[36] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QAbstractItemView_viewportSizeHint_QSize_QAbstractItemView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + _func[37] = new MemberFunction(c, "setupViewport", _n_setupViewport0, None, Compiled, qt_QAbstractItemView_setupViewport_void_QAbstractItemView_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "viewport", "qt.QWidget"), End), + _func[38] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QAbstractItemView_minimumSizeHint_QSize_QAbstractItemView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + _func[39] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QAbstractItemView_sizeHint_QSize_QAbstractItemView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractItemView"), End), + _func[40] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QAbstractItemView_scrollContentsBy_void_QAbstractItemView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[41] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QAbstractItemView_contextMenuEvent_void_QAbstractItemView_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "e", "qt.QContextMenuEvent"), End), + _func[42] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QAbstractItemView_paintEvent_void_QAbstractItemView_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[43] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QAbstractItemView_wheelEvent_void_QAbstractItemView_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractItemView"), new Param(c, "e", "qt.QWheelEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QAbstractItemView::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QAbstractListModelType.cpp b/src/lib/mu/MuQt6/QAbstractListModelType.cpp new file mode 100644 index 000000000..a752c6624 --- /dev/null +++ b/src/lib/mu/MuQt6/QAbstractListModelType.cpp @@ -0,0 +1,1187 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QAbstractListModel::~MuQt_QAbstractListModel() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QAbstractListModel::MuQt_QAbstractListModel(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QAbstractListModel(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractListModel")); +} + +bool MuQt_QAbstractListModel::dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) +{ + if (!_env) return QAbstractListModel::dropMimeData(data, action, row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,data,"qt.QMimeData")); + args[2] = Value(int(action)); + args[3] = Value(row); + args[4] = Value(column); + args[5] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::dropMimeData(data, action, row, column, parent); + } +} + +Qt::ItemFlags MuQt_QAbstractListModel::flags(const QModelIndex & index) const +{ + if (!_env) return QAbstractListModel::flags(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (Qt::ItemFlags)(rval._int); + } + else + { + return QAbstractListModel::flags(index); + } +} + +QModelIndex MuQt_QAbstractListModel::index(int row, int column, const QModelIndex & parent) const +{ + if (!_env) return QAbstractListModel::index(row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(column); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractListModel::index(row, column, parent); + } +} + +QModelIndex MuQt_QAbstractListModel::sibling(int row, int column, const QModelIndex & idx) const +{ + if (!_env) return QAbstractListModel::sibling(row, column, idx); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(column); + args[3] = Value(makeqtype(c,idx,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractListModel::sibling(row, column, idx); + } +} + +QModelIndex MuQt_QAbstractListModel::buddy(const QModelIndex & index) const +{ + if (!_env) return QAbstractListModel::buddy(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractListModel::buddy(index); + } +} + +bool MuQt_QAbstractListModel::canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const +{ + if (!_env) return QAbstractListModel::canDropMimeData(data, action, row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,data,"qt.QMimeData")); + args[2] = Value(int(action)); + args[3] = Value(row); + args[4] = Value(column); + args[5] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::canDropMimeData(data, action, row, column, parent); + } +} + +bool MuQt_QAbstractListModel::canFetchMore(const QModelIndex & parent) const +{ + if (!_env) return QAbstractListModel::canFetchMore(parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::canFetchMore(parent); + } +} + +bool MuQt_QAbstractListModel::clearItemData(const QModelIndex & index) +{ + if (!_env) return QAbstractListModel::clearItemData(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::clearItemData(index); + } +} + +QVariant MuQt_QAbstractListModel::data(const QModelIndex & index, int role) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(role); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +void MuQt_QAbstractListModel::fetchMore(const QModelIndex & parent) +{ + if (!_env) { QAbstractListModel::fetchMore(parent); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QAbstractListModel::fetchMore(parent); + } +} + +QVariant MuQt_QAbstractListModel::headerData(int section, Qt::Orientation orientation, int role) const +{ + if (!_env) return QAbstractListModel::headerData(section, orientation, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(section); + args[2] = Value(int(orientation)); + args[3] = Value(role); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractListModel::headerData(section, orientation, role); + } +} + +bool MuQt_QAbstractListModel::insertColumns(int column, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractListModel::insertColumns(column, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::insertColumns(column, count, parent); + } +} + +bool MuQt_QAbstractListModel::insertRows(int row, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractListModel::insertRows(row, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::insertRows(row, count, parent); + } +} + +QModelIndexList MuQt_QAbstractListModel::match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const +{ + if (!_env) return QAbstractListModel::match(start, role, value, hits, flags); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,start,"qt.QModelIndex")); + args[2] = Value(role); + args[3] = Value(makeqtype(c,value,"qt.QVariant")); + args[4] = Value(hits); + args[5] = Value(int(flags)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QAbstractListModel::match(start, role, value, hits, flags); + } +} + +QMimeData * MuQt_QAbstractListModel::mimeData(const QModelIndexList & indexes) const +{ + if (!_env) return QAbstractListModel::mimeData(indexes); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqmodelindexlist(c,indexes)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QAbstractListModel::mimeData(indexes); + } +} + +QStringList MuQt_QAbstractListModel::mimeTypes() const +{ + if (!_env) return QAbstractListModel::mimeTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QAbstractListModel::mimeTypes(); + } +} + +bool MuQt_QAbstractListModel::moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) +{ + if (!_env) return QAbstractListModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,sourceParent,"qt.QModelIndex")); + args[2] = Value(sourceColumn); + args[3] = Value(count); + args[4] = Value(makeqtype(c,destinationParent,"qt.QModelIndex")); + args[5] = Value(destinationChild); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); + } +} + +bool MuQt_QAbstractListModel::moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) +{ + if (!_env) return QAbstractListModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,sourceParent,"qt.QModelIndex")); + args[2] = Value(sourceRow); + args[3] = Value(count); + args[4] = Value(makeqtype(c,destinationParent,"qt.QModelIndex")); + args[5] = Value(destinationChild); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); + } +} + +bool MuQt_QAbstractListModel::removeColumns(int column, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractListModel::removeColumns(column, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::removeColumns(column, count, parent); + } +} + +bool MuQt_QAbstractListModel::removeRows(int row, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractListModel::removeRows(row, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::removeRows(row, count, parent); + } +} + +int MuQt_QAbstractListModel::rowCount(const QModelIndex & parent) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return defaultValue(); + } +} + +bool MuQt_QAbstractListModel::setData(const QModelIndex & index, const QVariant & value, int role) +{ + if (!_env) return QAbstractListModel::setData(index, value, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,value,"qt.QVariant")); + args[3] = Value(role); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::setData(index, value, role); + } +} + +bool MuQt_QAbstractListModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) +{ + if (!_env) return QAbstractListModel::setHeaderData(section, orientation, value, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(5); + args[0] = Value(Pointer(_obj)); + args[1] = Value(section); + args[2] = Value(int(orientation)); + args[3] = Value(makeqtype(c,value,"qt.QVariant")); + args[4] = Value(role); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractListModel::setHeaderData(section, orientation, value, role); + } +} + +void MuQt_QAbstractListModel::sort(int column, Qt::SortOrder order) +{ + if (!_env) { QAbstractListModel::sort(column, order); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(int(order)); + Value rval = _env->call(F, args); + } + else + { + QAbstractListModel::sort(column, order); + } +} + +QSize MuQt_QAbstractListModel::span(const QModelIndex & index) const +{ + if (!_env) return QAbstractListModel::span(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractListModel::span(index); + } +} + +Qt::DropActions MuQt_QAbstractListModel::supportedDragActions() const +{ + if (!_env) return QAbstractListModel::supportedDragActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QAbstractListModel::supportedDragActions(); + } +} + +Qt::DropActions MuQt_QAbstractListModel::supportedDropActions() const +{ + if (!_env) return QAbstractListModel::supportedDropActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QAbstractListModel::supportedDropActions(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QAbstractListModelType::QAbstractListModelType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QAbstractListModelType::~QAbstractListModelType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QAbstractListModel_QAbstractListModel_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QAbstractListModel* w = object(widget)) + { + QAbstractListModelType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractListModel"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QAbstractListModel_QAbstractListModel_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QAbstractListModel_QAbstractListModel_QAbstractListModel_QAbstractListModel_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QAbstractListModel(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +bool qt_QAbstractListModel_dropMimeData_bool_QAbstractListModel_QMimeData_int_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, int param_action, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QMimeData * arg1 = object(param_data); + Qt::DropAction arg2 = (Qt::DropAction)(param_action); + int arg3 = (int)(param_row); + int arg4 = (int)(param_column); + const QModelIndex arg5 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::dropMimeData(arg1, arg2, arg3, arg4, arg5) : arg0->dropMimeData(arg1, arg2, arg3, arg4, arg5); +} + +int qt_QAbstractListModel_flags_int_QAbstractListModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? int(arg0->QAbstractListModel::flags(arg1)) : int(arg0->flags(arg1)); +} + +Pointer qt_QAbstractListModel_index_QModelIndex_QAbstractListModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractListModel::index(arg1, arg2, arg3),"qt.QModelIndex") : makeqtype(c,arg0->index(arg1, arg2, arg3),"qt.QModelIndex"); +} + +Pointer qt_QAbstractListModel_sibling_QModelIndex_QAbstractListModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_idx) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QModelIndex arg3 = getqtype(param_idx); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractListModel::sibling(arg1, arg2, arg3),"qt.QModelIndex") : makeqtype(c,arg0->sibling(arg1, arg2, arg3),"qt.QModelIndex"); +} + +Pointer qt_QAbstractListModel_buddy_QModelIndex_QAbstractListModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractListModel::buddy(arg1),"qt.QModelIndex") : makeqtype(c,arg0->buddy(arg1),"qt.QModelIndex"); +} + +bool qt_QAbstractListModel_canDropMimeData_bool_QAbstractListModel_QMimeData_int_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, int param_action, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QMimeData * arg1 = object(param_data); + Qt::DropAction arg2 = (Qt::DropAction)(param_action); + int arg3 = (int)(param_row); + int arg4 = (int)(param_column); + const QModelIndex arg5 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::canDropMimeData(arg1, arg2, arg3, arg4, arg5) : arg0->canDropMimeData(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QAbstractListModel_canFetchMore_bool_QAbstractListModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::canFetchMore(arg1) : arg0->canFetchMore(arg1); +} + +bool qt_QAbstractListModel_clearItemData_bool_QAbstractListModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::clearItemData(arg1) : arg0->clearItemData(arg1); +} + +Pointer qt_QAbstractListModel_data_QVariant_QAbstractListModel_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + int arg2 = (int)(param_role); + return makeqtype(c,arg0->data(arg1, arg2),"qt.QVariant"); +} + +void qt_QAbstractListModel_fetchMore_void_QAbstractListModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + if (isMuQtObject(arg0)) arg0->QAbstractListModel::fetchMore(arg1); + else arg0->fetchMore(arg1); +} + +Pointer qt_QAbstractListModel_headerData_QVariant_QAbstractListModel_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_section, int param_orientation, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + int arg1 = (int)(param_section); + Qt::Orientation arg2 = (Qt::Orientation)(param_orientation); + int arg3 = (int)(param_role); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractListModel::headerData(arg1, arg2, arg3),"qt.QVariant") : makeqtype(c,arg0->headerData(arg1, arg2, arg3),"qt.QVariant"); +} + +bool qt_QAbstractListModel_insertColumns_bool_QAbstractListModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::insertColumns(arg1, arg2, arg3) : arg0->insertColumns(arg1, arg2, arg3); +} + +bool qt_QAbstractListModel_insertRows_bool_QAbstractListModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::insertRows(arg1, arg2, arg3) : arg0->insertRows(arg1, arg2, arg3); +} + +Pointer qt_QAbstractListModel_match_qt__QModelIndexBSB_ESB__QAbstractListModel_QModelIndex_int_QVariant_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_start, int param_role, Pointer param_value, int param_hits, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_start); + int arg2 = (int)(param_role); + const QVariant arg3 = getqtype(param_value); + int arg4 = (int)(param_hits); + Qt::MatchFlags arg5 = (Qt::MatchFlags)(param_flags); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,arg0->QAbstractListModel::match(arg1, arg2, arg3, arg4, arg5)) : makeqmodelindexlist(c,arg0->match(arg1, arg2, arg3, arg4, arg5)); +} + +Pointer qt_QAbstractListModel_mimeData_QMimeData_QAbstractListModel_qt__QModelIndexBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_indexes) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndexList arg1 = qmodelindexlist(param_indexes); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QAbstractListModel::mimeData(arg1), "qt.QMimeData") : makeinstance(c, arg0->mimeData(arg1), "qt.QMimeData"); +} + +Pointer qt_QAbstractListModel_mimeTypes_stringBSB_ESB__QAbstractListModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestringlist(c,arg0->QAbstractListModel::mimeTypes()) : makestringlist(c,arg0->mimeTypes()); +} + +bool qt_QAbstractListModel_moveColumns_bool_QAbstractListModel_QModelIndex_int_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceColumn, int param_count, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceColumn); + int arg3 = (int)(param_count); + const QModelIndex arg4 = getqtype(param_destinationParent); + int arg5 = (int)(param_destinationChild); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::moveColumns(arg1, arg2, arg3, arg4, arg5) : arg0->moveColumns(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QAbstractListModel_moveRows_bool_QAbstractListModel_QModelIndex_int_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceRow, int param_count, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceRow); + int arg3 = (int)(param_count); + const QModelIndex arg4 = getqtype(param_destinationParent); + int arg5 = (int)(param_destinationChild); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::moveRows(arg1, arg2, arg3, arg4, arg5) : arg0->moveRows(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QAbstractListModel_removeColumns_bool_QAbstractListModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::removeColumns(arg1, arg2, arg3) : arg0->removeColumns(arg1, arg2, arg3); +} + +bool qt_QAbstractListModel_removeRows_bool_QAbstractListModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::removeRows(arg1, arg2, arg3) : arg0->removeRows(arg1, arg2, arg3); +} + +int qt_QAbstractListModel_rowCount_int_QAbstractListModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return arg0->rowCount(arg1); +} + +bool qt_QAbstractListModel_setData_bool_QAbstractListModel_QModelIndex_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_value, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + const QVariant arg2 = getqtype(param_value); + int arg3 = (int)(param_role); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::setData(arg1, arg2, arg3) : arg0->setData(arg1, arg2, arg3); +} + +bool qt_QAbstractListModel_setHeaderData_bool_QAbstractListModel_int_int_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_section, int param_orientation, Pointer param_value, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + int arg1 = (int)(param_section); + Qt::Orientation arg2 = (Qt::Orientation)(param_orientation); + const QVariant arg3 = getqtype(param_value); + int arg4 = (int)(param_role); + return isMuQtObject(arg0) ? arg0->QAbstractListModel::setHeaderData(arg1, arg2, arg3, arg4) : arg0->setHeaderData(arg1, arg2, arg3, arg4); +} + +void qt_QAbstractListModel_sort_void_QAbstractListModel_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_order) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + Qt::SortOrder arg2 = (Qt::SortOrder)(param_order); + if (isMuQtObject(arg0)) arg0->QAbstractListModel::sort(arg1, arg2); + else arg0->sort(arg1, arg2); +} + +Pointer qt_QAbstractListModel_span_QSize_QAbstractListModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractListModel::span(arg1),"qt.QSize") : makeqtype(c,arg0->span(arg1),"qt.QSize"); +} + +int qt_QAbstractListModel_supportedDragActions_int_QAbstractListModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QAbstractListModel::supportedDragActions()) : int(arg0->supportedDragActions()); +} + +int qt_QAbstractListModel_supportedDropActions_int_QAbstractListModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractListModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QAbstractListModel::supportedDropActions()) : int(arg0->supportedDropActions()); +} + + +static NODE_IMPLEMENTATION(_n_QAbstractListModel0, Pointer) +{ + NODE_RETURN(qt_QAbstractListModel_QAbstractListModel_QAbstractListModel_QAbstractListModel_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dropMimeData0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_dropMimeData_bool_QAbstractListModel_QMimeData_int_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QAbstractListModel_flags_int_QAbstractListModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_index0, Pointer) +{ + NODE_RETURN(qt_QAbstractListModel_index_QModelIndex_QAbstractListModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sibling0, Pointer) +{ + NODE_RETURN(qt_QAbstractListModel_sibling_QModelIndex_QAbstractListModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_buddy0, Pointer) +{ + NODE_RETURN(qt_QAbstractListModel_buddy_QModelIndex_QAbstractListModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canDropMimeData0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_canDropMimeData_bool_QAbstractListModel_QMimeData_int_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canFetchMore0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_canFetchMore_bool_QAbstractListModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearItemData0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_clearItemData_bool_QAbstractListModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QAbstractListModel_data_QVariant_QAbstractListModel_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_fetchMore0, void) +{ + qt_QAbstractListModel_fetchMore_void_QAbstractListModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_headerData0, Pointer) +{ + NODE_RETURN(qt_QAbstractListModel_headerData_QVariant_QAbstractListModel_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_insertColumns0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_insertColumns_bool_QAbstractListModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertRows0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_insertRows_bool_QAbstractListModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_match0, Pointer) +{ + NODE_RETURN(qt_QAbstractListModel_match_qt__QModelIndexBSB_ESB__QAbstractListModel_QModelIndex_int_QVariant_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_mimeData0, Pointer) +{ + NODE_RETURN(qt_QAbstractListModel_mimeData_QMimeData_QAbstractListModel_qt__QModelIndexBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mimeTypes0, Pointer) +{ + NODE_RETURN(qt_QAbstractListModel_mimeTypes_stringBSB_ESB__QAbstractListModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_moveColumns0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_moveColumns_bool_QAbstractListModel_QModelIndex_int_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, Pointer), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_moveRows0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_moveRows_bool_QAbstractListModel_QModelIndex_int_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, Pointer), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_removeColumns0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_removeColumns_bool_QAbstractListModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeRows0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_removeRows_bool_QAbstractListModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rowCount0, int) +{ + NODE_RETURN(qt_QAbstractListModel_rowCount_int_QAbstractListModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setData0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_setData_bool_QAbstractListModel_QModelIndex_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_setHeaderData0, bool) +{ + NODE_RETURN(qt_QAbstractListModel_setHeaderData_bool_QAbstractListModel_int_int_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_sort0, void) +{ + qt_QAbstractListModel_sort_void_QAbstractListModel_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_span0, Pointer) +{ + NODE_RETURN(qt_QAbstractListModel_span_QSize_QAbstractListModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportedDragActions0, int) +{ + NODE_RETURN(qt_QAbstractListModel_supportedDragActions_int_QAbstractListModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportedDropActions0, int) +{ + NODE_RETURN(qt_QAbstractListModel_supportedDropActions_int_QAbstractListModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QAbstractListModelType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QAbstractListModel_QAbstractListModel_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QAbstractListModel", _n_QAbstractListModel0, None, Compiled, qt_QAbstractListModel_QAbstractListModel_QAbstractListModel_QAbstractListModel_QObject, Return, "qt.QAbstractListModel", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "parent", "qt.QObject"), End), + _func[0] = new MemberFunction(c, "dropMimeData", _n_dropMimeData0, None, Compiled, qt_QAbstractListModel_dropMimeData_bool_QAbstractListModel_QMimeData_int_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[1] = new MemberFunction(c, "flags", _n_flags0, None, Compiled, qt_QAbstractListModel_flags_int_QAbstractListModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[2] = new MemberFunction(c, "index", _n_index0, None, Compiled, qt_QAbstractListModel_index_QModelIndex_QAbstractListModel_int_int_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "row", "int"), new Param(c, "column", "int", Value((int)0)), new Param(c, "parent", "qt.QModelIndex"), End), + _func[3] = new MemberFunction(c, "sibling", _n_sibling0, None, Compiled, qt_QAbstractListModel_sibling_QModelIndex_QAbstractListModel_int_int_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "idx", "qt.QModelIndex"), End), + _func[4] = new MemberFunction(c, "buddy", _n_buddy0, None, Compiled, qt_QAbstractListModel_buddy_QModelIndex_QAbstractListModel_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[5] = new MemberFunction(c, "canDropMimeData", _n_canDropMimeData0, None, Compiled, qt_QAbstractListModel_canDropMimeData_bool_QAbstractListModel_QMimeData_int_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[6] = new MemberFunction(c, "canFetchMore", _n_canFetchMore0, None, Compiled, qt_QAbstractListModel_canFetchMore_bool_QAbstractListModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[7] = new MemberFunction(c, "clearItemData", _n_clearItemData0, None, Compiled, qt_QAbstractListModel_clearItemData_bool_QAbstractListModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[8] = new MemberFunction(c, "data", _n_data0, None, Compiled, qt_QAbstractListModel_data_QVariant_QAbstractListModel_QModelIndex_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "role", "int", Value((int)Qt::DisplayRole)), End), + _func[9] = new MemberFunction(c, "fetchMore", _n_fetchMore0, None, Compiled, qt_QAbstractListModel_fetchMore_void_QAbstractListModel_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[10] = new MemberFunction(c, "headerData", _n_headerData0, None, Compiled, qt_QAbstractListModel_headerData_QVariant_QAbstractListModel_int_int_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "section", "int"), new Param(c, "orientation", "int"), new Param(c, "role", "int", Value((int)Qt::DisplayRole)), End), + _func[11] = new MemberFunction(c, "insertColumns", _n_insertColumns0, None, Compiled, qt_QAbstractListModel_insertColumns_bool_QAbstractListModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "column", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[12] = new MemberFunction(c, "insertRows", _n_insertRows0, None, Compiled, qt_QAbstractListModel_insertRows_bool_QAbstractListModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "row", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + // MISSING: itemData ("QMap"; QAbstractListModel this, QModelIndex index) + _func[13] = new MemberFunction(c, "match", _n_match0, None, Compiled, qt_QAbstractListModel_match_qt__QModelIndexBSB_ESB__QAbstractListModel_QModelIndex_int_QVariant_int_int, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "start", "qt.QModelIndex"), new Param(c, "role", "int"), new Param(c, "value", "qt.QVariant"), new Param(c, "hits", "int", Value((int)1)), new Param(c, "flags", "int", Value((int)Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap))), End), + _func[14] = new MemberFunction(c, "mimeData", _n_mimeData0, None, Compiled, qt_QAbstractListModel_mimeData_QMimeData_QAbstractListModel_qt__QModelIndexBSB_ESB_, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "indexes", "qt.QModelIndex[]"), End), + _func[15] = new MemberFunction(c, "mimeTypes", _n_mimeTypes0, None, Compiled, qt_QAbstractListModel_mimeTypes_stringBSB_ESB__QAbstractListModel, Return, "string[]", Parameters, new Param(c, "this", "qt.QAbstractListModel"), End), + _func[16] = new MemberFunction(c, "moveColumns", _n_moveColumns0, None, Compiled, qt_QAbstractListModel_moveColumns_bool_QAbstractListModel_QModelIndex_int_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceColumn", "int"), new Param(c, "count", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + _func[17] = new MemberFunction(c, "moveRows", _n_moveRows0, None, Compiled, qt_QAbstractListModel_moveRows_bool_QAbstractListModel_QModelIndex_int_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceRow", "int"), new Param(c, "count", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + // MISSING: multiData (void; QAbstractListModel this, QModelIndex index, "QModelRoleDataSpan" roleDataSpan) + _func[18] = new MemberFunction(c, "removeColumns", _n_removeColumns0, None, Compiled, qt_QAbstractListModel_removeColumns_bool_QAbstractListModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "column", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[19] = new MemberFunction(c, "removeRows", _n_removeRows0, None, Compiled, qt_QAbstractListModel_removeRows_bool_QAbstractListModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "row", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + // MISSING: roleNames ("QHash"; QAbstractListModel this) + _func[20] = new MemberFunction(c, "rowCount", _n_rowCount0, None, Compiled, qt_QAbstractListModel_rowCount_int_QAbstractListModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[21] = new MemberFunction(c, "setData", _n_setData0, None, Compiled, qt_QAbstractListModel_setData_bool_QAbstractListModel_QModelIndex_QVariant_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "value", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::EditRole)), End), + _func[22] = new MemberFunction(c, "setHeaderData", _n_setHeaderData0, None, Compiled, qt_QAbstractListModel_setHeaderData_bool_QAbstractListModel_int_int_QVariant_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "section", "int"), new Param(c, "orientation", "int"), new Param(c, "value", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::EditRole)), End), + // MISSING: setItemData (bool; QAbstractListModel this, QModelIndex index, "const QMap &" roles) + _func[23] = new MemberFunction(c, "sort", _n_sort0, None, Compiled, qt_QAbstractListModel_sort_void_QAbstractListModel_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "column", "int"), new Param(c, "order", "int", Value((int)Qt::AscendingOrder)), End), + _func[24] = new MemberFunction(c, "span", _n_span0, None, Compiled, qt_QAbstractListModel_span_QSize_QAbstractListModel_QModelIndex, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractListModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[25] = new MemberFunction(c, "supportedDragActions", _n_supportedDragActions0, None, Compiled, qt_QAbstractListModel_supportedDragActions_int_QAbstractListModel, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractListModel"), End), + _func[26] = new MemberFunction(c, "supportedDropActions", _n_supportedDropActions0, None, Compiled, qt_QAbstractListModel_supportedDropActions_int_QAbstractListModel, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractListModel"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QAbstractListModel::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QAbstractScrollAreaType.cpp b/src/lib/mu/MuQt6/QAbstractScrollAreaType.cpp new file mode 100644 index 000000000..3dd766b28 --- /dev/null +++ b/src/lib/mu/MuQt6/QAbstractScrollAreaType.cpp @@ -0,0 +1,1047 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QAbstractScrollArea::~MuQt_QAbstractScrollArea() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QAbstractScrollArea::MuQt_QAbstractScrollArea(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QAbstractScrollArea(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractScrollArea")); +} + +void MuQt_QAbstractScrollArea::setupViewport(QWidget * viewport) +{ + if (!_env) { QAbstractScrollArea::setupViewport(viewport); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,viewport,"qt.QWidget")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::setupViewport(viewport); + } +} + +QSize MuQt_QAbstractScrollArea::minimumSizeHint() const +{ + if (!_env) return QAbstractScrollArea::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractScrollArea::minimumSizeHint(); + } +} + +QSize MuQt_QAbstractScrollArea::sizeHint() const +{ + if (!_env) return QAbstractScrollArea::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractScrollArea::sizeHint(); + } +} + +void MuQt_QAbstractScrollArea::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QAbstractScrollArea::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::scrollContentsBy(dx, dy); + } +} + +bool MuQt_QAbstractScrollArea::viewportEvent(QEvent * event) +{ + if (!_env) return QAbstractScrollArea::viewportEvent(event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractScrollArea::viewportEvent(event); + } +} + +QSize MuQt_QAbstractScrollArea::viewportSizeHint() const +{ + if (!_env) return QAbstractScrollArea::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractScrollArea::viewportSizeHint(); + } +} + +void MuQt_QAbstractScrollArea::contextMenuEvent(QContextMenuEvent * e) +{ + if (!_env) { QAbstractScrollArea::contextMenuEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::contextMenuEvent(e); + } +} + +void MuQt_QAbstractScrollArea::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QAbstractScrollArea::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::dragEnterEvent(event); + } +} + +void MuQt_QAbstractScrollArea::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QAbstractScrollArea::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::dragLeaveEvent(event); + } +} + +void MuQt_QAbstractScrollArea::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QAbstractScrollArea::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::dragMoveEvent(event); + } +} + +void MuQt_QAbstractScrollArea::dropEvent(QDropEvent * event) +{ + if (!_env) { QAbstractScrollArea::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::dropEvent(event); + } +} + +bool MuQt_QAbstractScrollArea::event(QEvent * event_) +{ + if (!_env) return QAbstractScrollArea::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractScrollArea::event(event_); + } +} + +void MuQt_QAbstractScrollArea::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QAbstractScrollArea::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::keyPressEvent(e); + } +} + +void MuQt_QAbstractScrollArea::mouseDoubleClickEvent(QMouseEvent * e) +{ + if (!_env) { QAbstractScrollArea::mouseDoubleClickEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::mouseDoubleClickEvent(e); + } +} + +void MuQt_QAbstractScrollArea::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QAbstractScrollArea::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::mouseMoveEvent(e); + } +} + +void MuQt_QAbstractScrollArea::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QAbstractScrollArea::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::mousePressEvent(e); + } +} + +void MuQt_QAbstractScrollArea::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QAbstractScrollArea::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::mouseReleaseEvent(e); + } +} + +void MuQt_QAbstractScrollArea::paintEvent(QPaintEvent * event) +{ + if (!_env) { QAbstractScrollArea::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::paintEvent(event); + } +} + +void MuQt_QAbstractScrollArea::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QAbstractScrollArea::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::resizeEvent(event); + } +} + +void MuQt_QAbstractScrollArea::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QAbstractScrollArea::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::wheelEvent(e); + } +} + +void MuQt_QAbstractScrollArea::changeEvent(QEvent * ev) +{ + if (!_env) { QAbstractScrollArea::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractScrollArea::changeEvent(ev); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QAbstractScrollAreaType::QAbstractScrollAreaType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QAbstractScrollAreaType::~QAbstractScrollAreaType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QAbstractScrollArea_QAbstractScrollArea_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QAbstractScrollArea* w = object(widget)) + { + QAbstractScrollAreaType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractScrollArea"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QAbstractScrollArea_QAbstractScrollArea_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QAbstractScrollArea_QAbstractScrollArea_QAbstractScrollArea_QAbstractScrollArea_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QAbstractScrollArea(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QAbstractScrollArea_addScrollBarWidget_void_QAbstractScrollArea_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + Qt::Alignment arg2 = (Qt::Alignment)(param_alignment); + arg0->addScrollBarWidget(arg1, arg2); +} + +Pointer qt_QAbstractScrollArea_cornerWidget_QWidget_QAbstractScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + return makeinstance(c, arg0->cornerWidget(), "qt.QWidget"); +} + +Pointer qt_QAbstractScrollArea_maximumViewportSize_QSize_QAbstractScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + return makeqtype(c,arg0->maximumViewportSize(),"qt.QSize"); +} + +void qt_QAbstractScrollArea_setCornerWidget_void_QAbstractScrollArea_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->setCornerWidget(arg1); +} + +void qt_QAbstractScrollArea_setViewport_void_QAbstractScrollArea_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->setViewport(arg1); +} + +void qt_QAbstractScrollArea_setupViewport_void_QAbstractScrollArea_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_viewport) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QWidget * arg1 = object(param_viewport); + if (isMuQtObject(arg0)) arg0->QAbstractScrollArea::setupViewport(arg1); + else arg0->setupViewport(arg1); +} + +Pointer qt_QAbstractScrollArea_viewport_QWidget_QAbstractScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + return makeinstance(c, arg0->viewport(), "qt.QWidget"); +} + +Pointer qt_QAbstractScrollArea_minimumSizeHint_QSize_QAbstractScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractScrollArea::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QAbstractScrollArea_sizeHint_QSize_QAbstractScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractScrollArea::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QAbstractScrollArea_scrollContentsBy_void_QAbstractScrollArea_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QAbstractScrollArea*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +void qt_QAbstractScrollArea_setViewportMargins_void_QAbstractScrollArea_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_left, int param_top, int param_right, int param_bottom) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + int arg1 = (int)(param_left); + int arg2 = (int)(param_top); + int arg3 = (int)(param_right); + int arg4 = (int)(param_bottom); + ((MuQt_QAbstractScrollArea*)arg0)->setViewportMargins_pub(arg1, arg2, arg3, arg4); +} + +void qt_QAbstractScrollArea_setViewportMargins_void_QAbstractScrollArea_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_margins) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + const QMargins arg1 = getqtype(param_margins); + ((MuQt_QAbstractScrollArea*)arg0)->setViewportMargins_pub(arg1); +} + +bool qt_QAbstractScrollArea_viewportEvent_bool_QAbstractScrollArea_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QAbstractScrollArea*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QAbstractScrollArea*)arg0)->viewportEvent_pub(arg1); +} + +Pointer qt_QAbstractScrollArea_viewportMargins_QMargins_QAbstractScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + return makeqtype(c,((MuQt_QAbstractScrollArea*)arg0)->viewportMargins_pub(),"qt.QMargins"); +} + +Pointer qt_QAbstractScrollArea_viewportSizeHint_QSize_QAbstractScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QAbstractScrollArea*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QAbstractScrollArea*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +void qt_QAbstractScrollArea_contextMenuEvent_void_QAbstractScrollArea_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_dragEnterEvent_void_QAbstractScrollArea_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_dragLeaveEvent_void_QAbstractScrollArea_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_dragMoveEvent_void_QAbstractScrollArea_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_dropEvent_void_QAbstractScrollArea_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QAbstractScrollArea_event_bool_QAbstractScrollArea_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QAbstractScrollArea*)arg0)->event_pub_parent(arg1) : ((MuQt_QAbstractScrollArea*)arg0)->event_pub(arg1); +} + +void qt_QAbstractScrollArea_keyPressEvent_void_QAbstractScrollArea_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_mouseDoubleClickEvent_void_QAbstractScrollArea_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_mouseMoveEvent_void_QAbstractScrollArea_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_mousePressEvent_void_QAbstractScrollArea_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_mouseReleaseEvent_void_QAbstractScrollArea_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_paintEvent_void_QAbstractScrollArea_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->paintEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_resizeEvent_void_QAbstractScrollArea_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_wheelEvent_void_QAbstractScrollArea_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->wheelEvent_pub(arg1); +} + +void qt_QAbstractScrollArea_changeEvent_void_QAbstractScrollArea_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractScrollArea* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QAbstractScrollArea*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QAbstractScrollArea*)arg0)->changeEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QAbstractScrollArea0, Pointer) +{ + NODE_RETURN(qt_QAbstractScrollArea_QAbstractScrollArea_QAbstractScrollArea_QAbstractScrollArea_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addScrollBarWidget0, void) +{ + qt_QAbstractScrollArea_addScrollBarWidget_void_QAbstractScrollArea_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_cornerWidget0, Pointer) +{ + NODE_RETURN(qt_QAbstractScrollArea_cornerWidget_QWidget_QAbstractScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_maximumViewportSize0, Pointer) +{ + NODE_RETURN(qt_QAbstractScrollArea_maximumViewportSize_QSize_QAbstractScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCornerWidget0, void) +{ + qt_QAbstractScrollArea_setCornerWidget_void_QAbstractScrollArea_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setViewport0, void) +{ + qt_QAbstractScrollArea_setViewport_void_QAbstractScrollArea_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setupViewport0, void) +{ + qt_QAbstractScrollArea_setupViewport_void_QAbstractScrollArea_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_viewport0, Pointer) +{ + NODE_RETURN(qt_QAbstractScrollArea_viewport_QWidget_QAbstractScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractScrollArea_minimumSizeHint_QSize_QAbstractScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractScrollArea_sizeHint_QSize_QAbstractScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QAbstractScrollArea_scrollContentsBy_void_QAbstractScrollArea_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setViewportMargins0, void) +{ + qt_QAbstractScrollArea_setViewportMargins_void_QAbstractScrollArea_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setViewportMargins1, void) +{ + qt_QAbstractScrollArea_setViewportMargins_void_QAbstractScrollArea_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QAbstractScrollArea_viewportEvent_bool_QAbstractScrollArea_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportMargins0, Pointer) +{ + NODE_RETURN(qt_QAbstractScrollArea_viewportMargins_QMargins_QAbstractScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractScrollArea_viewportSizeHint_QSize_QAbstractScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QAbstractScrollArea_contextMenuEvent_void_QAbstractScrollArea_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QAbstractScrollArea_dragEnterEvent_void_QAbstractScrollArea_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QAbstractScrollArea_dragLeaveEvent_void_QAbstractScrollArea_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QAbstractScrollArea_dragMoveEvent_void_QAbstractScrollArea_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QAbstractScrollArea_dropEvent_void_QAbstractScrollArea_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QAbstractScrollArea_event_bool_QAbstractScrollArea_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QAbstractScrollArea_keyPressEvent_void_QAbstractScrollArea_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QAbstractScrollArea_mouseDoubleClickEvent_void_QAbstractScrollArea_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QAbstractScrollArea_mouseMoveEvent_void_QAbstractScrollArea_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QAbstractScrollArea_mousePressEvent_void_QAbstractScrollArea_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QAbstractScrollArea_mouseReleaseEvent_void_QAbstractScrollArea_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QAbstractScrollArea_paintEvent_void_QAbstractScrollArea_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QAbstractScrollArea_resizeEvent_void_QAbstractScrollArea_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QAbstractScrollArea_wheelEvent_void_QAbstractScrollArea_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QAbstractScrollArea_changeEvent_void_QAbstractScrollArea_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QAbstractScrollAreaType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QAbstractScrollArea_QAbstractScrollArea_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QAbstractScrollArea", _n_QAbstractScrollArea0, None, Compiled, qt_QAbstractScrollArea_QAbstractScrollArea_QAbstractScrollArea_QAbstractScrollArea_QWidget, Return, "qt.QAbstractScrollArea", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addScrollBarWidget", _n_addScrollBarWidget0, None, Compiled, qt_QAbstractScrollArea_addScrollBarWidget_void_QAbstractScrollArea_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "widget", "qt.QWidget"), new Param(c, "alignment", "int"), End), + new Function(c, "cornerWidget", _n_cornerWidget0, None, Compiled, qt_QAbstractScrollArea_cornerWidget_QWidget_QAbstractScrollArea, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), End), + // MISSING: horizontalScrollBar ("QScrollBar *"; QAbstractScrollArea this) + // PROP: horizontalScrollBarPolicy (flags Qt::ScrollBarPolicy; QAbstractScrollArea this) + new Function(c, "maximumViewportSize", _n_maximumViewportSize0, None, Compiled, qt_QAbstractScrollArea_maximumViewportSize_QSize_QAbstractScrollArea, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), End), + // MISSING: scrollBarWidgets ("QWidgetList"; QAbstractScrollArea this, flags Qt::Alignment alignment) + new Function(c, "setCornerWidget", _n_setCornerWidget0, None, Compiled, qt_QAbstractScrollArea_setCornerWidget_void_QAbstractScrollArea_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "widget", "qt.QWidget"), End), + // MISSING: setHorizontalScrollBar (void; QAbstractScrollArea this, "QScrollBar *" scrollBar) + // PROP: setHorizontalScrollBarPolicy (void; QAbstractScrollArea this, flags Qt::ScrollBarPolicy _p19) + // PROP: setSizeAdjustPolicy (void; QAbstractScrollArea this, flags QAbstractScrollArea::SizeAdjustPolicy policy) + // MISSING: setVerticalScrollBar (void; QAbstractScrollArea this, "QScrollBar *" scrollBar) + // PROP: setVerticalScrollBarPolicy (void; QAbstractScrollArea this, flags Qt::ScrollBarPolicy _p19) + new Function(c, "setViewport", _n_setViewport0, None, Compiled, qt_QAbstractScrollArea_setViewport_void_QAbstractScrollArea_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "widget", "qt.QWidget"), End), + _func[0] = new MemberFunction(c, "setupViewport", _n_setupViewport0, None, Compiled, qt_QAbstractScrollArea_setupViewport_void_QAbstractScrollArea_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "viewport", "qt.QWidget"), End), + // PROP: sizeAdjustPolicy (flags QAbstractScrollArea::SizeAdjustPolicy; QAbstractScrollArea this) + // MISSING: verticalScrollBar ("QScrollBar *"; QAbstractScrollArea this) + // PROP: verticalScrollBarPolicy (flags Qt::ScrollBarPolicy; QAbstractScrollArea this) + new Function(c, "viewport", _n_viewport0, None, Compiled, qt_QAbstractScrollArea_viewport_QWidget_QAbstractScrollArea, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), End), + _func[1] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QAbstractScrollArea_minimumSizeHint_QSize_QAbstractScrollArea, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), End), + _func[2] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QAbstractScrollArea_sizeHint_QSize_QAbstractScrollArea, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), End), + _func[3] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QAbstractScrollArea_scrollContentsBy_void_QAbstractScrollArea_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + new Function(c, "setViewportMargins", _n_setViewportMargins0, None, Compiled, qt_QAbstractScrollArea_setViewportMargins_void_QAbstractScrollArea_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "left", "int"), new Param(c, "top", "int"), new Param(c, "right", "int"), new Param(c, "bottom", "int"), End), + new Function(c, "setViewportMargins", _n_setViewportMargins1, None, Compiled, qt_QAbstractScrollArea_setViewportMargins_void_QAbstractScrollArea_QMargins, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "margins", "qt.QMargins"), End), + _func[4] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QAbstractScrollArea_viewportEvent_bool_QAbstractScrollArea_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "event", "qt.QEvent"), End), + new Function(c, "viewportMargins", _n_viewportMargins0, None, Compiled, qt_QAbstractScrollArea_viewportMargins_QMargins_QAbstractScrollArea, Return, "qt.QMargins", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), End), + _func[5] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QAbstractScrollArea_viewportSizeHint_QSize_QAbstractScrollArea, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), End), + _func[6] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QAbstractScrollArea_contextMenuEvent_void_QAbstractScrollArea_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "e", "qt.QContextMenuEvent"), End), + _func[7] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QAbstractScrollArea_dragEnterEvent_void_QAbstractScrollArea_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[8] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QAbstractScrollArea_dragLeaveEvent_void_QAbstractScrollArea_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[9] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QAbstractScrollArea_dragMoveEvent_void_QAbstractScrollArea_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[10] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QAbstractScrollArea_dropEvent_void_QAbstractScrollArea_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "event", "qt.QDropEvent"), End), + _func[11] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QAbstractScrollArea_event_bool_QAbstractScrollArea_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "event_", "qt.QEvent"), End), + _func[12] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QAbstractScrollArea_keyPressEvent_void_QAbstractScrollArea_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[13] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QAbstractScrollArea_mouseDoubleClickEvent_void_QAbstractScrollArea_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[14] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QAbstractScrollArea_mouseMoveEvent_void_QAbstractScrollArea_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[15] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QAbstractScrollArea_mousePressEvent_void_QAbstractScrollArea_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[16] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QAbstractScrollArea_mouseReleaseEvent_void_QAbstractScrollArea_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[17] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QAbstractScrollArea_paintEvent_void_QAbstractScrollArea_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[18] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QAbstractScrollArea_resizeEvent_void_QAbstractScrollArea_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[19] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QAbstractScrollArea_wheelEvent_void_QAbstractScrollArea_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "e", "qt.QWheelEvent"), End), + // MISSING: initStyleOption (void; QAbstractScrollArea this, "QStyleOptionFrame *" option) // protected + _func[20] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QAbstractScrollArea_changeEvent_void_QAbstractScrollArea_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractScrollArea"), new Param(c, "ev", "qt.QEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QAbstractScrollArea::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QAbstractSliderType.cpp b/src/lib/mu/MuQt6/QAbstractSliderType.cpp new file mode 100644 index 000000000..456a986c7 --- /dev/null +++ b/src/lib/mu/MuQt6/QAbstractSliderType.cpp @@ -0,0 +1,1395 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QAbstractSlider::~MuQt_QAbstractSlider() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QAbstractSlider::MuQt_QAbstractSlider(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QAbstractSlider(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractSlider")); +} + +void MuQt_QAbstractSlider::sliderChange(QAbstractSlider::SliderChange change) +{ + if (!_env) { QAbstractSlider::sliderChange(change); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(change)); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::sliderChange(change); + } +} + +void MuQt_QAbstractSlider::changeEvent(QEvent * ev) +{ + if (!_env) { QAbstractSlider::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::changeEvent(ev); + } +} + +bool MuQt_QAbstractSlider::event(QEvent * e) +{ + if (!_env) return QAbstractSlider::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSlider::event(e); + } +} + +void MuQt_QAbstractSlider::keyPressEvent(QKeyEvent * ev) +{ + if (!_env) { QAbstractSlider::keyPressEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::keyPressEvent(ev); + } +} + +void MuQt_QAbstractSlider::timerEvent(QTimerEvent * e) +{ + if (!_env) { QAbstractSlider::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::timerEvent(e); + } +} + +void MuQt_QAbstractSlider::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QAbstractSlider::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::wheelEvent(e); + } +} + +bool MuQt_QAbstractSlider::hasHeightForWidth() const +{ + if (!_env) return QAbstractSlider::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSlider::hasHeightForWidth(); + } +} + +int MuQt_QAbstractSlider::heightForWidth(int w) const +{ + if (!_env) return QAbstractSlider::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QAbstractSlider::heightForWidth(w); + } +} + +QVariant MuQt_QAbstractSlider::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QAbstractSlider::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractSlider::inputMethodQuery(query); + } +} + +QSize MuQt_QAbstractSlider::minimumSizeHint() const +{ + if (!_env) return QAbstractSlider::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractSlider::minimumSizeHint(); + } +} + +QSize MuQt_QAbstractSlider::sizeHint() const +{ + if (!_env) return QAbstractSlider::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractSlider::sizeHint(); + } +} + +void MuQt_QAbstractSlider::closeEvent(QCloseEvent * event) +{ + if (!_env) { QAbstractSlider::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::closeEvent(event); + } +} + +void MuQt_QAbstractSlider::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QAbstractSlider::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::contextMenuEvent(event); + } +} + +void MuQt_QAbstractSlider::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QAbstractSlider::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::dragEnterEvent(event); + } +} + +void MuQt_QAbstractSlider::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QAbstractSlider::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::dragLeaveEvent(event); + } +} + +void MuQt_QAbstractSlider::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QAbstractSlider::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::dragMoveEvent(event); + } +} + +void MuQt_QAbstractSlider::dropEvent(QDropEvent * event) +{ + if (!_env) { QAbstractSlider::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::dropEvent(event); + } +} + +void MuQt_QAbstractSlider::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QAbstractSlider::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::focusInEvent(event); + } +} + +bool MuQt_QAbstractSlider::focusNextPrevChild(bool next) +{ + if (!_env) return QAbstractSlider::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSlider::focusNextPrevChild(next); + } +} + +void MuQt_QAbstractSlider::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QAbstractSlider::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::focusOutEvent(event); + } +} + +void MuQt_QAbstractSlider::hideEvent(QHideEvent * event) +{ + if (!_env) { QAbstractSlider::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::hideEvent(event); + } +} + +void MuQt_QAbstractSlider::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QAbstractSlider::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::keyReleaseEvent(event); + } +} + +void MuQt_QAbstractSlider::leaveEvent(QEvent * event) +{ + if (!_env) { QAbstractSlider::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::leaveEvent(event); + } +} + +void MuQt_QAbstractSlider::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractSlider::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::mouseDoubleClickEvent(event); + } +} + +void MuQt_QAbstractSlider::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractSlider::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::mouseMoveEvent(event); + } +} + +void MuQt_QAbstractSlider::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractSlider::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::mousePressEvent(event); + } +} + +void MuQt_QAbstractSlider::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractSlider::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::mouseReleaseEvent(event); + } +} + +void MuQt_QAbstractSlider::moveEvent(QMoveEvent * event) +{ + if (!_env) { QAbstractSlider::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::moveEvent(event); + } +} + +void MuQt_QAbstractSlider::paintEvent(QPaintEvent * event) +{ + if (!_env) { QAbstractSlider::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::paintEvent(event); + } +} + +void MuQt_QAbstractSlider::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QAbstractSlider::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::resizeEvent(event); + } +} + +void MuQt_QAbstractSlider::showEvent(QShowEvent * event) +{ + if (!_env) { QAbstractSlider::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::showEvent(event); + } +} + +void MuQt_QAbstractSlider::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QAbstractSlider::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSlider::tabletEvent(event); + } +} + +int MuQt_QAbstractSlider::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QAbstractSlider::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QAbstractSlider::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QAbstractSliderType::QAbstractSliderType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QAbstractSliderType::~QAbstractSliderType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QAbstractSlider_QAbstractSlider_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QAbstractSlider* w = object(widget)) + { + QAbstractSliderType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractSlider"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QAbstractSlider_QAbstractSlider_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QAbstractSlider_QAbstractSlider_QAbstractSlider_QAbstractSlider_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QAbstractSlider(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QAbstractSlider_triggerAction_void_QAbstractSlider_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QAbstractSlider::SliderAction arg1 = (QAbstractSlider::SliderAction)(param_action); + arg0->triggerAction(arg1); +} + +int qt_QAbstractSlider_repeatAction_int_QAbstractSlider(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + return int(((MuQt_QAbstractSlider*)arg0)->repeatAction_pub()); +} + +void qt_QAbstractSlider_setRepeatAction_void_QAbstractSlider_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_action, int param_thresholdTime, int param_repeatTime) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QAbstractSlider::SliderAction arg1 = (QAbstractSlider::SliderAction)(param_action); + int arg2 = (int)(param_thresholdTime); + int arg3 = (int)(param_repeatTime); + ((MuQt_QAbstractSlider*)arg0)->setRepeatAction_pub(arg1, arg2, arg3); +} + +void qt_QAbstractSlider_sliderChange_void_QAbstractSlider_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_change) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + MuQtPublicEnum arg1 = (MuQtPublicEnum)(param_change); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->sliderChange_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->sliderChange_pub(arg1); +} + +void qt_QAbstractSlider_changeEvent_void_QAbstractSlider_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QAbstractSlider_event_bool_QAbstractSlider_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QAbstractSlider*)arg0)->event_pub_parent(arg1) : ((MuQt_QAbstractSlider*)arg0)->event_pub(arg1); +} + +void qt_QAbstractSlider_keyPressEvent_void_QAbstractSlider_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QAbstractSlider_timerEvent_void_QAbstractSlider_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->timerEvent_pub(arg1); +} + +void qt_QAbstractSlider_wheelEvent_void_QAbstractSlider_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->wheelEvent_pub(arg1); +} + +bool qt_QAbstractSlider_hasHeightForWidth_bool_QAbstractSlider(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractSlider::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QAbstractSlider_heightForWidth_int_QAbstractSlider_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QAbstractSlider::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QAbstractSlider_inputMethodQuery_QVariant_QAbstractSlider_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractSlider::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QAbstractSlider_minimumSizeHint_QSize_QAbstractSlider(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractSlider::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QAbstractSlider_sizeHint_QSize_QAbstractSlider(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractSlider::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QAbstractSlider_closeEvent_void_QAbstractSlider_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->closeEvent_pub(arg1); +} + +void qt_QAbstractSlider_contextMenuEvent_void_QAbstractSlider_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QAbstractSlider_dragEnterEvent_void_QAbstractSlider_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QAbstractSlider_dragLeaveEvent_void_QAbstractSlider_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QAbstractSlider_dragMoveEvent_void_QAbstractSlider_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QAbstractSlider_dropEvent_void_QAbstractSlider_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->dropEvent_pub(arg1); +} + +void qt_QAbstractSlider_focusInEvent_void_QAbstractSlider_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QAbstractSlider_focusNextPrevChild_bool_QAbstractSlider_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QAbstractSlider*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QAbstractSlider*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QAbstractSlider_focusOutEvent_void_QAbstractSlider_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QAbstractSlider_hideEvent_void_QAbstractSlider_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->hideEvent_pub(arg1); +} + +void qt_QAbstractSlider_keyReleaseEvent_void_QAbstractSlider_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QAbstractSlider_leaveEvent_void_QAbstractSlider_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QAbstractSlider_mouseDoubleClickEvent_void_QAbstractSlider_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QAbstractSlider_mouseMoveEvent_void_QAbstractSlider_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QAbstractSlider_mousePressEvent_void_QAbstractSlider_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QAbstractSlider_mouseReleaseEvent_void_QAbstractSlider_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QAbstractSlider_moveEvent_void_QAbstractSlider_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->moveEvent_pub(arg1); +} + +void qt_QAbstractSlider_paintEvent_void_QAbstractSlider_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->paintEvent_pub(arg1); +} + +void qt_QAbstractSlider_resizeEvent_void_QAbstractSlider_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QAbstractSlider_showEvent_void_QAbstractSlider_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->showEvent_pub(arg1); +} + +void qt_QAbstractSlider_tabletEvent_void_QAbstractSlider_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSlider*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QAbstractSlider*)arg0)->tabletEvent_pub(arg1); +} + +int qt_QAbstractSlider_metric_int_QAbstractSlider_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSlider* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QAbstractSlider*)arg0)->metric_pub_parent(arg1) : ((MuQt_QAbstractSlider*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QAbstractSlider0, Pointer) +{ + NODE_RETURN(qt_QAbstractSlider_QAbstractSlider_QAbstractSlider_QAbstractSlider_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_triggerAction0, void) +{ + qt_QAbstractSlider_triggerAction_void_QAbstractSlider_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_repeatAction0, int) +{ + NODE_RETURN(qt_QAbstractSlider_repeatAction_int_QAbstractSlider(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setRepeatAction0, void) +{ + qt_QAbstractSlider_setRepeatAction_void_QAbstractSlider_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_sliderChange0, void) +{ + qt_QAbstractSlider_sliderChange_void_QAbstractSlider_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QAbstractSlider_changeEvent_void_QAbstractSlider_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QAbstractSlider_event_bool_QAbstractSlider_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QAbstractSlider_keyPressEvent_void_QAbstractSlider_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QAbstractSlider_timerEvent_void_QAbstractSlider_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QAbstractSlider_wheelEvent_void_QAbstractSlider_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QAbstractSlider_hasHeightForWidth_bool_QAbstractSlider(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QAbstractSlider_heightForWidth_int_QAbstractSlider_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QAbstractSlider_inputMethodQuery_QVariant_QAbstractSlider_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractSlider_minimumSizeHint_QSize_QAbstractSlider(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractSlider_sizeHint_QSize_QAbstractSlider(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QAbstractSlider_closeEvent_void_QAbstractSlider_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QAbstractSlider_contextMenuEvent_void_QAbstractSlider_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QAbstractSlider_dragEnterEvent_void_QAbstractSlider_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QAbstractSlider_dragLeaveEvent_void_QAbstractSlider_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QAbstractSlider_dragMoveEvent_void_QAbstractSlider_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QAbstractSlider_dropEvent_void_QAbstractSlider_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QAbstractSlider_focusInEvent_void_QAbstractSlider_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QAbstractSlider_focusNextPrevChild_bool_QAbstractSlider_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QAbstractSlider_focusOutEvent_void_QAbstractSlider_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QAbstractSlider_hideEvent_void_QAbstractSlider_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QAbstractSlider_keyReleaseEvent_void_QAbstractSlider_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QAbstractSlider_leaveEvent_void_QAbstractSlider_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QAbstractSlider_mouseDoubleClickEvent_void_QAbstractSlider_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QAbstractSlider_mouseMoveEvent_void_QAbstractSlider_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QAbstractSlider_mousePressEvent_void_QAbstractSlider_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QAbstractSlider_mouseReleaseEvent_void_QAbstractSlider_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QAbstractSlider_moveEvent_void_QAbstractSlider_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QAbstractSlider_paintEvent_void_QAbstractSlider_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QAbstractSlider_resizeEvent_void_QAbstractSlider_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QAbstractSlider_showEvent_void_QAbstractSlider_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QAbstractSlider_tabletEvent_void_QAbstractSlider_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QAbstractSlider_metric_int_QAbstractSlider_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QAbstractSliderType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QAbstractSlider_QAbstractSlider_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + new Alias(c, "SliderChange", "int") /* PROTECTED ENUM */, + new SymbolicConstant(c, "SliderRangeChange", "int", Value(int(0))), + new SymbolicConstant(c, "SliderOrientationChange", "int", Value(int(1))), + new SymbolicConstant(c, "SliderStepsChange", "int", Value(int(2))), + new SymbolicConstant(c, "SliderValueChange", "int", Value(int(3))), + // member functions + new Function(c, "QAbstractSlider", _n_QAbstractSlider0, None, Compiled, qt_QAbstractSlider_QAbstractSlider_QAbstractSlider_QAbstractSlider_QWidget, Return, "qt.QAbstractSlider", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: hasTracking (bool; QAbstractSlider this) + // PROP: invertedAppearance (bool; QAbstractSlider this) + // PROP: invertedControls (bool; QAbstractSlider this) + // PROP: isSliderDown (bool; QAbstractSlider this) + // PROP: maximum (int; QAbstractSlider this) + // PROP: minimum (int; QAbstractSlider this) + // PROP: orientation (flags Qt::Orientation; QAbstractSlider this) + // PROP: pageStep (int; QAbstractSlider this) + // PROP: setInvertedAppearance (void; QAbstractSlider this, bool _p4) + // PROP: setInvertedControls (void; QAbstractSlider this, bool _p4) + // PROP: setMaximum (void; QAbstractSlider this, int _p3) + // PROP: setMinimum (void; QAbstractSlider this, int _p3) + // PROP: setPageStep (void; QAbstractSlider this, int _p3) + // PROP: setSingleStep (void; QAbstractSlider this, int _p3) + // PROP: setSliderDown (void; QAbstractSlider this, bool _p4) + // PROP: setSliderPosition (void; QAbstractSlider this, int _p3) + // PROP: setTracking (void; QAbstractSlider this, bool enable) + // PROP: singleStep (int; QAbstractSlider this) + // PROP: sliderPosition (int; QAbstractSlider this) + new Function(c, "triggerAction", _n_triggerAction0, None, Compiled, qt_QAbstractSlider_triggerAction_void_QAbstractSlider_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "action", "int"), End), + // PROP: value (int; QAbstractSlider this) + new Function(c, "repeatAction", _n_repeatAction0, None, Compiled, qt_QAbstractSlider_repeatAction_int_QAbstractSlider, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractSlider"), End), + new Function(c, "setRepeatAction", _n_setRepeatAction0, None, Compiled, qt_QAbstractSlider_setRepeatAction_void_QAbstractSlider_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "action", "int"), new Param(c, "thresholdTime", "int", Value((int)500)), new Param(c, "repeatTime", "int", Value((int)50)), End), + _func[0] = new MemberFunction(c, "sliderChange", _n_sliderChange0, None, Compiled, qt_QAbstractSlider_sliderChange_void_QAbstractSlider_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "change", "int"), End), + _func[1] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QAbstractSlider_changeEvent_void_QAbstractSlider_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "ev", "qt.QEvent"), End), + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QAbstractSlider_event_bool_QAbstractSlider_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QAbstractSlider_keyPressEvent_void_QAbstractSlider_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "ev", "qt.QKeyEvent"), End), + _func[4] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QAbstractSlider_timerEvent_void_QAbstractSlider_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "e", "qt.QTimerEvent"), End), + _func[5] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QAbstractSlider_wheelEvent_void_QAbstractSlider_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "e", "qt.QWheelEvent"), End), + _func[6] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QAbstractSlider_hasHeightForWidth_bool_QAbstractSlider, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSlider"), End), + _func[7] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QAbstractSlider_heightForWidth_int_QAbstractSlider_int, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "w", "int"), End), + _func[8] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QAbstractSlider_inputMethodQuery_QVariant_QAbstractSlider_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "query", "int"), End), + _func[9] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QAbstractSlider_minimumSizeHint_QSize_QAbstractSlider, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractSlider"), End), + _func[10] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QAbstractSlider_sizeHint_QSize_QAbstractSlider, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractSlider"), End), + // MISSING: paintEngine ("QPaintEngine *"; QAbstractSlider this) + // MISSING: actionEvent (void; QAbstractSlider this, "QActionEvent *" event) // protected + _func[11] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QAbstractSlider_closeEvent_void_QAbstractSlider_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[12] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QAbstractSlider_contextMenuEvent_void_QAbstractSlider_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[13] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QAbstractSlider_dragEnterEvent_void_QAbstractSlider_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[14] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QAbstractSlider_dragLeaveEvent_void_QAbstractSlider_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[15] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QAbstractSlider_dragMoveEvent_void_QAbstractSlider_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[16] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QAbstractSlider_dropEvent_void_QAbstractSlider_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QAbstractSlider this, "QEnterEvent *" event) // protected + _func[17] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QAbstractSlider_focusInEvent_void_QAbstractSlider_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[18] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QAbstractSlider_focusNextPrevChild_bool_QAbstractSlider_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "next", "bool"), End), + _func[19] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QAbstractSlider_focusOutEvent_void_QAbstractSlider_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[20] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QAbstractSlider_hideEvent_void_QAbstractSlider_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QAbstractSlider this, "QInputMethodEvent *" event) // protected + _func[21] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QAbstractSlider_keyReleaseEvent_void_QAbstractSlider_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[22] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QAbstractSlider_leaveEvent_void_QAbstractSlider_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QEvent"), End), + _func[23] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QAbstractSlider_mouseDoubleClickEvent_void_QAbstractSlider_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QAbstractSlider_mouseMoveEvent_void_QAbstractSlider_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[25] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QAbstractSlider_mousePressEvent_void_QAbstractSlider_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[26] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QAbstractSlider_mouseReleaseEvent_void_QAbstractSlider_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[27] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QAbstractSlider_moveEvent_void_QAbstractSlider_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QAbstractSlider this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[28] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QAbstractSlider_paintEvent_void_QAbstractSlider_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[29] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QAbstractSlider_resizeEvent_void_QAbstractSlider_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[30] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QAbstractSlider_showEvent_void_QAbstractSlider_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QShowEvent"), End), + _func[31] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QAbstractSlider_tabletEvent_void_QAbstractSlider_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "event", "qt.QTabletEvent"), End), + // MISSING: initPainter (void; QAbstractSlider this, "QPainter *" painter) // protected + _func[32] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QAbstractSlider_metric_int_QAbstractSlider_int, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractSlider"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QAbstractSlider::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QAbstractSocketType.cpp b/src/lib/mu/MuQt6/QAbstractSocketType.cpp new file mode 100644 index 000000000..d5ffc37f5 --- /dev/null +++ b/src/lib/mu/MuQt6/QAbstractSocketType.cpp @@ -0,0 +1,1195 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QAbstractSocket::~MuQt_QAbstractSocket() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QAbstractSocket::MuQt_QAbstractSocket(Pointer muobj, const CallEnvironment* ce, QAbstractSocket::SocketType socketType, QObject * parent) + : QAbstractSocket(socketType, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractSocket")); +} + +void MuQt_QAbstractSocket::disconnectFromHost() +{ + if (!_env) { QAbstractSocket::disconnectFromHost(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QAbstractSocket::disconnectFromHost(); + } +} + +void MuQt_QAbstractSocket::resume() +{ + if (!_env) { QAbstractSocket::resume(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QAbstractSocket::resume(); + } +} + +void MuQt_QAbstractSocket::setReadBufferSize(qint64 size) +{ + if (!_env) { QAbstractSocket::setReadBufferSize(size); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(size); + Value rval = _env->call(F, args); + } + else + { + QAbstractSocket::setReadBufferSize(size); + } +} + +void MuQt_QAbstractSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant & value) +{ + if (!_env) { QAbstractSocket::setSocketOption(option, value); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(option)); + args[2] = Value(makeqtype(c,value,"qt.QVariant")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSocket::setSocketOption(option, value); + } +} + +QVariant MuQt_QAbstractSocket::socketOption(QAbstractSocket::SocketOption option) +{ + if (!_env) return QAbstractSocket::socketOption(option); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(option)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractSocket::socketOption(option); + } +} + +bool MuQt_QAbstractSocket::waitForConnected(int msecs) +{ + if (!_env) return QAbstractSocket::waitForConnected(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSocket::waitForConnected(msecs); + } +} + +bool MuQt_QAbstractSocket::waitForDisconnected(int msecs) +{ + if (!_env) return QAbstractSocket::waitForDisconnected(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSocket::waitForDisconnected(msecs); + } +} + +qint64 MuQt_QAbstractSocket::bytesAvailable() const +{ + if (!_env) return QAbstractSocket::bytesAvailable(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QAbstractSocket::bytesAvailable(); + } +} + +qint64 MuQt_QAbstractSocket::bytesToWrite() const +{ + if (!_env) return QAbstractSocket::bytesToWrite(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QAbstractSocket::bytesToWrite(); + } +} + +void MuQt_QAbstractSocket::close() +{ + if (!_env) { QAbstractSocket::close(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QAbstractSocket::close(); + } +} + +bool MuQt_QAbstractSocket::isSequential() const +{ + if (!_env) return QAbstractSocket::isSequential(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSocket::isSequential(); + } +} + +bool MuQt_QAbstractSocket::waitForBytesWritten(int msecs) +{ + if (!_env) return QAbstractSocket::waitForBytesWritten(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSocket::waitForBytesWritten(msecs); + } +} + +bool MuQt_QAbstractSocket::waitForReadyRead(int msecs) +{ + if (!_env) return QAbstractSocket::waitForReadyRead(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSocket::waitForReadyRead(msecs); + } +} + +qint64 MuQt_QAbstractSocket::skipData(qint64 maxSize) +{ + if (!_env) return QAbstractSocket::skipData(maxSize); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(maxSize); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QAbstractSocket::skipData(maxSize); + } +} + +bool MuQt_QAbstractSocket::atEnd() const +{ + if (!_env) return QAbstractSocket::atEnd(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSocket::atEnd(); + } +} + +bool MuQt_QAbstractSocket::canReadLine() const +{ + if (!_env) return QAbstractSocket::canReadLine(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSocket::canReadLine(); + } +} + +bool MuQt_QAbstractSocket::open(QIODeviceBase::OpenMode mode) +{ + if (!_env) return QAbstractSocket::open(mode); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(mode)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSocket::open(mode); + } +} + +qint64 MuQt_QAbstractSocket::pos() const +{ + if (!_env) return QAbstractSocket::pos(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QAbstractSocket::pos(); + } +} + +bool MuQt_QAbstractSocket::reset() +{ + if (!_env) return QAbstractSocket::reset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSocket::reset(); + } +} + +bool MuQt_QAbstractSocket::seek(qint64 pos) +{ + if (!_env) return QAbstractSocket::seek(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(pos); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSocket::seek(pos); + } +} + +qint64 MuQt_QAbstractSocket::size() const +{ + if (!_env) return QAbstractSocket::size(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QAbstractSocket::size(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QAbstractSocketType::QAbstractSocketType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QAbstractSocketType::~QAbstractSocketType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QAbstractSocket_QAbstractSocket_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QAbstractSocket* w = object(widget)) + { + QAbstractSocketType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractSocket"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QAbstractSocket_QAbstractSocket_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QAbstractSocket_QAbstractSocket_QAbstractSocket_QAbstractSocket_int_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, int param_socketType, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket::SocketType arg1 = (QAbstractSocket::SocketType)(param_socketType); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QAbstractSocket(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +void qt_QAbstractSocket_abort_void_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + arg0->abort(); +} + +void qt_QAbstractSocket_disconnectFromHost_void_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QAbstractSocket::disconnectFromHost(); + else arg0->disconnectFromHost(); +} + +int qt_QAbstractSocket_error_int_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return int(arg0->error()); +} + +bool qt_QAbstractSocket_flush_bool_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return arg0->flush(); +} + +bool qt_QAbstractSocket_isValid_bool_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return arg0->isValid(); +} + +Pointer qt_QAbstractSocket_localAddress_QHostAddress_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return makeqtype(c,arg0->localAddress(),"qt.QHostAddress"); +} + +int qt_QAbstractSocket_pauseMode_int_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return int(arg0->pauseMode()); +} + +Pointer qt_QAbstractSocket_peerAddress_QHostAddress_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return makeqtype(c,arg0->peerAddress(),"qt.QHostAddress"); +} + +Pointer qt_QAbstractSocket_peerName_string_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return makestring(c,arg0->peerName()); +} + +Pointer qt_QAbstractSocket_protocolTag_string_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return makestring(c,arg0->protocolTag()); +} + +int64 qt_QAbstractSocket_readBufferSize_int64_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return arg0->readBufferSize(); +} + +void qt_QAbstractSocket_resume_void_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QAbstractSocket::resume(); + else arg0->resume(); +} + +void qt_QAbstractSocket_setPauseMode_void_QAbstractSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_pauseMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + QAbstractSocket::PauseModes arg1 = (QAbstractSocket::PauseModes)(param_pauseMode); + arg0->setPauseMode(arg1); +} + +void qt_QAbstractSocket_setProtocolTag_void_QAbstractSocket_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_tag) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + const QString arg1 = qstring(param_tag); + arg0->setProtocolTag(arg1); +} + +void qt_QAbstractSocket_setReadBufferSize_void_QAbstractSocket_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + qint64 arg1 = (int64)(param_size); + if (isMuQtObject(arg0)) arg0->QAbstractSocket::setReadBufferSize(arg1); + else arg0->setReadBufferSize(arg1); +} + +void qt_QAbstractSocket_setSocketOption_void_QAbstractSocket_int_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + QAbstractSocket::SocketOption arg1 = (QAbstractSocket::SocketOption)(param_option); + const QVariant arg2 = getqtype(param_value); + if (isMuQtObject(arg0)) arg0->QAbstractSocket::setSocketOption(arg1, arg2); + else arg0->setSocketOption(arg1, arg2); +} + +Pointer qt_QAbstractSocket_socketOption_QVariant_QAbstractSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + QAbstractSocket::SocketOption arg1 = (QAbstractSocket::SocketOption)(param_option); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractSocket::socketOption(arg1),"qt.QVariant") : makeqtype(c,arg0->socketOption(arg1),"qt.QVariant"); +} + +int qt_QAbstractSocket_socketType_int_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return int(arg0->socketType()); +} + +int qt_QAbstractSocket_state_int_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return int(arg0->state()); +} + +bool qt_QAbstractSocket_waitForConnected_bool_QAbstractSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::waitForConnected(arg1) : arg0->waitForConnected(arg1); +} + +bool qt_QAbstractSocket_waitForDisconnected_bool_QAbstractSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::waitForDisconnected(arg1) : arg0->waitForDisconnected(arg1); +} + +int64 qt_QAbstractSocket_bytesAvailable_int64_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::bytesAvailable() : arg0->bytesAvailable(); +} + +int64 qt_QAbstractSocket_bytesToWrite_int64_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::bytesToWrite() : arg0->bytesToWrite(); +} + +void qt_QAbstractSocket_close_void_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QAbstractSocket::close(); + else arg0->close(); +} + +bool qt_QAbstractSocket_isSequential_bool_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::isSequential() : arg0->isSequential(); +} + +bool qt_QAbstractSocket_waitForBytesWritten_bool_QAbstractSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::waitForBytesWritten(arg1) : arg0->waitForBytesWritten(arg1); +} + +bool qt_QAbstractSocket_waitForReadyRead_bool_QAbstractSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::waitForReadyRead(arg1) : arg0->waitForReadyRead(arg1); +} + +void qt_QAbstractSocket_setLocalAddress_void_QAbstractSocket_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_address) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + const QHostAddress arg1 = getqtype(param_address); + ((MuQt_QAbstractSocket*)arg0)->setLocalAddress_pub(arg1); +} + +void qt_QAbstractSocket_setPeerAddress_void_QAbstractSocket_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_address) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + const QHostAddress arg1 = getqtype(param_address); + ((MuQt_QAbstractSocket*)arg0)->setPeerAddress_pub(arg1); +} + +void qt_QAbstractSocket_setPeerName_void_QAbstractSocket_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + const QString arg1 = qstring(param_name); + ((MuQt_QAbstractSocket*)arg0)->setPeerName_pub(arg1); +} + +void qt_QAbstractSocket_setSocketError_void_QAbstractSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_socketError) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + QAbstractSocket::SocketError arg1 = (QAbstractSocket::SocketError)(param_socketError); + ((MuQt_QAbstractSocket*)arg0)->setSocketError_pub(arg1); +} + +void qt_QAbstractSocket_setSocketState_void_QAbstractSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + QAbstractSocket::SocketState arg1 = (QAbstractSocket::SocketState)(param_state); + ((MuQt_QAbstractSocket*)arg0)->setSocketState_pub(arg1); +} + +int64 qt_QAbstractSocket_skipData_int64_QAbstractSocket_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + qint64 arg1 = (int64)(param_maxSize); + return isMuQtObject(arg0) ? ((MuQt_QAbstractSocket*)arg0)->skipData_pub_parent(arg1) : ((MuQt_QAbstractSocket*)arg0)->skipData_pub(arg1); +} + +bool qt_QAbstractSocket_atEnd_bool_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::atEnd() : arg0->atEnd(); +} + +bool qt_QAbstractSocket_canReadLine_bool_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::canReadLine() : arg0->canReadLine(); +} + +bool qt_QAbstractSocket_open_bool_QAbstractSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + QIODeviceBase::OpenMode arg1 = (QIODeviceBase::OpenMode)(param_mode); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::open(arg1) : arg0->open(arg1); +} + +int64 qt_QAbstractSocket_pos_int64_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::pos() : arg0->pos(); +} + +bool qt_QAbstractSocket_reset_bool_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::reset() : arg0->reset(); +} + +bool qt_QAbstractSocket_seek_bool_QAbstractSocket_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + qint64 arg1 = (int64)(param_pos); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::seek(arg1) : arg0->seek(arg1); +} + +int64 qt_QAbstractSocket_size_int64_QAbstractSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractSocket::size() : arg0->size(); +} + + +static NODE_IMPLEMENTATION(_n_QAbstractSocket0, Pointer) +{ + NODE_RETURN(qt_QAbstractSocket_QAbstractSocket_QAbstractSocket_QAbstractSocket_int_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_abort0, void) +{ + qt_QAbstractSocket_abort_void_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_disconnectFromHost0, void) +{ + qt_QAbstractSocket_disconnectFromHost_void_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_error0, int) +{ + NODE_RETURN(qt_QAbstractSocket_error_int_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_flush0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_flush_bool_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_isValid_bool_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_localAddress0, Pointer) +{ + NODE_RETURN(qt_QAbstractSocket_localAddress_QHostAddress_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pauseMode0, int) +{ + NODE_RETURN(qt_QAbstractSocket_pauseMode_int_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_peerAddress0, Pointer) +{ + NODE_RETURN(qt_QAbstractSocket_peerAddress_QHostAddress_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_peerName0, Pointer) +{ + NODE_RETURN(qt_QAbstractSocket_peerName_string_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_protocolTag0, Pointer) +{ + NODE_RETURN(qt_QAbstractSocket_protocolTag_string_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_readBufferSize0, int64) +{ + NODE_RETURN(qt_QAbstractSocket_readBufferSize_int64_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resume0, void) +{ + qt_QAbstractSocket_resume_void_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPauseMode0, void) +{ + qt_QAbstractSocket_setPauseMode_void_QAbstractSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setProtocolTag0, void) +{ + qt_QAbstractSocket_setProtocolTag_void_QAbstractSocket_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setReadBufferSize0, void) +{ + qt_QAbstractSocket_setReadBufferSize_void_QAbstractSocket_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64)); +} + +static NODE_IMPLEMENTATION(_n_setSocketOption0, void) +{ + qt_QAbstractSocket_setSocketOption_void_QAbstractSocket_int_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_socketOption0, Pointer) +{ + NODE_RETURN(qt_QAbstractSocket_socketOption_QVariant_QAbstractSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_socketType0, int) +{ + NODE_RETURN(qt_QAbstractSocket_socketType_int_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_state0, int) +{ + NODE_RETURN(qt_QAbstractSocket_state_int_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_waitForConnected0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_waitForConnected_bool_QAbstractSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForDisconnected0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_waitForDisconnected_bool_QAbstractSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_bytesAvailable0, int64) +{ + NODE_RETURN(qt_QAbstractSocket_bytesAvailable_int64_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesToWrite0, int64) +{ + NODE_RETURN(qt_QAbstractSocket_bytesToWrite_int64_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_close0, void) +{ + qt_QAbstractSocket_close_void_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isSequential0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_isSequential_bool_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_waitForBytesWritten0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_waitForBytesWritten_bool_QAbstractSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForReadyRead0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_waitForReadyRead_bool_QAbstractSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setLocalAddress0, void) +{ + qt_QAbstractSocket_setLocalAddress_void_QAbstractSocket_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPeerAddress0, void) +{ + qt_QAbstractSocket_setPeerAddress_void_QAbstractSocket_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPeerName0, void) +{ + qt_QAbstractSocket_setPeerName_void_QAbstractSocket_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSocketError0, void) +{ + qt_QAbstractSocket_setSocketError_void_QAbstractSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setSocketState0, void) +{ + qt_QAbstractSocket_setSocketState_void_QAbstractSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_skipData0, int64) +{ + NODE_RETURN(qt_QAbstractSocket_skipData_int64_QAbstractSocket_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_atEnd0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_atEnd_bool_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canReadLine0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_canReadLine_bool_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_open0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_open_bool_QAbstractSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_pos0, int64) +{ + NODE_RETURN(qt_QAbstractSocket_pos_int64_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_reset0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_reset_bool_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_seek0, bool) +{ + NODE_RETURN(qt_QAbstractSocket_seek_bool_QAbstractSocket_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_size0, int64) +{ + NODE_RETURN(qt_QAbstractSocket_size_int64_QAbstractSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QAbstractSocketType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QAbstractSocket_QAbstractSocket_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + new Alias(c, "NetworkLayerProtocol", "int"), + new SymbolicConstant(c, "IPv4Protocol", "int", Value(int(QAbstractSocket::IPv4Protocol))), + new SymbolicConstant(c, "IPv6Protocol", "int", Value(int(QAbstractSocket::IPv6Protocol))), + new SymbolicConstant(c, "AnyIPProtocol", "int", Value(int(QAbstractSocket::AnyIPProtocol))), + new SymbolicConstant(c, "UnknownNetworkLayerProtocol", "int", Value(int(QAbstractSocket::UnknownNetworkLayerProtocol))), + new Alias(c, "SocketError", "int"), + new SymbolicConstant(c, "ConnectionRefusedError", "int", Value(int(QAbstractSocket::ConnectionRefusedError))), + new SymbolicConstant(c, "RemoteHostClosedError", "int", Value(int(QAbstractSocket::RemoteHostClosedError))), + new SymbolicConstant(c, "HostNotFoundError", "int", Value(int(QAbstractSocket::HostNotFoundError))), + new SymbolicConstant(c, "SocketAccessError", "int", Value(int(QAbstractSocket::SocketAccessError))), + new SymbolicConstant(c, "SocketResourceError", "int", Value(int(QAbstractSocket::SocketResourceError))), + new SymbolicConstant(c, "SocketTimeoutError", "int", Value(int(QAbstractSocket::SocketTimeoutError))), + new SymbolicConstant(c, "DatagramTooLargeError", "int", Value(int(QAbstractSocket::DatagramTooLargeError))), + new SymbolicConstant(c, "NetworkError", "int", Value(int(QAbstractSocket::NetworkError))), + new SymbolicConstant(c, "AddressInUseError", "int", Value(int(QAbstractSocket::AddressInUseError))), + new SymbolicConstant(c, "SocketAddressNotAvailableError", "int", Value(int(QAbstractSocket::SocketAddressNotAvailableError))), + new SymbolicConstant(c, "UnsupportedSocketOperationError", "int", Value(int(QAbstractSocket::UnsupportedSocketOperationError))), + new SymbolicConstant(c, "ProxyAuthenticationRequiredError", "int", Value(int(QAbstractSocket::ProxyAuthenticationRequiredError))), + new SymbolicConstant(c, "SslHandshakeFailedError", "int", Value(int(QAbstractSocket::SslHandshakeFailedError))), + new SymbolicConstant(c, "UnfinishedSocketOperationError", "int", Value(int(QAbstractSocket::UnfinishedSocketOperationError))), + new SymbolicConstant(c, "ProxyConnectionRefusedError", "int", Value(int(QAbstractSocket::ProxyConnectionRefusedError))), + new SymbolicConstant(c, "ProxyConnectionClosedError", "int", Value(int(QAbstractSocket::ProxyConnectionClosedError))), + new SymbolicConstant(c, "ProxyConnectionTimeoutError", "int", Value(int(QAbstractSocket::ProxyConnectionTimeoutError))), + new SymbolicConstant(c, "ProxyNotFoundError", "int", Value(int(QAbstractSocket::ProxyNotFoundError))), + new SymbolicConstant(c, "ProxyProtocolError", "int", Value(int(QAbstractSocket::ProxyProtocolError))), + new SymbolicConstant(c, "OperationError", "int", Value(int(QAbstractSocket::OperationError))), + new SymbolicConstant(c, "SslInternalError", "int", Value(int(QAbstractSocket::SslInternalError))), + new SymbolicConstant(c, "SslInvalidUserDataError", "int", Value(int(QAbstractSocket::SslInvalidUserDataError))), + new SymbolicConstant(c, "TemporaryError", "int", Value(int(QAbstractSocket::TemporaryError))), + new SymbolicConstant(c, "UnknownSocketError", "int", Value(int(QAbstractSocket::UnknownSocketError))), + new Alias(c, "SocketState", "int"), + new SymbolicConstant(c, "UnconnectedState", "int", Value(int(QAbstractSocket::UnconnectedState))), + new SymbolicConstant(c, "HostLookupState", "int", Value(int(QAbstractSocket::HostLookupState))), + new SymbolicConstant(c, "ConnectingState", "int", Value(int(QAbstractSocket::ConnectingState))), + new SymbolicConstant(c, "ConnectedState", "int", Value(int(QAbstractSocket::ConnectedState))), + new SymbolicConstant(c, "BoundState", "int", Value(int(QAbstractSocket::BoundState))), + new SymbolicConstant(c, "ClosingState", "int", Value(int(QAbstractSocket::ClosingState))), + new SymbolicConstant(c, "ListeningState", "int", Value(int(QAbstractSocket::ListeningState))), + new Alias(c, "SocketType", "int"), + new SymbolicConstant(c, "TcpSocket", "int", Value(int(QAbstractSocket::TcpSocket))), + new SymbolicConstant(c, "UdpSocket", "int", Value(int(QAbstractSocket::UdpSocket))), + new SymbolicConstant(c, "SctpSocket", "int", Value(int(QAbstractSocket::SctpSocket))), + new SymbolicConstant(c, "UnknownSocketType", "int", Value(int(QAbstractSocket::UnknownSocketType))), + // member functions + new Function(c, "QAbstractSocket", _n_QAbstractSocket0, None, Compiled, qt_QAbstractSocket_QAbstractSocket_QAbstractSocket_QAbstractSocket_int_QObject, Return, "qt.QAbstractSocket", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "socketType", "int"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "abort", _n_abort0, None, Compiled, qt_QAbstractSocket_abort_void_QAbstractSocket, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + // MISSING: bind (bool; QAbstractSocket this, QHostAddress address, "quint16" port, flags QAbstractSocket::BindMode mode) + // MISSING: bind (bool; QAbstractSocket this, flags QHostAddress::SpecialAddress addr, "quint16" port, flags QAbstractSocket::BindMode mode) + // MISSING: bind (bool; QAbstractSocket this, "quint16" port, flags QAbstractSocket::BindMode mode) + // MISSING: connectToHost (void; QAbstractSocket this, string hostName, "quint16" port, flags QIODeviceBase::OpenMode openMode, flags QAbstractSocket::NetworkLayerProtocol protocol) + // MISSING: connectToHost (void; QAbstractSocket this, QHostAddress address, "quint16" port, flags QIODeviceBase::OpenMode openMode) + _func[0] = new MemberFunction(c, "disconnectFromHost", _n_disconnectFromHost0, None, Compiled, qt_QAbstractSocket_disconnectFromHost_void_QAbstractSocket, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + new Function(c, "error", _n_error0, None, Compiled, qt_QAbstractSocket_error_int_QAbstractSocket, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + new Function(c, "flush", _n_flush0, None, Compiled, qt_QAbstractSocket_flush_bool_QAbstractSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QAbstractSocket_isValid_bool_QAbstractSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + new Function(c, "localAddress", _n_localAddress0, None, Compiled, qt_QAbstractSocket_localAddress_QHostAddress_QAbstractSocket, Return, "qt.QHostAddress", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + // MISSING: localPort ("quint16"; QAbstractSocket this) + new Function(c, "pauseMode", _n_pauseMode0, None, Compiled, qt_QAbstractSocket_pauseMode_int_QAbstractSocket, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + new Function(c, "peerAddress", _n_peerAddress0, None, Compiled, qt_QAbstractSocket_peerAddress_QHostAddress_QAbstractSocket, Return, "qt.QHostAddress", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + new Function(c, "peerName", _n_peerName0, None, Compiled, qt_QAbstractSocket_peerName_string_QAbstractSocket, Return, "string", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + // MISSING: peerPort ("quint16"; QAbstractSocket this) + new Function(c, "protocolTag", _n_protocolTag0, None, Compiled, qt_QAbstractSocket_protocolTag_string_QAbstractSocket, Return, "string", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + // MISSING: proxy ("QNetworkProxy"; QAbstractSocket this) + new Function(c, "readBufferSize", _n_readBufferSize0, None, Compiled, qt_QAbstractSocket_readBufferSize_int64_QAbstractSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + _func[1] = new MemberFunction(c, "resume", _n_resume0, None, Compiled, qt_QAbstractSocket_resume_void_QAbstractSocket, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + new Function(c, "setPauseMode", _n_setPauseMode0, None, Compiled, qt_QAbstractSocket_setPauseMode_void_QAbstractSocket_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "pauseMode", "int"), End), + new Function(c, "setProtocolTag", _n_setProtocolTag0, None, Compiled, qt_QAbstractSocket_setProtocolTag_void_QAbstractSocket_string, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "tag", "string"), End), + // MISSING: setProxy (void; QAbstractSocket this, "const QNetworkProxy &" networkProxy) + _func[2] = new MemberFunction(c, "setReadBufferSize", _n_setReadBufferSize0, None, Compiled, qt_QAbstractSocket_setReadBufferSize_void_QAbstractSocket_int64, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "size", "int64"), End), + // MISSING: setSocketDescriptor (bool; QAbstractSocket this, "qintptr" socketDescriptor, flags QAbstractSocket::SocketState socketState, flags QIODeviceBase::OpenMode openMode) + _func[3] = new MemberFunction(c, "setSocketOption", _n_setSocketOption0, None, Compiled, qt_QAbstractSocket_setSocketOption_void_QAbstractSocket_int_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "option", "int"), new Param(c, "value", "qt.QVariant"), End), + // MISSING: socketDescriptor ("qintptr"; QAbstractSocket this) + _func[4] = new MemberFunction(c, "socketOption", _n_socketOption0, None, Compiled, qt_QAbstractSocket_socketOption_QVariant_QAbstractSocket_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "option", "int"), End), + new Function(c, "socketType", _n_socketType0, None, Compiled, qt_QAbstractSocket_socketType_int_QAbstractSocket, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + new Function(c, "state", _n_state0, None, Compiled, qt_QAbstractSocket_state_int_QAbstractSocket, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + _func[5] = new MemberFunction(c, "waitForConnected", _n_waitForConnected0, None, Compiled, qt_QAbstractSocket_waitForConnected_bool_QAbstractSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[6] = new MemberFunction(c, "waitForDisconnected", _n_waitForDisconnected0, None, Compiled, qt_QAbstractSocket_waitForDisconnected_bool_QAbstractSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[7] = new MemberFunction(c, "bytesAvailable", _n_bytesAvailable0, None, Compiled, qt_QAbstractSocket_bytesAvailable_int64_QAbstractSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + _func[8] = new MemberFunction(c, "bytesToWrite", _n_bytesToWrite0, None, Compiled, qt_QAbstractSocket_bytesToWrite_int64_QAbstractSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + _func[9] = new MemberFunction(c, "close", _n_close0, None, Compiled, qt_QAbstractSocket_close_void_QAbstractSocket, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + _func[10] = new MemberFunction(c, "isSequential", _n_isSequential0, None, Compiled, qt_QAbstractSocket_isSequential_bool_QAbstractSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + _func[11] = new MemberFunction(c, "waitForBytesWritten", _n_waitForBytesWritten0, None, Compiled, qt_QAbstractSocket_waitForBytesWritten_bool_QAbstractSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[12] = new MemberFunction(c, "waitForReadyRead", _n_waitForReadyRead0, None, Compiled, qt_QAbstractSocket_waitForReadyRead_bool_QAbstractSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + new Function(c, "setLocalAddress", _n_setLocalAddress0, None, Compiled, qt_QAbstractSocket_setLocalAddress_void_QAbstractSocket_QHostAddress, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "address", "qt.QHostAddress"), End), + // MISSING: setLocalPort (void; QAbstractSocket this, "quint16" port) // protected + new Function(c, "setPeerAddress", _n_setPeerAddress0, None, Compiled, qt_QAbstractSocket_setPeerAddress_void_QAbstractSocket_QHostAddress, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "address", "qt.QHostAddress"), End), + new Function(c, "setPeerName", _n_setPeerName0, None, Compiled, qt_QAbstractSocket_setPeerName_void_QAbstractSocket_string, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "name", "string"), End), + // MISSING: setPeerPort (void; QAbstractSocket this, "quint16" port) // protected + new Function(c, "setSocketError", _n_setSocketError0, None, Compiled, qt_QAbstractSocket_setSocketError_void_QAbstractSocket_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "socketError", "int"), End), + new Function(c, "setSocketState", _n_setSocketState0, None, Compiled, qt_QAbstractSocket_setSocketState_void_QAbstractSocket_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "state", "int"), End), + // MISSING: readData (int64; QAbstractSocket this, "char *" data, int64 maxSize) // protected + // MISSING: readLineData (int64; QAbstractSocket this, "char *" data, int64 maxlen) // protected + _func[13] = new MemberFunction(c, "skipData", _n_skipData0, None, Compiled, qt_QAbstractSocket_skipData_int64_QAbstractSocket_int64, Return, "int64", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "maxSize", "int64"), End), + // MISSING: writeData (int64; QAbstractSocket this, "const char *" data, int64 size) // protected + _func[14] = new MemberFunction(c, "atEnd", _n_atEnd0, None, Compiled, qt_QAbstractSocket_atEnd_bool_QAbstractSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + _func[15] = new MemberFunction(c, "canReadLine", _n_canReadLine0, None, Compiled, qt_QAbstractSocket_canReadLine_bool_QAbstractSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + _func[16] = new MemberFunction(c, "open", _n_open0, None, Compiled, qt_QAbstractSocket_open_bool_QAbstractSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "mode", "int"), End), + _func[17] = new MemberFunction(c, "pos", _n_pos0, None, Compiled, qt_QAbstractSocket_pos_int64_QAbstractSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + _func[18] = new MemberFunction(c, "reset", _n_reset0, None, Compiled, qt_QAbstractSocket_reset_bool_QAbstractSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + _func[19] = new MemberFunction(c, "seek", _n_seek0, None, Compiled, qt_QAbstractSocket_seek_bool_QAbstractSocket_int64, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSocket"), new Param(c, "pos", "int64"), End), + _func[20] = new MemberFunction(c, "size", _n_size0, None, Compiled, qt_QAbstractSocket_size_int64_QAbstractSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QAbstractSocket"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QAbstractSocket::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QAbstractSpinBoxType.cpp b/src/lib/mu/MuQt6/QAbstractSpinBoxType.cpp new file mode 100644 index 000000000..5d36ed373 --- /dev/null +++ b/src/lib/mu/MuQt6/QAbstractSpinBoxType.cpp @@ -0,0 +1,1392 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QAbstractSpinBox::~MuQt_QAbstractSpinBox() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QAbstractSpinBox::MuQt_QAbstractSpinBox(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QAbstractSpinBox(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractSpinBox")); +} + +void MuQt_QAbstractSpinBox::stepBy(int steps) +{ + if (!_env) { QAbstractSpinBox::stepBy(steps); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(steps); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::stepBy(steps); + } +} + +bool MuQt_QAbstractSpinBox::event(QEvent * event_) +{ + if (!_env) return QAbstractSpinBox::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSpinBox::event(event_); + } +} + +QVariant MuQt_QAbstractSpinBox::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QAbstractSpinBox::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractSpinBox::inputMethodQuery(query); + } +} + +QSize MuQt_QAbstractSpinBox::minimumSizeHint() const +{ + if (!_env) return QAbstractSpinBox::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractSpinBox::minimumSizeHint(); + } +} + +QSize MuQt_QAbstractSpinBox::sizeHint() const +{ + if (!_env) return QAbstractSpinBox::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractSpinBox::sizeHint(); + } +} + +void MuQt_QAbstractSpinBox::changeEvent(QEvent * event) +{ + if (!_env) { QAbstractSpinBox::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::changeEvent(event); + } +} + +void MuQt_QAbstractSpinBox::closeEvent(QCloseEvent * event) +{ + if (!_env) { QAbstractSpinBox::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::closeEvent(event); + } +} + +void MuQt_QAbstractSpinBox::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QAbstractSpinBox::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::contextMenuEvent(event); + } +} + +void MuQt_QAbstractSpinBox::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QAbstractSpinBox::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::focusInEvent(event); + } +} + +void MuQt_QAbstractSpinBox::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QAbstractSpinBox::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::focusOutEvent(event); + } +} + +void MuQt_QAbstractSpinBox::hideEvent(QHideEvent * event) +{ + if (!_env) { QAbstractSpinBox::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::hideEvent(event); + } +} + +void MuQt_QAbstractSpinBox::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QAbstractSpinBox::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::keyPressEvent(event); + } +} + +void MuQt_QAbstractSpinBox::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QAbstractSpinBox::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::keyReleaseEvent(event); + } +} + +void MuQt_QAbstractSpinBox::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractSpinBox::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::mouseMoveEvent(event); + } +} + +void MuQt_QAbstractSpinBox::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractSpinBox::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::mousePressEvent(event); + } +} + +void MuQt_QAbstractSpinBox::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractSpinBox::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::mouseReleaseEvent(event); + } +} + +void MuQt_QAbstractSpinBox::paintEvent(QPaintEvent * event) +{ + if (!_env) { QAbstractSpinBox::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::paintEvent(event); + } +} + +void MuQt_QAbstractSpinBox::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QAbstractSpinBox::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::resizeEvent(event); + } +} + +void MuQt_QAbstractSpinBox::showEvent(QShowEvent * event) +{ + if (!_env) { QAbstractSpinBox::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::showEvent(event); + } +} + +void MuQt_QAbstractSpinBox::timerEvent(QTimerEvent * event) +{ + if (!_env) { QAbstractSpinBox::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::timerEvent(event); + } +} + +void MuQt_QAbstractSpinBox::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QAbstractSpinBox::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::wheelEvent(event); + } +} + +bool MuQt_QAbstractSpinBox::hasHeightForWidth() const +{ + if (!_env) return QAbstractSpinBox::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSpinBox::hasHeightForWidth(); + } +} + +int MuQt_QAbstractSpinBox::heightForWidth(int w) const +{ + if (!_env) return QAbstractSpinBox::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QAbstractSpinBox::heightForWidth(w); + } +} + +void MuQt_QAbstractSpinBox::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QAbstractSpinBox::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::dragEnterEvent(event); + } +} + +void MuQt_QAbstractSpinBox::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QAbstractSpinBox::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::dragLeaveEvent(event); + } +} + +void MuQt_QAbstractSpinBox::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QAbstractSpinBox::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::dragMoveEvent(event); + } +} + +void MuQt_QAbstractSpinBox::dropEvent(QDropEvent * event) +{ + if (!_env) { QAbstractSpinBox::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::dropEvent(event); + } +} + +bool MuQt_QAbstractSpinBox::focusNextPrevChild(bool next) +{ + if (!_env) return QAbstractSpinBox::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractSpinBox::focusNextPrevChild(next); + } +} + +void MuQt_QAbstractSpinBox::leaveEvent(QEvent * event) +{ + if (!_env) { QAbstractSpinBox::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::leaveEvent(event); + } +} + +void MuQt_QAbstractSpinBox::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QAbstractSpinBox::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::mouseDoubleClickEvent(event); + } +} + +void MuQt_QAbstractSpinBox::moveEvent(QMoveEvent * event) +{ + if (!_env) { QAbstractSpinBox::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::moveEvent(event); + } +} + +void MuQt_QAbstractSpinBox::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QAbstractSpinBox::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QAbstractSpinBox::tabletEvent(event); + } +} + +int MuQt_QAbstractSpinBox::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QAbstractSpinBox::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QAbstractSpinBox::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QAbstractSpinBoxType::QAbstractSpinBoxType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QAbstractSpinBoxType::~QAbstractSpinBoxType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QAbstractSpinBox_QAbstractSpinBox_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QAbstractSpinBox* w = object(widget)) + { + QAbstractSpinBoxType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractSpinBox"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QAbstractSpinBox_QAbstractSpinBox_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QAbstractSpinBox_QAbstractSpinBox_QAbstractSpinBox_QAbstractSpinBox_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QAbstractSpinBox(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QAbstractSpinBox_interpretText_void_QAbstractSpinBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + arg0->interpretText(); +} + +void qt_QAbstractSpinBox_stepBy_void_QAbstractSpinBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_steps) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + int arg1 = (int)(param_steps); + if (isMuQtObject(arg0)) arg0->QAbstractSpinBox::stepBy(arg1); + else arg0->stepBy(arg1); +} + +bool qt_QAbstractSpinBox_event_bool_QAbstractSpinBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? arg0->QAbstractSpinBox::event(arg1) : arg0->event(arg1); +} + +Pointer qt_QAbstractSpinBox_inputMethodQuery_QVariant_QAbstractSpinBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractSpinBox::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QAbstractSpinBox_minimumSizeHint_QSize_QAbstractSpinBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractSpinBox::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QAbstractSpinBox_sizeHint_QSize_QAbstractSpinBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractSpinBox::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QAbstractSpinBox_lineEdit_QLineEdit_QAbstractSpinBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + return makeinstance(c, ((MuQt_QAbstractSpinBox*)arg0)->lineEdit_pub(), "qt.QLineEdit"); +} + +void qt_QAbstractSpinBox_setLineEdit_void_QAbstractSpinBox_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_lineEdit) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QLineEdit * arg1 = object(param_lineEdit); + ((MuQt_QAbstractSpinBox*)arg0)->setLineEdit_pub(arg1); +} + +void qt_QAbstractSpinBox_changeEvent_void_QAbstractSpinBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->changeEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_closeEvent_void_QAbstractSpinBox_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->closeEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_contextMenuEvent_void_QAbstractSpinBox_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_focusInEvent_void_QAbstractSpinBox_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_focusOutEvent_void_QAbstractSpinBox_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_hideEvent_void_QAbstractSpinBox_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->hideEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_keyPressEvent_void_QAbstractSpinBox_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_keyReleaseEvent_void_QAbstractSpinBox_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_mouseMoveEvent_void_QAbstractSpinBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_mousePressEvent_void_QAbstractSpinBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_mouseReleaseEvent_void_QAbstractSpinBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_paintEvent_void_QAbstractSpinBox_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->paintEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_resizeEvent_void_QAbstractSpinBox_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_showEvent_void_QAbstractSpinBox_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->showEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_timerEvent_void_QAbstractSpinBox_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->timerEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_wheelEvent_void_QAbstractSpinBox_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->wheelEvent_pub(arg1); +} + +bool qt_QAbstractSpinBox_hasHeightForWidth_bool_QAbstractSpinBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QAbstractSpinBox::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QAbstractSpinBox_heightForWidth_int_QAbstractSpinBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QAbstractSpinBox::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +void qt_QAbstractSpinBox_dragEnterEvent_void_QAbstractSpinBox_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_dragLeaveEvent_void_QAbstractSpinBox_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_dragMoveEvent_void_QAbstractSpinBox_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_dropEvent_void_QAbstractSpinBox_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QAbstractSpinBox_focusNextPrevChild_bool_QAbstractSpinBox_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QAbstractSpinBox*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QAbstractSpinBox*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QAbstractSpinBox_leaveEvent_void_QAbstractSpinBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_mouseDoubleClickEvent_void_QAbstractSpinBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_moveEvent_void_QAbstractSpinBox_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->moveEvent_pub(arg1); +} + +void qt_QAbstractSpinBox_tabletEvent_void_QAbstractSpinBox_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAbstractSpinBox*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QAbstractSpinBox*)arg0)->tabletEvent_pub(arg1); +} + +int qt_QAbstractSpinBox_metric_int_QAbstractSpinBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractSpinBox* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QAbstractSpinBox*)arg0)->metric_pub_parent(arg1) : ((MuQt_QAbstractSpinBox*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QAbstractSpinBox0, Pointer) +{ + NODE_RETURN(qt_QAbstractSpinBox_QAbstractSpinBox_QAbstractSpinBox_QAbstractSpinBox_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_interpretText0, void) +{ + qt_QAbstractSpinBox_interpretText_void_QAbstractSpinBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_stepBy0, void) +{ + qt_QAbstractSpinBox_stepBy_void_QAbstractSpinBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QAbstractSpinBox_event_bool_QAbstractSpinBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QAbstractSpinBox_inputMethodQuery_QVariant_QAbstractSpinBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractSpinBox_minimumSizeHint_QSize_QAbstractSpinBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QAbstractSpinBox_sizeHint_QSize_QAbstractSpinBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_lineEdit0, Pointer) +{ + NODE_RETURN(qt_QAbstractSpinBox_lineEdit_QLineEdit_QAbstractSpinBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setLineEdit0, void) +{ + qt_QAbstractSpinBox_setLineEdit_void_QAbstractSpinBox_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QAbstractSpinBox_changeEvent_void_QAbstractSpinBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QAbstractSpinBox_closeEvent_void_QAbstractSpinBox_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QAbstractSpinBox_contextMenuEvent_void_QAbstractSpinBox_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QAbstractSpinBox_focusInEvent_void_QAbstractSpinBox_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QAbstractSpinBox_focusOutEvent_void_QAbstractSpinBox_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QAbstractSpinBox_hideEvent_void_QAbstractSpinBox_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QAbstractSpinBox_keyPressEvent_void_QAbstractSpinBox_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QAbstractSpinBox_keyReleaseEvent_void_QAbstractSpinBox_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QAbstractSpinBox_mouseMoveEvent_void_QAbstractSpinBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QAbstractSpinBox_mousePressEvent_void_QAbstractSpinBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QAbstractSpinBox_mouseReleaseEvent_void_QAbstractSpinBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QAbstractSpinBox_paintEvent_void_QAbstractSpinBox_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QAbstractSpinBox_resizeEvent_void_QAbstractSpinBox_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QAbstractSpinBox_showEvent_void_QAbstractSpinBox_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QAbstractSpinBox_timerEvent_void_QAbstractSpinBox_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QAbstractSpinBox_wheelEvent_void_QAbstractSpinBox_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QAbstractSpinBox_hasHeightForWidth_bool_QAbstractSpinBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QAbstractSpinBox_heightForWidth_int_QAbstractSpinBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QAbstractSpinBox_dragEnterEvent_void_QAbstractSpinBox_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QAbstractSpinBox_dragLeaveEvent_void_QAbstractSpinBox_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QAbstractSpinBox_dragMoveEvent_void_QAbstractSpinBox_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QAbstractSpinBox_dropEvent_void_QAbstractSpinBox_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QAbstractSpinBox_focusNextPrevChild_bool_QAbstractSpinBox_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QAbstractSpinBox_leaveEvent_void_QAbstractSpinBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QAbstractSpinBox_mouseDoubleClickEvent_void_QAbstractSpinBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QAbstractSpinBox_moveEvent_void_QAbstractSpinBox_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QAbstractSpinBox_tabletEvent_void_QAbstractSpinBox_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QAbstractSpinBox_metric_int_QAbstractSpinBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QAbstractSpinBoxType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QAbstractSpinBox_QAbstractSpinBox_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QAbstractSpinBox", _n_QAbstractSpinBox0, None, Compiled, qt_QAbstractSpinBox_QAbstractSpinBox_QAbstractSpinBox_QAbstractSpinBox_QWidget, Return, "qt.QAbstractSpinBox", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: alignment (flags Qt::Alignment; QAbstractSpinBox this) + // PROP: buttonSymbols (flags QAbstractSpinBox::ButtonSymbols; QAbstractSpinBox this) + // PROP: correctionMode (flags QAbstractSpinBox::CorrectionMode; QAbstractSpinBox this) + // PROP: hasAcceptableInput (bool; QAbstractSpinBox this) + // PROP: hasFrame (bool; QAbstractSpinBox this) + new Function(c, "interpretText", _n_interpretText0, None, Compiled, qt_QAbstractSpinBox_interpretText_void_QAbstractSpinBox, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), End), + // PROP: isAccelerated (bool; QAbstractSpinBox this) + // PROP: isGroupSeparatorShown (bool; QAbstractSpinBox this) + // PROP: isReadOnly (bool; QAbstractSpinBox this) + // PROP: keyboardTracking (bool; QAbstractSpinBox this) + // PROP: setAccelerated (void; QAbstractSpinBox this, bool on) + // PROP: setAlignment (void; QAbstractSpinBox this, flags Qt::Alignment flag) + // PROP: setButtonSymbols (void; QAbstractSpinBox this, flags QAbstractSpinBox::ButtonSymbols bs) + // PROP: setCorrectionMode (void; QAbstractSpinBox this, flags QAbstractSpinBox::CorrectionMode cm) + // PROP: setFrame (void; QAbstractSpinBox this, bool _p4) + // PROP: setGroupSeparatorShown (void; QAbstractSpinBox this, bool shown) + // PROP: setKeyboardTracking (void; QAbstractSpinBox this, bool kt) + // PROP: setReadOnly (void; QAbstractSpinBox this, bool r) + // PROP: setSpecialValueText (void; QAbstractSpinBox this, string txt) + // PROP: setWrapping (void; QAbstractSpinBox this, bool w) + // PROP: specialValueText (string; QAbstractSpinBox this) + _func[0] = new MemberFunction(c, "stepBy", _n_stepBy0, None, Compiled, qt_QAbstractSpinBox_stepBy_void_QAbstractSpinBox_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "steps", "int"), End), + // PROP: text (string; QAbstractSpinBox this) + // MISSING: validate (flags QValidator::State; QAbstractSpinBox this, string input, "int &" pos) + // PROP: wrapping (bool; QAbstractSpinBox this) + _func[1] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QAbstractSpinBox_event_bool_QAbstractSpinBox_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event_", "qt.QEvent"), End), + _func[2] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QAbstractSpinBox_inputMethodQuery_QVariant_QAbstractSpinBox_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "query", "int"), End), + _func[3] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QAbstractSpinBox_minimumSizeHint_QSize_QAbstractSpinBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), End), + _func[4] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QAbstractSpinBox_sizeHint_QSize_QAbstractSpinBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), End), + // MISSING: initStyleOption (void; QAbstractSpinBox this, "QStyleOptionSpinBox *" option) // protected + new Function(c, "lineEdit", _n_lineEdit0, None, Compiled, qt_QAbstractSpinBox_lineEdit_QLineEdit_QAbstractSpinBox, Return, "qt.QLineEdit", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), End), + new Function(c, "setLineEdit", _n_setLineEdit0, None, Compiled, qt_QAbstractSpinBox_setLineEdit_void_QAbstractSpinBox_QLineEdit, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "lineEdit", "qt.QLineEdit"), End), + _func[5] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QAbstractSpinBox_changeEvent_void_QAbstractSpinBox_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QEvent"), End), + _func[6] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QAbstractSpinBox_closeEvent_void_QAbstractSpinBox_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[7] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QAbstractSpinBox_contextMenuEvent_void_QAbstractSpinBox_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[8] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QAbstractSpinBox_focusInEvent_void_QAbstractSpinBox_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[9] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QAbstractSpinBox_focusOutEvent_void_QAbstractSpinBox_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[10] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QAbstractSpinBox_hideEvent_void_QAbstractSpinBox_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QHideEvent"), End), + _func[11] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QAbstractSpinBox_keyPressEvent_void_QAbstractSpinBox_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[12] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QAbstractSpinBox_keyReleaseEvent_void_QAbstractSpinBox_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[13] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QAbstractSpinBox_mouseMoveEvent_void_QAbstractSpinBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[14] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QAbstractSpinBox_mousePressEvent_void_QAbstractSpinBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[15] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QAbstractSpinBox_mouseReleaseEvent_void_QAbstractSpinBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[16] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QAbstractSpinBox_paintEvent_void_QAbstractSpinBox_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[17] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QAbstractSpinBox_resizeEvent_void_QAbstractSpinBox_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[18] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QAbstractSpinBox_showEvent_void_QAbstractSpinBox_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QShowEvent"), End), + _func[19] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QAbstractSpinBox_timerEvent_void_QAbstractSpinBox_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[20] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QAbstractSpinBox_wheelEvent_void_QAbstractSpinBox_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QWheelEvent"), End), + _func[21] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QAbstractSpinBox_hasHeightForWidth_bool_QAbstractSpinBox, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), End), + _func[22] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QAbstractSpinBox_heightForWidth_int_QAbstractSpinBox_int, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "w", "int"), End), + // MISSING: paintEngine ("QPaintEngine *"; QAbstractSpinBox this) + // MISSING: actionEvent (void; QAbstractSpinBox this, "QActionEvent *" event) // protected + _func[23] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QAbstractSpinBox_dragEnterEvent_void_QAbstractSpinBox_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[24] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QAbstractSpinBox_dragLeaveEvent_void_QAbstractSpinBox_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[25] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QAbstractSpinBox_dragMoveEvent_void_QAbstractSpinBox_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[26] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QAbstractSpinBox_dropEvent_void_QAbstractSpinBox_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QAbstractSpinBox this, "QEnterEvent *" event) // protected + _func[27] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QAbstractSpinBox_focusNextPrevChild_bool_QAbstractSpinBox_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "next", "bool"), End), + // MISSING: inputMethodEvent (void; QAbstractSpinBox this, "QInputMethodEvent *" event) // protected + _func[28] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QAbstractSpinBox_leaveEvent_void_QAbstractSpinBox_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QEvent"), End), + _func[29] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QAbstractSpinBox_mouseDoubleClickEvent_void_QAbstractSpinBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[30] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QAbstractSpinBox_moveEvent_void_QAbstractSpinBox_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QAbstractSpinBox this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[31] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QAbstractSpinBox_tabletEvent_void_QAbstractSpinBox_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "event", "qt.QTabletEvent"), End), + // MISSING: initPainter (void; QAbstractSpinBox this, "QPainter *" painter) // protected + _func[32] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QAbstractSpinBox_metric_int_QAbstractSpinBox_int, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractSpinBox"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QAbstractSpinBox::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QAbstractTableModelType.cpp b/src/lib/mu/MuQt6/QAbstractTableModelType.cpp new file mode 100644 index 000000000..edf4aa7d3 --- /dev/null +++ b/src/lib/mu/MuQt6/QAbstractTableModelType.cpp @@ -0,0 +1,1221 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QAbstractTableModel::~MuQt_QAbstractTableModel() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QAbstractTableModel::MuQt_QAbstractTableModel(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QAbstractTableModel(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractTableModel")); +} + +bool MuQt_QAbstractTableModel::dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) +{ + if (!_env) return QAbstractTableModel::dropMimeData(data, action, row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,data,"qt.QMimeData")); + args[2] = Value(int(action)); + args[3] = Value(row); + args[4] = Value(column); + args[5] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::dropMimeData(data, action, row, column, parent); + } +} + +Qt::ItemFlags MuQt_QAbstractTableModel::flags(const QModelIndex & index) const +{ + if (!_env) return QAbstractTableModel::flags(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (Qt::ItemFlags)(rval._int); + } + else + { + return QAbstractTableModel::flags(index); + } +} + +QModelIndex MuQt_QAbstractTableModel::index(int row, int column, const QModelIndex & parent) const +{ + if (!_env) return QAbstractTableModel::index(row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(column); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractTableModel::index(row, column, parent); + } +} + +QModelIndex MuQt_QAbstractTableModel::sibling(int row, int column, const QModelIndex & idx) const +{ + if (!_env) return QAbstractTableModel::sibling(row, column, idx); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(column); + args[3] = Value(makeqtype(c,idx,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractTableModel::sibling(row, column, idx); + } +} + +QModelIndex MuQt_QAbstractTableModel::buddy(const QModelIndex & index) const +{ + if (!_env) return QAbstractTableModel::buddy(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractTableModel::buddy(index); + } +} + +bool MuQt_QAbstractTableModel::canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const +{ + if (!_env) return QAbstractTableModel::canDropMimeData(data, action, row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,data,"qt.QMimeData")); + args[2] = Value(int(action)); + args[3] = Value(row); + args[4] = Value(column); + args[5] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::canDropMimeData(data, action, row, column, parent); + } +} + +bool MuQt_QAbstractTableModel::canFetchMore(const QModelIndex & parent) const +{ + if (!_env) return QAbstractTableModel::canFetchMore(parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::canFetchMore(parent); + } +} + +bool MuQt_QAbstractTableModel::clearItemData(const QModelIndex & index) +{ + if (!_env) return QAbstractTableModel::clearItemData(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::clearItemData(index); + } +} + +int MuQt_QAbstractTableModel::columnCount(const QModelIndex & parent) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return defaultValue(); + } +} + +QVariant MuQt_QAbstractTableModel::data(const QModelIndex & index, int role) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(role); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +void MuQt_QAbstractTableModel::fetchMore(const QModelIndex & parent) +{ + if (!_env) { QAbstractTableModel::fetchMore(parent); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QAbstractTableModel::fetchMore(parent); + } +} + +QVariant MuQt_QAbstractTableModel::headerData(int section, Qt::Orientation orientation, int role) const +{ + if (!_env) return QAbstractTableModel::headerData(section, orientation, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(section); + args[2] = Value(int(orientation)); + args[3] = Value(role); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractTableModel::headerData(section, orientation, role); + } +} + +bool MuQt_QAbstractTableModel::insertColumns(int column, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractTableModel::insertColumns(column, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::insertColumns(column, count, parent); + } +} + +bool MuQt_QAbstractTableModel::insertRows(int row, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractTableModel::insertRows(row, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::insertRows(row, count, parent); + } +} + +QModelIndexList MuQt_QAbstractTableModel::match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const +{ + if (!_env) return QAbstractTableModel::match(start, role, value, hits, flags); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,start,"qt.QModelIndex")); + args[2] = Value(role); + args[3] = Value(makeqtype(c,value,"qt.QVariant")); + args[4] = Value(hits); + args[5] = Value(int(flags)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QAbstractTableModel::match(start, role, value, hits, flags); + } +} + +QMimeData * MuQt_QAbstractTableModel::mimeData(const QModelIndexList & indexes) const +{ + if (!_env) return QAbstractTableModel::mimeData(indexes); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqmodelindexlist(c,indexes)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QAbstractTableModel::mimeData(indexes); + } +} + +QStringList MuQt_QAbstractTableModel::mimeTypes() const +{ + if (!_env) return QAbstractTableModel::mimeTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QAbstractTableModel::mimeTypes(); + } +} + +bool MuQt_QAbstractTableModel::moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) +{ + if (!_env) return QAbstractTableModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,sourceParent,"qt.QModelIndex")); + args[2] = Value(sourceColumn); + args[3] = Value(count); + args[4] = Value(makeqtype(c,destinationParent,"qt.QModelIndex")); + args[5] = Value(destinationChild); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); + } +} + +bool MuQt_QAbstractTableModel::moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) +{ + if (!_env) return QAbstractTableModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,sourceParent,"qt.QModelIndex")); + args[2] = Value(sourceRow); + args[3] = Value(count); + args[4] = Value(makeqtype(c,destinationParent,"qt.QModelIndex")); + args[5] = Value(destinationChild); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); + } +} + +bool MuQt_QAbstractTableModel::removeColumns(int column, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractTableModel::removeColumns(column, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::removeColumns(column, count, parent); + } +} + +bool MuQt_QAbstractTableModel::removeRows(int row, int count, const QModelIndex & parent) +{ + if (!_env) return QAbstractTableModel::removeRows(row, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::removeRows(row, count, parent); + } +} + +int MuQt_QAbstractTableModel::rowCount(const QModelIndex & parent) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return defaultValue(); + } +} + +bool MuQt_QAbstractTableModel::setData(const QModelIndex & index, const QVariant & value, int role) +{ + if (!_env) return QAbstractTableModel::setData(index, value, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,value,"qt.QVariant")); + args[3] = Value(role); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::setData(index, value, role); + } +} + +bool MuQt_QAbstractTableModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) +{ + if (!_env) return QAbstractTableModel::setHeaderData(section, orientation, value, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(5); + args[0] = Value(Pointer(_obj)); + args[1] = Value(section); + args[2] = Value(int(orientation)); + args[3] = Value(makeqtype(c,value,"qt.QVariant")); + args[4] = Value(role); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAbstractTableModel::setHeaderData(section, orientation, value, role); + } +} + +void MuQt_QAbstractTableModel::sort(int column, Qt::SortOrder order) +{ + if (!_env) { QAbstractTableModel::sort(column, order); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(int(order)); + Value rval = _env->call(F, args); + } + else + { + QAbstractTableModel::sort(column, order); + } +} + +QSize MuQt_QAbstractTableModel::span(const QModelIndex & index) const +{ + if (!_env) return QAbstractTableModel::span(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QAbstractTableModel::span(index); + } +} + +Qt::DropActions MuQt_QAbstractTableModel::supportedDragActions() const +{ + if (!_env) return QAbstractTableModel::supportedDragActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QAbstractTableModel::supportedDragActions(); + } +} + +Qt::DropActions MuQt_QAbstractTableModel::supportedDropActions() const +{ + if (!_env) return QAbstractTableModel::supportedDropActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QAbstractTableModel::supportedDropActions(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QAbstractTableModelType::QAbstractTableModelType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QAbstractTableModelType::~QAbstractTableModelType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QAbstractTableModel_QAbstractTableModel_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QAbstractTableModel* w = object(widget)) + { + QAbstractTableModelType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAbstractTableModel"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QAbstractTableModel_QAbstractTableModel_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QAbstractTableModel_QAbstractTableModel_QAbstractTableModel_QAbstractTableModel_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QAbstractTableModel(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +bool qt_QAbstractTableModel_dropMimeData_bool_QAbstractTableModel_QMimeData_int_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, int param_action, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QMimeData * arg1 = object(param_data); + Qt::DropAction arg2 = (Qt::DropAction)(param_action); + int arg3 = (int)(param_row); + int arg4 = (int)(param_column); + const QModelIndex arg5 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::dropMimeData(arg1, arg2, arg3, arg4, arg5) : arg0->dropMimeData(arg1, arg2, arg3, arg4, arg5); +} + +int qt_QAbstractTableModel_flags_int_QAbstractTableModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? int(arg0->QAbstractTableModel::flags(arg1)) : int(arg0->flags(arg1)); +} + +Pointer qt_QAbstractTableModel_index_QModelIndex_QAbstractTableModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractTableModel::index(arg1, arg2, arg3),"qt.QModelIndex") : makeqtype(c,arg0->index(arg1, arg2, arg3),"qt.QModelIndex"); +} + +Pointer qt_QAbstractTableModel_sibling_QModelIndex_QAbstractTableModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_idx) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QModelIndex arg3 = getqtype(param_idx); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractTableModel::sibling(arg1, arg2, arg3),"qt.QModelIndex") : makeqtype(c,arg0->sibling(arg1, arg2, arg3),"qt.QModelIndex"); +} + +Pointer qt_QAbstractTableModel_buddy_QModelIndex_QAbstractTableModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractTableModel::buddy(arg1),"qt.QModelIndex") : makeqtype(c,arg0->buddy(arg1),"qt.QModelIndex"); +} + +bool qt_QAbstractTableModel_canDropMimeData_bool_QAbstractTableModel_QMimeData_int_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, int param_action, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QMimeData * arg1 = object(param_data); + Qt::DropAction arg2 = (Qt::DropAction)(param_action); + int arg3 = (int)(param_row); + int arg4 = (int)(param_column); + const QModelIndex arg5 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::canDropMimeData(arg1, arg2, arg3, arg4, arg5) : arg0->canDropMimeData(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QAbstractTableModel_canFetchMore_bool_QAbstractTableModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::canFetchMore(arg1) : arg0->canFetchMore(arg1); +} + +bool qt_QAbstractTableModel_clearItemData_bool_QAbstractTableModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::clearItemData(arg1) : arg0->clearItemData(arg1); +} + +int qt_QAbstractTableModel_columnCount_int_QAbstractTableModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return arg0->columnCount(arg1); +} + +Pointer qt_QAbstractTableModel_data_QVariant_QAbstractTableModel_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + int arg2 = (int)(param_role); + return makeqtype(c,arg0->data(arg1, arg2),"qt.QVariant"); +} + +void qt_QAbstractTableModel_fetchMore_void_QAbstractTableModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + if (isMuQtObject(arg0)) arg0->QAbstractTableModel::fetchMore(arg1); + else arg0->fetchMore(arg1); +} + +Pointer qt_QAbstractTableModel_headerData_QVariant_QAbstractTableModel_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_section, int param_orientation, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + int arg1 = (int)(param_section); + Qt::Orientation arg2 = (Qt::Orientation)(param_orientation); + int arg3 = (int)(param_role); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractTableModel::headerData(arg1, arg2, arg3),"qt.QVariant") : makeqtype(c,arg0->headerData(arg1, arg2, arg3),"qt.QVariant"); +} + +bool qt_QAbstractTableModel_insertColumns_bool_QAbstractTableModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::insertColumns(arg1, arg2, arg3) : arg0->insertColumns(arg1, arg2, arg3); +} + +bool qt_QAbstractTableModel_insertRows_bool_QAbstractTableModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::insertRows(arg1, arg2, arg3) : arg0->insertRows(arg1, arg2, arg3); +} + +Pointer qt_QAbstractTableModel_match_qt__QModelIndexBSB_ESB__QAbstractTableModel_QModelIndex_int_QVariant_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_start, int param_role, Pointer param_value, int param_hits, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_start); + int arg2 = (int)(param_role); + const QVariant arg3 = getqtype(param_value); + int arg4 = (int)(param_hits); + Qt::MatchFlags arg5 = (Qt::MatchFlags)(param_flags); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,arg0->QAbstractTableModel::match(arg1, arg2, arg3, arg4, arg5)) : makeqmodelindexlist(c,arg0->match(arg1, arg2, arg3, arg4, arg5)); +} + +Pointer qt_QAbstractTableModel_mimeData_QMimeData_QAbstractTableModel_qt__QModelIndexBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_indexes) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndexList arg1 = qmodelindexlist(param_indexes); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QAbstractTableModel::mimeData(arg1), "qt.QMimeData") : makeinstance(c, arg0->mimeData(arg1), "qt.QMimeData"); +} + +Pointer qt_QAbstractTableModel_mimeTypes_stringBSB_ESB__QAbstractTableModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestringlist(c,arg0->QAbstractTableModel::mimeTypes()) : makestringlist(c,arg0->mimeTypes()); +} + +bool qt_QAbstractTableModel_moveColumns_bool_QAbstractTableModel_QModelIndex_int_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceColumn, int param_count, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceColumn); + int arg3 = (int)(param_count); + const QModelIndex arg4 = getqtype(param_destinationParent); + int arg5 = (int)(param_destinationChild); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::moveColumns(arg1, arg2, arg3, arg4, arg5) : arg0->moveColumns(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QAbstractTableModel_moveRows_bool_QAbstractTableModel_QModelIndex_int_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceRow, int param_count, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceRow); + int arg3 = (int)(param_count); + const QModelIndex arg4 = getqtype(param_destinationParent); + int arg5 = (int)(param_destinationChild); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::moveRows(arg1, arg2, arg3, arg4, arg5) : arg0->moveRows(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QAbstractTableModel_removeColumns_bool_QAbstractTableModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::removeColumns(arg1, arg2, arg3) : arg0->removeColumns(arg1, arg2, arg3); +} + +bool qt_QAbstractTableModel_removeRows_bool_QAbstractTableModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::removeRows(arg1, arg2, arg3) : arg0->removeRows(arg1, arg2, arg3); +} + +int qt_QAbstractTableModel_rowCount_int_QAbstractTableModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return arg0->rowCount(arg1); +} + +bool qt_QAbstractTableModel_setData_bool_QAbstractTableModel_QModelIndex_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_value, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + const QVariant arg2 = getqtype(param_value); + int arg3 = (int)(param_role); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::setData(arg1, arg2, arg3) : arg0->setData(arg1, arg2, arg3); +} + +bool qt_QAbstractTableModel_setHeaderData_bool_QAbstractTableModel_int_int_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_section, int param_orientation, Pointer param_value, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + int arg1 = (int)(param_section); + Qt::Orientation arg2 = (Qt::Orientation)(param_orientation); + const QVariant arg3 = getqtype(param_value); + int arg4 = (int)(param_role); + return isMuQtObject(arg0) ? arg0->QAbstractTableModel::setHeaderData(arg1, arg2, arg3, arg4) : arg0->setHeaderData(arg1, arg2, arg3, arg4); +} + +void qt_QAbstractTableModel_sort_void_QAbstractTableModel_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_order) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + Qt::SortOrder arg2 = (Qt::SortOrder)(param_order); + if (isMuQtObject(arg0)) arg0->QAbstractTableModel::sort(arg1, arg2); + else arg0->sort(arg1, arg2); +} + +Pointer qt_QAbstractTableModel_span_QSize_QAbstractTableModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QAbstractTableModel::span(arg1),"qt.QSize") : makeqtype(c,arg0->span(arg1),"qt.QSize"); +} + +int qt_QAbstractTableModel_supportedDragActions_int_QAbstractTableModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QAbstractTableModel::supportedDragActions()) : int(arg0->supportedDragActions()); +} + +int qt_QAbstractTableModel_supportedDropActions_int_QAbstractTableModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractTableModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QAbstractTableModel::supportedDropActions()) : int(arg0->supportedDropActions()); +} + + +static NODE_IMPLEMENTATION(_n_QAbstractTableModel0, Pointer) +{ + NODE_RETURN(qt_QAbstractTableModel_QAbstractTableModel_QAbstractTableModel_QAbstractTableModel_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dropMimeData0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_dropMimeData_bool_QAbstractTableModel_QMimeData_int_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QAbstractTableModel_flags_int_QAbstractTableModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_index0, Pointer) +{ + NODE_RETURN(qt_QAbstractTableModel_index_QModelIndex_QAbstractTableModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sibling0, Pointer) +{ + NODE_RETURN(qt_QAbstractTableModel_sibling_QModelIndex_QAbstractTableModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_buddy0, Pointer) +{ + NODE_RETURN(qt_QAbstractTableModel_buddy_QModelIndex_QAbstractTableModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canDropMimeData0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_canDropMimeData_bool_QAbstractTableModel_QMimeData_int_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canFetchMore0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_canFetchMore_bool_QAbstractTableModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearItemData0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_clearItemData_bool_QAbstractTableModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_columnCount0, int) +{ + NODE_RETURN(qt_QAbstractTableModel_columnCount_int_QAbstractTableModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QAbstractTableModel_data_QVariant_QAbstractTableModel_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_fetchMore0, void) +{ + qt_QAbstractTableModel_fetchMore_void_QAbstractTableModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_headerData0, Pointer) +{ + NODE_RETURN(qt_QAbstractTableModel_headerData_QVariant_QAbstractTableModel_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_insertColumns0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_insertColumns_bool_QAbstractTableModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertRows0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_insertRows_bool_QAbstractTableModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_match0, Pointer) +{ + NODE_RETURN(qt_QAbstractTableModel_match_qt__QModelIndexBSB_ESB__QAbstractTableModel_QModelIndex_int_QVariant_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_mimeData0, Pointer) +{ + NODE_RETURN(qt_QAbstractTableModel_mimeData_QMimeData_QAbstractTableModel_qt__QModelIndexBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mimeTypes0, Pointer) +{ + NODE_RETURN(qt_QAbstractTableModel_mimeTypes_stringBSB_ESB__QAbstractTableModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_moveColumns0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_moveColumns_bool_QAbstractTableModel_QModelIndex_int_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, Pointer), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_moveRows0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_moveRows_bool_QAbstractTableModel_QModelIndex_int_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, Pointer), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_removeColumns0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_removeColumns_bool_QAbstractTableModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeRows0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_removeRows_bool_QAbstractTableModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rowCount0, int) +{ + NODE_RETURN(qt_QAbstractTableModel_rowCount_int_QAbstractTableModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setData0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_setData_bool_QAbstractTableModel_QModelIndex_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_setHeaderData0, bool) +{ + NODE_RETURN(qt_QAbstractTableModel_setHeaderData_bool_QAbstractTableModel_int_int_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_sort0, void) +{ + qt_QAbstractTableModel_sort_void_QAbstractTableModel_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_span0, Pointer) +{ + NODE_RETURN(qt_QAbstractTableModel_span_QSize_QAbstractTableModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportedDragActions0, int) +{ + NODE_RETURN(qt_QAbstractTableModel_supportedDragActions_int_QAbstractTableModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportedDropActions0, int) +{ + NODE_RETURN(qt_QAbstractTableModel_supportedDropActions_int_QAbstractTableModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QAbstractTableModelType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QAbstractTableModel_QAbstractTableModel_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QAbstractTableModel", _n_QAbstractTableModel0, None, Compiled, qt_QAbstractTableModel_QAbstractTableModel_QAbstractTableModel_QAbstractTableModel_QObject, Return, "qt.QAbstractTableModel", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "parent", "qt.QObject"), End), + _func[0] = new MemberFunction(c, "dropMimeData", _n_dropMimeData0, None, Compiled, qt_QAbstractTableModel_dropMimeData_bool_QAbstractTableModel_QMimeData_int_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[1] = new MemberFunction(c, "flags", _n_flags0, None, Compiled, qt_QAbstractTableModel_flags_int_QAbstractTableModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[2] = new MemberFunction(c, "index", _n_index0, None, Compiled, qt_QAbstractTableModel_index_QModelIndex_QAbstractTableModel_int_int_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[3] = new MemberFunction(c, "sibling", _n_sibling0, None, Compiled, qt_QAbstractTableModel_sibling_QModelIndex_QAbstractTableModel_int_int_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "idx", "qt.QModelIndex"), End), + _func[4] = new MemberFunction(c, "buddy", _n_buddy0, None, Compiled, qt_QAbstractTableModel_buddy_QModelIndex_QAbstractTableModel_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[5] = new MemberFunction(c, "canDropMimeData", _n_canDropMimeData0, None, Compiled, qt_QAbstractTableModel_canDropMimeData_bool_QAbstractTableModel_QMimeData_int_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[6] = new MemberFunction(c, "canFetchMore", _n_canFetchMore0, None, Compiled, qt_QAbstractTableModel_canFetchMore_bool_QAbstractTableModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[7] = new MemberFunction(c, "clearItemData", _n_clearItemData0, None, Compiled, qt_QAbstractTableModel_clearItemData_bool_QAbstractTableModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[8] = new MemberFunction(c, "columnCount", _n_columnCount0, None, Compiled, qt_QAbstractTableModel_columnCount_int_QAbstractTableModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[9] = new MemberFunction(c, "data", _n_data0, None, Compiled, qt_QAbstractTableModel_data_QVariant_QAbstractTableModel_QModelIndex_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "role", "int", Value((int)Qt::DisplayRole)), End), + _func[10] = new MemberFunction(c, "fetchMore", _n_fetchMore0, None, Compiled, qt_QAbstractTableModel_fetchMore_void_QAbstractTableModel_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[11] = new MemberFunction(c, "headerData", _n_headerData0, None, Compiled, qt_QAbstractTableModel_headerData_QVariant_QAbstractTableModel_int_int_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "section", "int"), new Param(c, "orientation", "int"), new Param(c, "role", "int", Value((int)Qt::DisplayRole)), End), + _func[12] = new MemberFunction(c, "insertColumns", _n_insertColumns0, None, Compiled, qt_QAbstractTableModel_insertColumns_bool_QAbstractTableModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "column", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[13] = new MemberFunction(c, "insertRows", _n_insertRows0, None, Compiled, qt_QAbstractTableModel_insertRows_bool_QAbstractTableModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "row", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + // MISSING: itemData ("QMap"; QAbstractTableModel this, QModelIndex index) + _func[14] = new MemberFunction(c, "match", _n_match0, None, Compiled, qt_QAbstractTableModel_match_qt__QModelIndexBSB_ESB__QAbstractTableModel_QModelIndex_int_QVariant_int_int, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "start", "qt.QModelIndex"), new Param(c, "role", "int"), new Param(c, "value", "qt.QVariant"), new Param(c, "hits", "int", Value((int)1)), new Param(c, "flags", "int", Value((int)Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap))), End), + _func[15] = new MemberFunction(c, "mimeData", _n_mimeData0, None, Compiled, qt_QAbstractTableModel_mimeData_QMimeData_QAbstractTableModel_qt__QModelIndexBSB_ESB_, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "indexes", "qt.QModelIndex[]"), End), + _func[16] = new MemberFunction(c, "mimeTypes", _n_mimeTypes0, None, Compiled, qt_QAbstractTableModel_mimeTypes_stringBSB_ESB__QAbstractTableModel, Return, "string[]", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), End), + _func[17] = new MemberFunction(c, "moveColumns", _n_moveColumns0, None, Compiled, qt_QAbstractTableModel_moveColumns_bool_QAbstractTableModel_QModelIndex_int_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceColumn", "int"), new Param(c, "count", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + _func[18] = new MemberFunction(c, "moveRows", _n_moveRows0, None, Compiled, qt_QAbstractTableModel_moveRows_bool_QAbstractTableModel_QModelIndex_int_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceRow", "int"), new Param(c, "count", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + // MISSING: multiData (void; QAbstractTableModel this, QModelIndex index, "QModelRoleDataSpan" roleDataSpan) + _func[19] = new MemberFunction(c, "removeColumns", _n_removeColumns0, None, Compiled, qt_QAbstractTableModel_removeColumns_bool_QAbstractTableModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "column", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[20] = new MemberFunction(c, "removeRows", _n_removeRows0, None, Compiled, qt_QAbstractTableModel_removeRows_bool_QAbstractTableModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "row", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + // MISSING: roleNames ("QHash"; QAbstractTableModel this) + _func[21] = new MemberFunction(c, "rowCount", _n_rowCount0, None, Compiled, qt_QAbstractTableModel_rowCount_int_QAbstractTableModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[22] = new MemberFunction(c, "setData", _n_setData0, None, Compiled, qt_QAbstractTableModel_setData_bool_QAbstractTableModel_QModelIndex_QVariant_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "value", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::EditRole)), End), + _func[23] = new MemberFunction(c, "setHeaderData", _n_setHeaderData0, None, Compiled, qt_QAbstractTableModel_setHeaderData_bool_QAbstractTableModel_int_int_QVariant_int, Return, "bool", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "section", "int"), new Param(c, "orientation", "int"), new Param(c, "value", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::EditRole)), End), + // MISSING: setItemData (bool; QAbstractTableModel this, QModelIndex index, "const QMap &" roles) + _func[24] = new MemberFunction(c, "sort", _n_sort0, None, Compiled, qt_QAbstractTableModel_sort_void_QAbstractTableModel_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "column", "int"), new Param(c, "order", "int", Value((int)Qt::AscendingOrder)), End), + _func[25] = new MemberFunction(c, "span", _n_span0, None, Compiled, qt_QAbstractTableModel_span_QSize_QAbstractTableModel_QModelIndex, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[26] = new MemberFunction(c, "supportedDragActions", _n_supportedDragActions0, None, Compiled, qt_QAbstractTableModel_supportedDragActions_int_QAbstractTableModel, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), End), + _func[27] = new MemberFunction(c, "supportedDropActions", _n_supportedDropActions0, None, Compiled, qt_QAbstractTableModel_supportedDropActions_int_QAbstractTableModel, Return, "int", Parameters, new Param(c, "this", "qt.QAbstractTableModel"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QAbstractTableModel::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QActionGroupType.cpp b/src/lib/mu/MuQt6/QActionGroupType.cpp new file mode 100644 index 000000000..dcc98d2f9 --- /dev/null +++ b/src/lib/mu/MuQt6/QActionGroupType.cpp @@ -0,0 +1,419 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QActionGroup::~MuQt_QActionGroup() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QActionGroup::MuQt_QActionGroup(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QActionGroup(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QActionGroup")); +} + +bool MuQt_QActionGroup::event(QEvent * e) +{ + if (!_env) return QActionGroup::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QActionGroup::event(e); + } +} + +bool MuQt_QActionGroup::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QActionGroup::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QActionGroup::eventFilter(watched, event); + } +} + +void MuQt_QActionGroup::customEvent(QEvent * event) +{ + if (!_env) { QActionGroup::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QActionGroup::customEvent(event); + } +} + +void MuQt_QActionGroup::timerEvent(QTimerEvent * event) +{ + if (!_env) { QActionGroup::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QActionGroup::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QActionGroupType::QActionGroupType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QActionGroupType::~QActionGroupType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QActionGroup_QActionGroup_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QActionGroup* w = object(widget)) + { + QActionGroupType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QActionGroup"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QActionGroup_QActionGroup_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QActionGroup_QActionGroup_QActionGroup_QActionGroup_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QActionGroup(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QActionGroup_addAction_QAction_QActionGroup_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QActionGroup* arg0 = object(param_this); + QAction * arg1 = object(param_action); + return makeinstance(c, arg0->addAction(arg1), "qt.QAction"); +} + +Pointer qt_QActionGroup_addAction_QAction_QActionGroup_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QActionGroup* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + return makeinstance(c, arg0->addAction(arg1), "qt.QAction"); +} + +Pointer qt_QActionGroup_addAction_QAction_QActionGroup_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QActionGroup* arg0 = object(param_this); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + return makeinstance(c, arg0->addAction(arg1, arg2), "qt.QAction"); +} + +Pointer qt_QActionGroup_checkedAction_QAction_QActionGroup(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QActionGroup* arg0 = object(param_this); + return makeinstance(c, arg0->checkedAction(), "qt.QAction"); +} + +bool qt_QActionGroup_isExclusive_bool_QActionGroup(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QActionGroup* arg0 = object(param_this); + return arg0->isExclusive(); +} + +void qt_QActionGroup_removeAction_void_QActionGroup_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QActionGroup* arg0 = object(param_this); + QAction * arg1 = object(param_action); + arg0->removeAction(arg1); +} + +bool qt_QActionGroup_event_bool_QActionGroup_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QActionGroup* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QActionGroup::event(arg1) : arg0->event(arg1); +} + +bool qt_QActionGroup_eventFilter_bool_QActionGroup_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QActionGroup* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QActionGroup::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QActionGroup_customEvent_void_QActionGroup_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QActionGroup* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QActionGroup*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QActionGroup*)arg0)->customEvent_pub(arg1); +} + +void qt_QActionGroup_timerEvent_void_QActionGroup_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QActionGroup* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QActionGroup*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QActionGroup*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QActionGroup0, Pointer) +{ + NODE_RETURN(qt_QActionGroup_QActionGroup_QActionGroup_QActionGroup_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addAction0, Pointer) +{ + NODE_RETURN(qt_QActionGroup_addAction_QAction_QActionGroup_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addAction1, Pointer) +{ + NODE_RETURN(qt_QActionGroup_addAction_QAction_QActionGroup_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addAction2, Pointer) +{ + NODE_RETURN(qt_QActionGroup_addAction_QAction_QActionGroup_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_checkedAction0, Pointer) +{ + NODE_RETURN(qt_QActionGroup_checkedAction_QAction_QActionGroup(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isExclusive0, bool) +{ + NODE_RETURN(qt_QActionGroup_isExclusive_bool_QActionGroup(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeAction0, void) +{ + qt_QActionGroup_removeAction_void_QActionGroup_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QActionGroup_event_bool_QActionGroup_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QActionGroup_eventFilter_bool_QActionGroup_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QActionGroup_customEvent_void_QActionGroup_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QActionGroup_timerEvent_void_QActionGroup_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QActionGroupType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QActionGroup_QActionGroup_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QActionGroup", _n_QActionGroup0, None, Compiled, qt_QActionGroup_QActionGroup_QActionGroup_QActionGroup_QObject, Return, "qt.QActionGroup", Parameters, new Param(c, "this", "qt.QActionGroup"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: actions ("QList"; QActionGroup this) + new Function(c, "addAction", _n_addAction0, None, Compiled, qt_QActionGroup_addAction_QAction_QActionGroup_QAction, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QActionGroup"), new Param(c, "action", "qt.QAction"), End), + new Function(c, "addAction", _n_addAction1, None, Compiled, qt_QActionGroup_addAction_QAction_QActionGroup_string, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QActionGroup"), new Param(c, "text", "string"), End), + new Function(c, "addAction", _n_addAction2, None, Compiled, qt_QActionGroup_addAction_QAction_QActionGroup_QIcon_string, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QActionGroup"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), End), + new Function(c, "checkedAction", _n_checkedAction0, None, Compiled, qt_QActionGroup_checkedAction_QAction_QActionGroup, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QActionGroup"), End), + // PROP: exclusionPolicy (flags QActionGroup::ExclusionPolicy; QActionGroup this) + // PROP: isEnabled (bool; QActionGroup this) + new Function(c, "isExclusive", _n_isExclusive0, None, Compiled, qt_QActionGroup_isExclusive_bool_QActionGroup, Return, "bool", Parameters, new Param(c, "this", "qt.QActionGroup"), End), + // PROP: isVisible (bool; QActionGroup this) + new Function(c, "removeAction", _n_removeAction0, None, Compiled, qt_QActionGroup_removeAction_void_QActionGroup_QAction, Return, "void", Parameters, new Param(c, "this", "qt.QActionGroup"), new Param(c, "action", "qt.QAction"), End), + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QActionGroup_event_bool_QActionGroup_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QActionGroup"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QActionGroup_eventFilter_bool_QActionGroup_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QActionGroup"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QActionGroup this) + // MISSING: childEvent (void; QActionGroup this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QActionGroup this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QActionGroup_customEvent_void_QActionGroup_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QActionGroup"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QActionGroup this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QActionGroup_timerEvent_void_QActionGroup_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QActionGroup"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QActionGroup::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QActionType.cpp b/src/lib/mu/MuQt6/QActionType.cpp new file mode 100644 index 000000000..e83cfacaa --- /dev/null +++ b/src/lib/mu/MuQt6/QActionType.cpp @@ -0,0 +1,597 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QAction::~MuQt_QAction() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QAction::MuQt_QAction(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QAction(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAction")); +} + +MuQt_QAction::MuQt_QAction(Pointer muobj, const CallEnvironment* ce, const QString & text, QObject * parent) + : QAction(text, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAction")); +} + +MuQt_QAction::MuQt_QAction(Pointer muobj, const CallEnvironment* ce, const QIcon & icon, const QString & text, QObject * parent) + : QAction(icon, text, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAction")); +} + +bool MuQt_QAction::event(QEvent * e) +{ + if (!_env) return QAction::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAction::event(e); + } +} + +bool MuQt_QAction::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QAction::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QAction::eventFilter(watched, event); + } +} + +void MuQt_QAction::customEvent(QEvent * event) +{ + if (!_env) { QAction::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QAction::customEvent(event); + } +} + +void MuQt_QAction::timerEvent(QTimerEvent * event) +{ + if (!_env) { QAction::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QAction::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QActionType::QActionType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QActionType::~QActionType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QAction_QAction_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QAction* w = object(widget)) + { + QActionType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QAction"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QAction_QAction_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QAction_QAction_QAction_QAction_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QAction(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QAction_QAction_QAction_QAction_string_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QAction(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QAction_QAction_QAction_QAction_QIcon_string_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + QObject * arg3 = object(param_parent); + setobject(param_this, new MuQt_QAction(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QAction_actionGroup_QActionGroup_QAction(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + return makeinstance(c, arg0->actionGroup(), "qt.QActionGroup"); +} + +void qt_QAction_activate_void_QAction_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + QAction::ActionEvent arg1 = (QAction::ActionEvent)(param_event); + arg0->activate(arg1); +} + +Pointer qt_QAction_data_QVariant_QAction(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + return makeqtype(c,arg0->data(),"qt.QVariant"); +} + +bool qt_QAction_isSeparator_bool_QAction(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + return arg0->isSeparator(); +} + +Pointer qt_QAction_menu_QMenu_QAction(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + return makeinstance(c, arg0->menu(), "qt.QMenu"); +} + +void qt_QAction_setActionGroup_void_QAction_QActionGroup(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_group) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + QActionGroup * arg1 = object(param_group); + arg0->setActionGroup(arg1); +} + +void qt_QAction_setData_void_QAction_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + const QVariant arg1 = getqtype(param_data); + arg0->setData(arg1); +} + +void qt_QAction_setMenu_void_QAction_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_menu) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + QMenu * arg1 = object(param_menu); + arg0->setMenu(arg1); +} + +void qt_QAction_setSeparator_void_QAction_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_b) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + bool arg1 = (bool)(param_b); + arg0->setSeparator(arg1); +} + +void qt_QAction_setShortcut_void_QAction_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_shortcut) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + const QKeySequence arg1 = getqtype(param_shortcut); + arg0->setShortcut(arg1); +} + +void qt_QAction_setShortcuts_void_QAction_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_key) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + QKeySequence::StandardKey arg1 = (QKeySequence::StandardKey)(param_key); + arg0->setShortcuts(arg1); +} + +Pointer qt_QAction_shortcut_QKeySequence_QAction(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + return makeqtype(c,arg0->shortcut(),"qt.QKeySequence"); +} + +bool qt_QAction_showStatusText_bool_QAction_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + QObject * arg1 = object(param_object); + return arg0->showStatusText(arg1); +} + +bool qt_QAction_event_bool_QAction_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QAction*)arg0)->event_pub_parent(arg1) : ((MuQt_QAction*)arg0)->event_pub(arg1); +} + +bool qt_QAction_eventFilter_bool_QAction_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QAction::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QAction_customEvent_void_QAction_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAction*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QAction*)arg0)->customEvent_pub(arg1); +} + +void qt_QAction_timerEvent_void_QAction_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAction* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QAction*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QAction*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QAction0, Pointer) +{ + NODE_RETURN(qt_QAction_QAction_QAction_QAction_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QAction1, Pointer) +{ + NODE_RETURN(qt_QAction_QAction_QAction_QAction_string_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QAction2, Pointer) +{ + NODE_RETURN(qt_QAction_QAction_QAction_QAction_QIcon_string_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_actionGroup0, Pointer) +{ + NODE_RETURN(qt_QAction_actionGroup_QActionGroup_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_activate0, void) +{ + qt_QAction_activate_void_QAction_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QAction_data_QVariant_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSeparator0, bool) +{ + NODE_RETURN(qt_QAction_isSeparator_bool_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_menu0, Pointer) +{ + NODE_RETURN(qt_QAction_menu_QMenu_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setActionGroup0, void) +{ + qt_QAction_setActionGroup_void_QAction_QActionGroup(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setData0, void) +{ + qt_QAction_setData_void_QAction_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setMenu0, void) +{ + qt_QAction_setMenu_void_QAction_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSeparator0, void) +{ + qt_QAction_setSeparator_void_QAction_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setShortcut0, void) +{ + qt_QAction_setShortcut_void_QAction_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setShortcuts1, void) +{ + qt_QAction_setShortcuts_void_QAction_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_shortcut0, Pointer) +{ + NODE_RETURN(qt_QAction_shortcut_QKeySequence_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_showStatusText0, bool) +{ + NODE_RETURN(qt_QAction_showStatusText_bool_QAction_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QAction_event_bool_QAction_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QAction_eventFilter_bool_QAction_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QAction_customEvent_void_QAction_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QAction_timerEvent_void_QAction_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QActionType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QAction_QAction_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QAction", _n_QAction0, None, Compiled, qt_QAction_QAction_QAction_QAction_QObject, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QAction", _n_QAction1, None, Compiled, qt_QAction_QAction_QAction_QAction_string_QObject, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QAction", _n_QAction2, None, Compiled, qt_QAction_QAction_QAction_QAction_QIcon_string_QObject, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "actionGroup", _n_actionGroup0, None, Compiled, qt_QAction_actionGroup_QActionGroup_QAction, Return, "qt.QActionGroup", Parameters, new Param(c, "this", "qt.QAction"), End), + new Function(c, "activate", _n_activate0, None, Compiled, qt_QAction_activate_void_QAction_int, Return, "void", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "event", "int"), End), + // MISSING: associatedObjects ("QList"; QAction this) + // PROP: autoRepeat (bool; QAction this) + new Function(c, "data", _n_data0, None, Compiled, qt_QAction_data_QVariant_QAction, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QAction"), End), + // PROP: font (QFont; QAction this) + // PROP: icon (QIcon; QAction this) + // PROP: iconText (string; QAction this) + // PROP: isCheckable (bool; QAction this) + // PROP: isChecked (bool; QAction this) + // PROP: isEnabled (bool; QAction this) + // PROP: isIconVisibleInMenu (bool; QAction this) + new Function(c, "isSeparator", _n_isSeparator0, None, Compiled, qt_QAction_isSeparator_bool_QAction, Return, "bool", Parameters, new Param(c, "this", "qt.QAction"), End), + // PROP: isShortcutVisibleInContextMenu (bool; QAction this) + // PROP: isVisible (bool; QAction this) + new Function(c, "menu", _n_menu0, None, Compiled, qt_QAction_menu_QMenu_QAction, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QAction"), End), + // PROP: menuRole (flags QAction::MenuRole; QAction this) + // PROP: priority (flags QAction::Priority; QAction this) + new Function(c, "setActionGroup", _n_setActionGroup0, None, Compiled, qt_QAction_setActionGroup_void_QAction_QActionGroup, Return, "void", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "group", "qt.QActionGroup"), End), + // PROP: setAutoRepeat (void; QAction this, bool _p4) + // PROP: setCheckable (void; QAction this, bool _p4) + new Function(c, "setData", _n_setData0, None, Compiled, qt_QAction_setData_void_QAction_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "data", "qt.QVariant"), End), + // PROP: setFont (void; QAction this, QFont font) + // PROP: setIcon (void; QAction this, QIcon icon) + // PROP: setIconText (void; QAction this, string text) + // PROP: setIconVisibleInMenu (void; QAction this, bool visible) + new Function(c, "setMenu", _n_setMenu0, None, Compiled, qt_QAction_setMenu_void_QAction_QMenu, Return, "void", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "menu", "qt.QMenu"), End), + // PROP: setMenuRole (void; QAction this, flags QAction::MenuRole menuRole) + // PROP: setPriority (void; QAction this, flags QAction::Priority priority) + new Function(c, "setSeparator", _n_setSeparator0, None, Compiled, qt_QAction_setSeparator_void_QAction_bool, Return, "void", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "b", "bool"), End), + new Function(c, "setShortcut", _n_setShortcut0, None, Compiled, qt_QAction_setShortcut_void_QAction_QKeySequence, Return, "void", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "shortcut", "qt.QKeySequence"), End), + // PROP: setShortcutContext (void; QAction this, flags Qt::ShortcutContext context) + // PROP: setShortcutVisibleInContextMenu (void; QAction this, bool show) + // MISSING: setShortcuts (void; QAction this, "const QList &" shortcuts) + new Function(c, "setShortcuts", _n_setShortcuts1, None, Compiled, qt_QAction_setShortcuts_void_QAction_int, Return, "void", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "key", "int"), End), + // PROP: setStatusTip (void; QAction this, string statusTip) + // PROP: setText (void; QAction this, string text) + // PROP: setToolTip (void; QAction this, string tip) + // PROP: setWhatsThis (void; QAction this, string what) + new Function(c, "shortcut", _n_shortcut0, None, Compiled, qt_QAction_shortcut_QKeySequence_QAction, Return, "qt.QKeySequence", Parameters, new Param(c, "this", "qt.QAction"), End), + // PROP: shortcutContext (flags Qt::ShortcutContext; QAction this) + // MISSING: shortcuts ("QList"; QAction this) + new Function(c, "showStatusText", _n_showStatusText0, None, Compiled, qt_QAction_showStatusText_bool_QAction_QObject, Return, "bool", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "object", "qt.QObject"), End), + // PROP: statusTip (string; QAction this) + // PROP: text (string; QAction this) + // PROP: toolTip (string; QAction this) + // PROP: whatsThis (string; QAction this) + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QAction_event_bool_QAction_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QAction_eventFilter_bool_QAction_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QAction this) + // MISSING: childEvent (void; QAction this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QAction this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QAction_customEvent_void_QAction_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QAction this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QAction_timerEvent_void_QAction_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QAction"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QAction::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QApplicationType.cpp b/src/lib/mu/MuQt6/QApplicationType.cpp new file mode 100644 index 000000000..961bf7092 --- /dev/null +++ b/src/lib/mu/MuQt6/QApplicationType.cpp @@ -0,0 +1,499 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QApplication::~MuQt_QApplication() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +bool MuQt_QApplication::notify(QObject * receiver, QEvent * e) +{ + if (!_env) return QApplication::notify(receiver, e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,receiver,"qt.QObject")); + args[2] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QApplication::notify(receiver, e); + } +} + +bool MuQt_QApplication::event(QEvent * e) +{ + if (!_env) return QApplication::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QApplication::event(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QApplicationType::QApplicationType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QApplicationType::~QApplicationType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QApplication_QApplication_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QApplication* w = object(widget)) + { + QApplicationType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QApplication"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QApplication_QApplication_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +bool qt_QApplication_notify_bool_QApplication_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_receiver, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QApplication* arg0 = object(param_this); + QObject * arg1 = object(param_receiver); + QEvent * arg2 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QApplication::notify(arg1, arg2) : arg0->notify(arg1, arg2); +} + +bool qt_QApplication_event_bool_QApplication_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QApplication* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QApplication*)arg0)->event_pub_parent(arg1) : ((MuQt_QApplication*)arg0)->event_pub(arg1); +} + +Pointer qt_QApplication_activeModalWidget_QWidget(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QApplication::activeModalWidget(), "qt.QWidget"); +} + +Pointer qt_QApplication_activePopupWidget_QWidget(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QApplication::activePopupWidget(), "qt.QWidget"); +} + +Pointer qt_QApplication_activeWindow_QWidget(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QApplication::activeWindow(), "qt.QWidget"); +} + +void qt_QApplication_alert_void_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_widget, int param_msec) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg0 = object(param_widget); + int arg1 = (int)(param_msec); + QApplication::alert(arg0, arg1); +} + +void qt_QApplication_beep_void(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QApplication::beep(); +} + +int qt_QApplication_exec_int(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QApplication::exec(); +} + +Pointer qt_QApplication_focusWidget_QWidget(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QApplication::focusWidget(), "qt.QWidget"); +} + +Pointer qt_QApplication_font_QFont(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QApplication::font(),"qt.QFont"); +} + +Pointer qt_QApplication_font_QFont_QWidget(Mu::Thread& NODE_THREAD, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QWidget * arg0 = object(param_widget); + return makeqtype(c,QApplication::font(arg0),"qt.QFont"); +} + +bool qt_QApplication_isEffectEnabled_bool_int(Mu::Thread& NODE_THREAD, int param_effect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::UIEffect arg0 = (Qt::UIEffect)(param_effect); + return QApplication::isEffectEnabled(arg0); +} + +Pointer qt_QApplication_palette_QPalette_QWidget(Mu::Thread& NODE_THREAD, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QWidget * arg0 = object(param_widget); + return makeqtype(c,QApplication::palette(arg0),"qt.QPalette"); +} + +void qt_QApplication_setEffectEnabled_void_int_bool(Mu::Thread& NODE_THREAD, int param_effect, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::UIEffect arg0 = (Qt::UIEffect)(param_effect); + bool arg1 = (bool)(param_enable); + QApplication::setEffectEnabled(arg0, arg1); +} + +Pointer qt_QApplication_topLevelAt_QWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg0 = getqtype(param_point); + return makeinstance(c, QApplication::topLevelAt(arg0), "qt.QWidget"); +} + +Pointer qt_QApplication_topLevelAt_QWidget_int_int(Mu::Thread& NODE_THREAD, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_x); + int arg1 = (int)(param_y); + return makeinstance(c, QApplication::topLevelAt(arg0, arg1), "qt.QWidget"); +} + +Pointer qt_QApplication_widgetAt_QWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg0 = getqtype(param_point); + return makeinstance(c, QApplication::widgetAt(arg0), "qt.QWidget"); +} + +Pointer qt_QApplication_widgetAt_QWidget_int_int(Mu::Thread& NODE_THREAD, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_x); + int arg1 = (int)(param_y); + return makeinstance(c, QApplication::widgetAt(arg0, arg1), "qt.QWidget"); +} + + +static NODE_IMPLEMENTATION(_n_notify0, bool) +{ + NODE_RETURN(qt_QApplication_notify_bool_QApplication_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QApplication_event_bool_QApplication_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_activeModalWidget0, Pointer) +{ + NODE_RETURN(qt_QApplication_activeModalWidget_QWidget(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_activePopupWidget0, Pointer) +{ + NODE_RETURN(qt_QApplication_activePopupWidget_QWidget(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_activeWindow0, Pointer) +{ + NODE_RETURN(qt_QApplication_activeWindow_QWidget(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_alert0, void) +{ + qt_QApplication_alert_void_QWidget_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_beep0, void) +{ + qt_QApplication_beep_void(NODE_THREAD); +} + +static NODE_IMPLEMENTATION(_n_exec0, int) +{ + NODE_RETURN(qt_QApplication_exec_int(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_focusWidget0, Pointer) +{ + NODE_RETURN(qt_QApplication_focusWidget_QWidget(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_font0, Pointer) +{ + NODE_RETURN(qt_QApplication_font_QFont(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_font1, Pointer) +{ + NODE_RETURN(qt_QApplication_font_QFont_QWidget(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEffectEnabled0, bool) +{ + NODE_RETURN(qt_QApplication_isEffectEnabled_bool_int(NODE_THREAD, NODE_ARG(0, int))); +} + +static NODE_IMPLEMENTATION(_n_palette0, Pointer) +{ + NODE_RETURN(qt_QApplication_palette_QPalette_QWidget(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setEffectEnabled0, void) +{ + qt_QApplication_setEffectEnabled_void_int_bool(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_topLevelAt0, Pointer) +{ + NODE_RETURN(qt_QApplication_topLevelAt_QWidget_QPoint(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_topLevelAt1, Pointer) +{ + NODE_RETURN(qt_QApplication_topLevelAt_QWidget_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_widgetAt0, Pointer) +{ + NODE_RETURN(qt_QApplication_widgetAt_QWidget_QPoint(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_widgetAt1, Pointer) +{ + NODE_RETURN(qt_QApplication_widgetAt_QWidget_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int))); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +static char** global_argv = 0; + +static NODE_IMPLEMENTATION(_n_QApplication0, Pointer) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* inst = NODE_ARG_OBJECT(0, ClassInstance); + DynamicArray* args = NODE_ARG_OBJECT(1, DynamicArray); + + int n = args->size(); + global_argv = new char* [n+1]; + global_argv[n] = 0; + + for (size_t i = 0; i < n; i++) + { + Mu::UTF8String utf8 = args->element(i)->utf8(); + global_argv[i] = strdup(utf8.c_str()); + } + + setobject(inst, new QApplication(n, global_argv)); + NODE_RETURN(inst); +} + +void +QApplicationType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QApplication_QApplication_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + // MISSING: QApplication (QApplication; QApplication this, "int &" argc, "char * *" argv) + // PROP: autoSipEnabled (bool; QApplication this) + // PROP: styleSheet (string; QApplication this) + _func[0] = new MemberFunction(c, "notify", _n_notify0, None, Compiled, qt_QApplication_notify_bool_QApplication_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QApplication"), new Param(c, "receiver", "qt.QObject"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QApplication_event_bool_QApplication_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QApplication"), new Param(c, "e", "qt.QEvent"), End), + // static functions + new Function(c, "activeModalWidget", _n_activeModalWidget0, None, Compiled, qt_QApplication_activeModalWidget_QWidget, Return, "qt.QWidget", End), + new Function(c, "activePopupWidget", _n_activePopupWidget0, None, Compiled, qt_QApplication_activePopupWidget_QWidget, Return, "qt.QWidget", End), + new Function(c, "activeWindow", _n_activeWindow0, None, Compiled, qt_QApplication_activeWindow_QWidget, Return, "qt.QWidget", End), + new Function(c, "alert", _n_alert0, None, Compiled, qt_QApplication_alert_void_QWidget_int, Return, "void", Parameters, new Param(c, "widget", "qt.QWidget"), new Param(c, "msec", "int", Value((int)0)), End), + // MISSING: allWidgets ("QWidgetList"; ) + new Function(c, "beep", _n_beep0, None, Compiled, qt_QApplication_beep_void, Return, "void", End), + new Function(c, "exec", _n_exec0, None, Compiled, qt_QApplication_exec_int, Return, "int", End), + new Function(c, "focusWidget", _n_focusWidget0, None, Compiled, qt_QApplication_focusWidget_QWidget, Return, "qt.QWidget", End), + new Function(c, "font", _n_font0, None, Compiled, qt_QApplication_font_QFont, Return, "qt.QFont", End), + new Function(c, "font", _n_font1, None, Compiled, qt_QApplication_font_QFont_QWidget, Return, "qt.QFont", Parameters, new Param(c, "widget", "qt.QWidget"), End), + // MISSING: font (QFont; "const char *" className) + new Function(c, "isEffectEnabled", _n_isEffectEnabled0, None, Compiled, qt_QApplication_isEffectEnabled_bool_int, Return, "bool", Parameters, new Param(c, "effect", "int"), End), + new Function(c, "palette", _n_palette0, None, Compiled, qt_QApplication_palette_QPalette_QWidget, Return, "qt.QPalette", Parameters, new Param(c, "widget", "qt.QWidget"), End), + // MISSING: palette (QPalette; "const char *" className) + new Function(c, "setEffectEnabled", _n_setEffectEnabled0, None, Compiled, qt_QApplication_setEffectEnabled_void_int_bool, Return, "void", Parameters, new Param(c, "effect", "int"), new Param(c, "enable", "bool"), End), + // MISSING: setFont (void; QFont font, "const char *" className) + // MISSING: setPalette (void; QPalette palette, "const char *" className) + // MISSING: setStyle (void; "QStyle *" style) + // MISSING: setStyle ("QStyle *"; string style) + // MISSING: style ("QStyle *"; ) + new Function(c, "topLevelAt", _n_topLevelAt0, None, Compiled, qt_QApplication_topLevelAt_QWidget_QPoint, Return, "qt.QWidget", Parameters, new Param(c, "point", "qt.QPoint"), End), + new Function(c, "topLevelAt", _n_topLevelAt1, None, Compiled, qt_QApplication_topLevelAt_QWidget_int_int, Return, "qt.QWidget", Parameters, new Param(c, "x", "int"), new Param(c, "y", "int"), End), + // MISSING: topLevelWidgets ("QWidgetList"; ) + new Function(c, "widgetAt", _n_widgetAt0, None, Compiled, qt_QApplication_widgetAt_QWidget_QPoint, Return, "qt.QWidget", Parameters, new Param(c, "point", "qt.QPoint"), End), + new Function(c, "widgetAt", _n_widgetAt1, None, Compiled, qt_QApplication_widgetAt_QWidget_int_int, Return, "qt.QWidget", Parameters, new Param(c, "x", "int"), new Param(c, "y", "int"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(c->stringType(), 1, 0); + +addSymbols( + + new Function(c, "QApplication", _n_QApplication0, None, + Return, "qt.QApplication", + Parameters, + new Param(c, "this", "qt.QApplication"), + new Param(c, "args", "string[]"), + End), + + EndArguments); + + const char** propExclusions = 0; + + populate(this, QApplication::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QBitmapType.cpp b/src/lib/mu/MuQt6/QBitmapType.cpp new file mode 100644 index 000000000..538c1e7b5 --- /dev/null +++ b/src/lib/mu/MuQt6/QBitmapType.cpp @@ -0,0 +1,228 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QBitmapType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QBitmapType::QBitmapType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QBitmapType::~QBitmapType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QBitmapType::Instance* i = new QBitmapType::Instance((Class*)NODE_THIS.type()); + QBitmapType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QBitmapType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QBitmapType::finalizer, 0, 0, 0); +} + +void +QBitmapType::finalizer (void* obj, void* data) +{ + QBitmapType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QBitmap_QBitmap_QBitmap_QBitmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setpaintdevice(param_this, QBitmap()); + return param_this; +} + +Pointer qt_QBitmap_QBitmap_QBitmap_QBitmap_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_width); + int arg2 = (int)(param_height); + setpaintdevice(param_this, QBitmap(arg1, arg2)); + return param_this; +} + +void qt_QBitmap_clear_void_QBitmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBitmap& arg0 = getqtype(param_this); + arg0.clear(); +} + +void qt_QBitmap_swap_void_QBitmap_QBitmap(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBitmap& arg0 = getqtype(param_this); + QBitmap arg1 = getqtype(param_other); + arg0.swap(arg1); +} + +Pointer qt_QBitmap_transformed_QBitmap_QBitmap_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_matrix) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBitmap& arg0 = getqtype(param_this); + const QTransform arg1 = getqtype(param_matrix); + return makeqtype(c,arg0.transformed(arg1),"qt.QBitmap"); +} + +Pointer qt_QBitmap_fromImage_QBitmap_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_image, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage arg0 = getqtype(param_image); + Qt::ImageConversionFlags arg1 = (Qt::ImageConversionFlags)(param_flags); + return makeqtype(c,QBitmap::fromImage(arg0, arg1),"qt.QBitmap"); +} + +Pointer qt_QBitmap_fromPixmap_QBitmap_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_pixmap) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap arg0 = getqtype(param_pixmap); + return makeqtype(c,QBitmap::fromPixmap(arg0),"qt.QBitmap"); +} + + +static NODE_IMPLEMENTATION(_n_QBitmap0, Pointer) +{ + NODE_RETURN(qt_QBitmap_QBitmap_QBitmap_QBitmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QBitmap1, Pointer) +{ + NODE_RETURN(qt_QBitmap_QBitmap_QBitmap_QBitmap_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QBitmap_clear_void_QBitmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QBitmap_swap_void_QBitmap_QBitmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_transformed0, Pointer) +{ + NODE_RETURN(qt_QBitmap_transformed_QBitmap_QBitmap_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fromImage0, Pointer) +{ + NODE_RETURN(qt_QBitmap_fromImage_QBitmap_QImage_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_fromPixmap0, Pointer) +{ + NODE_RETURN(qt_QBitmap_fromPixmap_QBitmap_QPixmap(NODE_THREAD, NODE_ARG(0, Pointer))); +} + + + +void +QBitmapType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QBitmap", _n_QBitmap0, None, Compiled, qt_QBitmap_QBitmap_QBitmap_QBitmap, Return, "qt.QBitmap", Parameters, new Param(c, "this", "qt.QBitmap"), End), + new Function(c, "QBitmap", _n_QBitmap1, None, Compiled, qt_QBitmap_QBitmap_QBitmap_QBitmap_int_int, Return, "qt.QBitmap", Parameters, new Param(c, "this", "qt.QBitmap"), new Param(c, "width", "int"), new Param(c, "height", "int"), End), + // MISSING: QBitmap (QBitmap; QBitmap this, string fileName, "const char *" format) + new Function(c, "clear", _n_clear0, None, Compiled, qt_QBitmap_clear_void_QBitmap, Return, "void", Parameters, new Param(c, "this", "qt.QBitmap"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QBitmap_swap_void_QBitmap_QBitmap, Return, "void", Parameters, new Param(c, "this", "qt.QBitmap"), new Param(c, "other", "qt.QBitmap"), End), + new Function(c, "transformed", _n_transformed0, None, Compiled, qt_QBitmap_transformed_QBitmap_QBitmap_QTransform, Return, "qt.QBitmap", Parameters, new Param(c, "this", "qt.QBitmap"), new Param(c, "matrix", "qt.QTransform"), End), + // MISSING: QVariant ("QVariant operator"; QBitmap this) + // static functions + // MISSING: fromData (QBitmap; QSize size, "const uchar *" bits, flags QImage::Format monoFormat) + new Function(c, "fromImage", _n_fromImage0, None, Compiled, qt_QBitmap_fromImage_QBitmap_QImage_int, Return, "qt.QBitmap", Parameters, new Param(c, "image", "qt.QImage"), new Param(c, "flags", "int", Value((int)Qt::AutoColor)), End), + // MISSING: fromImage (QBitmap; "QImage & &" image, flags Qt::ImageConversionFlags flags) + new Function(c, "fromPixmap", _n_fromPixmap0, None, Compiled, qt_QBitmap_fromPixmap_QBitmap_QPixmap, Return, "qt.QBitmap", Parameters, new Param(c, "pixmap", "qt.QPixmap"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QBoxLayoutType.cpp b/src/lib/mu/MuQt6/QBoxLayoutType.cpp new file mode 100644 index 000000000..a543a0c62 --- /dev/null +++ b/src/lib/mu/MuQt6/QBoxLayoutType.cpp @@ -0,0 +1,1125 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QBoxLayout::~MuQt_QBoxLayout() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QBoxLayout::MuQt_QBoxLayout(Pointer muobj, const CallEnvironment* ce, QBoxLayout::Direction dir, QWidget * parent) + : QBoxLayout(dir, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QBoxLayout")); +} + +void MuQt_QBoxLayout::addItem(QLayoutItem * item) +{ + if (!_env) { QBoxLayout::addItem(item); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makelayoutitem(c,item,"qt.QLayoutItem")); + Value rval = _env->call(F, args); + } + else + { + QBoxLayout::addItem(item); + } +} + +int MuQt_QBoxLayout::count() const +{ + if (!_env) return QBoxLayout::count(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QBoxLayout::count(); + } +} + +Qt::Orientations MuQt_QBoxLayout::expandingDirections() const +{ + if (!_env) return QBoxLayout::expandingDirections(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::Orientations)(rval._int); + } + else + { + return QBoxLayout::expandingDirections(); + } +} + +bool MuQt_QBoxLayout::hasHeightForWidth() const +{ + if (!_env) return QBoxLayout::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QBoxLayout::hasHeightForWidth(); + } +} + +int MuQt_QBoxLayout::heightForWidth(int w) const +{ + if (!_env) return QBoxLayout::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QBoxLayout::heightForWidth(w); + } +} + +void MuQt_QBoxLayout::invalidate() +{ + if (!_env) { QBoxLayout::invalidate(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QBoxLayout::invalidate(); + } +} + +QLayoutItem * MuQt_QBoxLayout::itemAt(int index) const +{ + if (!_env) return QBoxLayout::itemAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QBoxLayout::itemAt(index); + } +} + +QSize MuQt_QBoxLayout::maximumSize() const +{ + if (!_env) return QBoxLayout::maximumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QBoxLayout::maximumSize(); + } +} + +int MuQt_QBoxLayout::minimumHeightForWidth(int w) const +{ + if (!_env) return QBoxLayout::minimumHeightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QBoxLayout::minimumHeightForWidth(w); + } +} + +QSize MuQt_QBoxLayout::minimumSize() const +{ + if (!_env) return QBoxLayout::minimumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QBoxLayout::minimumSize(); + } +} + +void MuQt_QBoxLayout::setGeometry(const QRect & r) +{ + if (!_env) { QBoxLayout::setGeometry(r); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,r,"qt.QRect")); + Value rval = _env->call(F, args); + } + else + { + QBoxLayout::setGeometry(r); + } +} + +void MuQt_QBoxLayout::setSpacing(int spacing) +{ + if (!_env) { QBoxLayout::setSpacing(spacing); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(spacing); + Value rval = _env->call(F, args); + } + else + { + QBoxLayout::setSpacing(spacing); + } +} + +QSize MuQt_QBoxLayout::sizeHint() const +{ + if (!_env) return QBoxLayout::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QBoxLayout::sizeHint(); + } +} + +int MuQt_QBoxLayout::spacing() const +{ + if (!_env) return QBoxLayout::spacing(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QBoxLayout::spacing(); + } +} + +QLayoutItem * MuQt_QBoxLayout::takeAt(int index) +{ + if (!_env) return QBoxLayout::takeAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QBoxLayout::takeAt(index); + } +} + +int MuQt_QBoxLayout::indexOf(const QWidget * widget) const +{ + if (!_env) return QBoxLayout::indexOf(widget); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,widget,"qt.QWidget")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QBoxLayout::indexOf(widget); + } +} + +QLayoutItem * MuQt_QBoxLayout::replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options) +{ + if (!_env) return QBoxLayout::replaceWidget(from, to, options); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,from,"qt.QWidget")); + args[2] = Value(makeinstance(c,to,"qt.QWidget")); + args[3] = Value(int(options)); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QBoxLayout::replaceWidget(from, to, options); + } +} + +QSizePolicy::ControlTypes MuQt_QBoxLayout::controlTypes() const +{ + if (!_env) return QBoxLayout::controlTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QSizePolicy::ControlTypes)(rval._int); + } + else + { + return QBoxLayout::controlTypes(); + } +} + +QRect MuQt_QBoxLayout::geometry() const +{ + if (!_env) return QBoxLayout::geometry(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QBoxLayout::geometry(); + } +} + +bool MuQt_QBoxLayout::isEmpty() const +{ + if (!_env) return QBoxLayout::isEmpty(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QBoxLayout::isEmpty(); + } +} + +QLayout * MuQt_QBoxLayout::layout() +{ + if (!_env) return QBoxLayout::layout(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QBoxLayout::layout(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QBoxLayoutType::QBoxLayoutType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QBoxLayoutType::~QBoxLayoutType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QBoxLayout_QBoxLayout_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QBoxLayout* w = object(widget)) + { + QBoxLayoutType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QBoxLayout"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QBoxLayout_QBoxLayout_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QBoxLayout_QBoxLayout_QBoxLayout_QBoxLayout_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dir, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout::Direction arg1 = (QBoxLayout::Direction)(param_dir); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QBoxLayout(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +void qt_QBoxLayout_addLayout_void_QBoxLayout_QLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_layout, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_layout); + int arg2 = (int)(param_stretch); + arg0->addLayout(arg1, arg2); +} + +void qt_QBoxLayout_addSpacing_void_QBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_size); + arg0->addSpacing(arg1); +} + +void qt_QBoxLayout_addStretch_void_QBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_stretch); + arg0->addStretch(arg1); +} + +void qt_QBoxLayout_addStrut_void_QBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_size); + arg0->addStrut(arg1); +} + +void qt_QBoxLayout_addWidget_void_QBoxLayout_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, int param_stretch, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + int arg2 = (int)(param_stretch); + Qt::Alignment arg3 = (Qt::Alignment)(param_alignment); + arg0->addWidget(arg1, arg2, arg3); +} + +int qt_QBoxLayout_direction_int_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return int(arg0->direction()); +} + +void qt_QBoxLayout_insertItem_void_QBoxLayout_int_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + QLayoutItem * arg2 = layoutitem(param_item); + arg0->insertItem(arg1, arg2); +} + +void qt_QBoxLayout_insertLayout_void_QBoxLayout_int_QLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_layout, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + QLayout * arg2 = object(param_layout); + int arg3 = (int)(param_stretch); + arg0->insertLayout(arg1, arg2, arg3); +} + +void qt_QBoxLayout_insertSpacing_void_QBoxLayout_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, int param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + int arg2 = (int)(param_size); + arg0->insertSpacing(arg1, arg2); +} + +void qt_QBoxLayout_insertStretch_void_QBoxLayout_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + int arg2 = (int)(param_stretch); + arg0->insertStretch(arg1, arg2); +} + +void qt_QBoxLayout_insertWidget_void_QBoxLayout_int_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_widget, int param_stretch, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_widget); + int arg3 = (int)(param_stretch); + Qt::Alignment arg4 = (Qt::Alignment)(param_alignment); + arg0->insertWidget(arg1, arg2, arg3, arg4); +} + +void qt_QBoxLayout_setDirection_void_QBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_direction) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + QBoxLayout::Direction arg1 = (QBoxLayout::Direction)(param_direction); + arg0->setDirection(arg1); +} + +void qt_QBoxLayout_setStretch_void_QBoxLayout_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + int arg2 = (int)(param_stretch); + arg0->setStretch(arg1, arg2); +} + +bool qt_QBoxLayout_setStretchFactor_bool_QBoxLayout_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + int arg2 = (int)(param_stretch); + return arg0->setStretchFactor(arg1, arg2); +} + +bool qt_QBoxLayout_setStretchFactor_bool_QBoxLayout_QLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_layout, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_layout); + int arg2 = (int)(param_stretch); + return arg0->setStretchFactor(arg1, arg2); +} + +int qt_QBoxLayout_stretch_int_QBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return arg0->stretch(arg1); +} + +void qt_QBoxLayout_addItem_void_QBoxLayout_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + QLayoutItem * arg1 = layoutitem(param_item); + if (isMuQtObject(arg0)) arg0->QBoxLayout::addItem(arg1); + else arg0->addItem(arg1); +} + +int qt_QBoxLayout_count_int_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QBoxLayout::count() : arg0->count(); +} + +int qt_QBoxLayout_expandingDirections_int_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QBoxLayout::expandingDirections()) : int(arg0->expandingDirections()); +} + +bool qt_QBoxLayout_hasHeightForWidth_bool_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QBoxLayout::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QBoxLayout_heightForWidth_int_QBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QBoxLayout::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +void qt_QBoxLayout_invalidate_void_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QBoxLayout::invalidate(); + else arg0->invalidate(); +} + +Pointer qt_QBoxLayout_itemAt_QLayoutItem_QBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QBoxLayout::itemAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->itemAt(arg1), "qt.QLayoutItem"); +} + +Pointer qt_QBoxLayout_maximumSize_QSize_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QBoxLayout::maximumSize(),"qt.QSize") : makeqtype(c,arg0->maximumSize(),"qt.QSize"); +} + +int qt_QBoxLayout_minimumHeightForWidth_int_QBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QBoxLayout::minimumHeightForWidth(arg1) : arg0->minimumHeightForWidth(arg1); +} + +Pointer qt_QBoxLayout_minimumSize_QSize_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QBoxLayout::minimumSize(),"qt.QSize") : makeqtype(c,arg0->minimumSize(),"qt.QSize"); +} + +void qt_QBoxLayout_setGeometry_void_QBoxLayout_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + const QRect arg1 = getqtype(param_r); + if (isMuQtObject(arg0)) arg0->QBoxLayout::setGeometry(arg1); + else arg0->setGeometry(arg1); +} + +void qt_QBoxLayout_setSpacing_void_QBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_spacing) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_spacing); + if (isMuQtObject(arg0)) arg0->QBoxLayout::setSpacing(arg1); + else arg0->setSpacing(arg1); +} + +Pointer qt_QBoxLayout_sizeHint_QSize_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QBoxLayout::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +int qt_QBoxLayout_spacing_int_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QBoxLayout::spacing() : arg0->spacing(); +} + +Pointer qt_QBoxLayout_takeAt_QLayoutItem_QBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QBoxLayout::takeAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->takeAt(arg1), "qt.QLayoutItem"); +} + +int qt_QBoxLayout_indexOf_int_QBoxLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + const QWidget * arg1 = object(param_widget); + return isMuQtObject(arg0) ? arg0->QBoxLayout::indexOf(arg1) : arg0->indexOf(arg1); +} + +Pointer qt_QBoxLayout_replaceWidget_QLayoutItem_QBoxLayout_QWidget_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_from, Pointer param_to, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_from); + QWidget * arg2 = object(param_to); + Qt::FindChildOptions arg3 = (Qt::FindChildOptions)(param_options); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QBoxLayout::replaceWidget(arg1, arg2, arg3), "qt.QLayoutItem") : makelayoutitem(c, arg0->replaceWidget(arg1, arg2, arg3), "qt.QLayoutItem"); +} + +int qt_QBoxLayout_controlTypes_int_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QBoxLayout::controlTypes()) : int(arg0->controlTypes()); +} + +Pointer qt_QBoxLayout_geometry_QRect_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QBoxLayout::geometry(),"qt.QRect") : makeqtype(c,arg0->geometry(),"qt.QRect"); +} + +bool qt_QBoxLayout_isEmpty_bool_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QBoxLayout::isEmpty() : arg0->isEmpty(); +} + +Pointer qt_QBoxLayout_layout_QLayout_QBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QBoxLayout::layout(), "qt.QLayout") : makeinstance(c, arg0->layout(), "qt.QLayout"); +} + + +static NODE_IMPLEMENTATION(_n_QBoxLayout0, Pointer) +{ + NODE_RETURN(qt_QBoxLayout_QBoxLayout_QBoxLayout_QBoxLayout_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addLayout0, void) +{ + qt_QBoxLayout_addLayout_void_QBoxLayout_QLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_addSpacing0, void) +{ + qt_QBoxLayout_addSpacing_void_QBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_addStretch0, void) +{ + qt_QBoxLayout_addStretch_void_QBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_addStrut0, void) +{ + qt_QBoxLayout_addStrut_void_QBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_addWidget0, void) +{ + qt_QBoxLayout_addWidget_void_QBoxLayout_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_direction0, int) +{ + NODE_RETURN(qt_QBoxLayout_direction_int_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertItem0, void) +{ + qt_QBoxLayout_insertItem_void_QBoxLayout_int_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertLayout0, void) +{ + qt_QBoxLayout_insertLayout_void_QBoxLayout_int_QLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_insertSpacing0, void) +{ + qt_QBoxLayout_insertSpacing_void_QBoxLayout_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_insertStretch0, void) +{ + qt_QBoxLayout_insertStretch_void_QBoxLayout_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_insertWidget0, void) +{ + qt_QBoxLayout_insertWidget_void_QBoxLayout_int_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setDirection0, void) +{ + qt_QBoxLayout_setDirection_void_QBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setStretch0, void) +{ + qt_QBoxLayout_setStretch_void_QBoxLayout_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setStretchFactor0, bool) +{ + NODE_RETURN(qt_QBoxLayout_setStretchFactor_bool_QBoxLayout_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_setStretchFactor1, bool) +{ + NODE_RETURN(qt_QBoxLayout_setStretchFactor_bool_QBoxLayout_QLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_stretch0, int) +{ + NODE_RETURN(qt_QBoxLayout_stretch_int_QBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_addItem0, void) +{ + qt_QBoxLayout_addItem_void_QBoxLayout_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QBoxLayout_count_int_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expandingDirections0, int) +{ + NODE_RETURN(qt_QBoxLayout_expandingDirections_int_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QBoxLayout_hasHeightForWidth_bool_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QBoxLayout_heightForWidth_int_QBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_invalidate0, void) +{ + qt_QBoxLayout_invalidate_void_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_itemAt0, Pointer) +{ + NODE_RETURN(qt_QBoxLayout_itemAt_QLayoutItem_QBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_maximumSize0, Pointer) +{ + NODE_RETURN(qt_QBoxLayout_maximumSize_QSize_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumHeightForWidth0, int) +{ + NODE_RETURN(qt_QBoxLayout_minimumHeightForWidth_int_QBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSize0, Pointer) +{ + NODE_RETURN(qt_QBoxLayout_minimumSize_QSize_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setGeometry0, void) +{ + qt_QBoxLayout_setGeometry_void_QBoxLayout_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSpacing0, void) +{ + qt_QBoxLayout_setSpacing_void_QBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QBoxLayout_sizeHint_QSize_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_spacing0, int) +{ + NODE_RETURN(qt_QBoxLayout_spacing_int_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_takeAt0, Pointer) +{ + NODE_RETURN(qt_QBoxLayout_takeAt_QLayoutItem_QBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_indexOf0, int) +{ + NODE_RETURN(qt_QBoxLayout_indexOf_int_QBoxLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_replaceWidget0, Pointer) +{ + NODE_RETURN(qt_QBoxLayout_replaceWidget_QLayoutItem_QBoxLayout_QWidget_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_controlTypes0, int) +{ + NODE_RETURN(qt_QBoxLayout_controlTypes_int_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_geometry0, Pointer) +{ + NODE_RETURN(qt_QBoxLayout_geometry_QRect_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QBoxLayout_isEmpty_bool_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_layout0, Pointer) +{ + NODE_RETURN(qt_QBoxLayout_layout_QLayout_QBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QBoxLayoutType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QBoxLayout_QBoxLayout_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QBoxLayout", _n_QBoxLayout0, None, Compiled, qt_QBoxLayout_QBoxLayout_QBoxLayout_QBoxLayout_int_QWidget, Return, "qt.QBoxLayout", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "dir", "int"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addLayout", _n_addLayout0, None, Compiled, qt_QBoxLayout_addLayout_void_QBoxLayout_QLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "layout", "qt.QLayout"), new Param(c, "stretch", "int", Value((int)0)), End), + // MISSING: addSpacerItem (void; QBoxLayout this, "QSpacerItem *" spacerItem) + new Function(c, "addSpacing", _n_addSpacing0, None, Compiled, qt_QBoxLayout_addSpacing_void_QBoxLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "size", "int"), End), + new Function(c, "addStretch", _n_addStretch0, None, Compiled, qt_QBoxLayout_addStretch_void_QBoxLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "stretch", "int", Value((int)0)), End), + new Function(c, "addStrut", _n_addStrut0, None, Compiled, qt_QBoxLayout_addStrut_void_QBoxLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "size", "int"), End), + new Function(c, "addWidget", _n_addWidget0, None, Compiled, qt_QBoxLayout_addWidget_void_QBoxLayout_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "widget", "qt.QWidget"), new Param(c, "stretch", "int", Value((int)0)), new Param(c, "alignment", "int", Value((int)Qt::Alignment())), End), + new Function(c, "direction", _n_direction0, None, Compiled, qt_QBoxLayout_direction_int_QBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + new Function(c, "insertItem", _n_insertItem0, None, Compiled, qt_QBoxLayout_insertItem_void_QBoxLayout_int_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "index", "int"), new Param(c, "item", "qt.QLayoutItem"), End), + new Function(c, "insertLayout", _n_insertLayout0, None, Compiled, qt_QBoxLayout_insertLayout_void_QBoxLayout_int_QLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "index", "int"), new Param(c, "layout", "qt.QLayout"), new Param(c, "stretch", "int", Value((int)0)), End), + // MISSING: insertSpacerItem (void; QBoxLayout this, int index, "QSpacerItem *" spacerItem) + new Function(c, "insertSpacing", _n_insertSpacing0, None, Compiled, qt_QBoxLayout_insertSpacing_void_QBoxLayout_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "index", "int"), new Param(c, "size", "int"), End), + new Function(c, "insertStretch", _n_insertStretch0, None, Compiled, qt_QBoxLayout_insertStretch_void_QBoxLayout_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "index", "int"), new Param(c, "stretch", "int", Value((int)0)), End), + new Function(c, "insertWidget", _n_insertWidget0, None, Compiled, qt_QBoxLayout_insertWidget_void_QBoxLayout_int_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "index", "int"), new Param(c, "widget", "qt.QWidget"), new Param(c, "stretch", "int", Value((int)0)), new Param(c, "alignment", "int", Value((int)Qt::Alignment())), End), + new Function(c, "setDirection", _n_setDirection0, None, Compiled, qt_QBoxLayout_setDirection_void_QBoxLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "direction", "int"), End), + new Function(c, "setStretch", _n_setStretch0, None, Compiled, qt_QBoxLayout_setStretch_void_QBoxLayout_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "index", "int"), new Param(c, "stretch", "int"), End), + new Function(c, "setStretchFactor", _n_setStretchFactor0, None, Compiled, qt_QBoxLayout_setStretchFactor_bool_QBoxLayout_QWidget_int, Return, "bool", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "widget", "qt.QWidget"), new Param(c, "stretch", "int"), End), + new Function(c, "setStretchFactor", _n_setStretchFactor1, None, Compiled, qt_QBoxLayout_setStretchFactor_bool_QBoxLayout_QLayout_int, Return, "bool", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "layout", "qt.QLayout"), new Param(c, "stretch", "int"), End), + new Function(c, "stretch", _n_stretch0, None, Compiled, qt_QBoxLayout_stretch_int_QBoxLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "index", "int"), End), + _func[0] = new MemberFunction(c, "addItem", _n_addItem0, None, Compiled, qt_QBoxLayout_addItem_void_QBoxLayout_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "item", "qt.QLayoutItem"), End), + _func[1] = new MemberFunction(c, "count", _n_count0, None, Compiled, qt_QBoxLayout_count_int_QBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[2] = new MemberFunction(c, "expandingDirections", _n_expandingDirections0, None, Compiled, qt_QBoxLayout_expandingDirections_int_QBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[3] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QBoxLayout_hasHeightForWidth_bool_QBoxLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[4] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QBoxLayout_heightForWidth_int_QBoxLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "w", "int"), End), + _func[5] = new MemberFunction(c, "invalidate", _n_invalidate0, None, Compiled, qt_QBoxLayout_invalidate_void_QBoxLayout, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[6] = new MemberFunction(c, "itemAt", _n_itemAt0, None, Compiled, qt_QBoxLayout_itemAt_QLayoutItem_QBoxLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "index", "int"), End), + _func[7] = new MemberFunction(c, "maximumSize", _n_maximumSize0, None, Compiled, qt_QBoxLayout_maximumSize_QSize_QBoxLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[8] = new MemberFunction(c, "minimumHeightForWidth", _n_minimumHeightForWidth0, None, Compiled, qt_QBoxLayout_minimumHeightForWidth_int_QBoxLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "w", "int"), End), + _func[9] = new MemberFunction(c, "minimumSize", _n_minimumSize0, None, Compiled, qt_QBoxLayout_minimumSize_QSize_QBoxLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[10] = new MemberFunction(c, "setGeometry", _n_setGeometry0, None, Compiled, qt_QBoxLayout_setGeometry_void_QBoxLayout_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "r", "qt.QRect"), End), + _func[11] = new MemberFunction(c, "setSpacing", _n_setSpacing0, None, Compiled, qt_QBoxLayout_setSpacing_void_QBoxLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "spacing", "int"), End), + _func[12] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QBoxLayout_sizeHint_QSize_QBoxLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[13] = new MemberFunction(c, "spacing", _n_spacing0, None, Compiled, qt_QBoxLayout_spacing_int_QBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[14] = new MemberFunction(c, "takeAt", _n_takeAt0, None, Compiled, qt_QBoxLayout_takeAt_QLayoutItem_QBoxLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "index", "int"), End), + _func[15] = new MemberFunction(c, "indexOf", _n_indexOf0, None, Compiled, qt_QBoxLayout_indexOf_int_QBoxLayout_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "widget", "qt.QWidget"), End), + _func[16] = new MemberFunction(c, "replaceWidget", _n_replaceWidget0, None, Compiled, qt_QBoxLayout_replaceWidget_QLayoutItem_QBoxLayout_QWidget_QWidget_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QBoxLayout"), new Param(c, "from", "qt.QWidget"), new Param(c, "to", "qt.QWidget"), new Param(c, "options", "int", Value((int)Qt::FindChildrenRecursively)), End), + _func[17] = new MemberFunction(c, "controlTypes", _n_controlTypes0, None, Compiled, qt_QBoxLayout_controlTypes_int_QBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[18] = new MemberFunction(c, "geometry", _n_geometry0, None, Compiled, qt_QBoxLayout_geometry_QRect_QBoxLayout, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[19] = new MemberFunction(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QBoxLayout_isEmpty_bool_QBoxLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + _func[20] = new MemberFunction(c, "layout", _n_layout0, None, Compiled, qt_QBoxLayout_layout_QLayout_QBoxLayout, Return, "qt.QLayout", Parameters, new Param(c, "this", "qt.QBoxLayout"), End), + // MISSING: childEvent (void; QBoxLayout this, "QChildEvent *" e) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QBoxLayout::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QBrushType.cpp b/src/lib/mu/MuQt6/QBrushType.cpp new file mode 100644 index 000000000..34eabb965 --- /dev/null +++ b/src/lib/mu/MuQt6/QBrushType.cpp @@ -0,0 +1,474 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QBrushType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QBrushType::QBrushType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QBrushType::~QBrushType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QBrushType::Instance* i = new QBrushType::Instance((Class*)NODE_THIS.type()); + QBrushType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QBrushType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QBrushType::finalizer, 0, 0, 0); +} + +void +QBrushType::finalizer (void* obj, void* data) +{ + QBrushType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QBrush_QBrush_QBrush_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QBrush()); + return param_this; +} + +Pointer qt_QBrush_QBrush_QBrush_QBrush_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_style) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::BrushStyle arg1 = (Qt::BrushStyle)(param_style); + setqtype(param_this,QBrush(arg1)); + return param_this; +} + +Pointer qt_QBrush_QBrush_QBrush_QBrush_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_color, int param_style) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QColor arg1 = getqtype(param_color); + Qt::BrushStyle arg2 = (Qt::BrushStyle)(param_style); + setqtype(param_this,QBrush(arg1, arg2)); + return param_this; +} + +Pointer qt_QBrush_QBrush_QBrush_QBrush_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_color, int param_style) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::GlobalColor arg1 = (Qt::GlobalColor)(param_color); + Qt::BrushStyle arg2 = (Qt::BrushStyle)(param_style); + setqtype(param_this,QBrush(arg1, arg2)); + return param_this; +} + +Pointer qt_QBrush_QBrush_QBrush_QBrush_QColor_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_color, Pointer param_pixmap) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QColor arg1 = getqtype(param_color); + const QPixmap arg2 = getqtype(param_pixmap); + setqtype(param_this,QBrush(arg1, arg2)); + return param_this; +} + +Pointer qt_QBrush_QBrush_QBrush_QBrush_int_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this, int param_color, Pointer param_pixmap) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::GlobalColor arg1 = (Qt::GlobalColor)(param_color); + const QPixmap arg2 = getqtype(param_pixmap); + setqtype(param_this,QBrush(arg1, arg2)); + return param_this; +} + +Pointer qt_QBrush_QBrush_QBrush_QBrush_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pixmap) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap arg1 = getqtype(param_pixmap); + setqtype(param_this,QBrush(arg1)); + return param_this; +} + +Pointer qt_QBrush_QBrush_QBrush_QBrush_QImage(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_image) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage arg1 = getqtype(param_image); + setqtype(param_this,QBrush(arg1)); + return param_this; +} + +Pointer qt_QBrush_QBrush_QBrush_QBrush_QGradient(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_gradient) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QGradient arg1 = getqtype(param_gradient); + setqtype(param_this,QBrush(arg1)); + return param_this; +} + +Pointer qt_QBrush_color_QColor_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBrush& arg0 = getqtype(param_this); + return makeqtype(c,arg0.color(),"qt.QColor"); +} + +bool qt_QBrush_isOpaque_bool_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBrush& arg0 = getqtype(param_this); + return arg0.isOpaque(); +} + +void qt_QBrush_setColor_void_QBrush_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBrush& arg0 = getqtype(param_this); + const QColor arg1 = getqtype(param_color); + arg0.setColor(arg1); + setqtype(param_this,arg0); +} + +void qt_QBrush_setColor_void_QBrush_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBrush& arg0 = getqtype(param_this); + Qt::GlobalColor arg1 = (Qt::GlobalColor)(param_color); + arg0.setColor(arg1); + setqtype(param_this,arg0); +} + +void qt_QBrush_setStyle_void_QBrush_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_style) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBrush& arg0 = getqtype(param_this); + Qt::BrushStyle arg1 = (Qt::BrushStyle)(param_style); + arg0.setStyle(arg1); + setqtype(param_this,arg0); +} + +void qt_QBrush_setTexture_void_QBrush_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pixmap) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBrush& arg0 = getqtype(param_this); + const QPixmap arg1 = getqtype(param_pixmap); + arg0.setTexture(arg1); + setqtype(param_this,arg0); +} + +void qt_QBrush_setTextureImage_void_QBrush_QImage(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_image) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBrush& arg0 = getqtype(param_this); + const QImage arg1 = getqtype(param_image); + arg0.setTextureImage(arg1); + setqtype(param_this,arg0); +} + +void qt_QBrush_setTransform_void_QBrush_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_matrix) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBrush& arg0 = getqtype(param_this); + const QTransform arg1 = getqtype(param_matrix); + arg0.setTransform(arg1); + setqtype(param_this,arg0); +} + +int qt_QBrush_style_int_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBrush& arg0 = getqtype(param_this); + return int(arg0.style()); +} + +void qt_QBrush_swap_void_QBrush_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QBrush& arg0 = getqtype(param_this); + QBrush arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QBrush_texture_QPixmap_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBrush& arg0 = getqtype(param_this); + return makeqtype(c,arg0.texture(),"qt.QPixmap"); +} + +Pointer qt_QBrush_textureImage_QImage_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBrush& arg0 = getqtype(param_this); + return makeqtype(c,arg0.textureImage(),"qt.QImage"); +} + +Pointer qt_QBrush_transform_QTransform_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBrush& arg0 = getqtype(param_this); + return makeqtype(c,arg0.transform(),"qt.QTransform"); +} + +bool qt_QBrush_operatorBang_EQ__bool_QBrush_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBrush& arg0 = getqtype(param_this); + const QBrush arg1 = getqtype(param_brush); + return arg0.operator!=(arg1); +} + +bool qt_QBrush_operatorEQ_EQ__bool_QBrush_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBrush& arg0 = getqtype(param_this); + const QBrush arg1 = getqtype(param_brush); + return arg0.operator==(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QBrush0, Pointer) +{ + NODE_RETURN(qt_QBrush_QBrush_QBrush_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QBrush1, Pointer) +{ + NODE_RETURN(qt_QBrush_QBrush_QBrush_QBrush_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_QBrush2, Pointer) +{ + NODE_RETURN(qt_QBrush_QBrush_QBrush_QBrush_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QBrush3, Pointer) +{ + NODE_RETURN(qt_QBrush_QBrush_QBrush_QBrush_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QBrush4, Pointer) +{ + NODE_RETURN(qt_QBrush_QBrush_QBrush_QBrush_QColor_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QBrush5, Pointer) +{ + NODE_RETURN(qt_QBrush_QBrush_QBrush_QBrush_int_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QBrush6, Pointer) +{ + NODE_RETURN(qt_QBrush_QBrush_QBrush_QBrush_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QBrush7, Pointer) +{ + NODE_RETURN(qt_QBrush_QBrush_QBrush_QBrush_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QBrush8, Pointer) +{ + NODE_RETURN(qt_QBrush_QBrush_QBrush_QBrush_QGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_color0, Pointer) +{ + NODE_RETURN(qt_QBrush_color_QColor_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isOpaque0, bool) +{ + NODE_RETURN(qt_QBrush_isOpaque_bool_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setColor0, void) +{ + qt_QBrush_setColor_void_QBrush_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setColor1, void) +{ + qt_QBrush_setColor_void_QBrush_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setStyle0, void) +{ + qt_QBrush_setStyle_void_QBrush_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setTexture0, void) +{ + qt_QBrush_setTexture_void_QBrush_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTextureImage0, void) +{ + qt_QBrush_setTextureImage_void_QBrush_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTransform0, void) +{ + qt_QBrush_setTransform_void_QBrush_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_style0, int) +{ + NODE_RETURN(qt_QBrush_style_int_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QBrush_swap_void_QBrush_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_texture0, Pointer) +{ + NODE_RETURN(qt_QBrush_texture_QPixmap_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_textureImage0, Pointer) +{ + NODE_RETURN(qt_QBrush_textureImage_QImage_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_transform0, Pointer) +{ + NODE_RETURN(qt_QBrush_transform_QTransform_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QBrush_operatorBang_EQ__bool_QBrush_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QBrush_operatorEQ_EQ__bool_QBrush_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QBrushType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QBrush", _n_QBrush0, None, Compiled, qt_QBrush_QBrush_QBrush_QBrush, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QBrush"), End), + new Function(c, "QBrush", _n_QBrush1, None, Compiled, qt_QBrush_QBrush_QBrush_QBrush_int, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "style", "int"), End), + new Function(c, "QBrush", _n_QBrush2, None, Compiled, qt_QBrush_QBrush_QBrush_QBrush_QColor_int, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "color", "qt.QColor"), new Param(c, "style", "int", Value((int)Qt::SolidPattern)), End), + new Function(c, "QBrush", _n_QBrush3, None, Compiled, qt_QBrush_QBrush_QBrush_QBrush_int_int, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "color", "int"), new Param(c, "style", "int", Value((int)Qt::SolidPattern)), End), + new Function(c, "QBrush", _n_QBrush4, None, Compiled, qt_QBrush_QBrush_QBrush_QBrush_QColor_QPixmap, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "color", "qt.QColor"), new Param(c, "pixmap", "qt.QPixmap"), End), + new Function(c, "QBrush", _n_QBrush5, None, Compiled, qt_QBrush_QBrush_QBrush_QBrush_int_QPixmap, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "color", "int"), new Param(c, "pixmap", "qt.QPixmap"), End), + new Function(c, "QBrush", _n_QBrush6, None, Compiled, qt_QBrush_QBrush_QBrush_QBrush_QPixmap, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "pixmap", "qt.QPixmap"), End), + new Function(c, "QBrush", _n_QBrush7, None, Compiled, qt_QBrush_QBrush_QBrush_QBrush_QImage, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "image", "qt.QImage"), End), + new Function(c, "QBrush", _n_QBrush8, None, Compiled, qt_QBrush_QBrush_QBrush_QBrush_QGradient, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "gradient", "qt.QGradient"), End), + // MISSING: QBrush (QBrush; QBrush this, QBrush other) + new Function(c, "color", _n_color0, None, Compiled, qt_QBrush_color_QColor_QBrush, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QBrush"), End), + new Function(c, "isOpaque", _n_isOpaque0, None, Compiled, qt_QBrush_isOpaque_bool_QBrush, Return, "bool", Parameters, new Param(c, "this", "qt.QBrush"), End), + new Function(c, "setColor", _n_setColor0, None, Compiled, qt_QBrush_setColor_void_QBrush_QColor, Return, "void", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "color", "qt.QColor"), End), + new Function(c, "setColor", _n_setColor1, None, Compiled, qt_QBrush_setColor_void_QBrush_int, Return, "void", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "color", "int"), End), + new Function(c, "setStyle", _n_setStyle0, None, Compiled, qt_QBrush_setStyle_void_QBrush_int, Return, "void", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "style", "int"), End), + new Function(c, "setTexture", _n_setTexture0, None, Compiled, qt_QBrush_setTexture_void_QBrush_QPixmap, Return, "void", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "pixmap", "qt.QPixmap"), End), + new Function(c, "setTextureImage", _n_setTextureImage0, None, Compiled, qt_QBrush_setTextureImage_void_QBrush_QImage, Return, "void", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "image", "qt.QImage"), End), + new Function(c, "setTransform", _n_setTransform0, None, Compiled, qt_QBrush_setTransform_void_QBrush_QTransform, Return, "void", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "matrix", "qt.QTransform"), End), + new Function(c, "style", _n_style0, None, Compiled, qt_QBrush_style_int_QBrush, Return, "int", Parameters, new Param(c, "this", "qt.QBrush"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QBrush_swap_void_QBrush_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "other", "qt.QBrush"), End), + new Function(c, "texture", _n_texture0, None, Compiled, qt_QBrush_texture_QPixmap_QBrush, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QBrush"), End), + new Function(c, "textureImage", _n_textureImage0, None, Compiled, qt_QBrush_textureImage_QImage_QBrush, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QBrush"), End), + new Function(c, "transform", _n_transform0, None, Compiled, qt_QBrush_transform_QTransform_QBrush, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QBrush"), End), + // MISSING: QVariant ("QVariant operator"; QBrush this) + // static functions + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QBrush_operatorBang_EQ__bool_QBrush_QBrush, Return, "bool", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "brush", "qt.QBrush"), End), + // MISSING: = (QBrush; QBrush this, QBrush brush) + // MISSING: = (QBrush; QBrush this, "QBrush & &" other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QBrush_operatorEQ_EQ__bool_QBrush_QBrush, Return, "bool", Parameters, new Param(c, "this", "qt.QBrush"), new Param(c, "brush", "qt.QBrush"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QButtonGroupType.cpp b/src/lib/mu/MuQt6/QButtonGroupType.cpp new file mode 100644 index 000000000..093c7f22b --- /dev/null +++ b/src/lib/mu/MuQt6/QButtonGroupType.cpp @@ -0,0 +1,432 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QButtonGroup::~MuQt_QButtonGroup() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QButtonGroup::MuQt_QButtonGroup(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QButtonGroup(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QButtonGroup")); +} + +bool MuQt_QButtonGroup::event(QEvent * e) +{ + if (!_env) return QButtonGroup::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QButtonGroup::event(e); + } +} + +bool MuQt_QButtonGroup::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QButtonGroup::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QButtonGroup::eventFilter(watched, event); + } +} + +void MuQt_QButtonGroup::customEvent(QEvent * event) +{ + if (!_env) { QButtonGroup::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QButtonGroup::customEvent(event); + } +} + +void MuQt_QButtonGroup::timerEvent(QTimerEvent * event) +{ + if (!_env) { QButtonGroup::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QButtonGroup::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QButtonGroupType::QButtonGroupType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QButtonGroupType::~QButtonGroupType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QButtonGroup_QButtonGroup_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QButtonGroup* w = object(widget)) + { + QButtonGroupType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QButtonGroup"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QButtonGroup_QButtonGroup_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QButtonGroup_QButtonGroup_QButtonGroup_QButtonGroup_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QButtonGroup(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QButtonGroup_addButton_void_QButtonGroup_QAbstractButton_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_button, int param_id) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + QAbstractButton * arg1 = object(param_button); + int arg2 = (int)(param_id); + arg0->addButton(arg1, arg2); +} + +Pointer qt_QButtonGroup_button_QAbstractButton_QButtonGroup_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_id) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + int arg1 = (int)(param_id); + return makeinstance(c, arg0->button(arg1), "qt.QAbstractButton"); +} + +Pointer qt_QButtonGroup_checkedButton_QAbstractButton_QButtonGroup(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + return makeinstance(c, arg0->checkedButton(), "qt.QAbstractButton"); +} + +int qt_QButtonGroup_checkedId_int_QButtonGroup(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + return arg0->checkedId(); +} + +int qt_QButtonGroup_id_int_QButtonGroup_QAbstractButton(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_button) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + QAbstractButton * arg1 = object(param_button); + return arg0->id(arg1); +} + +void qt_QButtonGroup_removeButton_void_QButtonGroup_QAbstractButton(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_button) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + QAbstractButton * arg1 = object(param_button); + arg0->removeButton(arg1); +} + +void qt_QButtonGroup_setId_void_QButtonGroup_QAbstractButton_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_button, int param_id) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + QAbstractButton * arg1 = object(param_button); + int arg2 = (int)(param_id); + arg0->setId(arg1, arg2); +} + +bool qt_QButtonGroup_event_bool_QButtonGroup_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QButtonGroup::event(arg1) : arg0->event(arg1); +} + +bool qt_QButtonGroup_eventFilter_bool_QButtonGroup_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QButtonGroup::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QButtonGroup_customEvent_void_QButtonGroup_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QButtonGroup*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QButtonGroup*)arg0)->customEvent_pub(arg1); +} + +void qt_QButtonGroup_timerEvent_void_QButtonGroup_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QButtonGroup* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QButtonGroup*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QButtonGroup*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QButtonGroup0, Pointer) +{ + NODE_RETURN(qt_QButtonGroup_QButtonGroup_QButtonGroup_QButtonGroup_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addButton0, void) +{ + qt_QButtonGroup_addButton_void_QButtonGroup_QAbstractButton_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_button0, Pointer) +{ + NODE_RETURN(qt_QButtonGroup_button_QAbstractButton_QButtonGroup_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_checkedButton0, Pointer) +{ + NODE_RETURN(qt_QButtonGroup_checkedButton_QAbstractButton_QButtonGroup(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_checkedId0, int) +{ + NODE_RETURN(qt_QButtonGroup_checkedId_int_QButtonGroup(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_id0, int) +{ + NODE_RETURN(qt_QButtonGroup_id_int_QButtonGroup_QAbstractButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeButton0, void) +{ + qt_QButtonGroup_removeButton_void_QButtonGroup_QAbstractButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setId0, void) +{ + qt_QButtonGroup_setId_void_QButtonGroup_QAbstractButton_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QButtonGroup_event_bool_QButtonGroup_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QButtonGroup_eventFilter_bool_QButtonGroup_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QButtonGroup_customEvent_void_QButtonGroup_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QButtonGroup_timerEvent_void_QButtonGroup_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QButtonGroupType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QButtonGroup_QButtonGroup_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QButtonGroup", _n_QButtonGroup0, None, Compiled, qt_QButtonGroup_QButtonGroup_QButtonGroup_QButtonGroup_QObject, Return, "qt.QButtonGroup", Parameters, new Param(c, "this", "qt.QButtonGroup"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "addButton", _n_addButton0, None, Compiled, qt_QButtonGroup_addButton_void_QButtonGroup_QAbstractButton_int, Return, "void", Parameters, new Param(c, "this", "qt.QButtonGroup"), new Param(c, "button", "qt.QAbstractButton"), new Param(c, "id", "int", Value((int)-1)), End), + new Function(c, "button", _n_button0, None, Compiled, qt_QButtonGroup_button_QAbstractButton_QButtonGroup_int, Return, "qt.QAbstractButton", Parameters, new Param(c, "this", "qt.QButtonGroup"), new Param(c, "id", "int"), End), + // MISSING: buttons ("QList"; QButtonGroup this) + new Function(c, "checkedButton", _n_checkedButton0, None, Compiled, qt_QButtonGroup_checkedButton_QAbstractButton_QButtonGroup, Return, "qt.QAbstractButton", Parameters, new Param(c, "this", "qt.QButtonGroup"), End), + new Function(c, "checkedId", _n_checkedId0, None, Compiled, qt_QButtonGroup_checkedId_int_QButtonGroup, Return, "int", Parameters, new Param(c, "this", "qt.QButtonGroup"), End), + // PROP: exclusive (bool; QButtonGroup this) + new Function(c, "id", _n_id0, None, Compiled, qt_QButtonGroup_id_int_QButtonGroup_QAbstractButton, Return, "int", Parameters, new Param(c, "this", "qt.QButtonGroup"), new Param(c, "button", "qt.QAbstractButton"), End), + new Function(c, "removeButton", _n_removeButton0, None, Compiled, qt_QButtonGroup_removeButton_void_QButtonGroup_QAbstractButton, Return, "void", Parameters, new Param(c, "this", "qt.QButtonGroup"), new Param(c, "button", "qt.QAbstractButton"), End), + // PROP: setExclusive (void; QButtonGroup this, bool _p4) + new Function(c, "setId", _n_setId0, None, Compiled, qt_QButtonGroup_setId_void_QButtonGroup_QAbstractButton_int, Return, "void", Parameters, new Param(c, "this", "qt.QButtonGroup"), new Param(c, "button", "qt.QAbstractButton"), new Param(c, "id", "int"), End), + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QButtonGroup_event_bool_QButtonGroup_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QButtonGroup"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QButtonGroup_eventFilter_bool_QButtonGroup_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QButtonGroup"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QButtonGroup this) + // MISSING: childEvent (void; QButtonGroup this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QButtonGroup this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QButtonGroup_customEvent_void_QButtonGroup_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QButtonGroup"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QButtonGroup this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QButtonGroup_timerEvent_void_QButtonGroup_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QButtonGroup"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QButtonGroup::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QByteArrayType.cpp b/src/lib/mu/MuQt6/QByteArrayType.cpp new file mode 100644 index 000000000..8df20b5c3 --- /dev/null +++ b/src/lib/mu/MuQt6/QByteArrayType.cpp @@ -0,0 +1,760 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include + +namespace Mu { +using namespace std; + +QByteArrayType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QByteArrayType::QByteArrayType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QByteArrayType::~QByteArrayType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QByteArrayType::Instance* i = new QByteArrayType::Instance((Class*)NODE_THIS.type()); + QByteArrayType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QByteArrayType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QByteArrayType::finalizer, 0, 0, 0); +} + +void +QByteArrayType::finalizer (void* obj, void* data) +{ + QByteArrayType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QByteArray_QByteArray_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QByteArray()); + return param_this; +} + +Pointer qt_QByteArray_append_QByteArray_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ba) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + const QByteArray arg1 = getqtype(param_ba); + return makeqtype(c,arg0.append(arg1),"qt.QByteArray"); +} + +void qt_QByteArray_clear_void_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + arg0.clear(); + setqtype(param_this,arg0); +} + +bool qt_QByteArray_isEmpty_bool_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + return arg0.isEmpty(); +} + +bool qt_QByteArray_isLower_bool_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + return arg0.isLower(); +} + +bool qt_QByteArray_isNull_bool_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + return arg0.isNull(); +} + +bool qt_QByteArray_isUpper_bool_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + return arg0.isUpper(); +} + +bool qt_QByteArray_isValidUtf8_bool_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + return arg0.isValidUtf8(); +} + +Pointer qt_QByteArray_prepend_QByteArray_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ba) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + const QByteArray arg1 = getqtype(param_ba); + return makeqtype(c,arg0.prepend(arg1),"qt.QByteArray"); +} + +void qt_QByteArray_push_back_void_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + const QByteArray arg1 = getqtype(param_other); + arg0.push_back(arg1); + setqtype(param_this,arg0); +} + +void qt_QByteArray_push_front_void_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + const QByteArray arg1 = getqtype(param_other); + arg0.push_front(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QByteArray_removeFirst_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + return makeqtype(c,arg0.removeFirst(),"qt.QByteArray"); +} + +Pointer qt_QByteArray_removeLast_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + return makeqtype(c,arg0.removeLast(),"qt.QByteArray"); +} + +Pointer qt_QByteArray_setNum_QByteArray_QByteArray_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_n, int param_base) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + int arg1 = (int)(param_n); + int arg2 = (int)(param_base); + return makeqtype(c,arg0.setNum(arg1, arg2),"qt.QByteArray"); +} + +void qt_QByteArray_shrink_to_fit_void_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + arg0.shrink_to_fit(); + setqtype(param_this,arg0); +} + +Pointer qt_QByteArray_simplified_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + return makeqtype(c,arg0.simplified(),"qt.QByteArray"); +} + +void qt_QByteArray_squeeze_void_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + arg0.squeeze(); + setqtype(param_this,arg0); +} + +void qt_QByteArray_swap_void_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + QByteArray arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QByteArray_toBase64_QByteArray_QByteArray_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + QByteArray::Base64Options arg1 = (QByteArray::Base64Options)(param_options); + return makeqtype(c,arg0.toBase64(arg1),"qt.QByteArray"); +} + +Pointer qt_QByteArray_toLower_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toLower(),"qt.QByteArray"); +} + +Pointer qt_QByteArray_toUpper_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toUpper(),"qt.QByteArray"); +} + +Pointer qt_QByteArray_trimmed_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + return makeqtype(c,arg0.trimmed(),"qt.QByteArray"); +} + +bool qt_QByteArray_operatorBang_EQ__bool_QByteArray_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_str) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_str); + return arg0.operator!=(arg1); +} + +Pointer qt_QByteArray_operatorPlus_EQ__QByteArray_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ba) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray& arg0 = getqtype(param_this); + const QByteArray arg1 = getqtype(param_ba); + return makeqtype(c,arg0.operator+=(arg1),"qt.QByteArray"); +} + +bool qt_QByteArray_operatorLT__bool_QByteArray_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_str) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_str); + return arg0.operator<(arg1); +} + +bool qt_QByteArray_operatorLT_EQ__bool_QByteArray_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_str) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_str); + return arg0.operator<=(arg1); +} + +bool qt_QByteArray_operatorEQ_EQ__bool_QByteArray_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_str) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_str); + return arg0.operator==(arg1); +} + +bool qt_QByteArray_operatorGT__bool_QByteArray_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_str) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_str); + return arg0.operator>(arg1); +} + +bool qt_QByteArray_operatorGT_EQ__bool_QByteArray_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_str) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_str); + return arg0.operator>=(arg1); +} + +Pointer qt_QByteArray_fromBase64_QByteArray_QByteArray_int(Mu::Thread& NODE_THREAD, Pointer param_base64, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray arg0 = getqtype(param_base64); + QByteArray::Base64Options arg1 = (QByteArray::Base64Options)(param_options); + return makeqtype(c,QByteArray::fromBase64(arg0, arg1),"qt.QByteArray"); +} + +Pointer qt_QByteArray_fromHex_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_hexEncoded) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray arg0 = getqtype(param_hexEncoded); + return makeqtype(c,QByteArray::fromHex(arg0),"qt.QByteArray"); +} + +Pointer qt_QByteArray_number_QByteArray_int_int(Mu::Thread& NODE_THREAD, int param_n, int param_base) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_n); + int arg1 = (int)(param_base); + return makeqtype(c,QByteArray::number(arg0, arg1),"qt.QByteArray"); +} + + +static NODE_IMPLEMENTATION(_n_QByteArray0, Pointer) +{ + NODE_RETURN(qt_QByteArray_QByteArray_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_append0, Pointer) +{ + NODE_RETURN(qt_QByteArray_append_QByteArray_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QByteArray_clear_void_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QByteArray_isEmpty_bool_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isLower0, bool) +{ + NODE_RETURN(qt_QByteArray_isLower_bool_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QByteArray_isNull_bool_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isUpper0, bool) +{ + NODE_RETURN(qt_QByteArray_isUpper_bool_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValidUtf80, bool) +{ + NODE_RETURN(qt_QByteArray_isValidUtf8_bool_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_prepend5, Pointer) +{ + NODE_RETURN(qt_QByteArray_prepend_QByteArray_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_push_back0, void) +{ + qt_QByteArray_push_back_void_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_push_front0, void) +{ + qt_QByteArray_push_front_void_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removeFirst0, Pointer) +{ + NODE_RETURN(qt_QByteArray_removeFirst_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeLast0, Pointer) +{ + NODE_RETURN(qt_QByteArray_removeLast_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setNum0, Pointer) +{ + NODE_RETURN(qt_QByteArray_setNum_QByteArray_QByteArray_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_shrink_to_fit0, void) +{ + qt_QByteArray_shrink_to_fit_void_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_simplified0, Pointer) +{ + NODE_RETURN(qt_QByteArray_simplified_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_squeeze0, void) +{ + qt_QByteArray_squeeze_void_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QByteArray_swap_void_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toBase640, Pointer) +{ + NODE_RETURN(qt_QByteArray_toBase64_QByteArray_QByteArray_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_toLower0, Pointer) +{ + NODE_RETURN(qt_QByteArray_toLower_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toUpper0, Pointer) +{ + NODE_RETURN(qt_QByteArray_toUpper_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_trimmed0, Pointer) +{ + NODE_RETURN(qt_QByteArray_trimmed_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QByteArray_operatorBang_EQ__bool_QByteArray_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QByteArray_operatorPlus_EQ__QByteArray_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorLT_0, bool) +{ + NODE_RETURN(qt_QByteArray_operatorLT__bool_QByteArray_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorLT_EQ_0, bool) +{ + NODE_RETURN(qt_QByteArray_operatorLT_EQ__bool_QByteArray_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QByteArray_operatorEQ_EQ__bool_QByteArray_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorGT_0, bool) +{ + NODE_RETURN(qt_QByteArray_operatorGT__bool_QByteArray_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorGT_EQ_0, bool) +{ + NODE_RETURN(qt_QByteArray_operatorGT_EQ__bool_QByteArray_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fromBase640, Pointer) +{ + NODE_RETURN(qt_QByteArray_fromBase64_QByteArray_QByteArray_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_fromHex0, Pointer) +{ + NODE_RETURN(qt_QByteArray_fromHex_QByteArray_QByteArray(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_number0, Pointer) +{ + NODE_RETURN(qt_QByteArray_number_QByteArray_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int))); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +Pointer +QByteArray_constData_QByteArray_byteECB_BSB__(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray arg0 = getqtype(param_this); + Class* atype = (Class*)c->arrayType(c->byteType(), 1, 0); + DynamicArray* array = new DynamicArray(atype, 1); + array->resize(arg0.size()); + memcpy(array->data(), arg0.constData(), arg0.size()); + return array; +} + +static NODE_IMPLEMENTATION(constData, Pointer) +{ + NODE_RETURN(QByteArray_constData_QByteArray_byteECB_BSB__(NODE_THREAD, + NONNIL_NODE_ARG(0, Pointer))); +} + +void +QByteArrayType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "Base64Option", "int"), + new Alias(c, "Base64Options", "int"), + new SymbolicConstant(c, "Base64Encoding", "int", Value(int(QByteArray::Base64Encoding))), + new SymbolicConstant(c, "Base64UrlEncoding", "int", Value(int(QByteArray::Base64UrlEncoding))), + new SymbolicConstant(c, "KeepTrailingEquals", "int", Value(int(QByteArray::KeepTrailingEquals))), + new SymbolicConstant(c, "OmitTrailingEquals", "int", Value(int(QByteArray::OmitTrailingEquals))), + new SymbolicConstant(c, "IgnoreBase64DecodingErrors", "int", Value(int(QByteArray::IgnoreBase64DecodingErrors))), + new SymbolicConstant(c, "AbortOnBase64DecodingErrors", "int", Value(int(QByteArray::AbortOnBase64DecodingErrors))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QByteArray", _n_QByteArray0, None, Compiled, qt_QByteArray_QByteArray_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), End), + // MISSING: QByteArray (QByteArray; QByteArray this, "const char *" data, "qsizetype" size) + // MISSING: QByteArray (QByteArray; QByteArray this, "qsizetype" size, "char" ch) + // MISSING: QByteArray (QByteArray; QByteArray this, "qsizetype" size, flags Qt::Initialization _p34) + // MISSING: QByteArray (QByteArray; QByteArray this, QByteArray other) + // MISSING: QByteArray (QByteArray; QByteArray this, "QByteArray & &" other) + new Function(c, "append", _n_append0, None, Compiled, qt_QByteArray_append_QByteArray_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "ba", "qt.QByteArray"), End), + // MISSING: append (QByteArray; QByteArray this, "char" ch) + // MISSING: append (QByteArray; QByteArray this, "qsizetype" count, "char" ch) + // MISSING: append (QByteArray; QByteArray this, "const char *" str) + // MISSING: append (QByteArray; QByteArray this, "const char *" str, "qsizetype" len) + // MISSING: append (QByteArray; QByteArray this, "QByteArrayView" data) + // MISSING: at ("char"; QByteArray this, "qsizetype" i) + // MISSING: back ("char"; QByteArray this) + // MISSING: back ("char &"; QByteArray this) + // MISSING: begin ("QByteArray::iterator"; QByteArray this) + // MISSING: begin ("QByteArray::const_iterator"; QByteArray this) + // MISSING: capacity ("qsizetype"; QByteArray this) + // MISSING: cbegin ("QByteArray::const_iterator"; QByteArray this) + // MISSING: cend ("QByteArray::const_iterator"; QByteArray this) + // MISSING: chop (void; QByteArray this, "qsizetype" n) + // MISSING: chopped (QByteArray; QByteArray this, "qsizetype" len) + new Function(c, "clear", _n_clear0, None, Compiled, qt_QByteArray_clear_void_QByteArray, Return, "void", Parameters, new Param(c, "this", "qt.QByteArray"), End), + // MISSING: compare (int; QByteArray this, "QByteArrayView" bv, flags Qt::CaseSensitivity cs) + // MISSING: constBegin ("QByteArray::const_iterator"; QByteArray this) + // MISSING: constData ("const char *"; QByteArray this) + // MISSING: constEnd ("QByteArray::const_iterator"; QByteArray this) + // MISSING: contains (bool; QByteArray this, "QByteArrayView" bv) + // MISSING: contains (bool; QByteArray this, "char" ch) + // MISSING: count ("qsizetype"; QByteArray this, "QByteArrayView" bv) + // MISSING: count ("qsizetype"; QByteArray this, "char" ch) + // MISSING: crbegin ("QByteArray::const_reverse_iterator"; QByteArray this) + // MISSING: crend ("QByteArray::const_reverse_iterator"; QByteArray this) + // MISSING: data ("char *"; QByteArray this) + // MISSING: data ("const char *"; QByteArray this) + // MISSING: end ("QByteArray::iterator"; QByteArray this) + // MISSING: end ("QByteArray::const_iterator"; QByteArray this) + // MISSING: endsWith (bool; QByteArray this, "QByteArrayView" bv) + // MISSING: endsWith (bool; QByteArray this, "char" ch) + // MISSING: erase ("QByteArray::iterator"; QByteArray this, "QByteArray::const_iterator" first, "QByteArray::const_iterator" last) + // MISSING: erase ("QByteArray::iterator"; QByteArray this, "QByteArray::const_iterator" it) + // MISSING: fill (QByteArray; QByteArray this, "char" ch, "qsizetype" size) + // MISSING: first (QByteArray; QByteArray this, "qsizetype" n) + // MISSING: front ("char"; QByteArray this) + // MISSING: front ("char &"; QByteArray this) + // MISSING: indexOf ("qsizetype"; QByteArray this, "QByteArrayView" bv, "qsizetype" from) + // MISSING: indexOf ("qsizetype"; QByteArray this, "char" ch, "qsizetype" from) + // MISSING: insert (QByteArray; QByteArray this, "qsizetype" i, "QByteArrayView" data) + // MISSING: insert (QByteArray; QByteArray this, "qsizetype" i, "const char *" s) + // MISSING: insert (QByteArray; QByteArray this, "qsizetype" i, QByteArray data) + // MISSING: insert (QByteArray; QByteArray this, "qsizetype" i, "qsizetype" count, "char" ch) + // MISSING: insert (QByteArray; QByteArray this, "qsizetype" i, "char" ch) + // MISSING: insert (QByteArray; QByteArray this, "qsizetype" i, "const char *" data, "qsizetype" len) + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QByteArray_isEmpty_bool_QByteArray, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), End), + new Function(c, "isLower", _n_isLower0, None, Compiled, qt_QByteArray_isLower_bool_QByteArray, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QByteArray_isNull_bool_QByteArray, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), End), + new Function(c, "isUpper", _n_isUpper0, None, Compiled, qt_QByteArray_isUpper_bool_QByteArray, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), End), + new Function(c, "isValidUtf8", _n_isValidUtf80, None, Compiled, qt_QByteArray_isValidUtf8_bool_QByteArray, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), End), + // MISSING: last (QByteArray; QByteArray this, "qsizetype" n) + // MISSING: lastIndexOf ("qsizetype"; QByteArray this, "QByteArrayView" bv, "qsizetype" from) + // MISSING: lastIndexOf ("qsizetype"; QByteArray this, "char" ch, "qsizetype" from) + // MISSING: lastIndexOf ("qsizetype"; QByteArray this, "QByteArrayView" bv) + // MISSING: left (QByteArray; QByteArray this, "qsizetype" len) + // MISSING: leftJustified (QByteArray; QByteArray this, "qsizetype" width, "char" fill, bool truncate) + // MISSING: length ("qsizetype"; QByteArray this) + // MISSING: mid (QByteArray; QByteArray this, "qsizetype" pos, "qsizetype" len) + // MISSING: percentDecoded (QByteArray; QByteArray this, "char" percent) + // MISSING: prepend (QByteArray; QByteArray this, "QByteArrayView" ba) + // MISSING: prepend (QByteArray; QByteArray this, "char" ch) + // MISSING: prepend (QByteArray; QByteArray this, "qsizetype" count, "char" ch) + // MISSING: prepend (QByteArray; QByteArray this, "const char *" str) + // MISSING: prepend (QByteArray; QByteArray this, "const char *" str, "qsizetype" len) + new Function(c, "prepend", _n_prepend5, None, Compiled, qt_QByteArray_prepend_QByteArray_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "ba", "qt.QByteArray"), End), + new Function(c, "push_back", _n_push_back0, None, Compiled, qt_QByteArray_push_back_void_QByteArray_QByteArray, Return, "void", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "other", "qt.QByteArray"), End), + // MISSING: push_back (void; QByteArray this, "char" ch) + // MISSING: push_back (void; QByteArray this, "const char *" str) + // MISSING: push_back (void; QByteArray this, "QByteArrayView" str) + new Function(c, "push_front", _n_push_front0, None, Compiled, qt_QByteArray_push_front_void_QByteArray_QByteArray, Return, "void", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "other", "qt.QByteArray"), End), + // MISSING: push_front (void; QByteArray this, "char" ch) + // MISSING: push_front (void; QByteArray this, "const char *" str) + // MISSING: push_front (void; QByteArray this, "QByteArrayView" str) + // MISSING: rbegin ("QByteArray::reverse_iterator"; QByteArray this) + // MISSING: rbegin ("QByteArray::const_reverse_iterator"; QByteArray this) + // MISSING: remove (QByteArray; QByteArray this, "qsizetype" pos, "qsizetype" len) + // MISSING: removeAt (QByteArray; QByteArray this, "qsizetype" pos) + new Function(c, "removeFirst", _n_removeFirst0, None, Compiled, qt_QByteArray_removeFirst_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), End), + // MISSING: removeIf (QByteArray; QByteArray this, "Predicate" pred) + new Function(c, "removeLast", _n_removeLast0, None, Compiled, qt_QByteArray_removeLast_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), End), + // MISSING: rend ("QByteArray::reverse_iterator"; QByteArray this) + // MISSING: rend ("QByteArray::const_reverse_iterator"; QByteArray this) + // MISSING: repeated (QByteArray; QByteArray this, "qsizetype" times) + // MISSING: replace (QByteArray; QByteArray this, "qsizetype" pos, "qsizetype" len, "QByteArrayView" after) + // MISSING: replace (QByteArray; QByteArray this, "qsizetype" pos, "qsizetype" len, "const char *" after, "qsizetype" alen) + // MISSING: replace (QByteArray; QByteArray this, "char" before, "QByteArrayView" after) + // MISSING: replace (QByteArray; QByteArray this, "const char *" before, "qsizetype" bsize, "const char *" after, "qsizetype" asize) + // MISSING: replace (QByteArray; QByteArray this, "QByteArrayView" before, "QByteArrayView" after) + // MISSING: replace (QByteArray; QByteArray this, "char" before, "char" after) + // MISSING: reserve (void; QByteArray this, "qsizetype" size) + // MISSING: resize (void; QByteArray this, "qsizetype" size) + // MISSING: resize (void; QByteArray this, "qsizetype" newSize, "char" c) + // MISSING: right (QByteArray; QByteArray this, "qsizetype" len) + // MISSING: rightJustified (QByteArray; QByteArray this, "qsizetype" width, "char" fill, bool truncate) + new Function(c, "setNum", _n_setNum0, None, Compiled, qt_QByteArray_setNum_QByteArray_QByteArray_int_int, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "n", "int"), new Param(c, "base", "int", Value((int)10)), End), + // MISSING: setNum (QByteArray; QByteArray this, "short" n, int base) + // MISSING: setNum (QByteArray; QByteArray this, "ushort" n, int base) + // MISSING: setNum (QByteArray; QByteArray this, int n, int base) + // MISSING: setNum (QByteArray; QByteArray this, "long" n, int base) + // MISSING: setNum (QByteArray; QByteArray this, "ulong" n, int base) + // MISSING: setNum (QByteArray; QByteArray this, "qlonglong" n, int base) + // MISSING: setNum (QByteArray; QByteArray this, "qulonglong" n, int base) + // MISSING: setNum (QByteArray; QByteArray this, float n, "char" format, int precision) + // MISSING: setNum (QByteArray; QByteArray this, double n, "char" format, int precision) + // MISSING: setRawData (QByteArray; QByteArray this, "const char *" data, "qsizetype" size) + new Function(c, "shrink_to_fit", _n_shrink_to_fit0, None, Compiled, qt_QByteArray_shrink_to_fit_void_QByteArray, Return, "void", Parameters, new Param(c, "this", "qt.QByteArray"), End), + new Function(c, "simplified", _n_simplified0, None, Compiled, qt_QByteArray_simplified_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), End), + // MISSING: size ("qsizetype"; QByteArray this) + // MISSING: sliced (QByteArray; QByteArray this, "qsizetype" pos, "qsizetype" n) + // MISSING: sliced (QByteArray; QByteArray this, "qsizetype" pos) + // MISSING: split ("QList"; QByteArray this, "char" sep) + new Function(c, "squeeze", _n_squeeze0, None, Compiled, qt_QByteArray_squeeze_void_QByteArray, Return, "void", Parameters, new Param(c, "this", "qt.QByteArray"), End), + // MISSING: startsWith (bool; QByteArray this, "QByteArrayView" bv) + // MISSING: startsWith (bool; QByteArray this, "char" ch) + new Function(c, "swap", _n_swap0, None, Compiled, qt_QByteArray_swap_void_QByteArray_QByteArray, Return, "void", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "other", "qt.QByteArray"), End), + new Function(c, "toBase64", _n_toBase640, None, Compiled, qt_QByteArray_toBase64_QByteArray_QByteArray_int, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "options", "int", Value((int)QByteArray::Base64Encoding)), End), + // MISSING: toCFData ("CFDataRef"; QByteArray this) + // MISSING: toDouble (double; QByteArray this, "bool *" ok) + // MISSING: toFloat (float; QByteArray this, "bool *" ok) + // MISSING: toHex (QByteArray; QByteArray this, "char" separator) + // MISSING: toInt (int; QByteArray this, "bool *" ok, int base) + // MISSING: toLong ("long"; QByteArray this, "bool *" ok, int base) + // MISSING: toLongLong ("qlonglong"; QByteArray this, "bool *" ok, int base) + new Function(c, "toLower", _n_toLower0, None, Compiled, qt_QByteArray_toLower_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), End), + // MISSING: toNSData ("NSData *"; QByteArray this) + // MISSING: toPercentEncoding (QByteArray; QByteArray this, QByteArray exclude, QByteArray include, "char" percent) + // MISSING: toRawCFData ("CFDataRef"; QByteArray this) + // MISSING: toRawNSData ("NSData *"; QByteArray this) + // MISSING: toShort ("short"; QByteArray this, "bool *" ok, int base) + // MISSING: toUInt (int; QByteArray this, "bool *" ok, int base) + // MISSING: toULong ("ulong"; QByteArray this, "bool *" ok, int base) + // MISSING: toULongLong ("qulonglong"; QByteArray this, "bool *" ok, int base) + // MISSING: toUShort ("ushort"; QByteArray this, "bool *" ok, int base) + new Function(c, "toUpper", _n_toUpper0, None, Compiled, qt_QByteArray_toUpper_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), End), + new Function(c, "trimmed", _n_trimmed0, None, Compiled, qt_QByteArray_trimmed_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), End), + // MISSING: truncate (void; QByteArray this, "qsizetype" pos) + // MISSING: * ("const char * operator const char"; QByteArray this) + // MISSING: * ("const void * operator const void"; QByteArray this) + // static functions + new Function(c, "fromBase64", _n_fromBase640, None, Compiled, qt_QByteArray_fromBase64_QByteArray_QByteArray_int, Return, "qt.QByteArray", Parameters, new Param(c, "base64", "qt.QByteArray"), new Param(c, "options", "int", Value((int)QByteArray::Base64Encoding)), End), + // MISSING: fromCFData (QByteArray; "CFDataRef" data) + new Function(c, "fromHex", _n_fromHex0, None, Compiled, qt_QByteArray_fromHex_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "hexEncoded", "qt.QByteArray"), End), + // MISSING: fromNSData (QByteArray; "const NSData *" data) + // MISSING: fromPercentEncoding (QByteArray; QByteArray input, "char" percent) + // MISSING: fromRawCFData (QByteArray; "CFDataRef" data) + // MISSING: fromRawData (QByteArray; "const char *" data, "qsizetype" size) + // MISSING: fromRawNSData (QByteArray; "const NSData *" data) + new Function(c, "number", _n_number0, None, Compiled, qt_QByteArray_number_QByteArray_int_int, Return, "qt.QByteArray", Parameters, new Param(c, "n", "int"), new Param(c, "base", "int", Value((int)10)), End), + // MISSING: number (QByteArray; "long" n, int base) + // MISSING: number (QByteArray; "ulong" n, int base) + // MISSING: number (QByteArray; "qlonglong" n, int base) + // MISSING: number (QByteArray; "qulonglong" n, int base) + // MISSING: number (QByteArray; double n, "char" format, int precision) + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QByteArray_operatorBang_EQ__bool_QByteArray_string, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "str", "string"), End), + new Function(c, "+=", _n_operatorPlus_EQ_0, Op, Compiled, qt_QByteArray_operatorPlus_EQ__QByteArray_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "ba", "qt.QByteArray"), End), + // MISSING: += (QByteArray; QByteArray this, "char" ch) + // MISSING: += (QByteArray; QByteArray this, "const char *" str) + new Function(c, "<", _n_operatorLT_0, Op, Compiled, qt_QByteArray_operatorLT__bool_QByteArray_string, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "str", "string"), End), + new Function(c, "<=", _n_operatorLT_EQ_0, Op, Compiled, qt_QByteArray_operatorLT_EQ__bool_QByteArray_string, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "str", "string"), End), + // MISSING: = (QByteArray; QByteArray this, QByteArray other) + // MISSING: = (QByteArray; QByteArray this, "const char *" str) + // MISSING: = (QByteArray; QByteArray this, "QByteArray & &" other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QByteArray_operatorEQ_EQ__bool_QByteArray_string, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "str", "string"), End), + new Function(c, ">", _n_operatorGT_0, Op, Compiled, qt_QByteArray_operatorGT__bool_QByteArray_string, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "str", "string"), End), + new Function(c, ">=", _n_operatorGT_EQ_0, Op, Compiled, qt_QByteArray_operatorGT_EQ__bool_QByteArray_string, Return, "bool", Parameters, new Param(c, "this", "qt.QByteArray"), new Param(c, "str", "string"), End), + // MISSING: [] ("char &"; QByteArray this, "qsizetype" i) + // MISSING: [] ("char"; QByteArray this, "qsizetype" i) + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(c->byteType(), 1, 0); + +addSymbol( new Function(c, "constData", constData, None, + Compiled, QByteArray_constData_QByteArray_byteECB_BSB__, + Return, "byte[]", + Parameters, + new Param(c, "this", "qt.QByteArray"), + End) ); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QCheckBoxType.cpp b/src/lib/mu/MuQt6/QCheckBoxType.cpp new file mode 100644 index 000000000..797bd8df1 --- /dev/null +++ b/src/lib/mu/MuQt6/QCheckBoxType.cpp @@ -0,0 +1,784 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QCheckBox::~MuQt_QCheckBox() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QCheckBox::MuQt_QCheckBox(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QCheckBox(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QCheckBox")); +} + +MuQt_QCheckBox::MuQt_QCheckBox(Pointer muobj, const CallEnvironment* ce, const QString & text, QWidget * parent) + : QCheckBox(text, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QCheckBox")); +} + +QSize MuQt_QCheckBox::minimumSizeHint() const +{ + if (!_env) return QCheckBox::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QCheckBox::minimumSizeHint(); + } +} + +QSize MuQt_QCheckBox::sizeHint() const +{ + if (!_env) return QCheckBox::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QCheckBox::sizeHint(); + } +} + +void MuQt_QCheckBox::checkStateSet() +{ + if (!_env) { QCheckBox::checkStateSet(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::checkStateSet(); + } +} + +bool MuQt_QCheckBox::event(QEvent * e) +{ + if (!_env) return QCheckBox::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QCheckBox::event(e); + } +} + +bool MuQt_QCheckBox::hitButton(const QPoint & pos) const +{ + if (!_env) return QCheckBox::hitButton(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,pos,"qt.QPoint")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QCheckBox::hitButton(pos); + } +} + +void MuQt_QCheckBox::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QCheckBox::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::mouseMoveEvent(e); + } +} + +void MuQt_QCheckBox::nextCheckState() +{ + if (!_env) { QCheckBox::nextCheckState(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::nextCheckState(); + } +} + +void MuQt_QCheckBox::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QCheckBox::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::paintEvent(_p14); + } +} + +void MuQt_QCheckBox::changeEvent(QEvent * e) +{ + if (!_env) { QCheckBox::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::changeEvent(e); + } +} + +void MuQt_QCheckBox::focusInEvent(QFocusEvent * e) +{ + if (!_env) { QCheckBox::focusInEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::focusInEvent(e); + } +} + +void MuQt_QCheckBox::focusOutEvent(QFocusEvent * e) +{ + if (!_env) { QCheckBox::focusOutEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::focusOutEvent(e); + } +} + +void MuQt_QCheckBox::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QCheckBox::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::keyPressEvent(e); + } +} + +void MuQt_QCheckBox::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QCheckBox::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::keyReleaseEvent(e); + } +} + +void MuQt_QCheckBox::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QCheckBox::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::mousePressEvent(e); + } +} + +void MuQt_QCheckBox::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QCheckBox::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::mouseReleaseEvent(e); + } +} + +void MuQt_QCheckBox::timerEvent(QTimerEvent * e) +{ + if (!_env) { QCheckBox::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QCheckBox::timerEvent(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QCheckBoxType::QCheckBoxType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QCheckBoxType::~QCheckBoxType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QCheckBox_QCheckBox_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QCheckBox* w = object(widget)) + { + QCheckBoxType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QCheckBox"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QCheckBox_QCheckBox_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QCheckBox_QCheckBox_QCheckBox_QCheckBox_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QCheckBox(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QCheckBox_QCheckBox_QCheckBox_QCheckBox_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QCheckBox(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +int qt_QCheckBox_checkState_int_QCheckBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + return int(arg0->checkState()); +} + +void qt_QCheckBox_setCheckState_void_QCheckBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + Qt::CheckState arg1 = (Qt::CheckState)(param_state); + arg0->setCheckState(arg1); +} + +Pointer qt_QCheckBox_minimumSizeHint_QSize_QCheckBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QCheckBox::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QCheckBox_sizeHint_QSize_QCheckBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QCheckBox::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QCheckBox_checkStateSet_void_QCheckBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->checkStateSet_pub_parent(); + else ((MuQt_QCheckBox*)arg0)->checkStateSet_pub(); +} + +bool qt_QCheckBox_event_bool_QCheckBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QCheckBox*)arg0)->event_pub_parent(arg1) : ((MuQt_QCheckBox*)arg0)->event_pub(arg1); +} + +bool qt_QCheckBox_hitButton_bool_QCheckBox_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return isMuQtObject(arg0) ? ((MuQt_QCheckBox*)arg0)->hitButton_pub_parent(arg1) : ((MuQt_QCheckBox*)arg0)->hitButton_pub(arg1); +} + +void qt_QCheckBox_mouseMoveEvent_void_QCheckBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QCheckBox*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QCheckBox_nextCheckState_void_QCheckBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->nextCheckState_pub_parent(); + else ((MuQt_QCheckBox*)arg0)->nextCheckState_pub(); +} + +void qt_QCheckBox_paintEvent_void_QCheckBox_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QCheckBox*)arg0)->paintEvent_pub(arg1); +} + +void qt_QCheckBox_changeEvent_void_QCheckBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QCheckBox*)arg0)->changeEvent_pub(arg1); +} + +void qt_QCheckBox_focusInEvent_void_QCheckBox_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QCheckBox*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QCheckBox_focusOutEvent_void_QCheckBox_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QCheckBox*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QCheckBox_keyPressEvent_void_QCheckBox_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QCheckBox*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QCheckBox_keyReleaseEvent_void_QCheckBox_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QCheckBox*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QCheckBox_mousePressEvent_void_QCheckBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QCheckBox*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QCheckBox_mouseReleaseEvent_void_QCheckBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QCheckBox*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QCheckBox_timerEvent_void_QCheckBox_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCheckBox* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QCheckBox*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QCheckBox*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QCheckBox0, Pointer) +{ + NODE_RETURN(qt_QCheckBox_QCheckBox_QCheckBox_QCheckBox_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QCheckBox1, Pointer) +{ + NODE_RETURN(qt_QCheckBox_QCheckBox_QCheckBox_QCheckBox_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_checkState0, int) +{ + NODE_RETURN(qt_QCheckBox_checkState_int_QCheckBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCheckState0, void) +{ + qt_QCheckBox_setCheckState_void_QCheckBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QCheckBox_minimumSizeHint_QSize_QCheckBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QCheckBox_sizeHint_QSize_QCheckBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_checkStateSet0, void) +{ + qt_QCheckBox_checkStateSet_void_QCheckBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QCheckBox_event_bool_QCheckBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hitButton0, bool) +{ + NODE_RETURN(qt_QCheckBox_hitButton_bool_QCheckBox_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QCheckBox_mouseMoveEvent_void_QCheckBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_nextCheckState0, void) +{ + qt_QCheckBox_nextCheckState_void_QCheckBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QCheckBox_paintEvent_void_QCheckBox_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QCheckBox_changeEvent_void_QCheckBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QCheckBox_focusInEvent_void_QCheckBox_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QCheckBox_focusOutEvent_void_QCheckBox_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QCheckBox_keyPressEvent_void_QCheckBox_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QCheckBox_keyReleaseEvent_void_QCheckBox_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QCheckBox_mousePressEvent_void_QCheckBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QCheckBox_mouseReleaseEvent_void_QCheckBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QCheckBox_timerEvent_void_QCheckBox_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QCheckBoxType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QCheckBox_QCheckBox_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QCheckBox", _n_QCheckBox0, None, Compiled, qt_QCheckBox_QCheckBox_QCheckBox_QCheckBox_QWidget, Return, "qt.QCheckBox", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QCheckBox", _n_QCheckBox1, None, Compiled, qt_QCheckBox_QCheckBox_QCheckBox_QCheckBox_string_QWidget, Return, "qt.QCheckBox", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "checkState", _n_checkState0, None, Compiled, qt_QCheckBox_checkState_int_QCheckBox, Return, "int", Parameters, new Param(c, "this", "qt.QCheckBox"), End), + // PROP: isTristate (bool; QCheckBox this) + new Function(c, "setCheckState", _n_setCheckState0, None, Compiled, qt_QCheckBox_setCheckState_void_QCheckBox_int, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "state", "int"), End), + // PROP: setTristate (void; QCheckBox this, bool y) + _func[0] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QCheckBox_minimumSizeHint_QSize_QCheckBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QCheckBox"), End), + _func[1] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QCheckBox_sizeHint_QSize_QCheckBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QCheckBox"), End), + // MISSING: initStyleOption (void; QCheckBox this, "QStyleOptionButton *" option) // protected + _func[2] = new MemberFunction(c, "checkStateSet", _n_checkStateSet0, None, Compiled, qt_QCheckBox_checkStateSet_void_QCheckBox, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), End), + _func[3] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QCheckBox_event_bool_QCheckBox_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "e", "qt.QEvent"), End), + _func[4] = new MemberFunction(c, "hitButton", _n_hitButton0, None, Compiled, qt_QCheckBox_hitButton_bool_QCheckBox_QPoint, Return, "bool", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "pos", "qt.QPoint"), End), + _func[5] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QCheckBox_mouseMoveEvent_void_QCheckBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[6] = new MemberFunction(c, "nextCheckState", _n_nextCheckState0, None, Compiled, qt_QCheckBox_nextCheckState_void_QCheckBox, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), End), + _func[7] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QCheckBox_paintEvent_void_QCheckBox_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "_p14", "qt.QPaintEvent"), End), + _func[8] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QCheckBox_changeEvent_void_QCheckBox_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "e", "qt.QEvent"), End), + _func[9] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QCheckBox_focusInEvent_void_QCheckBox_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[10] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QCheckBox_focusOutEvent_void_QCheckBox_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[11] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QCheckBox_keyPressEvent_void_QCheckBox_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[12] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QCheckBox_keyReleaseEvent_void_QCheckBox_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[13] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QCheckBox_mousePressEvent_void_QCheckBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[14] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QCheckBox_mouseReleaseEvent_void_QCheckBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[15] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QCheckBox_timerEvent_void_QCheckBox_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCheckBox"), new Param(c, "e", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QCheckBox::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QClipboardType.cpp b/src/lib/mu/MuQt6/QClipboardType.cpp new file mode 100644 index 000000000..984dc700e --- /dev/null +++ b/src/lib/mu/MuQt6/QClipboardType.cpp @@ -0,0 +1,397 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QClipboardType::QClipboardType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QClipboardType::~QClipboardType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QClipboard_QClipboard_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QClipboard* w = object(widget)) + { + QClipboardType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QClipboard"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QClipboard_QClipboard_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +void qt_QClipboard_clear_void_QClipboard_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + QClipboard::Mode arg1 = (QClipboard::Mode)(param_mode); + arg0->clear(arg1); +} + +Pointer qt_QClipboard_image_QImage_QClipboard_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + QClipboard::Mode arg1 = (QClipboard::Mode)(param_mode); + return makeqtype(c,arg0->image(arg1),"qt.QImage"); +} + +Pointer qt_QClipboard_mimeData_QMimeData_QClipboard_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + QClipboard::Mode arg1 = (QClipboard::Mode)(param_mode); + return makeinstance(c, arg0->mimeData(arg1), "qt.QMimeData"); +} + +bool qt_QClipboard_ownsClipboard_bool_QClipboard(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + return arg0->ownsClipboard(); +} + +bool qt_QClipboard_ownsFindBuffer_bool_QClipboard(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + return arg0->ownsFindBuffer(); +} + +bool qt_QClipboard_ownsSelection_bool_QClipboard(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + return arg0->ownsSelection(); +} + +Pointer qt_QClipboard_pixmap_QPixmap_QClipboard_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + QClipboard::Mode arg1 = (QClipboard::Mode)(param_mode); + return makeqtype(c,arg0->pixmap(arg1),"qt.QPixmap"); +} + +void qt_QClipboard_setImage_void_QClipboard_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_image, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + const QImage arg1 = getqtype(param_image); + QClipboard::Mode arg2 = (QClipboard::Mode)(param_mode); + arg0->setImage(arg1, arg2); +} + +void qt_QClipboard_setMimeData_void_QClipboard_QMimeData_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_src, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + QMimeData * arg1 = object(param_src); + QClipboard::Mode arg2 = (QClipboard::Mode)(param_mode); + arg0->setMimeData(arg1, arg2); +} + +void qt_QClipboard_setPixmap_void_QClipboard_QPixmap_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pixmap, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + const QPixmap arg1 = getqtype(param_pixmap); + QClipboard::Mode arg2 = (QClipboard::Mode)(param_mode); + arg0->setPixmap(arg1, arg2); +} + +void qt_QClipboard_setText_void_QClipboard_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + QClipboard::Mode arg2 = (QClipboard::Mode)(param_mode); + arg0->setText(arg1, arg2); +} + +bool qt_QClipboard_supportsFindBuffer_bool_QClipboard(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + return arg0->supportsFindBuffer(); +} + +bool qt_QClipboard_supportsSelection_bool_QClipboard(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + return arg0->supportsSelection(); +} + +Pointer qt_QClipboard_text_string_QClipboard_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + QClipboard::Mode arg1 = (QClipboard::Mode)(param_mode); + return makestring(c,arg0->text(arg1)); +} + +Pointer qt_QClipboard_text_string_QClipboard_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_subtype, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + QString arg1 = qstring(param_subtype); + QClipboard::Mode arg2 = (QClipboard::Mode)(param_mode); + return makestring(c,arg0->text(arg1, arg2)); +} + +bool qt_QClipboard_event_bool_QClipboard_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return arg0->event(arg1); +} + +bool qt_QClipboard_eventFilter_bool_QClipboard_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QClipboard* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return arg0->eventFilter(arg1, arg2); +} + + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QClipboard_clear_void_QClipboard_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_image0, Pointer) +{ + NODE_RETURN(qt_QClipboard_image_QImage_QClipboard_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_mimeData0, Pointer) +{ + NODE_RETURN(qt_QClipboard_mimeData_QMimeData_QClipboard_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_ownsClipboard0, bool) +{ + NODE_RETURN(qt_QClipboard_ownsClipboard_bool_QClipboard(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_ownsFindBuffer0, bool) +{ + NODE_RETURN(qt_QClipboard_ownsFindBuffer_bool_QClipboard(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_ownsSelection0, bool) +{ + NODE_RETURN(qt_QClipboard_ownsSelection_bool_QClipboard(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pixmap0, Pointer) +{ + NODE_RETURN(qt_QClipboard_pixmap_QPixmap_QClipboard_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setImage0, void) +{ + qt_QClipboard_setImage_void_QClipboard_QImage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setMimeData0, void) +{ + qt_QClipboard_setMimeData_void_QClipboard_QMimeData_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setPixmap0, void) +{ + qt_QClipboard_setPixmap_void_QClipboard_QPixmap_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setText0, void) +{ + qt_QClipboard_setText_void_QClipboard_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_supportsFindBuffer0, bool) +{ + NODE_RETURN(qt_QClipboard_supportsFindBuffer_bool_QClipboard(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportsSelection0, bool) +{ + NODE_RETURN(qt_QClipboard_supportsSelection_bool_QClipboard(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QClipboard_text_string_QClipboard_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_text1, Pointer) +{ + NODE_RETURN(qt_QClipboard_text_string_QClipboard_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QClipboard_event_bool_QClipboard_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QClipboard_eventFilter_bool_QClipboard_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + + + +void +QClipboardType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QClipboard_QClipboard_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "clear", _n_clear0, None, Compiled, qt_QClipboard_clear_void_QClipboard_int, Return, "void", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "mode", "int", Value((int)QClipboard::Clipboard)), End), + new Function(c, "image", _n_image0, None, Compiled, qt_QClipboard_image_QImage_QClipboard_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "mode", "int", Value((int)QClipboard::Clipboard)), End), + new Function(c, "mimeData", _n_mimeData0, None, Compiled, qt_QClipboard_mimeData_QMimeData_QClipboard_int, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "mode", "int", Value((int)QClipboard::Clipboard)), End), + new Function(c, "ownsClipboard", _n_ownsClipboard0, None, Compiled, qt_QClipboard_ownsClipboard_bool_QClipboard, Return, "bool", Parameters, new Param(c, "this", "qt.QClipboard"), End), + new Function(c, "ownsFindBuffer", _n_ownsFindBuffer0, None, Compiled, qt_QClipboard_ownsFindBuffer_bool_QClipboard, Return, "bool", Parameters, new Param(c, "this", "qt.QClipboard"), End), + new Function(c, "ownsSelection", _n_ownsSelection0, None, Compiled, qt_QClipboard_ownsSelection_bool_QClipboard, Return, "bool", Parameters, new Param(c, "this", "qt.QClipboard"), End), + new Function(c, "pixmap", _n_pixmap0, None, Compiled, qt_QClipboard_pixmap_QPixmap_QClipboard_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "mode", "int", Value((int)QClipboard::Clipboard)), End), + new Function(c, "setImage", _n_setImage0, None, Compiled, qt_QClipboard_setImage_void_QClipboard_QImage_int, Return, "void", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "image", "qt.QImage"), new Param(c, "mode", "int", Value((int)QClipboard::Clipboard)), End), + new Function(c, "setMimeData", _n_setMimeData0, None, Compiled, qt_QClipboard_setMimeData_void_QClipboard_QMimeData_int, Return, "void", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "src", "qt.QMimeData"), new Param(c, "mode", "int", Value((int)QClipboard::Clipboard)), End), + new Function(c, "setPixmap", _n_setPixmap0, None, Compiled, qt_QClipboard_setPixmap_void_QClipboard_QPixmap_int, Return, "void", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "pixmap", "qt.QPixmap"), new Param(c, "mode", "int", Value((int)QClipboard::Clipboard)), End), + new Function(c, "setText", _n_setText0, None, Compiled, qt_QClipboard_setText_void_QClipboard_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "text", "string"), new Param(c, "mode", "int", Value((int)QClipboard::Clipboard)), End), + new Function(c, "supportsFindBuffer", _n_supportsFindBuffer0, None, Compiled, qt_QClipboard_supportsFindBuffer_bool_QClipboard, Return, "bool", Parameters, new Param(c, "this", "qt.QClipboard"), End), + new Function(c, "supportsSelection", _n_supportsSelection0, None, Compiled, qt_QClipboard_supportsSelection_bool_QClipboard, Return, "bool", Parameters, new Param(c, "this", "qt.QClipboard"), End), + new Function(c, "text", _n_text0, None, Compiled, qt_QClipboard_text_string_QClipboard_int, Return, "string", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "mode", "int", Value((int)QClipboard::Clipboard)), End), + new Function(c, "text", _n_text1, None, Compiled, qt_QClipboard_text_string_QClipboard_string_int, Return, "string", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "subtype", "string"), new Param(c, "mode", "int", Value((int)QClipboard::Clipboard)), End), + new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QClipboard_event_bool_QClipboard_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "e", "qt.QEvent"), End), + new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QClipboard_eventFilter_bool_QClipboard_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QClipboard"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QClipboard this) + // MISSING: childEvent (void; QClipboard this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QClipboard this, "const QMetaMethod &" signal) // protected + // NOT INHERITABLE PROTECTED: customEvent (void; QClipboard this, QEvent event) // protected + // MISSING: disconnectNotify (void; QClipboard this, "const QMetaMethod &" signal) // protected + // NOT INHERITABLE PROTECTED: timerEvent (void; QClipboard this, QTimerEvent event) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QClipboard::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QCloseEventType.cpp b/src/lib/mu/MuQt6/QCloseEventType.cpp new file mode 100644 index 000000000..1cc98d419 --- /dev/null +++ b/src/lib/mu/MuQt6/QCloseEventType.cpp @@ -0,0 +1,118 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QCloseEventType::QCloseEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QCloseEventType::~QCloseEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QCloseEvent_QCloseEvent_QCloseEvent_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqpointer(param_this,new QCloseEvent()); + return param_this; +} + + +static NODE_IMPLEMENTATION(_n_QCloseEvent0, Pointer) +{ + NODE_RETURN(qt_QCloseEvent_QCloseEvent_QCloseEvent_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QCloseEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QCloseEvent", _n_QCloseEvent0, None, Compiled, qt_QCloseEvent_QCloseEvent_QCloseEvent_QCloseEvent, Return, "qt.QCloseEvent", Parameters, new Param(c, "this", "qt.QCloseEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QColorDialogType.cpp b/src/lib/mu/MuQt6/QColorDialogType.cpp new file mode 100644 index 000000000..7b7c62f9f --- /dev/null +++ b/src/lib/mu/MuQt6/QColorDialogType.cpp @@ -0,0 +1,720 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QColorDialog::~MuQt_QColorDialog() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QColorDialog::MuQt_QColorDialog(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QColorDialog(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QColorDialog")); +} + +MuQt_QColorDialog::MuQt_QColorDialog(Pointer muobj, const CallEnvironment* ce, const QColor & initial, QWidget * parent) + : QColorDialog(initial, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QColorDialog")); +} + +void MuQt_QColorDialog::setVisible(bool visible) +{ + if (!_env) { QColorDialog::setVisible(visible); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(visible); + Value rval = _env->call(F, args); + } + else + { + QColorDialog::setVisible(visible); + } +} + +void MuQt_QColorDialog::changeEvent(QEvent * e) +{ + if (!_env) { QColorDialog::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QColorDialog::changeEvent(e); + } +} + +void MuQt_QColorDialog::done(int result) +{ + if (!_env) { QColorDialog::done(result); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(result); + Value rval = _env->call(F, args); + } + else + { + QColorDialog::done(result); + } +} + +QSize MuQt_QColorDialog::minimumSizeHint() const +{ + if (!_env) return QColorDialog::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QColorDialog::minimumSizeHint(); + } +} + +QSize MuQt_QColorDialog::sizeHint() const +{ + if (!_env) return QColorDialog::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QColorDialog::sizeHint(); + } +} + +void MuQt_QColorDialog::closeEvent(QCloseEvent * e) +{ + if (!_env) { QColorDialog::closeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QColorDialog::closeEvent(e); + } +} + +void MuQt_QColorDialog::contextMenuEvent(QContextMenuEvent * e) +{ + if (!_env) { QColorDialog::contextMenuEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QColorDialog::contextMenuEvent(e); + } +} + +bool MuQt_QColorDialog::eventFilter(QObject * o, QEvent * e) +{ + if (!_env) return QColorDialog::eventFilter(o, e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,o,"qt.QObject")); + args[2] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QColorDialog::eventFilter(o, e); + } +} + +void MuQt_QColorDialog::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QColorDialog::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QColorDialog::keyPressEvent(e); + } +} + +void MuQt_QColorDialog::resizeEvent(QResizeEvent * _p15) +{ + if (!_env) { QColorDialog::resizeEvent(_p15); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p15,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QColorDialog::resizeEvent(_p15); + } +} + +void MuQt_QColorDialog::showEvent(QShowEvent * event) +{ + if (!_env) { QColorDialog::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QColorDialog::showEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QColorDialogType::QColorDialogType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QColorDialogType::~QColorDialogType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QColorDialog_QColorDialog_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QColorDialog* w = object(widget)) + { + QColorDialogType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QColorDialog"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QColorDialog_QColorDialog_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QColorDialog_QColorDialog_QColorDialog_QColorDialog_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QColorDialog(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QColorDialog_QColorDialog_QColorDialog_QColorDialog_QColor_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_initial, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QColor arg1 = getqtype(param_initial); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QColorDialog(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QColorDialog_selectedColor_QColor_QColorDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + return makeqtype(c,arg0->selectedColor(),"qt.QColor"); +} + +void qt_QColorDialog_setOption_void_QColorDialog_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + QColorDialog::ColorDialogOption arg1 = (QColorDialog::ColorDialogOption)(param_option); + bool arg2 = (bool)(param_on); + arg0->setOption(arg1, arg2); +} + +bool qt_QColorDialog_testOption_bool_QColorDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + QColorDialog::ColorDialogOption arg1 = (QColorDialog::ColorDialogOption)(param_option); + return arg0->testOption(arg1); +} + +void qt_QColorDialog_setVisible_void_QColorDialog_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_visible) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + bool arg1 = (bool)(param_visible); + if (isMuQtObject(arg0)) arg0->QColorDialog::setVisible(arg1); + else arg0->setVisible(arg1); +} + +void qt_QColorDialog_changeEvent_void_QColorDialog_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QColorDialog*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QColorDialog*)arg0)->changeEvent_pub(arg1); +} + +void qt_QColorDialog_done_void_QColorDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_result) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + int arg1 = (int)(param_result); + if (isMuQtObject(arg0)) ((MuQt_QColorDialog*)arg0)->done_pub_parent(arg1); + else ((MuQt_QColorDialog*)arg0)->done_pub(arg1); +} + +Pointer qt_QColorDialog_minimumSizeHint_QSize_QColorDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QColorDialog::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QColorDialog_sizeHint_QSize_QColorDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QColorDialog::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QColorDialog_closeEvent_void_QColorDialog_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QColorDialog*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QColorDialog*)arg0)->closeEvent_pub(arg1); +} + +void qt_QColorDialog_contextMenuEvent_void_QColorDialog_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QColorDialog*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QColorDialog*)arg0)->contextMenuEvent_pub(arg1); +} + +bool qt_QColorDialog_eventFilter_bool_QColorDialog_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_o, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + QObject * arg1 = object(param_o); + QEvent * arg2 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QColorDialog*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QColorDialog*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QColorDialog_keyPressEvent_void_QColorDialog_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QColorDialog*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QColorDialog*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QColorDialog_resizeEvent_void_QColorDialog_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p15) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param__p15); + if (isMuQtObject(arg0)) ((MuQt_QColorDialog*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QColorDialog*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QColorDialog_showEvent_void_QColorDialog_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColorDialog* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColorDialog*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QColorDialog*)arg0)->showEvent_pub(arg1); +} + +Pointer qt_QColorDialog_customColor_QColor_int(Mu::Thread& NODE_THREAD, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_index); + return makeqtype(c,QColorDialog::customColor(arg0),"qt.QColor"); +} + +int qt_QColorDialog_customCount_int(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QColorDialog::customCount(); +} + +Pointer qt_QColorDialog_getColor_QColor_QColor_QWidget_string_int(Mu::Thread& NODE_THREAD, Pointer param_initial, Pointer param_parent, Pointer param_title, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QColor arg0 = getqtype(param_initial); + QWidget * arg1 = object(param_parent); + const QString arg2 = qstring(param_title); + QColorDialog::ColorDialogOptions arg3 = (QColorDialog::ColorDialogOptions)(param_options); + return makeqtype(c,QColorDialog::getColor(arg0, arg1, arg2, arg3),"qt.QColor"); +} + +void qt_QColorDialog_setCustomColor_void_int_QColor(Mu::Thread& NODE_THREAD, int param_index, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_index); + QColor arg1 = getqtype(param_color); + QColorDialog::setCustomColor(arg0, arg1); +} + +void qt_QColorDialog_setStandardColor_void_int_QColor(Mu::Thread& NODE_THREAD, int param_index, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_index); + QColor arg1 = getqtype(param_color); + QColorDialog::setStandardColor(arg0, arg1); +} + +Pointer qt_QColorDialog_standardColor_QColor_int(Mu::Thread& NODE_THREAD, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_index); + return makeqtype(c,QColorDialog::standardColor(arg0),"qt.QColor"); +} + + +static NODE_IMPLEMENTATION(_n_QColorDialog0, Pointer) +{ + NODE_RETURN(qt_QColorDialog_QColorDialog_QColorDialog_QColorDialog_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QColorDialog1, Pointer) +{ + NODE_RETURN(qt_QColorDialog_QColorDialog_QColorDialog_QColorDialog_QColor_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectedColor0, Pointer) +{ + NODE_RETURN(qt_QColorDialog_selectedColor_QColor_QColorDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setOption0, void) +{ + qt_QColorDialog_setOption_void_QColorDialog_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_testOption0, bool) +{ + NODE_RETURN(qt_QColorDialog_testOption_bool_QColorDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setVisible0, void) +{ + qt_QColorDialog_setVisible_void_QColorDialog_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QColorDialog_changeEvent_void_QColorDialog_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_done0, void) +{ + qt_QColorDialog_done_void_QColorDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QColorDialog_minimumSizeHint_QSize_QColorDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QColorDialog_sizeHint_QSize_QColorDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QColorDialog_closeEvent_void_QColorDialog_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QColorDialog_contextMenuEvent_void_QColorDialog_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QColorDialog_eventFilter_bool_QColorDialog_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QColorDialog_keyPressEvent_void_QColorDialog_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QColorDialog_resizeEvent_void_QColorDialog_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QColorDialog_showEvent_void_QColorDialog_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_customColor0, Pointer) +{ + NODE_RETURN(qt_QColorDialog_customColor_QColor_int(NODE_THREAD, NODE_ARG(0, int))); +} + +static NODE_IMPLEMENTATION(_n_customCount0, int) +{ + NODE_RETURN(qt_QColorDialog_customCount_int(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_getColor0, Pointer) +{ + NODE_RETURN(qt_QColorDialog_getColor_QColor_QColor_QWidget_string_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_setCustomColor0, void) +{ + qt_QColorDialog_setCustomColor_void_int_QColor(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setStandardColor0, void) +{ + qt_QColorDialog_setStandardColor_void_int_QColor(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_standardColor0, Pointer) +{ + NODE_RETURN(qt_QColorDialog_standardColor_QColor_int(NODE_THREAD, NODE_ARG(0, int))); +} + + + +void +QColorDialogType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QColorDialog_QColorDialog_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QColorDialog", _n_QColorDialog0, None, Compiled, qt_QColorDialog_QColorDialog_QColorDialog_QColorDialog_QWidget, Return, "qt.QColorDialog", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QColorDialog", _n_QColorDialog1, None, Compiled, qt_QColorDialog_QColorDialog_QColorDialog_QColorDialog_QColor_QWidget, Return, "qt.QColorDialog", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "initial", "qt.QColor"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: currentColor (QColor; QColorDialog this) + // MISSING: open (void; QColorDialog this, QObject receiver, "const char *" member) + // PROP: options (flags QColorDialog::ColorDialogOptions; QColorDialog this) + new Function(c, "selectedColor", _n_selectedColor0, None, Compiled, qt_QColorDialog_selectedColor_QColor_QColorDialog, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColorDialog"), End), + // PROP: setCurrentColor (void; QColorDialog this, QColor color) + new Function(c, "setOption", _n_setOption0, None, Compiled, qt_QColorDialog_setOption_void_QColorDialog_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "option", "int"), new Param(c, "on", "bool"), End), + // PROP: setOptions (void; QColorDialog this, flags QColorDialog::ColorDialogOptions options) + new Function(c, "testOption", _n_testOption0, None, Compiled, qt_QColorDialog_testOption_bool_QColorDialog_int, Return, "bool", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "option", "int"), End), + _func[0] = new MemberFunction(c, "setVisible", _n_setVisible0, None, Compiled, qt_QColorDialog_setVisible_void_QColorDialog_bool, Return, "void", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "visible", "bool"), End), + _func[1] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QColorDialog_changeEvent_void_QColorDialog_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "e", "qt.QEvent"), End), + _func[2] = new MemberFunction(c, "done", _n_done0, None, Compiled, qt_QColorDialog_done_void_QColorDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "result", "int"), End), + _func[3] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QColorDialog_minimumSizeHint_QSize_QColorDialog, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QColorDialog"), End), + _func[4] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QColorDialog_sizeHint_QSize_QColorDialog, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QColorDialog"), End), + _func[5] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QColorDialog_closeEvent_void_QColorDialog_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "e", "qt.QCloseEvent"), End), + _func[6] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QColorDialog_contextMenuEvent_void_QColorDialog_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "e", "qt.QContextMenuEvent"), End), + _func[7] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QColorDialog_eventFilter_bool_QColorDialog_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "o", "qt.QObject"), new Param(c, "e", "qt.QEvent"), End), + _func[8] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QColorDialog_keyPressEvent_void_QColorDialog_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[9] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QColorDialog_resizeEvent_void_QColorDialog_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "_p15", "qt.QResizeEvent"), End), + _func[10] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QColorDialog_showEvent_void_QColorDialog_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColorDialog"), new Param(c, "event", "qt.QShowEvent"), End), + // static functions + new Function(c, "customColor", _n_customColor0, None, Compiled, qt_QColorDialog_customColor_QColor_int, Return, "qt.QColor", Parameters, new Param(c, "index", "int"), End), + new Function(c, "customCount", _n_customCount0, None, Compiled, qt_QColorDialog_customCount_int, Return, "int", End), + new Function(c, "getColor", _n_getColor0, None, Compiled, qt_QColorDialog_getColor_QColor_QColor_QWidget_string_int, Return, "qt.QColor", Parameters, new Param(c, "initial", "qt.QColor"), new Param(c, "parent", "qt.QWidget"), new Param(c, "title", "string"), new Param(c, "options", "int", Value((int)QColorDialog::ColorDialogOptions())), End), + new Function(c, "setCustomColor", _n_setCustomColor0, None, Compiled, qt_QColorDialog_setCustomColor_void_int_QColor, Return, "void", Parameters, new Param(c, "index", "int"), new Param(c, "color", "qt.QColor"), End), + new Function(c, "setStandardColor", _n_setStandardColor0, None, Compiled, qt_QColorDialog_setStandardColor_void_int_QColor, Return, "void", Parameters, new Param(c, "index", "int"), new Param(c, "color", "qt.QColor"), End), + new Function(c, "standardColor", _n_standardColor0, None, Compiled, qt_QColorDialog_standardColor_QColor_int, Return, "qt.QColor", Parameters, new Param(c, "index", "int"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QColorDialog::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QColorType.cpp b/src/lib/mu/MuQt6/QColorType.cpp new file mode 100644 index 000000000..353ce74e9 --- /dev/null +++ b/src/lib/mu/MuQt6/QColorType.cpp @@ -0,0 +1,1307 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QColorType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QColorType::QColorType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QColorType::~QColorType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QColorType::Instance* i = new QColorType::Instance((Class*)NODE_THIS.type()); + QColorType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QColorType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QColorType::finalizer, 0, 0, 0); +} + +void +QColorType::finalizer (void* obj, void* data) +{ + QColorType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QColor_QColor_QColor_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QColor()); + return param_this; +} + +Pointer qt_QColor_QColor_QColor_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::GlobalColor arg1 = (Qt::GlobalColor)(param_color); + setqtype(param_this,QColor(arg1)); + return param_this; +} + +Pointer qt_QColor_QColor_QColor_QColor_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_r, int param_g, int param_b, int param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_r); + int arg2 = (int)(param_g); + int arg3 = (int)(param_b); + int arg4 = (int)(param_a); + setqtype(param_this,QColor(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QColor_QColor_QColor_QColor_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_name); + setqtype(param_this,QColor(arg1)); + return param_this; +} + +int qt_QColor_alpha_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.alpha(); +} + +float qt_QColor_alphaF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.alphaF(); +} + +int qt_QColor_black_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.black(); +} + +float qt_QColor_blackF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.blackF(); +} + +int qt_QColor_blue_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.blue(); +} + +float qt_QColor_blueF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.blueF(); +} + +Pointer qt_QColor_convertTo_QColor_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_colorSpec) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + QColor::Spec arg1 = (QColor::Spec)(param_colorSpec); + return makeqtype(c,arg0.convertTo(arg1),"qt.QColor"); +} + +int qt_QColor_cyan_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.cyan(); +} + +float qt_QColor_cyanF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.cyanF(); +} + +Pointer qt_QColor_darker_QColor_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_factor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + int arg1 = (int)(param_factor); + return makeqtype(c,arg0.darker(arg1),"qt.QColor"); +} + +int qt_QColor_green_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.green(); +} + +float qt_QColor_greenF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.greenF(); +} + +int qt_QColor_hslHue_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.hslHue(); +} + +float qt_QColor_hslHueF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.hslHueF(); +} + +int qt_QColor_hslSaturation_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.hslSaturation(); +} + +float qt_QColor_hslSaturationF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.hslSaturationF(); +} + +int qt_QColor_hsvHue_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.hsvHue(); +} + +float qt_QColor_hsvHueF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.hsvHueF(); +} + +int qt_QColor_hsvSaturation_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.hsvSaturation(); +} + +float qt_QColor_hsvSaturationF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.hsvSaturationF(); +} + +int qt_QColor_hue_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.hue(); +} + +float qt_QColor_hueF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.hueF(); +} + +bool qt_QColor_isValid_bool_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.isValid(); +} + +Pointer qt_QColor_lighter_QColor_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_factor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + int arg1 = (int)(param_factor); + return makeqtype(c,arg0.lighter(arg1),"qt.QColor"); +} + +int qt_QColor_lightness_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.lightness(); +} + +float qt_QColor_lightnessF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.lightnessF(); +} + +int qt_QColor_magenta_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.magenta(); +} + +float qt_QColor_magentaF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.magentaF(); +} + +Pointer qt_QColor_name_string_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + QColor::NameFormat arg1 = (QColor::NameFormat)(param_format); + return makestring(c,arg0.name(arg1)); +} + +int qt_QColor_red_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.red(); +} + +float qt_QColor_redF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.redF(); +} + +int qt_QColor_rgb_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.rgb(); +} + +int qt_QColor_rgba_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.rgba(); +} + +int qt_QColor_saturation_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.saturation(); +} + +float qt_QColor_saturationF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.saturationF(); +} + +void qt_QColor_setAlpha_void_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_alpha) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + int arg1 = (int)(param_alpha); + arg0.setAlpha(arg1); + setqtype(param_this,arg0); +} + +void qt_QColor_setAlphaF_void_QColor_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_alpha) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + float arg1 = (float)(param_alpha); + arg0.setAlphaF(arg1); + setqtype(param_this,arg0); +} + +void qt_QColor_setBlue_void_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_blue) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + int arg1 = (int)(param_blue); + arg0.setBlue(arg1); + setqtype(param_this,arg0); +} + +void qt_QColor_setBlueF_void_QColor_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_blue) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + float arg1 = (float)(param_blue); + arg0.setBlueF(arg1); + setqtype(param_this,arg0); +} + +void qt_QColor_setCmyk_void_QColor_int_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_c, int param_m, int param_y, int param_k, int param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + int arg1 = (int)(param_c); + int arg2 = (int)(param_m); + int arg3 = (int)(param_y); + int arg4 = (int)(param_k); + int arg5 = (int)(param_a); + arg0.setCmyk(arg1, arg2, arg3, arg4, arg5); + setqtype(param_this,arg0); +} + +void qt_QColor_setCmykF_void_QColor_float_float_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_c, float param_m, float param_y, float param_k, float param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + float arg1 = (float)(param_c); + float arg2 = (float)(param_m); + float arg3 = (float)(param_y); + float arg4 = (float)(param_k); + float arg5 = (float)(param_a); + arg0.setCmykF(arg1, arg2, arg3, arg4, arg5); + setqtype(param_this,arg0); +} + +void qt_QColor_setGreen_void_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_green) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + int arg1 = (int)(param_green); + arg0.setGreen(arg1); + setqtype(param_this,arg0); +} + +void qt_QColor_setGreenF_void_QColor_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_green) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + float arg1 = (float)(param_green); + arg0.setGreenF(arg1); + setqtype(param_this,arg0); +} + +void qt_QColor_setHsl_void_QColor_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_h, int param_s, int param_l, int param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + int arg1 = (int)(param_h); + int arg2 = (int)(param_s); + int arg3 = (int)(param_l); + int arg4 = (int)(param_a); + arg0.setHsl(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QColor_setHslF_void_QColor_float_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_h, float param_s, float param_l, float param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + float arg1 = (float)(param_h); + float arg2 = (float)(param_s); + float arg3 = (float)(param_l); + float arg4 = (float)(param_a); + arg0.setHslF(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QColor_setHsv_void_QColor_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_h, int param_s, int param_v, int param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + int arg1 = (int)(param_h); + int arg2 = (int)(param_s); + int arg3 = (int)(param_v); + int arg4 = (int)(param_a); + arg0.setHsv(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QColor_setHsvF_void_QColor_float_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_h, float param_s, float param_v, float param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + float arg1 = (float)(param_h); + float arg2 = (float)(param_s); + float arg3 = (float)(param_v); + float arg4 = (float)(param_a); + arg0.setHsvF(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QColor_setRed_void_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_red) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + int arg1 = (int)(param_red); + arg0.setRed(arg1); + setqtype(param_this,arg0); +} + +void qt_QColor_setRedF_void_QColor_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_red) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + float arg1 = (float)(param_red); + arg0.setRedF(arg1); + setqtype(param_this,arg0); +} + +void qt_QColor_setRgb_void_QColor_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_r, int param_g, int param_b, int param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + int arg1 = (int)(param_r); + int arg2 = (int)(param_g); + int arg3 = (int)(param_b); + int arg4 = (int)(param_a); + arg0.setRgb(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QColor_setRgb_void_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_rgb) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + QRgb arg1 = (int)(param_rgb); + arg0.setRgb(arg1); + setqtype(param_this,arg0); +} + +void qt_QColor_setRgbF_void_QColor_float_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_r, float param_g, float param_b, float param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + float arg1 = (float)(param_r); + float arg2 = (float)(param_g); + float arg3 = (float)(param_b); + float arg4 = (float)(param_a); + arg0.setRgbF(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QColor_setRgba_void_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_rgba) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + QRgb arg1 = (int)(param_rgba); + arg0.setRgba(arg1); + setqtype(param_this,arg0); +} + +int qt_QColor_spec_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return int(arg0.spec()); +} + +Pointer qt_QColor_toCmyk_QColor_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return makeqtype(c,arg0.toCmyk(),"qt.QColor"); +} + +Pointer qt_QColor_toExtendedRgb_QColor_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return makeqtype(c,arg0.toExtendedRgb(),"qt.QColor"); +} + +Pointer qt_QColor_toHsl_QColor_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return makeqtype(c,arg0.toHsl(),"qt.QColor"); +} + +Pointer qt_QColor_toHsv_QColor_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return makeqtype(c,arg0.toHsv(),"qt.QColor"); +} + +Pointer qt_QColor_toRgb_QColor_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return makeqtype(c,arg0.toRgb(),"qt.QColor"); +} + +int qt_QColor_value_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.value(); +} + +float qt_QColor_valueF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.valueF(); +} + +int qt_QColor_yellow_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.yellow(); +} + +float qt_QColor_yellowF_float_QColor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + return arg0.yellowF(); +} + +bool qt_QColor_operatorBang_EQ__bool_QColor_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + const QColor arg1 = getqtype(param_color); + return arg0.operator!=(arg1); +} + +bool qt_QColor_operatorEQ_EQ__bool_QColor_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColor arg0 = getqtype(param_this); + const QColor arg1 = getqtype(param_color); + return arg0.operator==(arg1); +} + +Pointer qt_QColor_colorNames_stringBSB_ESB_(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestringlist(c,QColor::colorNames()); +} + +Pointer qt_QColor_fromCmyk_QColor_int_int_int_int_int(Mu::Thread& NODE_THREAD, int param_c, int param_m, int param_y, int param_k, int param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_c); + int arg1 = (int)(param_m); + int arg2 = (int)(param_y); + int arg3 = (int)(param_k); + int arg4 = (int)(param_a); + return makeqtype(c,QColor::fromCmyk(arg0, arg1, arg2, arg3, arg4),"qt.QColor"); +} + +Pointer qt_QColor_fromCmykF_QColor_float_float_float_float_float(Mu::Thread& NODE_THREAD, float param_c, float param_m, float param_y, float param_k, float param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + float arg0 = (float)(param_c); + float arg1 = (float)(param_m); + float arg2 = (float)(param_y); + float arg3 = (float)(param_k); + float arg4 = (float)(param_a); + return makeqtype(c,QColor::fromCmykF(arg0, arg1, arg2, arg3, arg4),"qt.QColor"); +} + +Pointer qt_QColor_fromHsl_QColor_int_int_int_int(Mu::Thread& NODE_THREAD, int param_h, int param_s, int param_l, int param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_h); + int arg1 = (int)(param_s); + int arg2 = (int)(param_l); + int arg3 = (int)(param_a); + return makeqtype(c,QColor::fromHsl(arg0, arg1, arg2, arg3),"qt.QColor"); +} + +Pointer qt_QColor_fromHslF_QColor_float_float_float_float(Mu::Thread& NODE_THREAD, float param_h, float param_s, float param_l, float param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + float arg0 = (float)(param_h); + float arg1 = (float)(param_s); + float arg2 = (float)(param_l); + float arg3 = (float)(param_a); + return makeqtype(c,QColor::fromHslF(arg0, arg1, arg2, arg3),"qt.QColor"); +} + +Pointer qt_QColor_fromHsv_QColor_int_int_int_int(Mu::Thread& NODE_THREAD, int param_h, int param_s, int param_v, int param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_h); + int arg1 = (int)(param_s); + int arg2 = (int)(param_v); + int arg3 = (int)(param_a); + return makeqtype(c,QColor::fromHsv(arg0, arg1, arg2, arg3),"qt.QColor"); +} + +Pointer qt_QColor_fromHsvF_QColor_float_float_float_float(Mu::Thread& NODE_THREAD, float param_h, float param_s, float param_v, float param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + float arg0 = (float)(param_h); + float arg1 = (float)(param_s); + float arg2 = (float)(param_v); + float arg3 = (float)(param_a); + return makeqtype(c,QColor::fromHsvF(arg0, arg1, arg2, arg3),"qt.QColor"); +} + +Pointer qt_QColor_fromRgb_QColor_int(Mu::Thread& NODE_THREAD, int param_rgb) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRgb arg0 = (int)(param_rgb); + return makeqtype(c,QColor::fromRgb(arg0),"qt.QColor"); +} + +Pointer qt_QColor_fromRgb_QColor_int_int_int_int(Mu::Thread& NODE_THREAD, int param_r, int param_g, int param_b, int param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_r); + int arg1 = (int)(param_g); + int arg2 = (int)(param_b); + int arg3 = (int)(param_a); + return makeqtype(c,QColor::fromRgb(arg0, arg1, arg2, arg3),"qt.QColor"); +} + +Pointer qt_QColor_fromRgbF_QColor_float_float_float_float(Mu::Thread& NODE_THREAD, float param_r, float param_g, float param_b, float param_a) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + float arg0 = (float)(param_r); + float arg1 = (float)(param_g); + float arg2 = (float)(param_b); + float arg3 = (float)(param_a); + return makeqtype(c,QColor::fromRgbF(arg0, arg1, arg2, arg3),"qt.QColor"); +} + +Pointer qt_QColor_fromRgba_QColor_int(Mu::Thread& NODE_THREAD, int param_rgba) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRgb arg0 = (int)(param_rgba); + return makeqtype(c,QColor::fromRgba(arg0),"qt.QColor"); +} + + +static NODE_IMPLEMENTATION(_n_QColor0, Pointer) +{ + NODE_RETURN(qt_QColor_QColor_QColor_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QColor1, Pointer) +{ + NODE_RETURN(qt_QColor_QColor_QColor_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_QColor2, Pointer) +{ + NODE_RETURN(qt_QColor_QColor_QColor_QColor_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_QColor5, Pointer) +{ + NODE_RETURN(qt_QColor_QColor_QColor_QColor_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_alpha0, int) +{ + NODE_RETURN(qt_QColor_alpha_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_alphaF0, float) +{ + NODE_RETURN(qt_QColor_alphaF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_black0, int) +{ + NODE_RETURN(qt_QColor_black_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_blackF0, float) +{ + NODE_RETURN(qt_QColor_blackF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_blue0, int) +{ + NODE_RETURN(qt_QColor_blue_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_blueF0, float) +{ + NODE_RETURN(qt_QColor_blueF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_convertTo0, Pointer) +{ + NODE_RETURN(qt_QColor_convertTo_QColor_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_cyan0, int) +{ + NODE_RETURN(qt_QColor_cyan_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cyanF0, float) +{ + NODE_RETURN(qt_QColor_cyanF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_darker0, Pointer) +{ + NODE_RETURN(qt_QColor_darker_QColor_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_green0, int) +{ + NODE_RETURN(qt_QColor_green_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_greenF0, float) +{ + NODE_RETURN(qt_QColor_greenF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hslHue0, int) +{ + NODE_RETURN(qt_QColor_hslHue_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hslHueF0, float) +{ + NODE_RETURN(qt_QColor_hslHueF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hslSaturation0, int) +{ + NODE_RETURN(qt_QColor_hslSaturation_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hslSaturationF0, float) +{ + NODE_RETURN(qt_QColor_hslSaturationF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hsvHue0, int) +{ + NODE_RETURN(qt_QColor_hsvHue_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hsvHueF0, float) +{ + NODE_RETURN(qt_QColor_hsvHueF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hsvSaturation0, int) +{ + NODE_RETURN(qt_QColor_hsvSaturation_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hsvSaturationF0, float) +{ + NODE_RETURN(qt_QColor_hsvSaturationF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hue0, int) +{ + NODE_RETURN(qt_QColor_hue_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hueF0, float) +{ + NODE_RETURN(qt_QColor_hueF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QColor_isValid_bool_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_lighter0, Pointer) +{ + NODE_RETURN(qt_QColor_lighter_QColor_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_lightness0, int) +{ + NODE_RETURN(qt_QColor_lightness_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_lightnessF0, float) +{ + NODE_RETURN(qt_QColor_lightnessF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_magenta0, int) +{ + NODE_RETURN(qt_QColor_magenta_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_magentaF0, float) +{ + NODE_RETURN(qt_QColor_magentaF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_name0, Pointer) +{ + NODE_RETURN(qt_QColor_name_string_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_red0, int) +{ + NODE_RETURN(qt_QColor_red_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_redF0, float) +{ + NODE_RETURN(qt_QColor_redF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rgb0, int) +{ + NODE_RETURN(qt_QColor_rgb_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rgba0, int) +{ + NODE_RETURN(qt_QColor_rgba_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_saturation0, int) +{ + NODE_RETURN(qt_QColor_saturation_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_saturationF0, float) +{ + NODE_RETURN(qt_QColor_saturationF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAlpha0, void) +{ + qt_QColor_setAlpha_void_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setAlphaF0, void) +{ + qt_QColor_setAlphaF_void_QColor_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float)); +} + +static NODE_IMPLEMENTATION(_n_setBlue0, void) +{ + qt_QColor_setBlue_void_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setBlueF0, void) +{ + qt_QColor_setBlueF_void_QColor_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float)); +} + +static NODE_IMPLEMENTATION(_n_setCmyk0, void) +{ + qt_QColor_setCmyk_void_QColor_int_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, int)); +} + +static NODE_IMPLEMENTATION(_n_setCmykF0, void) +{ + qt_QColor_setCmykF_void_QColor_float_float_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float), NODE_ARG(5, float)); +} + +static NODE_IMPLEMENTATION(_n_setGreen0, void) +{ + qt_QColor_setGreen_void_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setGreenF0, void) +{ + qt_QColor_setGreenF_void_QColor_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float)); +} + +static NODE_IMPLEMENTATION(_n_setHsl0, void) +{ + qt_QColor_setHsl_void_QColor_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setHslF0, void) +{ + qt_QColor_setHslF_void_QColor_float_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float)); +} + +static NODE_IMPLEMENTATION(_n_setHsv0, void) +{ + qt_QColor_setHsv_void_QColor_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setHsvF0, void) +{ + qt_QColor_setHsvF_void_QColor_float_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float)); +} + +static NODE_IMPLEMENTATION(_n_setRed0, void) +{ + qt_QColor_setRed_void_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setRedF0, void) +{ + qt_QColor_setRedF_void_QColor_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float)); +} + +static NODE_IMPLEMENTATION(_n_setRgb0, void) +{ + qt_QColor_setRgb_void_QColor_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setRgb1, void) +{ + qt_QColor_setRgb_void_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setRgbF0, void) +{ + qt_QColor_setRgbF_void_QColor_float_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float)); +} + +static NODE_IMPLEMENTATION(_n_setRgba0, void) +{ + qt_QColor_setRgba_void_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_spec0, int) +{ + NODE_RETURN(qt_QColor_spec_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toCmyk0, Pointer) +{ + NODE_RETURN(qt_QColor_toCmyk_QColor_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toExtendedRgb0, Pointer) +{ + NODE_RETURN(qt_QColor_toExtendedRgb_QColor_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toHsl0, Pointer) +{ + NODE_RETURN(qt_QColor_toHsl_QColor_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toHsv0, Pointer) +{ + NODE_RETURN(qt_QColor_toHsv_QColor_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toRgb0, Pointer) +{ + NODE_RETURN(qt_QColor_toRgb_QColor_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_value0, int) +{ + NODE_RETURN(qt_QColor_value_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_valueF0, float) +{ + NODE_RETURN(qt_QColor_valueF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_yellow0, int) +{ + NODE_RETURN(qt_QColor_yellow_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_yellowF0, float) +{ + NODE_RETURN(qt_QColor_yellowF_float_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QColor_operatorBang_EQ__bool_QColor_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QColor_operatorEQ_EQ__bool_QColor_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_colorNames0, Pointer) +{ + NODE_RETURN(qt_QColor_colorNames_stringBSB_ESB_(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_fromCmyk0, Pointer) +{ + NODE_RETURN(qt_QColor_fromCmyk_QColor_int_int_int_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_fromCmykF0, Pointer) +{ + NODE_RETURN(qt_QColor_fromCmykF_QColor_float_float_float_float_float(NODE_THREAD, NODE_ARG(0, float), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float))); +} + +static NODE_IMPLEMENTATION(_n_fromHsl0, Pointer) +{ + NODE_RETURN(qt_QColor_fromHsl_QColor_int_int_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_fromHslF0, Pointer) +{ + NODE_RETURN(qt_QColor_fromHslF_QColor_float_float_float_float(NODE_THREAD, NODE_ARG(0, float), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float))); +} + +static NODE_IMPLEMENTATION(_n_fromHsv0, Pointer) +{ + NODE_RETURN(qt_QColor_fromHsv_QColor_int_int_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_fromHsvF0, Pointer) +{ + NODE_RETURN(qt_QColor_fromHsvF_QColor_float_float_float_float(NODE_THREAD, NODE_ARG(0, float), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float))); +} + +static NODE_IMPLEMENTATION(_n_fromRgb0, Pointer) +{ + NODE_RETURN(qt_QColor_fromRgb_QColor_int(NODE_THREAD, NODE_ARG(0, int))); +} + +static NODE_IMPLEMENTATION(_n_fromRgb1, Pointer) +{ + NODE_RETURN(qt_QColor_fromRgb_QColor_int_int_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_fromRgbF0, Pointer) +{ + NODE_RETURN(qt_QColor_fromRgbF_QColor_float_float_float_float(NODE_THREAD, NODE_ARG(0, float), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float))); +} + +static NODE_IMPLEMENTATION(_n_fromRgba0, Pointer) +{ + NODE_RETURN(qt_QColor_fromRgba_QColor_int(NODE_THREAD, NODE_ARG(0, int))); +} + + + +void +QColorType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "NameFormat", "int"), + new SymbolicConstant(c, "HexRgb", "int", Value(int(QColor::HexRgb))), + new SymbolicConstant(c, "HexArgb", "int", Value(int(QColor::HexArgb))), + new Alias(c, "Spec", "int"), + new SymbolicConstant(c, "Rgb", "int", Value(int(QColor::Rgb))), + new SymbolicConstant(c, "Hsv", "int", Value(int(QColor::Hsv))), + new SymbolicConstant(c, "Cmyk", "int", Value(int(QColor::Cmyk))), + new SymbolicConstant(c, "Hsl", "int", Value(int(QColor::Hsl))), + new SymbolicConstant(c, "ExtendedRgb", "int", Value(int(QColor::ExtendedRgb))), + new SymbolicConstant(c, "Invalid", "int", Value(int(QColor::Invalid))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QColor", _n_QColor0, None, Compiled, qt_QColor_QColor_QColor_QColor, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "QColor", _n_QColor1, None, Compiled, qt_QColor_QColor_QColor_QColor_int, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "color", "int"), End), + new Function(c, "QColor", _n_QColor2, None, Compiled, qt_QColor_QColor_QColor_QColor_int_int_int_int, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "r", "int"), new Param(c, "g", "int"), new Param(c, "b", "int"), new Param(c, "a", "int", Value((int)255)), End), + // MISSING: QColor (QColor; QColor this, int color) + // MISSING: QColor (QColor; QColor this, "QRgba64" rgba64) + new Function(c, "QColor", _n_QColor5, None, Compiled, qt_QColor_QColor_QColor_QColor_string, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "name", "string"), End), + // MISSING: QColor (QColor; QColor this, "const char *" name) + // MISSING: QColor (QColor; QColor this, "QLatin1StringView" name) + new Function(c, "alpha", _n_alpha0, None, Compiled, qt_QColor_alpha_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "alphaF", _n_alphaF0, None, Compiled, qt_QColor_alphaF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "black", _n_black0, None, Compiled, qt_QColor_black_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "blackF", _n_blackF0, None, Compiled, qt_QColor_blackF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "blue", _n_blue0, None, Compiled, qt_QColor_blue_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "blueF", _n_blueF0, None, Compiled, qt_QColor_blueF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "convertTo", _n_convertTo0, None, Compiled, qt_QColor_convertTo_QColor_QColor_int, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "colorSpec", "int"), End), + new Function(c, "cyan", _n_cyan0, None, Compiled, qt_QColor_cyan_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "cyanF", _n_cyanF0, None, Compiled, qt_QColor_cyanF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "darker", _n_darker0, None, Compiled, qt_QColor_darker_QColor_QColor_int, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "factor", "int", Value((int)200)), End), + // MISSING: getCmyk (void; QColor this, "int *" c, "int *" m, "int *" y, "int *" k, "int *" a) + // MISSING: getCmykF (void; QColor this, "float *" c, "float *" m, "float *" y, "float *" k, "float *" a) + // MISSING: getHsl (void; QColor this, "int *" h, "int *" s, "int *" l, "int *" a) + // MISSING: getHslF (void; QColor this, "float *" h, "float *" s, "float *" l, "float *" a) + // MISSING: getHsv (void; QColor this, "int *" h, "int *" s, "int *" v, "int *" a) + // MISSING: getHsvF (void; QColor this, "float *" h, "float *" s, "float *" v, "float *" a) + // MISSING: getRgb (void; QColor this, "int *" r, "int *" g, "int *" b, "int *" a) + // MISSING: getRgbF (void; QColor this, "float *" r, "float *" g, "float *" b, "float *" a) + new Function(c, "green", _n_green0, None, Compiled, qt_QColor_green_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "greenF", _n_greenF0, None, Compiled, qt_QColor_greenF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "hslHue", _n_hslHue0, None, Compiled, qt_QColor_hslHue_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "hslHueF", _n_hslHueF0, None, Compiled, qt_QColor_hslHueF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "hslSaturation", _n_hslSaturation0, None, Compiled, qt_QColor_hslSaturation_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "hslSaturationF", _n_hslSaturationF0, None, Compiled, qt_QColor_hslSaturationF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "hsvHue", _n_hsvHue0, None, Compiled, qt_QColor_hsvHue_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "hsvHueF", _n_hsvHueF0, None, Compiled, qt_QColor_hsvHueF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "hsvSaturation", _n_hsvSaturation0, None, Compiled, qt_QColor_hsvSaturation_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "hsvSaturationF", _n_hsvSaturationF0, None, Compiled, qt_QColor_hsvSaturationF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "hue", _n_hue0, None, Compiled, qt_QColor_hue_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "hueF", _n_hueF0, None, Compiled, qt_QColor_hueF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QColor_isValid_bool_QColor, Return, "bool", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "lighter", _n_lighter0, None, Compiled, qt_QColor_lighter_QColor_QColor_int, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "factor", "int", Value((int)150)), End), + new Function(c, "lightness", _n_lightness0, None, Compiled, qt_QColor_lightness_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "lightnessF", _n_lightnessF0, None, Compiled, qt_QColor_lightnessF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "magenta", _n_magenta0, None, Compiled, qt_QColor_magenta_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "magentaF", _n_magentaF0, None, Compiled, qt_QColor_magentaF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "name", _n_name0, None, Compiled, qt_QColor_name_string_QColor_int, Return, "string", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "format", "int", Value((int)QColor::HexRgb)), End), + new Function(c, "red", _n_red0, None, Compiled, qt_QColor_red_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "redF", _n_redF0, None, Compiled, qt_QColor_redF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "rgb", _n_rgb0, None, Compiled, qt_QColor_rgb_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + // MISSING: rgba64 ("QRgba64"; QColor this) + new Function(c, "rgba", _n_rgba0, None, Compiled, qt_QColor_rgba_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "saturation", _n_saturation0, None, Compiled, qt_QColor_saturation_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "saturationF", _n_saturationF0, None, Compiled, qt_QColor_saturationF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "setAlpha", _n_setAlpha0, None, Compiled, qt_QColor_setAlpha_void_QColor_int, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "alpha", "int"), End), + new Function(c, "setAlphaF", _n_setAlphaF0, None, Compiled, qt_QColor_setAlphaF_void_QColor_float, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "alpha", "float"), End), + new Function(c, "setBlue", _n_setBlue0, None, Compiled, qt_QColor_setBlue_void_QColor_int, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "blue", "int"), End), + new Function(c, "setBlueF", _n_setBlueF0, None, Compiled, qt_QColor_setBlueF_void_QColor_float, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "blue", "float"), End), + new Function(c, "setCmyk", _n_setCmyk0, None, Compiled, qt_QColor_setCmyk_void_QColor_int_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "c", "int"), new Param(c, "m", "int"), new Param(c, "y", "int"), new Param(c, "k", "int"), new Param(c, "a", "int", Value((int)255)), End), + new Function(c, "setCmykF", _n_setCmykF0, None, Compiled, qt_QColor_setCmykF_void_QColor_float_float_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "c", "float"), new Param(c, "m", "float"), new Param(c, "y", "float"), new Param(c, "k", "float"), new Param(c, "a", "float"), End), + new Function(c, "setGreen", _n_setGreen0, None, Compiled, qt_QColor_setGreen_void_QColor_int, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "green", "int"), End), + new Function(c, "setGreenF", _n_setGreenF0, None, Compiled, qt_QColor_setGreenF_void_QColor_float, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "green", "float"), End), + new Function(c, "setHsl", _n_setHsl0, None, Compiled, qt_QColor_setHsl_void_QColor_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "h", "int"), new Param(c, "s", "int"), new Param(c, "l", "int"), new Param(c, "a", "int", Value((int)255)), End), + new Function(c, "setHslF", _n_setHslF0, None, Compiled, qt_QColor_setHslF_void_QColor_float_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "h", "float"), new Param(c, "s", "float"), new Param(c, "l", "float"), new Param(c, "a", "float"), End), + new Function(c, "setHsv", _n_setHsv0, None, Compiled, qt_QColor_setHsv_void_QColor_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "h", "int"), new Param(c, "s", "int"), new Param(c, "v", "int"), new Param(c, "a", "int", Value((int)255)), End), + new Function(c, "setHsvF", _n_setHsvF0, None, Compiled, qt_QColor_setHsvF_void_QColor_float_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "h", "float"), new Param(c, "s", "float"), new Param(c, "v", "float"), new Param(c, "a", "float"), End), + new Function(c, "setRed", _n_setRed0, None, Compiled, qt_QColor_setRed_void_QColor_int, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "red", "int"), End), + new Function(c, "setRedF", _n_setRedF0, None, Compiled, qt_QColor_setRedF_void_QColor_float, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "red", "float"), End), + new Function(c, "setRgb", _n_setRgb0, None, Compiled, qt_QColor_setRgb_void_QColor_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "r", "int"), new Param(c, "g", "int"), new Param(c, "b", "int"), new Param(c, "a", "int", Value((int)255)), End), + new Function(c, "setRgb", _n_setRgb1, None, Compiled, qt_QColor_setRgb_void_QColor_int, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "rgb", "int"), End), + // MISSING: setRgba64 (void; QColor this, "QRgba64" rgba) + new Function(c, "setRgbF", _n_setRgbF0, None, Compiled, qt_QColor_setRgbF_void_QColor_float_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "r", "float"), new Param(c, "g", "float"), new Param(c, "b", "float"), new Param(c, "a", "float"), End), + new Function(c, "setRgba", _n_setRgba0, None, Compiled, qt_QColor_setRgba_void_QColor_int, Return, "void", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "rgba", "int"), End), + new Function(c, "spec", _n_spec0, None, Compiled, qt_QColor_spec_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "toCmyk", _n_toCmyk0, None, Compiled, qt_QColor_toCmyk_QColor_QColor, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "toExtendedRgb", _n_toExtendedRgb0, None, Compiled, qt_QColor_toExtendedRgb_QColor_QColor, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "toHsl", _n_toHsl0, None, Compiled, qt_QColor_toHsl_QColor_QColor, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "toHsv", _n_toHsv0, None, Compiled, qt_QColor_toHsv_QColor_QColor, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "toRgb", _n_toRgb0, None, Compiled, qt_QColor_toRgb_QColor_QColor, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "value", _n_value0, None, Compiled, qt_QColor_value_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "valueF", _n_valueF0, None, Compiled, qt_QColor_valueF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "yellow", _n_yellow0, None, Compiled, qt_QColor_yellow_int_QColor, Return, "int", Parameters, new Param(c, "this", "qt.QColor"), End), + new Function(c, "yellowF", _n_yellowF0, None, Compiled, qt_QColor_yellowF_float_QColor, Return, "float", Parameters, new Param(c, "this", "qt.QColor"), End), + // MISSING: QVariant ("QVariant operator"; QColor this) + // static functions + new Function(c, "colorNames", _n_colorNames0, None, Compiled, qt_QColor_colorNames_stringBSB_ESB_, Return, "string[]", End), + new Function(c, "fromCmyk", _n_fromCmyk0, None, Compiled, qt_QColor_fromCmyk_QColor_int_int_int_int_int, Return, "qt.QColor", Parameters, new Param(c, "c", "int"), new Param(c, "m", "int"), new Param(c, "y", "int"), new Param(c, "k", "int"), new Param(c, "a", "int", Value((int)255)), End), + new Function(c, "fromCmykF", _n_fromCmykF0, None, Compiled, qt_QColor_fromCmykF_QColor_float_float_float_float_float, Return, "qt.QColor", Parameters, new Param(c, "c", "float"), new Param(c, "m", "float"), new Param(c, "y", "float"), new Param(c, "k", "float"), new Param(c, "a", "float"), End), + new Function(c, "fromHsl", _n_fromHsl0, None, Compiled, qt_QColor_fromHsl_QColor_int_int_int_int, Return, "qt.QColor", Parameters, new Param(c, "h", "int"), new Param(c, "s", "int"), new Param(c, "l", "int"), new Param(c, "a", "int", Value((int)255)), End), + new Function(c, "fromHslF", _n_fromHslF0, None, Compiled, qt_QColor_fromHslF_QColor_float_float_float_float, Return, "qt.QColor", Parameters, new Param(c, "h", "float"), new Param(c, "s", "float"), new Param(c, "l", "float"), new Param(c, "a", "float"), End), + new Function(c, "fromHsv", _n_fromHsv0, None, Compiled, qt_QColor_fromHsv_QColor_int_int_int_int, Return, "qt.QColor", Parameters, new Param(c, "h", "int"), new Param(c, "s", "int"), new Param(c, "v", "int"), new Param(c, "a", "int", Value((int)255)), End), + new Function(c, "fromHsvF", _n_fromHsvF0, None, Compiled, qt_QColor_fromHsvF_QColor_float_float_float_float, Return, "qt.QColor", Parameters, new Param(c, "h", "float"), new Param(c, "s", "float"), new Param(c, "v", "float"), new Param(c, "a", "float"), End), + new Function(c, "fromRgb", _n_fromRgb0, None, Compiled, qt_QColor_fromRgb_QColor_int, Return, "qt.QColor", Parameters, new Param(c, "rgb", "int"), End), + new Function(c, "fromRgb", _n_fromRgb1, None, Compiled, qt_QColor_fromRgb_QColor_int_int_int_int, Return, "qt.QColor", Parameters, new Param(c, "r", "int"), new Param(c, "g", "int"), new Param(c, "b", "int"), new Param(c, "a", "int", Value((int)255)), End), + // MISSING: fromRgba64 (QColor; "ushort" r, "ushort" g, "ushort" b, "ushort" a) + // MISSING: fromRgba64 (QColor; "QRgba64" rgba64) + new Function(c, "fromRgbF", _n_fromRgbF0, None, Compiled, qt_QColor_fromRgbF_QColor_float_float_float_float, Return, "qt.QColor", Parameters, new Param(c, "r", "float"), new Param(c, "g", "float"), new Param(c, "b", "float"), new Param(c, "a", "float"), End), + new Function(c, "fromRgba", _n_fromRgba0, None, Compiled, qt_QColor_fromRgba_QColor_int, Return, "qt.QColor", Parameters, new Param(c, "rgba", "int"), End), + // MISSING: fromString (QColor; "QAnyStringView" name) + // MISSING: isValidColorName (bool; "QAnyStringView" name) + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QColor_operatorBang_EQ__bool_QColor_QColor, Return, "bool", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "color", "qt.QColor"), End), + // MISSING: = (QColor; QColor this, flags Qt::GlobalColor color) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QColor_operatorEQ_EQ__bool_QColor_QColor, Return, "bool", Parameters, new Param(c, "this", "qt.QColor"), new Param(c, "color", "qt.QColor"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// +// This is for QGradient + +Context::TypeVector types; +types.push_back(c->doubleType()); +types.push_back(this); +c->arrayType((const Type*)c->tupleType(types), 1, 0); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QColumnViewType.cpp b/src/lib/mu/MuQt6/QColumnViewType.cpp new file mode 100644 index 000000000..ab8014ef6 --- /dev/null +++ b/src/lib/mu/MuQt6/QColumnViewType.cpp @@ -0,0 +1,1725 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QColumnView::~MuQt_QColumnView() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QColumnView::MuQt_QColumnView(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QColumnView(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QColumnView")); +} + +QModelIndex MuQt_QColumnView::indexAt(const QPoint & point) const +{ + if (!_env) return QColumnView::indexAt(point); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,point,"qt.QPoint")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QColumnView::indexAt(point); + } +} + +void MuQt_QColumnView::scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) +{ + if (!_env) { QColumnView::scrollTo(index, hint); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(hint)); + Value rval = _env->call(F, args); + } + else + { + QColumnView::scrollTo(index, hint); + } +} + +void MuQt_QColumnView::selectAll() +{ + if (!_env) { QColumnView::selectAll(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QColumnView::selectAll(); + } +} + +void MuQt_QColumnView::setModel(QAbstractItemModel * model) +{ + if (!_env) { QColumnView::setModel(model); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,model,"qt.QAbstractItemModel")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::setModel(model); + } +} + +void MuQt_QColumnView::setRootIndex(const QModelIndex & index) +{ + if (!_env) { QColumnView::setRootIndex(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::setRootIndex(index); + } +} + +void MuQt_QColumnView::setSelectionModel(QItemSelectionModel * newSelectionModel) +{ + if (!_env) { QColumnView::setSelectionModel(newSelectionModel); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,newSelectionModel,"qt.QItemSelectionModel")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::setSelectionModel(newSelectionModel); + } +} + +QSize MuQt_QColumnView::sizeHint() const +{ + if (!_env) return QColumnView::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QColumnView::sizeHint(); + } +} + +QRect MuQt_QColumnView::visualRect(const QModelIndex & index) const +{ + if (!_env) return QColumnView::visualRect(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QColumnView::visualRect(index); + } +} + +QAbstractItemView * MuQt_QColumnView::createColumn(const QModelIndex & index) +{ + if (!_env) return QColumnView::createColumn(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QColumnView::createColumn(index); + } +} + +void MuQt_QColumnView::currentChanged(const QModelIndex & current, const QModelIndex & previous) +{ + if (!_env) { QColumnView::currentChanged(current, previous); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,current,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,previous,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::currentChanged(current, previous); + } +} + +int MuQt_QColumnView::horizontalOffset() const +{ + if (!_env) return QColumnView::horizontalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QColumnView::horizontalOffset(); + } +} + +bool MuQt_QColumnView::isIndexHidden(const QModelIndex & index) const +{ + if (!_env) return QColumnView::isIndexHidden(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QColumnView::isIndexHidden(index); + } +} + +void MuQt_QColumnView::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QColumnView::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::resizeEvent(event); + } +} + +void MuQt_QColumnView::rowsInserted(const QModelIndex & parent, int start, int end) +{ + if (!_env) { QColumnView::rowsInserted(parent, start, end); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + args[2] = Value(start); + args[3] = Value(end); + Value rval = _env->call(F, args); + } + else + { + QColumnView::rowsInserted(parent, start, end); + } +} + +void MuQt_QColumnView::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QColumnView::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QColumnView::scrollContentsBy(dx, dy); + } +} + +void MuQt_QColumnView::setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) +{ + if (!_env) { QColumnView::setSelection(rect, command); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + args[2] = Value(int(command)); + Value rval = _env->call(F, args); + } + else + { + QColumnView::setSelection(rect, command); + } +} + +int MuQt_QColumnView::verticalOffset() const +{ + if (!_env) return QColumnView::verticalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QColumnView::verticalOffset(); + } +} + +QRegion MuQt_QColumnView::visualRegionForSelection(const QItemSelection & selection) const +{ + if (!_env) return QColumnView::visualRegionForSelection(selection); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selection,"qt.QItemSelection")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QColumnView::visualRegionForSelection(selection); + } +} + +void MuQt_QColumnView::keyboardSearch(const QString & search) +{ + if (!_env) { QColumnView::keyboardSearch(search); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makestring(c,search)); + Value rval = _env->call(F, args); + } + else + { + QColumnView::keyboardSearch(search); + } +} + +int MuQt_QColumnView::sizeHintForColumn(int column) const +{ + if (!_env) return QColumnView::sizeHintForColumn(column); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QColumnView::sizeHintForColumn(column); + } +} + +int MuQt_QColumnView::sizeHintForRow(int row) const +{ + if (!_env) return QColumnView::sizeHintForRow(row); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QColumnView::sizeHintForRow(row); + } +} + +QVariant MuQt_QColumnView::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QColumnView::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QColumnView::inputMethodQuery(query); + } +} + +bool MuQt_QColumnView::edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) +{ + if (!_env) return QColumnView::edit(index, trigger, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(trigger)); + args[3] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QColumnView::edit(index, trigger, event); + } +} + +QModelIndexList MuQt_QColumnView::selectedIndexes() const +{ + if (!_env) return QColumnView::selectedIndexes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QColumnView::selectedIndexes(); + } +} + +QItemSelectionModel::SelectionFlags MuQt_QColumnView::selectionCommand(const QModelIndex & index, const QEvent * event) const +{ + if (!_env) return QColumnView::selectionCommand(index, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (QItemSelectionModel::SelectionFlags)(rval._int); + } + else + { + return QColumnView::selectionCommand(index, event); + } +} + +void MuQt_QColumnView::startDrag(Qt::DropActions supportedActions) +{ + if (!_env) { QColumnView::startDrag(supportedActions); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(supportedActions)); + Value rval = _env->call(F, args); + } + else + { + QColumnView::startDrag(supportedActions); + } +} + +void MuQt_QColumnView::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QColumnView::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::dragEnterEvent(event); + } +} + +void MuQt_QColumnView::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QColumnView::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::dragLeaveEvent(event); + } +} + +void MuQt_QColumnView::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QColumnView::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::dragMoveEvent(event); + } +} + +void MuQt_QColumnView::dropEvent(QDropEvent * event) +{ + if (!_env) { QColumnView::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::dropEvent(event); + } +} + +bool MuQt_QColumnView::event(QEvent * event_) +{ + if (!_env) return QColumnView::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QColumnView::event(event_); + } +} + +bool MuQt_QColumnView::eventFilter(QObject * object, QEvent * event) +{ + if (!_env) return QColumnView::eventFilter(object, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,object,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QColumnView::eventFilter(object, event); + } +} + +void MuQt_QColumnView::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QColumnView::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::focusInEvent(event); + } +} + +bool MuQt_QColumnView::focusNextPrevChild(bool next) +{ + if (!_env) return QColumnView::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QColumnView::focusNextPrevChild(next); + } +} + +void MuQt_QColumnView::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QColumnView::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[34]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::focusOutEvent(event); + } +} + +void MuQt_QColumnView::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QColumnView::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[35]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::keyPressEvent(event); + } +} + +void MuQt_QColumnView::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QColumnView::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[36]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::mouseDoubleClickEvent(event); + } +} + +void MuQt_QColumnView::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QColumnView::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[37]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::mouseMoveEvent(event); + } +} + +void MuQt_QColumnView::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QColumnView::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[38]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::mousePressEvent(event); + } +} + +void MuQt_QColumnView::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QColumnView::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[39]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::mouseReleaseEvent(event); + } +} + +void MuQt_QColumnView::timerEvent(QTimerEvent * event) +{ + if (!_env) { QColumnView::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[40]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QColumnView::timerEvent(event); + } +} + +bool MuQt_QColumnView::viewportEvent(QEvent * event) +{ + if (!_env) return QColumnView::viewportEvent(event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[41]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QColumnView::viewportEvent(event); + } +} + +QSize MuQt_QColumnView::viewportSizeHint() const +{ + if (!_env) return QColumnView::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[42]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QColumnView::viewportSizeHint(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QColumnViewType::QColumnViewType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QColumnViewType::~QColumnViewType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QColumnView_QColumnView_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QColumnView* w = object(widget)) + { + QColumnViewType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QColumnView"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QColumnView_QColumnView_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QColumnView_QColumnView_QColumnView_QColumnView_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QColumnView(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QColumnView_previewWidget_QWidget_QColumnView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + return makeinstance(c, arg0->previewWidget(), "qt.QWidget"); +} + +void qt_QColumnView_setPreviewWidget_void_QColumnView_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->setPreviewWidget(arg1); +} + +Pointer qt_QColumnView_indexAt_QModelIndex_QColumnView_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_point); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QColumnView::indexAt(arg1),"qt.QModelIndex") : makeqtype(c,arg0->indexAt(arg1),"qt.QModelIndex"); +} + +void qt_QColumnView_scrollTo_void_QColumnView_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_hint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::ScrollHint arg2 = (QAbstractItemView::ScrollHint)(param_hint); + if (isMuQtObject(arg0)) arg0->QColumnView::scrollTo(arg1, arg2); + else arg0->scrollTo(arg1, arg2); +} + +void qt_QColumnView_selectAll_void_QColumnView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QColumnView::selectAll(); + else arg0->selectAll(); +} + +void qt_QColumnView_setModel_void_QColumnView_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QAbstractItemModel * arg1 = object(param_model); + if (isMuQtObject(arg0)) arg0->QColumnView::setModel(arg1); + else arg0->setModel(arg1); +} + +void qt_QColumnView_setRootIndex_void_QColumnView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + if (isMuQtObject(arg0)) arg0->QColumnView::setRootIndex(arg1); + else arg0->setRootIndex(arg1); +} + +void qt_QColumnView_setSelectionModel_void_QColumnView_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_newSelectionModel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QItemSelectionModel * arg1 = object(param_newSelectionModel); + if (isMuQtObject(arg0)) arg0->QColumnView::setSelectionModel(arg1); + else arg0->setSelectionModel(arg1); +} + +Pointer qt_QColumnView_sizeHint_QSize_QColumnView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QColumnView::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QColumnView_visualRect_QRect_QColumnView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QColumnView::visualRect(arg1),"qt.QRect") : makeqtype(c,arg0->visualRect(arg1),"qt.QRect"); +} + +Pointer qt_QColumnView_createColumn_QAbstractItemView_QColumnView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeinstance(c, ((MuQt_QColumnView*)arg0)->createColumn_pub_parent(arg1), "qt.QAbstractItemView") : makeinstance(c, ((MuQt_QColumnView*)arg0)->createColumn_pub(arg1), "qt.QAbstractItemView"); +} + +void qt_QColumnView_initializeColumn_void_QColumnView_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QAbstractItemView * arg1 = object(param_column); + ((MuQt_QColumnView*)arg0)->initializeColumn_pub(arg1); +} + +void qt_QColumnView_currentChanged_void_QColumnView_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_current, Pointer param_previous) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_current); + const QModelIndex arg2 = getqtype(param_previous); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->currentChanged_pub_parent(arg1, arg2); + else ((MuQt_QColumnView*)arg0)->currentChanged_pub(arg1, arg2); +} + +int qt_QColumnView_horizontalOffset_int_QColumnView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QColumnView*)arg0)->horizontalOffset_pub_parent() : ((MuQt_QColumnView*)arg0)->horizontalOffset_pub(); +} + +bool qt_QColumnView_isIndexHidden_bool_QColumnView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? ((MuQt_QColumnView*)arg0)->isIndexHidden_pub_parent(arg1) : ((MuQt_QColumnView*)arg0)->isIndexHidden_pub(arg1); +} + +void qt_QColumnView_resizeEvent_void_QColumnView_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QColumnView_rowsInserted_void_QColumnView_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_start, int param_end) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_start); + int arg3 = (int)(param_end); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->rowsInserted_pub_parent(arg1, arg2, arg3); + else ((MuQt_QColumnView*)arg0)->rowsInserted_pub(arg1, arg2, arg3); +} + +void qt_QColumnView_scrollContentsBy_void_QColumnView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QColumnView*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +void qt_QColumnView_setSelection_void_QColumnView_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_command); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->setSelection_pub_parent(arg1, arg2); + else ((MuQt_QColumnView*)arg0)->setSelection_pub(arg1, arg2); +} + +int qt_QColumnView_verticalOffset_int_QColumnView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QColumnView*)arg0)->verticalOffset_pub_parent() : ((MuQt_QColumnView*)arg0)->verticalOffset_pub(); +} + +Pointer qt_QColumnView_visualRegionForSelection_QRegion_QColumnView_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selection); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QColumnView*)arg0)->visualRegionForSelection_pub_parent(arg1),"qt.QRegion") : makeqtype(c,((MuQt_QColumnView*)arg0)->visualRegionForSelection_pub(arg1),"qt.QRegion"); +} + +void qt_QColumnView_keyboardSearch_void_QColumnView_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_search) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QString arg1 = qstring(param_search); + if (isMuQtObject(arg0)) arg0->QColumnView::keyboardSearch(arg1); + else arg0->keyboardSearch(arg1); +} + +int qt_QColumnView_sizeHintForColumn_int_QColumnView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return isMuQtObject(arg0) ? arg0->QColumnView::sizeHintForColumn(arg1) : arg0->sizeHintForColumn(arg1); +} + +int qt_QColumnView_sizeHintForRow_int_QColumnView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + int arg1 = (int)(param_row); + return isMuQtObject(arg0) ? arg0->QColumnView::sizeHintForRow(arg1) : arg0->sizeHintForRow(arg1); +} + +Pointer qt_QColumnView_inputMethodQuery_QVariant_QColumnView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QColumnView::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +bool qt_QColumnView_edit_bool_QColumnView_QModelIndex_int_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_trigger, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::EditTrigger arg2 = (QAbstractItemView::EditTrigger)(param_trigger); + QEvent * arg3 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QColumnView*)arg0)->edit_pub_parent(arg1, arg2, arg3) : ((MuQt_QColumnView*)arg0)->edit_pub(arg1, arg2, arg3); +} + +Pointer qt_QColumnView_selectedIndexes_qt__QModelIndexBSB_ESB__QColumnView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,((MuQt_QColumnView*)arg0)->selectedIndexes_pub_parent()) : makeqmodelindexlist(c,((MuQt_QColumnView*)arg0)->selectedIndexes_pub()); +} + +int qt_QColumnView_selectionCommand_int_QColumnView_QModelIndex_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + const QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? int(((MuQt_QColumnView*)arg0)->selectionCommand_pub_parent(arg1, arg2)) : int(((MuQt_QColumnView*)arg0)->selectionCommand_pub(arg1, arg2)); +} + +void qt_QColumnView_startDrag_void_QColumnView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_supportedActions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + Qt::DropActions arg1 = (Qt::DropActions)(param_supportedActions); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->startDrag_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->startDrag_pub(arg1); +} + +void qt_QColumnView_dragEnterEvent_void_QColumnView_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QColumnView_dragLeaveEvent_void_QColumnView_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QColumnView_dragMoveEvent_void_QColumnView_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QColumnView_dropEvent_void_QColumnView_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QColumnView_event_bool_QColumnView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QColumnView*)arg0)->event_pub_parent(arg1) : ((MuQt_QColumnView*)arg0)->event_pub(arg1); +} + +bool qt_QColumnView_eventFilter_bool_QColumnView_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QObject * arg1 = object(param_object); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QColumnView*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QColumnView*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QColumnView_focusInEvent_void_QColumnView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QColumnView_focusNextPrevChild_bool_QColumnView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QColumnView*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QColumnView*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QColumnView_focusOutEvent_void_QColumnView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QColumnView_keyPressEvent_void_QColumnView_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QColumnView_mouseDoubleClickEvent_void_QColumnView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QColumnView_mouseMoveEvent_void_QColumnView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QColumnView_mousePressEvent_void_QColumnView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QColumnView_mouseReleaseEvent_void_QColumnView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QColumnView_timerEvent_void_QColumnView_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QColumnView*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QColumnView*)arg0)->timerEvent_pub(arg1); +} + +bool qt_QColumnView_viewportEvent_bool_QColumnView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QColumnView*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QColumnView*)arg0)->viewportEvent_pub(arg1); +} + +Pointer qt_QColumnView_viewportSizeHint_QSize_QColumnView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QColumnView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QColumnView*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QColumnView*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + + +static NODE_IMPLEMENTATION(_n_QColumnView0, Pointer) +{ + NODE_RETURN(qt_QColumnView_QColumnView_QColumnView_QColumnView_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_previewWidget0, Pointer) +{ + NODE_RETURN(qt_QColumnView_previewWidget_QWidget_QColumnView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setPreviewWidget0, void) +{ + qt_QColumnView_setPreviewWidget_void_QColumnView_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_indexAt0, Pointer) +{ + NODE_RETURN(qt_QColumnView_indexAt_QModelIndex_QColumnView_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scrollTo0, void) +{ + qt_QColumnView_scrollTo_void_QColumnView_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectAll0, void) +{ + qt_QColumnView_selectAll_void_QColumnView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setModel0, void) +{ + qt_QColumnView_setModel_void_QColumnView_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRootIndex0, void) +{ + qt_QColumnView_setRootIndex_void_QColumnView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelectionModel0, void) +{ + qt_QColumnView_setSelectionModel_void_QColumnView_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QColumnView_sizeHint_QSize_QColumnView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualRect0, Pointer) +{ + NODE_RETURN(qt_QColumnView_visualRect_QRect_QColumnView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createColumn0, Pointer) +{ + NODE_RETURN(qt_QColumnView_createColumn_QAbstractItemView_QColumnView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_initializeColumn0, void) +{ + qt_QColumnView_initializeColumn_void_QColumnView_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_currentChanged0, void) +{ + qt_QColumnView_currentChanged_void_QColumnView_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_horizontalOffset0, int) +{ + NODE_RETURN(qt_QColumnView_horizontalOffset_int_QColumnView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIndexHidden0, bool) +{ + NODE_RETURN(qt_QColumnView_isIndexHidden_bool_QColumnView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QColumnView_resizeEvent_void_QColumnView_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_rowsInserted0, void) +{ + qt_QColumnView_rowsInserted_void_QColumnView_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QColumnView_scrollContentsBy_void_QColumnView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QColumnView_setSelection_void_QColumnView_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_verticalOffset0, int) +{ + NODE_RETURN(qt_QColumnView_verticalOffset_int_QColumnView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualRegionForSelection0, Pointer) +{ + NODE_RETURN(qt_QColumnView_visualRegionForSelection_QRegion_QColumnView_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyboardSearch0, void) +{ + qt_QColumnView_keyboardSearch_void_QColumnView_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForColumn0, int) +{ + NODE_RETURN(qt_QColumnView_sizeHintForColumn_int_QColumnView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForRow0, int) +{ + NODE_RETURN(qt_QColumnView_sizeHintForRow_int_QColumnView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QColumnView_inputMethodQuery_QVariant_QColumnView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_edit0, bool) +{ + NODE_RETURN(qt_QColumnView_edit_bool_QColumnView_QModelIndex_int_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectedIndexes0, Pointer) +{ + NODE_RETURN(qt_QColumnView_selectedIndexes_qt__QModelIndexBSB_ESB__QColumnView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionCommand0, int) +{ + NODE_RETURN(qt_QColumnView_selectionCommand_int_QColumnView_QModelIndex_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_startDrag0, void) +{ + qt_QColumnView_startDrag_void_QColumnView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QColumnView_dragEnterEvent_void_QColumnView_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QColumnView_dragLeaveEvent_void_QColumnView_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QColumnView_dragMoveEvent_void_QColumnView_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QColumnView_dropEvent_void_QColumnView_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QColumnView_event_bool_QColumnView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QColumnView_eventFilter_bool_QColumnView_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QColumnView_focusInEvent_void_QColumnView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QColumnView_focusNextPrevChild_bool_QColumnView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QColumnView_focusOutEvent_void_QColumnView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QColumnView_keyPressEvent_void_QColumnView_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QColumnView_mouseDoubleClickEvent_void_QColumnView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QColumnView_mouseMoveEvent_void_QColumnView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QColumnView_mousePressEvent_void_QColumnView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QColumnView_mouseReleaseEvent_void_QColumnView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QColumnView_timerEvent_void_QColumnView_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QColumnView_viewportEvent_bool_QColumnView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QColumnView_viewportSizeHint_QSize_QColumnView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QColumnViewType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QColumnView_QColumnView_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QColumnView", _n_QColumnView0, None, Compiled, qt_QColumnView_QColumnView_QColumnView_QColumnView_QWidget, Return, "qt.QColumnView", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "parent", "qt.QWidget"), End), + // MISSING: columnWidths ("QList"; QColumnView this) + new Function(c, "previewWidget", _n_previewWidget0, None, Compiled, qt_QColumnView_previewWidget_QWidget_QColumnView, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QColumnView"), End), + // PROP: resizeGripsVisible (bool; QColumnView this) + // MISSING: setColumnWidths (void; QColumnView this, "const QList &" list) + new Function(c, "setPreviewWidget", _n_setPreviewWidget0, None, Compiled, qt_QColumnView_setPreviewWidget_void_QColumnView_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: setResizeGripsVisible (void; QColumnView this, bool visible) + _func[0] = new MemberFunction(c, "indexAt", _n_indexAt0, None, Compiled, qt_QColumnView_indexAt_QModelIndex_QColumnView_QPoint, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "point", "qt.QPoint"), End), + _func[1] = new MemberFunction(c, "scrollTo", _n_scrollTo0, None, Compiled, qt_QColumnView_scrollTo_void_QColumnView_QModelIndex_int, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "hint", "int", Value((int)QAbstractItemView::EnsureVisible)), End), + _func[2] = new MemberFunction(c, "selectAll", _n_selectAll0, None, Compiled, qt_QColumnView_selectAll_void_QColumnView, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), End), + _func[3] = new MemberFunction(c, "setModel", _n_setModel0, None, Compiled, qt_QColumnView_setModel_void_QColumnView_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "model", "qt.QAbstractItemModel"), End), + _func[4] = new MemberFunction(c, "setRootIndex", _n_setRootIndex0, None, Compiled, qt_QColumnView_setRootIndex_void_QColumnView_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[5] = new MemberFunction(c, "setSelectionModel", _n_setSelectionModel0, None, Compiled, qt_QColumnView_setSelectionModel_void_QColumnView_QItemSelectionModel, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "newSelectionModel", "qt.QItemSelectionModel"), End), + _func[6] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QColumnView_sizeHint_QSize_QColumnView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QColumnView"), End), + _func[7] = new MemberFunction(c, "visualRect", _n_visualRect0, None, Compiled, qt_QColumnView_visualRect_QRect_QColumnView_QModelIndex, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[8] = new MemberFunction(c, "createColumn", _n_createColumn0, None, Compiled, qt_QColumnView_createColumn_QAbstractItemView_QColumnView_QModelIndex, Return, "qt.QAbstractItemView", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "initializeColumn", _n_initializeColumn0, None, Compiled, qt_QColumnView_initializeColumn_void_QColumnView_QAbstractItemView, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "column", "qt.QAbstractItemView"), End), + _func[9] = new MemberFunction(c, "currentChanged", _n_currentChanged0, None, Compiled, qt_QColumnView_currentChanged_void_QColumnView_QModelIndex_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "current", "qt.QModelIndex"), new Param(c, "previous", "qt.QModelIndex"), End), + _func[10] = new MemberFunction(c, "horizontalOffset", _n_horizontalOffset0, None, Compiled, qt_QColumnView_horizontalOffset_int_QColumnView, Return, "int", Parameters, new Param(c, "this", "qt.QColumnView"), End), + _func[11] = new MemberFunction(c, "isIndexHidden", _n_isIndexHidden0, None, Compiled, qt_QColumnView_isIndexHidden_bool_QColumnView_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[12] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QColumnView_resizeEvent_void_QColumnView_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[13] = new MemberFunction(c, "rowsInserted", _n_rowsInserted0, None, Compiled, qt_QColumnView_rowsInserted_void_QColumnView_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "start", "int"), new Param(c, "end", "int"), End), + _func[14] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QColumnView_scrollContentsBy_void_QColumnView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[15] = new MemberFunction(c, "setSelection", _n_setSelection0, None, Compiled, qt_QColumnView_setSelection_void_QColumnView_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "rect", "qt.QRect"), new Param(c, "command", "int"), End), + _func[16] = new MemberFunction(c, "verticalOffset", _n_verticalOffset0, None, Compiled, qt_QColumnView_verticalOffset_int_QColumnView, Return, "int", Parameters, new Param(c, "this", "qt.QColumnView"), End), + _func[17] = new MemberFunction(c, "visualRegionForSelection", _n_visualRegionForSelection0, None, Compiled, qt_QColumnView_visualRegionForSelection_QRegion_QColumnView_QItemSelection, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "selection", "qt.QItemSelection"), End), + // MISSING: itemDelegateForIndex ("QAbstractItemDelegate *"; QColumnView this, QModelIndex index) + _func[18] = new MemberFunction(c, "keyboardSearch", _n_keyboardSearch0, None, Compiled, qt_QColumnView_keyboardSearch_void_QColumnView_string, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "search", "string"), End), + _func[19] = new MemberFunction(c, "sizeHintForColumn", _n_sizeHintForColumn0, None, Compiled, qt_QColumnView_sizeHintForColumn_int_QColumnView_int, Return, "int", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "column", "int"), End), + _func[20] = new MemberFunction(c, "sizeHintForRow", _n_sizeHintForRow0, None, Compiled, qt_QColumnView_sizeHintForRow_int_QColumnView_int, Return, "int", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "row", "int"), End), + _func[21] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QColumnView_inputMethodQuery_QVariant_QColumnView_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "query", "int"), End), + _func[22] = new MemberFunction(c, "edit", _n_edit0, None, Compiled, qt_QColumnView_edit_bool_QColumnView_QModelIndex_int_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "trigger", "int"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: initViewItemOption (void; QColumnView this, "QStyleOptionViewItem *" option) // protected + _func[23] = new MemberFunction(c, "selectedIndexes", _n_selectedIndexes0, None, Compiled, qt_QColumnView_selectedIndexes_qt__QModelIndexBSB_ESB__QColumnView, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QColumnView"), End), + _func[24] = new MemberFunction(c, "selectionCommand", _n_selectionCommand0, None, Compiled, qt_QColumnView_selectionCommand_int_QColumnView_QModelIndex_QEvent, Return, "int", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "event", "qt.QEvent"), End), + _func[25] = new MemberFunction(c, "startDrag", _n_startDrag0, None, Compiled, qt_QColumnView_startDrag_void_QColumnView_int, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "supportedActions", "int"), End), + _func[26] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QColumnView_dragEnterEvent_void_QColumnView_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[27] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QColumnView_dragLeaveEvent_void_QColumnView_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[28] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QColumnView_dragMoveEvent_void_QColumnView_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[29] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QColumnView_dropEvent_void_QColumnView_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QDropEvent"), End), + _func[30] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QColumnView_event_bool_QColumnView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event_", "qt.QEvent"), End), + _func[31] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QColumnView_eventFilter_bool_QColumnView_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "object", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + _func[32] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QColumnView_focusInEvent_void_QColumnView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[33] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QColumnView_focusNextPrevChild_bool_QColumnView_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "next", "bool"), End), + _func[34] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QColumnView_focusOutEvent_void_QColumnView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QColumnView this, "QInputMethodEvent *" event) // protected + _func[35] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QColumnView_keyPressEvent_void_QColumnView_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[36] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QColumnView_mouseDoubleClickEvent_void_QColumnView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[37] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QColumnView_mouseMoveEvent_void_QColumnView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[38] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QColumnView_mousePressEvent_void_QColumnView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[39] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QColumnView_mouseReleaseEvent_void_QColumnView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[40] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QColumnView_timerEvent_void_QColumnView_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[41] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QColumnView_viewportEvent_bool_QColumnView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QColumnView"), new Param(c, "event", "qt.QEvent"), End), + _func[42] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QColumnView_viewportSizeHint_QSize_QColumnView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QColumnView"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QColumnView::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QComboBoxType.cpp b/src/lib/mu/MuQt6/QComboBoxType.cpp new file mode 100644 index 000000000..8aee0be1e --- /dev/null +++ b/src/lib/mu/MuQt6/QComboBoxType.cpp @@ -0,0 +1,1755 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QComboBox::~MuQt_QComboBox() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QComboBox::MuQt_QComboBox(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QComboBox(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QComboBox")); +} + +void MuQt_QComboBox::hidePopup() +{ + if (!_env) { QComboBox::hidePopup(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QComboBox::hidePopup(); + } +} + +void MuQt_QComboBox::setModel(QAbstractItemModel * model) +{ + if (!_env) { QComboBox::setModel(model); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,model,"qt.QAbstractItemModel")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::setModel(model); + } +} + +void MuQt_QComboBox::showPopup() +{ + if (!_env) { QComboBox::showPopup(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QComboBox::showPopup(); + } +} + +bool MuQt_QComboBox::event(QEvent * event_) +{ + if (!_env) return QComboBox::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QComboBox::event(event_); + } +} + +QVariant MuQt_QComboBox::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QComboBox::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QComboBox::inputMethodQuery(query); + } +} + +QSize MuQt_QComboBox::minimumSizeHint() const +{ + if (!_env) return QComboBox::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QComboBox::minimumSizeHint(); + } +} + +QSize MuQt_QComboBox::sizeHint() const +{ + if (!_env) return QComboBox::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QComboBox::sizeHint(); + } +} + +void MuQt_QComboBox::changeEvent(QEvent * e) +{ + if (!_env) { QComboBox::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::changeEvent(e); + } +} + +void MuQt_QComboBox::contextMenuEvent(QContextMenuEvent * e) +{ + if (!_env) { QComboBox::contextMenuEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::contextMenuEvent(e); + } +} + +void MuQt_QComboBox::focusInEvent(QFocusEvent * e) +{ + if (!_env) { QComboBox::focusInEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::focusInEvent(e); + } +} + +void MuQt_QComboBox::focusOutEvent(QFocusEvent * e) +{ + if (!_env) { QComboBox::focusOutEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::focusOutEvent(e); + } +} + +void MuQt_QComboBox::hideEvent(QHideEvent * e) +{ + if (!_env) { QComboBox::hideEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::hideEvent(e); + } +} + +void MuQt_QComboBox::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QComboBox::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::keyPressEvent(e); + } +} + +void MuQt_QComboBox::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QComboBox::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::keyReleaseEvent(e); + } +} + +void MuQt_QComboBox::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QComboBox::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::mousePressEvent(e); + } +} + +void MuQt_QComboBox::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QComboBox::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::mouseReleaseEvent(e); + } +} + +void MuQt_QComboBox::paintEvent(QPaintEvent * e) +{ + if (!_env) { QComboBox::paintEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::paintEvent(e); + } +} + +void MuQt_QComboBox::resizeEvent(QResizeEvent * e) +{ + if (!_env) { QComboBox::resizeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::resizeEvent(e); + } +} + +void MuQt_QComboBox::showEvent(QShowEvent * e) +{ + if (!_env) { QComboBox::showEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::showEvent(e); + } +} + +void MuQt_QComboBox::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QComboBox::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::wheelEvent(e); + } +} + +bool MuQt_QComboBox::hasHeightForWidth() const +{ + if (!_env) return QComboBox::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QComboBox::hasHeightForWidth(); + } +} + +int MuQt_QComboBox::heightForWidth(int w) const +{ + if (!_env) return QComboBox::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QComboBox::heightForWidth(w); + } +} + +void MuQt_QComboBox::closeEvent(QCloseEvent * event) +{ + if (!_env) { QComboBox::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::closeEvent(event); + } +} + +void MuQt_QComboBox::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QComboBox::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::dragEnterEvent(event); + } +} + +void MuQt_QComboBox::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QComboBox::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::dragLeaveEvent(event); + } +} + +void MuQt_QComboBox::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QComboBox::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::dragMoveEvent(event); + } +} + +void MuQt_QComboBox::dropEvent(QDropEvent * event) +{ + if (!_env) { QComboBox::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::dropEvent(event); + } +} + +bool MuQt_QComboBox::focusNextPrevChild(bool next) +{ + if (!_env) return QComboBox::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QComboBox::focusNextPrevChild(next); + } +} + +void MuQt_QComboBox::leaveEvent(QEvent * event) +{ + if (!_env) { QComboBox::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::leaveEvent(event); + } +} + +void MuQt_QComboBox::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QComboBox::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::mouseDoubleClickEvent(event); + } +} + +void MuQt_QComboBox::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QComboBox::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::mouseMoveEvent(event); + } +} + +void MuQt_QComboBox::moveEvent(QMoveEvent * event) +{ + if (!_env) { QComboBox::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::moveEvent(event); + } +} + +void MuQt_QComboBox::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QComboBox::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QComboBox::tabletEvent(event); + } +} + +int MuQt_QComboBox::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QComboBox::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QComboBox::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QComboBoxType::QComboBoxType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QComboBoxType::~QComboBoxType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QComboBox_QComboBox_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QComboBox* w = object(widget)) + { + QComboBoxType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QComboBox"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QComboBox_QComboBox_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QComboBox_QComboBox_QComboBox_QComboBox_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QComboBox(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QComboBox_addItem_void_QComboBox_string_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_userData) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + const QVariant arg2 = getqtype(param_userData); + arg0->addItem(arg1, arg2); +} + +void qt_QComboBox_addItem_void_QComboBox_QIcon_string_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text, Pointer param_userData) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + const QVariant arg3 = getqtype(param_userData); + arg0->addItem(arg1, arg2, arg3); +} + +void qt_QComboBox_addItems_void_QComboBox_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_texts) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_texts); + arg0->addItems(arg1); +} + +Pointer qt_QComboBox_completer_QCompleter_QComboBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + return makeinstance(c, arg0->completer(), "qt.QCompleter"); +} + +int qt_QComboBox_findData_int_QComboBox_QVariant_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, int param_role, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + const QVariant arg1 = getqtype(param_data); + int arg2 = (int)(param_role); + Qt::MatchFlags arg3 = (Qt::MatchFlags)(param_flags); + return arg0->findData(arg1, arg2, arg3); +} + +int qt_QComboBox_findText_int_QComboBox_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + Qt::MatchFlags arg2 = (Qt::MatchFlags)(param_flags); + return arg0->findText(arg1, arg2); +} + +void qt_QComboBox_hidePopup_void_QComboBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QComboBox::hidePopup(); + else arg0->hidePopup(); +} + +void qt_QComboBox_insertItem_void_QComboBox_int_string_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_text, Pointer param_userData) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_text); + const QVariant arg3 = getqtype(param_userData); + arg0->insertItem(arg1, arg2, arg3); +} + +void qt_QComboBox_insertItem_void_QComboBox_int_QIcon_string_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_icon, Pointer param_text, Pointer param_userData) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QIcon arg2 = getqtype(param_icon); + const QString arg3 = qstring(param_text); + const QVariant arg4 = getqtype(param_userData); + arg0->insertItem(arg1, arg2, arg3, arg4); +} + +void qt_QComboBox_insertItems_void_QComboBox_int_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_list) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QStringList arg2 = qstringlist(param_list); + arg0->insertItems(arg1, arg2); +} + +void qt_QComboBox_insertSeparator_void_QComboBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + arg0->insertSeparator(arg1); +} + +Pointer qt_QComboBox_itemData_QVariant_QComboBox_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + int arg2 = (int)(param_role); + return makeqtype(c,arg0->itemData(arg1, arg2),"qt.QVariant"); +} + +Pointer qt_QComboBox_itemIcon_QIcon_QComboBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeqtype(c,arg0->itemIcon(arg1),"qt.QIcon"); +} + +Pointer qt_QComboBox_itemText_string_QComboBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makestring(c,arg0->itemText(arg1)); +} + +Pointer qt_QComboBox_lineEdit_QLineEdit_QComboBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + return makeinstance(c, arg0->lineEdit(), "qt.QLineEdit"); +} + +Pointer qt_QComboBox_model_QAbstractItemModel_QComboBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + return makeinstance(c, arg0->model(), "qt.QAbstractItemModel"); +} + +void qt_QComboBox_removeItem_void_QComboBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + arg0->removeItem(arg1); +} + +Pointer qt_QComboBox_rootModelIndex_QModelIndex_QComboBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + return makeqtype(c,arg0->rootModelIndex(),"qt.QModelIndex"); +} + +void qt_QComboBox_setCompleter_void_QComboBox_QCompleter(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_completer) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QCompleter * arg1 = object(param_completer); + arg0->setCompleter(arg1); +} + +void qt_QComboBox_setItemData_void_QComboBox_int_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_value, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QVariant arg2 = getqtype(param_value); + int arg3 = (int)(param_role); + arg0->setItemData(arg1, arg2, arg3); +} + +void qt_QComboBox_setItemIcon_void_QComboBox_int_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_icon) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QIcon arg2 = getqtype(param_icon); + arg0->setItemIcon(arg1, arg2); +} + +void qt_QComboBox_setItemText_void_QComboBox_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_text); + arg0->setItemText(arg1, arg2); +} + +void qt_QComboBox_setLineEdit_void_QComboBox_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_edit) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QLineEdit * arg1 = object(param_edit); + arg0->setLineEdit(arg1); +} + +void qt_QComboBox_setModel_void_QComboBox_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QAbstractItemModel * arg1 = object(param_model); + if (isMuQtObject(arg0)) arg0->QComboBox::setModel(arg1); + else arg0->setModel(arg1); +} + +void qt_QComboBox_setRootModelIndex_void_QComboBox_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + arg0->setRootModelIndex(arg1); +} + +void qt_QComboBox_setView_void_QComboBox_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_itemView) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QAbstractItemView * arg1 = object(param_itemView); + arg0->setView(arg1); +} + +void qt_QComboBox_showPopup_void_QComboBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QComboBox::showPopup(); + else arg0->showPopup(); +} + +Pointer qt_QComboBox_view_QAbstractItemView_QComboBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + return makeinstance(c, arg0->view(), "qt.QAbstractItemView"); +} + +bool qt_QComboBox_event_bool_QComboBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? arg0->QComboBox::event(arg1) : arg0->event(arg1); +} + +Pointer qt_QComboBox_inputMethodQuery_QVariant_QComboBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QComboBox::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QComboBox_minimumSizeHint_QSize_QComboBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QComboBox::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QComboBox_sizeHint_QSize_QComboBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QComboBox::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QComboBox_changeEvent_void_QComboBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->changeEvent_pub(arg1); +} + +void qt_QComboBox_contextMenuEvent_void_QComboBox_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QComboBox_focusInEvent_void_QComboBox_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QComboBox_focusOutEvent_void_QComboBox_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QComboBox_hideEvent_void_QComboBox_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->hideEvent_pub(arg1); +} + +void qt_QComboBox_keyPressEvent_void_QComboBox_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QComboBox_keyReleaseEvent_void_QComboBox_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QComboBox_mousePressEvent_void_QComboBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QComboBox_mouseReleaseEvent_void_QComboBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QComboBox_paintEvent_void_QComboBox_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->paintEvent_pub(arg1); +} + +void qt_QComboBox_resizeEvent_void_QComboBox_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QComboBox_showEvent_void_QComboBox_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->showEvent_pub(arg1); +} + +void qt_QComboBox_wheelEvent_void_QComboBox_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->wheelEvent_pub(arg1); +} + +bool qt_QComboBox_hasHeightForWidth_bool_QComboBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QComboBox::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QComboBox_heightForWidth_int_QComboBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QComboBox::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +void qt_QComboBox_closeEvent_void_QComboBox_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->closeEvent_pub(arg1); +} + +void qt_QComboBox_dragEnterEvent_void_QComboBox_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QComboBox_dragLeaveEvent_void_QComboBox_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QComboBox_dragMoveEvent_void_QComboBox_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QComboBox_dropEvent_void_QComboBox_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QComboBox_focusNextPrevChild_bool_QComboBox_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QComboBox*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QComboBox*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QComboBox_leaveEvent_void_QComboBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QComboBox_mouseDoubleClickEvent_void_QComboBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QComboBox_mouseMoveEvent_void_QComboBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QComboBox_moveEvent_void_QComboBox_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->moveEvent_pub(arg1); +} + +void qt_QComboBox_tabletEvent_void_QComboBox_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QComboBox*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QComboBox*)arg0)->tabletEvent_pub(arg1); +} + +int qt_QComboBox_metric_int_QComboBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QComboBox* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QComboBox*)arg0)->metric_pub_parent(arg1) : ((MuQt_QComboBox*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QComboBox0, Pointer) +{ + NODE_RETURN(qt_QComboBox_QComboBox_QComboBox_QComboBox_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addItem0, void) +{ + qt_QComboBox_addItem_void_QComboBox_string_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addItem1, void) +{ + qt_QComboBox_addItem_void_QComboBox_QIcon_string_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addItems0, void) +{ + qt_QComboBox_addItems_void_QComboBox_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_completer0, Pointer) +{ + NODE_RETURN(qt_QComboBox_completer_QCompleter_QComboBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_findData0, int) +{ + NODE_RETURN(qt_QComboBox_findData_int_QComboBox_QVariant_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_findText0, int) +{ + NODE_RETURN(qt_QComboBox_findText_int_QComboBox_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_hidePopup0, void) +{ + qt_QComboBox_hidePopup_void_QComboBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertItem0, void) +{ + qt_QComboBox_insertItem_void_QComboBox_int_string_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertItem1, void) +{ + qt_QComboBox_insertItem_void_QComboBox_int_QIcon_string_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer), NODE_ARG(4, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertItems0, void) +{ + qt_QComboBox_insertItems_void_QComboBox_int_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertSeparator0, void) +{ + qt_QComboBox_insertSeparator_void_QComboBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_itemData0, Pointer) +{ + NODE_RETURN(qt_QComboBox_itemData_QVariant_QComboBox_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_itemIcon0, Pointer) +{ + NODE_RETURN(qt_QComboBox_itemIcon_QIcon_QComboBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_itemText0, Pointer) +{ + NODE_RETURN(qt_QComboBox_itemText_string_QComboBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_lineEdit0, Pointer) +{ + NODE_RETURN(qt_QComboBox_lineEdit_QLineEdit_QComboBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_model0, Pointer) +{ + NODE_RETURN(qt_QComboBox_model_QAbstractItemModel_QComboBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeItem0, void) +{ + qt_QComboBox_removeItem_void_QComboBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_rootModelIndex0, Pointer) +{ + NODE_RETURN(qt_QComboBox_rootModelIndex_QModelIndex_QComboBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCompleter0, void) +{ + qt_QComboBox_setCompleter_void_QComboBox_QCompleter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setItemData0, void) +{ + qt_QComboBox_setItemData_void_QComboBox_int_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_setItemIcon0, void) +{ + qt_QComboBox_setItemIcon_void_QComboBox_int_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setItemText0, void) +{ + qt_QComboBox_setItemText_void_QComboBox_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setLineEdit0, void) +{ + qt_QComboBox_setLineEdit_void_QComboBox_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setModel0, void) +{ + qt_QComboBox_setModel_void_QComboBox_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRootModelIndex0, void) +{ + qt_QComboBox_setRootModelIndex_void_QComboBox_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setView0, void) +{ + qt_QComboBox_setView_void_QComboBox_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showPopup0, void) +{ + qt_QComboBox_showPopup_void_QComboBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_view0, Pointer) +{ + NODE_RETURN(qt_QComboBox_view_QAbstractItemView_QComboBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QComboBox_event_bool_QComboBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QComboBox_inputMethodQuery_QVariant_QComboBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QComboBox_minimumSizeHint_QSize_QComboBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QComboBox_sizeHint_QSize_QComboBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QComboBox_changeEvent_void_QComboBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QComboBox_contextMenuEvent_void_QComboBox_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QComboBox_focusInEvent_void_QComboBox_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QComboBox_focusOutEvent_void_QComboBox_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QComboBox_hideEvent_void_QComboBox_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QComboBox_keyPressEvent_void_QComboBox_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QComboBox_keyReleaseEvent_void_QComboBox_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QComboBox_mousePressEvent_void_QComboBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QComboBox_mouseReleaseEvent_void_QComboBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QComboBox_paintEvent_void_QComboBox_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QComboBox_resizeEvent_void_QComboBox_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QComboBox_showEvent_void_QComboBox_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QComboBox_wheelEvent_void_QComboBox_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QComboBox_hasHeightForWidth_bool_QComboBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QComboBox_heightForWidth_int_QComboBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QComboBox_closeEvent_void_QComboBox_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QComboBox_dragEnterEvent_void_QComboBox_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QComboBox_dragLeaveEvent_void_QComboBox_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QComboBox_dragMoveEvent_void_QComboBox_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QComboBox_dropEvent_void_QComboBox_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QComboBox_focusNextPrevChild_bool_QComboBox_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QComboBox_leaveEvent_void_QComboBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QComboBox_mouseDoubleClickEvent_void_QComboBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QComboBox_mouseMoveEvent_void_QComboBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QComboBox_moveEvent_void_QComboBox_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QComboBox_tabletEvent_void_QComboBox_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QComboBox_metric_int_QComboBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QComboBoxType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QComboBox_QComboBox_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QComboBox", _n_QComboBox0, None, Compiled, qt_QComboBox_QComboBox_QComboBox_QComboBox_QWidget, Return, "qt.QComboBox", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addItem", _n_addItem0, None, Compiled, qt_QComboBox_addItem_void_QComboBox_string_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "text", "string"), new Param(c, "userData", "qt.QVariant"), End), + new Function(c, "addItem", _n_addItem1, None, Compiled, qt_QComboBox_addItem_void_QComboBox_QIcon_string_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), new Param(c, "userData", "qt.QVariant"), End), + new Function(c, "addItems", _n_addItems0, None, Compiled, qt_QComboBox_addItems_void_QComboBox_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "texts", "string[]"), End), + new Function(c, "completer", _n_completer0, None, Compiled, qt_QComboBox_completer_QCompleter_QComboBox, Return, "qt.QCompleter", Parameters, new Param(c, "this", "qt.QComboBox"), End), + // PROP: count (int; QComboBox this) + // PROP: currentData (QVariant; QComboBox this, int role) + // PROP: currentIndex (int; QComboBox this) + // PROP: currentText (string; QComboBox this) + // PROP: duplicatesEnabled (bool; QComboBox this) + new Function(c, "findData", _n_findData0, None, Compiled, qt_QComboBox_findData_int_QComboBox_QVariant_int_int, Return, "int", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "data", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::UserRole)), new Param(c, "flags", "int", Value((int)static_cast(Qt::MatchExactly|Qt::MatchCaseSensitive))), End), + new Function(c, "findText", _n_findText0, None, Compiled, qt_QComboBox_findText_int_QComboBox_string_int, Return, "int", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "text", "string"), new Param(c, "flags", "int", Value((int)Qt::MatchExactly|Qt::MatchCaseSensitive)), End), + // PROP: hasFrame (bool; QComboBox this) + _func[0] = new MemberFunction(c, "hidePopup", _n_hidePopup0, None, Compiled, qt_QComboBox_hidePopup_void_QComboBox, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), End), + // PROP: iconSize (QSize; QComboBox this) + new Function(c, "insertItem", _n_insertItem0, None, Compiled, qt_QComboBox_insertItem_void_QComboBox_int_string_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), new Param(c, "text", "string"), new Param(c, "userData", "qt.QVariant"), End), + new Function(c, "insertItem", _n_insertItem1, None, Compiled, qt_QComboBox_insertItem_void_QComboBox_int_QIcon_string_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), new Param(c, "userData", "qt.QVariant"), End), + new Function(c, "insertItems", _n_insertItems0, None, Compiled, qt_QComboBox_insertItems_void_QComboBox_int_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), new Param(c, "list", "string[]"), End), + // PROP: insertPolicy (flags QComboBox::InsertPolicy; QComboBox this) + new Function(c, "insertSeparator", _n_insertSeparator0, None, Compiled, qt_QComboBox_insertSeparator_void_QComboBox_int, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), End), + // PROP: isEditable (bool; QComboBox this) + new Function(c, "itemData", _n_itemData0, None, Compiled, qt_QComboBox_itemData_QVariant_QComboBox_int_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), new Param(c, "role", "int", Value((int)Qt::UserRole)), End), + // MISSING: itemDelegate ("QAbstractItemDelegate *"; QComboBox this) + new Function(c, "itemIcon", _n_itemIcon0, None, Compiled, qt_QComboBox_itemIcon_QIcon_QComboBox_int, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), End), + new Function(c, "itemText", _n_itemText0, None, Compiled, qt_QComboBox_itemText_string_QComboBox_int, Return, "string", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), End), + new Function(c, "lineEdit", _n_lineEdit0, None, Compiled, qt_QComboBox_lineEdit_QLineEdit_QComboBox, Return, "qt.QLineEdit", Parameters, new Param(c, "this", "qt.QComboBox"), End), + // PROP: maxCount (int; QComboBox this) + // PROP: maxVisibleItems (int; QComboBox this) + // PROP: minimumContentsLength (int; QComboBox this) + new Function(c, "model", _n_model0, None, Compiled, qt_QComboBox_model_QAbstractItemModel_QComboBox, Return, "qt.QAbstractItemModel", Parameters, new Param(c, "this", "qt.QComboBox"), End), + // PROP: modelColumn (int; QComboBox this) + // PROP: placeholderText (string; QComboBox this) + new Function(c, "removeItem", _n_removeItem0, None, Compiled, qt_QComboBox_removeItem_void_QComboBox_int, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), End), + new Function(c, "rootModelIndex", _n_rootModelIndex0, None, Compiled, qt_QComboBox_rootModelIndex_QModelIndex_QComboBox, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QComboBox"), End), + new Function(c, "setCompleter", _n_setCompleter0, None, Compiled, qt_QComboBox_setCompleter_void_QComboBox_QCompleter, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "completer", "qt.QCompleter"), End), + // PROP: setDuplicatesEnabled (void; QComboBox this, bool enable) + // PROP: setEditable (void; QComboBox this, bool editable) + // PROP: setFrame (void; QComboBox this, bool _p4) + // PROP: setIconSize (void; QComboBox this, QSize size) + // PROP: setInsertPolicy (void; QComboBox this, flags QComboBox::InsertPolicy policy) + new Function(c, "setItemData", _n_setItemData0, None, Compiled, qt_QComboBox_setItemData_void_QComboBox_int_QVariant_int, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), new Param(c, "value", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::UserRole)), End), + // MISSING: setItemDelegate (void; QComboBox this, "QAbstractItemDelegate *" delegate) + new Function(c, "setItemIcon", _n_setItemIcon0, None, Compiled, qt_QComboBox_setItemIcon_void_QComboBox_int_QIcon, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), new Param(c, "icon", "qt.QIcon"), End), + new Function(c, "setItemText", _n_setItemText0, None, Compiled, qt_QComboBox_setItemText_void_QComboBox_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "int"), new Param(c, "text", "string"), End), + new Function(c, "setLineEdit", _n_setLineEdit0, None, Compiled, qt_QComboBox_setLineEdit_void_QComboBox_QLineEdit, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "edit", "qt.QLineEdit"), End), + // PROP: setMaxCount (void; QComboBox this, int max) + // PROP: setMaxVisibleItems (void; QComboBox this, int maxItems) + // PROP: setMinimumContentsLength (void; QComboBox this, int characters) + _func[1] = new MemberFunction(c, "setModel", _n_setModel0, None, Compiled, qt_QComboBox_setModel_void_QComboBox_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "model", "qt.QAbstractItemModel"), End), + // PROP: setModelColumn (void; QComboBox this, int visibleColumn) + // PROP: setPlaceholderText (void; QComboBox this, string placeholderText) + new Function(c, "setRootModelIndex", _n_setRootModelIndex0, None, Compiled, qt_QComboBox_setRootModelIndex_void_QComboBox_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "index", "qt.QModelIndex"), End), + // PROP: setSizeAdjustPolicy (void; QComboBox this, flags QComboBox::SizeAdjustPolicy policy) + // MISSING: setValidator (void; QComboBox this, "const QValidator *" validator) + new Function(c, "setView", _n_setView0, None, Compiled, qt_QComboBox_setView_void_QComboBox_QAbstractItemView, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "itemView", "qt.QAbstractItemView"), End), + _func[2] = new MemberFunction(c, "showPopup", _n_showPopup0, None, Compiled, qt_QComboBox_showPopup_void_QComboBox, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), End), + // PROP: sizeAdjustPolicy (flags QComboBox::SizeAdjustPolicy; QComboBox this) + // MISSING: validator ("const QValidator *"; QComboBox this) + new Function(c, "view", _n_view0, None, Compiled, qt_QComboBox_view_QAbstractItemView_QComboBox, Return, "qt.QAbstractItemView", Parameters, new Param(c, "this", "qt.QComboBox"), End), + _func[3] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QComboBox_event_bool_QComboBox_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event_", "qt.QEvent"), End), + _func[4] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QComboBox_inputMethodQuery_QVariant_QComboBox_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "query", "int"), End), + _func[5] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QComboBox_minimumSizeHint_QSize_QComboBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QComboBox"), End), + _func[6] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QComboBox_sizeHint_QSize_QComboBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QComboBox"), End), + // MISSING: initStyleOption (void; QComboBox this, "QStyleOptionComboBox *" option) // protected + _func[7] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QComboBox_changeEvent_void_QComboBox_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QEvent"), End), + _func[8] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QComboBox_contextMenuEvent_void_QComboBox_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QContextMenuEvent"), End), + _func[9] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QComboBox_focusInEvent_void_QComboBox_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[10] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QComboBox_focusOutEvent_void_QComboBox_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[11] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QComboBox_hideEvent_void_QComboBox_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QComboBox this, "QInputMethodEvent *" e) // protected + _func[12] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QComboBox_keyPressEvent_void_QComboBox_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[13] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QComboBox_keyReleaseEvent_void_QComboBox_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[14] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QComboBox_mousePressEvent_void_QComboBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[15] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QComboBox_mouseReleaseEvent_void_QComboBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[16] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QComboBox_paintEvent_void_QComboBox_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QPaintEvent"), End), + _func[17] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QComboBox_resizeEvent_void_QComboBox_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QResizeEvent"), End), + _func[18] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QComboBox_showEvent_void_QComboBox_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QShowEvent"), End), + _func[19] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QComboBox_wheelEvent_void_QComboBox_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "e", "qt.QWheelEvent"), End), + _func[20] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QComboBox_hasHeightForWidth_bool_QComboBox, Return, "bool", Parameters, new Param(c, "this", "qt.QComboBox"), End), + _func[21] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QComboBox_heightForWidth_int_QComboBox_int, Return, "int", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "w", "int"), End), + // MISSING: paintEngine ("QPaintEngine *"; QComboBox this) + // MISSING: actionEvent (void; QComboBox this, "QActionEvent *" event) // protected + _func[22] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QComboBox_closeEvent_void_QComboBox_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[23] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QComboBox_dragEnterEvent_void_QComboBox_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[24] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QComboBox_dragLeaveEvent_void_QComboBox_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[25] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QComboBox_dragMoveEvent_void_QComboBox_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[26] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QComboBox_dropEvent_void_QComboBox_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QComboBox this, "QEnterEvent *" event) // protected + _func[27] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QComboBox_focusNextPrevChild_bool_QComboBox_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "next", "bool"), End), + _func[28] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QComboBox_leaveEvent_void_QComboBox_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event", "qt.QEvent"), End), + _func[29] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QComboBox_mouseDoubleClickEvent_void_QComboBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[30] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QComboBox_mouseMoveEvent_void_QComboBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[31] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QComboBox_moveEvent_void_QComboBox_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QComboBox this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[32] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QComboBox_tabletEvent_void_QComboBox_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "event", "qt.QTabletEvent"), End), + // MISSING: initPainter (void; QComboBox this, "QPainter *" painter) // protected + _func[33] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QComboBox_metric_int_QComboBox_int, Return, "int", Parameters, new Param(c, "this", "qt.QComboBox"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QComboBox::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QCompleterType.cpp b/src/lib/mu/MuQt6/QCompleterType.cpp new file mode 100644 index 000000000..23e8fa8d6 --- /dev/null +++ b/src/lib/mu/MuQt6/QCompleterType.cpp @@ -0,0 +1,628 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QCompleter::~MuQt_QCompleter() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QCompleter::MuQt_QCompleter(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QCompleter(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QCompleter")); +} + +MuQt_QCompleter::MuQt_QCompleter(Pointer muobj, const CallEnvironment* ce, QAbstractItemModel * model, QObject * parent) + : QCompleter(model, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QCompleter")); +} + +MuQt_QCompleter::MuQt_QCompleter(Pointer muobj, const CallEnvironment* ce, const QStringList & list, QObject * parent) + : QCompleter(list, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QCompleter")); +} + +QString MuQt_QCompleter::pathFromIndex(const QModelIndex & index) const +{ + if (!_env) return QCompleter::pathFromIndex(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return qstring(rval._Pointer); + } + else + { + return QCompleter::pathFromIndex(index); + } +} + +QStringList MuQt_QCompleter::splitPath(const QString & path) const +{ + if (!_env) return QCompleter::splitPath(path); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makestring(c,path)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QCompleter::splitPath(path); + } +} + +bool MuQt_QCompleter::event(QEvent * ev) +{ + if (!_env) return QCompleter::event(ev); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QCompleter::event(ev); + } +} + +bool MuQt_QCompleter::eventFilter(QObject * o, QEvent * e) +{ + if (!_env) return QCompleter::eventFilter(o, e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,o,"qt.QObject")); + args[2] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QCompleter::eventFilter(o, e); + } +} + +void MuQt_QCompleter::customEvent(QEvent * event) +{ + if (!_env) { QCompleter::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QCompleter::customEvent(event); + } +} + +void MuQt_QCompleter::timerEvent(QTimerEvent * event) +{ + if (!_env) { QCompleter::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QCompleter::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QCompleterType::QCompleterType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QCompleterType::~QCompleterType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QCompleter_QCompleter_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QCompleter* w = object(widget)) + { + QCompleterType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QCompleter"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QCompleter_QCompleter_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QCompleter_QCompleter_QCompleter_QCompleter_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QCompleter(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QCompleter_QCompleter_QCompleter_QCompleter_QAbstractItemModel_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel * arg1 = object(param_model); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QCompleter(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QCompleter_QCompleter_QCompleter_QCompleter_stringBSB_ESB__QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_list, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QStringList arg1 = qstringlist(param_list); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QCompleter(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +int qt_QCompleter_completionCount_int_QCompleter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + return arg0->completionCount(); +} + +Pointer qt_QCompleter_completionModel_QAbstractItemModel_QCompleter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + return makeinstance(c, arg0->completionModel(), "qt.QAbstractItemModel"); +} + +Pointer qt_QCompleter_currentCompletion_string_QCompleter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + return makestring(c,arg0->currentCompletion()); +} + +Pointer qt_QCompleter_currentIndex_QModelIndex_QCompleter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + return makeqtype(c,arg0->currentIndex(),"qt.QModelIndex"); +} + +int qt_QCompleter_currentRow_int_QCompleter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + return arg0->currentRow(); +} + +Pointer qt_QCompleter_model_QAbstractItemModel_QCompleter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + return makeinstance(c, arg0->model(), "qt.QAbstractItemModel"); +} + +Pointer qt_QCompleter_pathFromIndex_string_QCompleter_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makestring(c,arg0->QCompleter::pathFromIndex(arg1)) : makestring(c,arg0->pathFromIndex(arg1)); +} + +Pointer qt_QCompleter_popup_QAbstractItemView_QCompleter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + return makeinstance(c, arg0->popup(), "qt.QAbstractItemView"); +} + +bool qt_QCompleter_setCurrentRow_bool_QCompleter_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + int arg1 = (int)(param_row); + return arg0->setCurrentRow(arg1); +} + +void qt_QCompleter_setModel_void_QCompleter_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + QAbstractItemModel * arg1 = object(param_model); + arg0->setModel(arg1); +} + +void qt_QCompleter_setPopup_void_QCompleter_QAbstractItemView(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_popup) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + QAbstractItemView * arg1 = object(param_popup); + arg0->setPopup(arg1); +} + +void qt_QCompleter_setWidget_void_QCompleter_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->setWidget(arg1); +} + +Pointer qt_QCompleter_splitPath_stringBSB_ESB__QCompleter_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + const QString arg1 = qstring(param_path); + return isMuQtObject(arg0) ? makestringlist(c,arg0->QCompleter::splitPath(arg1)) : makestringlist(c,arg0->splitPath(arg1)); +} + +Pointer qt_QCompleter_widget_QWidget_QCompleter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + return makeinstance(c, arg0->widget(), "qt.QWidget"); +} + +bool qt_QCompleter_event_bool_QCompleter_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + return isMuQtObject(arg0) ? ((MuQt_QCompleter*)arg0)->event_pub_parent(arg1) : ((MuQt_QCompleter*)arg0)->event_pub(arg1); +} + +bool qt_QCompleter_eventFilter_bool_QCompleter_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_o, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + QObject * arg1 = object(param_o); + QEvent * arg2 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QCompleter*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QCompleter*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QCompleter_customEvent_void_QCompleter_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QCompleter*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QCompleter*)arg0)->customEvent_pub(arg1); +} + +void qt_QCompleter_timerEvent_void_QCompleter_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCompleter* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QCompleter*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QCompleter*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QCompleter0, Pointer) +{ + NODE_RETURN(qt_QCompleter_QCompleter_QCompleter_QCompleter_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QCompleter1, Pointer) +{ + NODE_RETURN(qt_QCompleter_QCompleter_QCompleter_QCompleter_QAbstractItemModel_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QCompleter2, Pointer) +{ + NODE_RETURN(qt_QCompleter_QCompleter_QCompleter_QCompleter_stringBSB_ESB__QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_completionCount0, int) +{ + NODE_RETURN(qt_QCompleter_completionCount_int_QCompleter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_completionModel0, Pointer) +{ + NODE_RETURN(qt_QCompleter_completionModel_QAbstractItemModel_QCompleter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentCompletion0, Pointer) +{ + NODE_RETURN(qt_QCompleter_currentCompletion_string_QCompleter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentIndex0, Pointer) +{ + NODE_RETURN(qt_QCompleter_currentIndex_QModelIndex_QCompleter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentRow0, int) +{ + NODE_RETURN(qt_QCompleter_currentRow_int_QCompleter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_model0, Pointer) +{ + NODE_RETURN(qt_QCompleter_model_QAbstractItemModel_QCompleter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pathFromIndex0, Pointer) +{ + NODE_RETURN(qt_QCompleter_pathFromIndex_string_QCompleter_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_popup0, Pointer) +{ + NODE_RETURN(qt_QCompleter_popup_QAbstractItemView_QCompleter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCurrentRow0, bool) +{ + NODE_RETURN(qt_QCompleter_setCurrentRow_bool_QCompleter_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setModel0, void) +{ + qt_QCompleter_setModel_void_QCompleter_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPopup0, void) +{ + qt_QCompleter_setPopup_void_QCompleter_QAbstractItemView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setWidget0, void) +{ + qt_QCompleter_setWidget_void_QCompleter_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_splitPath0, Pointer) +{ + NODE_RETURN(qt_QCompleter_splitPath_stringBSB_ESB__QCompleter_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QCompleter_widget_QWidget_QCompleter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QCompleter_event_bool_QCompleter_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QCompleter_eventFilter_bool_QCompleter_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QCompleter_customEvent_void_QCompleter_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QCompleter_timerEvent_void_QCompleter_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QCompleterType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QCompleter_QCompleter_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QCompleter", _n_QCompleter0, None, Compiled, qt_QCompleter_QCompleter_QCompleter_QCompleter_QObject, Return, "qt.QCompleter", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QCompleter", _n_QCompleter1, None, Compiled, qt_QCompleter_QCompleter_QCompleter_QCompleter_QAbstractItemModel_QObject, Return, "qt.QCompleter", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "model", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QCompleter", _n_QCompleter2, None, Compiled, qt_QCompleter_QCompleter_QCompleter_QCompleter_stringBSB_ESB__QObject, Return, "qt.QCompleter", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "list", "string[]"), new Param(c, "parent", "qt.QObject"), End), + // PROP: caseSensitivity (flags Qt::CaseSensitivity; QCompleter this) + // PROP: completionColumn (int; QCompleter this) + new Function(c, "completionCount", _n_completionCount0, None, Compiled, qt_QCompleter_completionCount_int_QCompleter, Return, "int", Parameters, new Param(c, "this", "qt.QCompleter"), End), + // PROP: completionMode (flags QCompleter::CompletionMode; QCompleter this) + new Function(c, "completionModel", _n_completionModel0, None, Compiled, qt_QCompleter_completionModel_QAbstractItemModel_QCompleter, Return, "qt.QAbstractItemModel", Parameters, new Param(c, "this", "qt.QCompleter"), End), + // PROP: completionPrefix (string; QCompleter this) + // PROP: completionRole (int; QCompleter this) + new Function(c, "currentCompletion", _n_currentCompletion0, None, Compiled, qt_QCompleter_currentCompletion_string_QCompleter, Return, "string", Parameters, new Param(c, "this", "qt.QCompleter"), End), + new Function(c, "currentIndex", _n_currentIndex0, None, Compiled, qt_QCompleter_currentIndex_QModelIndex_QCompleter, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QCompleter"), End), + new Function(c, "currentRow", _n_currentRow0, None, Compiled, qt_QCompleter_currentRow_int_QCompleter, Return, "int", Parameters, new Param(c, "this", "qt.QCompleter"), End), + // PROP: filterMode (flags Qt::MatchFlags; QCompleter this) + // PROP: maxVisibleItems (int; QCompleter this) + new Function(c, "model", _n_model0, None, Compiled, qt_QCompleter_model_QAbstractItemModel_QCompleter, Return, "qt.QAbstractItemModel", Parameters, new Param(c, "this", "qt.QCompleter"), End), + // PROP: modelSorting (flags QCompleter::ModelSorting; QCompleter this) + _func[0] = new MemberFunction(c, "pathFromIndex", _n_pathFromIndex0, None, Compiled, qt_QCompleter_pathFromIndex_string_QCompleter_QModelIndex, Return, "string", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "popup", _n_popup0, None, Compiled, qt_QCompleter_popup_QAbstractItemView_QCompleter, Return, "qt.QAbstractItemView", Parameters, new Param(c, "this", "qt.QCompleter"), End), + // PROP: setCaseSensitivity (void; QCompleter this, flags Qt::CaseSensitivity caseSensitivity) + // PROP: setCompletionColumn (void; QCompleter this, int column) + // PROP: setCompletionMode (void; QCompleter this, flags QCompleter::CompletionMode mode) + // PROP: setCompletionRole (void; QCompleter this, int role) + new Function(c, "setCurrentRow", _n_setCurrentRow0, None, Compiled, qt_QCompleter_setCurrentRow_bool_QCompleter_int, Return, "bool", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "row", "int"), End), + // PROP: setFilterMode (void; QCompleter this, flags Qt::MatchFlags filterMode) + // PROP: setMaxVisibleItems (void; QCompleter this, int maxItems) + new Function(c, "setModel", _n_setModel0, None, Compiled, qt_QCompleter_setModel_void_QCompleter_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "model", "qt.QAbstractItemModel"), End), + // PROP: setModelSorting (void; QCompleter this, flags QCompleter::ModelSorting sorting) + new Function(c, "setPopup", _n_setPopup0, None, Compiled, qt_QCompleter_setPopup_void_QCompleter_QAbstractItemView, Return, "void", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "popup", "qt.QAbstractItemView"), End), + new Function(c, "setWidget", _n_setWidget0, None, Compiled, qt_QCompleter_setWidget_void_QCompleter_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "widget", "qt.QWidget"), End), + _func[1] = new MemberFunction(c, "splitPath", _n_splitPath0, None, Compiled, qt_QCompleter_splitPath_stringBSB_ESB__QCompleter_string, Return, "string[]", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "path", "string"), End), + new Function(c, "widget", _n_widget0, None, Compiled, qt_QCompleter_widget_QWidget_QCompleter, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QCompleter"), End), + // PROP: wrapAround (bool; QCompleter this) + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QCompleter_event_bool_QCompleter_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "ev", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QCompleter_eventFilter_bool_QCompleter_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "o", "qt.QObject"), new Param(c, "e", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QCompleter this) + // MISSING: childEvent (void; QCompleter this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QCompleter this, "const QMetaMethod &" signal) // protected + _func[4] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QCompleter_customEvent_void_QCompleter_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QCompleter this, "const QMetaMethod &" signal) // protected + _func[5] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QCompleter_timerEvent_void_QCompleter_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCompleter"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QCompleter::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QConicalGradientType.cpp b/src/lib/mu/MuQt6/QConicalGradientType.cpp new file mode 100644 index 000000000..89c3b9d60 --- /dev/null +++ b/src/lib/mu/MuQt6/QConicalGradientType.cpp @@ -0,0 +1,242 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QConicalGradientType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QConicalGradientType::QConicalGradientType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QConicalGradientType::~QConicalGradientType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QConicalGradientType::Instance* i = new QConicalGradientType::Instance((Class*)NODE_THIS.type()); + QConicalGradientType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QConicalGradientType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QConicalGradientType::finalizer, 0, 0, 0); +} + +void +QConicalGradientType::finalizer (void* obj, void* data) +{ + QConicalGradientType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QConicalGradient_QConicalGradient_QConicalGradient_QConicalGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QConicalGradient()); + return param_this; +} + +Pointer qt_QConicalGradient_QConicalGradient_QConicalGradient_QConicalGradient_QPointF_double(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_center, double param_angle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPointF arg1 = getqtype(param_center); + qreal arg2 = (double)(param_angle); + setqtype(param_this,QConicalGradient(arg1, arg2)); + return param_this; +} + +Pointer qt_QConicalGradient_QConicalGradient_QConicalGradient_QConicalGradient_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_cx, double param_cy, double param_angle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg1 = (double)(param_cx); + qreal arg2 = (double)(param_cy); + qreal arg3 = (double)(param_angle); + setqtype(param_this,QConicalGradient(arg1, arg2, arg3)); + return param_this; +} + +double qt_QConicalGradient_angle_double_QConicalGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QConicalGradient arg0 = getqtype(param_this); + return arg0.angle(); +} + +Pointer qt_QConicalGradient_center_QPointF_QConicalGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QConicalGradient arg0 = getqtype(param_this); + return makeqtype(c,arg0.center(),"qt.QPointF"); +} + +void qt_QConicalGradient_setAngle_void_QConicalGradient_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_angle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QConicalGradient arg0 = getqtype(param_this); + qreal arg1 = (double)(param_angle); + arg0.setAngle(arg1); + setqtype(param_this,arg0); +} + +void qt_QConicalGradient_setCenter_void_QConicalGradient_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_center) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QConicalGradient arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_center); + arg0.setCenter(arg1); + setqtype(param_this,arg0); +} + +void qt_QConicalGradient_setCenter_void_QConicalGradient_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QConicalGradient arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + qreal arg2 = (double)(param_y); + arg0.setCenter(arg1, arg2); + setqtype(param_this,arg0); +} + + +static NODE_IMPLEMENTATION(_n_QConicalGradient0, Pointer) +{ + NODE_RETURN(qt_QConicalGradient_QConicalGradient_QConicalGradient_QConicalGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QConicalGradient1, Pointer) +{ + NODE_RETURN(qt_QConicalGradient_QConicalGradient_QConicalGradient_QConicalGradient_QPointF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, double))); +} + +static NODE_IMPLEMENTATION(_n_QConicalGradient2, Pointer) +{ + NODE_RETURN(qt_QConicalGradient_QConicalGradient_QConicalGradient_QConicalGradient_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double))); +} + +static NODE_IMPLEMENTATION(_n_angle0, double) +{ + NODE_RETURN(qt_QConicalGradient_angle_double_QConicalGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_center0, Pointer) +{ + NODE_RETURN(qt_QConicalGradient_center_QPointF_QConicalGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAngle0, void) +{ + qt_QConicalGradient_setAngle_void_QConicalGradient_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setCenter0, void) +{ + qt_QConicalGradient_setCenter_void_QConicalGradient_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCenter1, void) +{ + qt_QConicalGradient_setCenter_void_QConicalGradient_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double)); +} + + + +void +QConicalGradientType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QConicalGradient", _n_QConicalGradient0, None, Compiled, qt_QConicalGradient_QConicalGradient_QConicalGradient_QConicalGradient, Return, "qt.QConicalGradient", Parameters, new Param(c, "this", "qt.QConicalGradient"), End), + new Function(c, "QConicalGradient", _n_QConicalGradient1, None, Compiled, qt_QConicalGradient_QConicalGradient_QConicalGradient_QConicalGradient_QPointF_double, Return, "qt.QConicalGradient", Parameters, new Param(c, "this", "qt.QConicalGradient"), new Param(c, "center", "qt.QPointF"), new Param(c, "angle", "double"), End), + new Function(c, "QConicalGradient", _n_QConicalGradient2, None, Compiled, qt_QConicalGradient_QConicalGradient_QConicalGradient_QConicalGradient_double_double_double, Return, "qt.QConicalGradient", Parameters, new Param(c, "this", "qt.QConicalGradient"), new Param(c, "cx", "double"), new Param(c, "cy", "double"), new Param(c, "angle", "double"), End), + new Function(c, "angle", _n_angle0, None, Compiled, qt_QConicalGradient_angle_double_QConicalGradient, Return, "double", Parameters, new Param(c, "this", "qt.QConicalGradient"), End), + new Function(c, "center", _n_center0, None, Compiled, qt_QConicalGradient_center_QPointF_QConicalGradient, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QConicalGradient"), End), + new Function(c, "setAngle", _n_setAngle0, None, Compiled, qt_QConicalGradient_setAngle_void_QConicalGradient_double, Return, "void", Parameters, new Param(c, "this", "qt.QConicalGradient"), new Param(c, "angle", "double"), End), + new Function(c, "setCenter", _n_setCenter0, None, Compiled, qt_QConicalGradient_setCenter_void_QConicalGradient_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QConicalGradient"), new Param(c, "center", "qt.QPointF"), End), + new Function(c, "setCenter", _n_setCenter1, None, Compiled, qt_QConicalGradient_setCenter_void_QConicalGradient_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QConicalGradient"), new Param(c, "x", "double"), new Param(c, "y", "double"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QContextMenuEventType.cpp b/src/lib/mu/MuQt6/QContextMenuEventType.cpp new file mode 100644 index 000000000..0a05d9e12 --- /dev/null +++ b/src/lib/mu/MuQt6/QContextMenuEventType.cpp @@ -0,0 +1,218 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QContextMenuEventType::QContextMenuEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QContextMenuEventType::~QContextMenuEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QContextMenuEvent_QContextMenuEvent_QContextMenuEvent_QContextMenuEvent_int_QPoint_QPoint_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_reason, Pointer param_pos, Pointer param_globalPos, int param_modifiers) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QContextMenuEvent::Reason arg1 = (QContextMenuEvent::Reason)(param_reason); + const QPoint arg2 = getqtype(param_pos); + const QPoint arg3 = getqtype(param_globalPos); + Qt::KeyboardModifiers arg4 = (Qt::KeyboardModifiers)(param_modifiers); + setqpointer(param_this,new QContextMenuEvent(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QContextMenuEvent_globalPos_QPoint_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QContextMenuEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->globalPos(),"qt.QPoint"); +} + +int qt_QContextMenuEvent_globalX_int_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QContextMenuEvent * arg0 = getqpointer(param_this); + return arg0->globalX(); +} + +int qt_QContextMenuEvent_globalY_int_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QContextMenuEvent * arg0 = getqpointer(param_this); + return arg0->globalY(); +} + +Pointer qt_QContextMenuEvent_pos_QPoint_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QContextMenuEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->pos(),"qt.QPoint"); +} + +int qt_QContextMenuEvent_reason_int_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QContextMenuEvent * arg0 = getqpointer(param_this); + return int(arg0->reason()); +} + +int qt_QContextMenuEvent_x_int_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QContextMenuEvent * arg0 = getqpointer(param_this); + return arg0->x(); +} + +int qt_QContextMenuEvent_y_int_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QContextMenuEvent * arg0 = getqpointer(param_this); + return arg0->y(); +} + + +static NODE_IMPLEMENTATION(_n_QContextMenuEvent0, Pointer) +{ + NODE_RETURN(qt_QContextMenuEvent_QContextMenuEvent_QContextMenuEvent_QContextMenuEvent_int_QPoint_QPoint_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_globalPos0, Pointer) +{ + NODE_RETURN(qt_QContextMenuEvent_globalPos_QPoint_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_globalX0, int) +{ + NODE_RETURN(qt_QContextMenuEvent_globalX_int_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_globalY0, int) +{ + NODE_RETURN(qt_QContextMenuEvent_globalY_int_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pos0, Pointer) +{ + NODE_RETURN(qt_QContextMenuEvent_pos_QPoint_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_reason0, int) +{ + NODE_RETURN(qt_QContextMenuEvent_reason_int_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_x0, int) +{ + NODE_RETURN(qt_QContextMenuEvent_x_int_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_y0, int) +{ + NODE_RETURN(qt_QContextMenuEvent_y_int_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QContextMenuEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + new Alias(c, "Reason", "int"), + new SymbolicConstant(c, "Mouse", "int", Value(int(QContextMenuEvent::Mouse))), + new SymbolicConstant(c, "Keyboard", "int", Value(int(QContextMenuEvent::Keyboard))), + new SymbolicConstant(c, "Other", "int", Value(int(QContextMenuEvent::Other))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QContextMenuEvent", _n_QContextMenuEvent0, None, Compiled, qt_QContextMenuEvent_QContextMenuEvent_QContextMenuEvent_QContextMenuEvent_int_QPoint_QPoint_int, Return, "qt.QContextMenuEvent", Parameters, new Param(c, "this", "qt.QContextMenuEvent"), new Param(c, "reason", "int"), new Param(c, "pos", "qt.QPoint"), new Param(c, "globalPos", "qt.QPoint"), new Param(c, "modifiers", "int", Value((int)Qt::NoModifier)), End), + new Function(c, "globalPos", _n_globalPos0, None, Compiled, qt_QContextMenuEvent_globalPos_QPoint_QContextMenuEvent, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QContextMenuEvent"), End), + new Function(c, "globalX", _n_globalX0, None, Compiled, qt_QContextMenuEvent_globalX_int_QContextMenuEvent, Return, "int", Parameters, new Param(c, "this", "qt.QContextMenuEvent"), End), + new Function(c, "globalY", _n_globalY0, None, Compiled, qt_QContextMenuEvent_globalY_int_QContextMenuEvent, Return, "int", Parameters, new Param(c, "this", "qt.QContextMenuEvent"), End), + new Function(c, "pos", _n_pos0, None, Compiled, qt_QContextMenuEvent_pos_QPoint_QContextMenuEvent, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QContextMenuEvent"), End), + new Function(c, "reason", _n_reason0, None, Compiled, qt_QContextMenuEvent_reason_int_QContextMenuEvent, Return, "int", Parameters, new Param(c, "this", "qt.QContextMenuEvent"), End), + new Function(c, "x", _n_x0, None, Compiled, qt_QContextMenuEvent_x_int_QContextMenuEvent, Return, "int", Parameters, new Param(c, "this", "qt.QContextMenuEvent"), End), + new Function(c, "y", _n_y0, None, Compiled, qt_QContextMenuEvent_y_int_QContextMenuEvent, Return, "int", Parameters, new Param(c, "this", "qt.QContextMenuEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QCoreApplicationType.cpp b/src/lib/mu/MuQt6/QCoreApplicationType.cpp new file mode 100644 index 000000000..45cbc2a2e --- /dev/null +++ b/src/lib/mu/MuQt6/QCoreApplicationType.cpp @@ -0,0 +1,635 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QCoreApplication::~MuQt_QCoreApplication() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +bool MuQt_QCoreApplication::notify(QObject * receiver, QEvent * event) +{ + if (!_env) return QCoreApplication::notify(receiver, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,receiver,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QCoreApplication::notify(receiver, event); + } +} + +bool MuQt_QCoreApplication::event(QEvent * e) +{ + if (!_env) return QCoreApplication::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QCoreApplication::event(e); + } +} + +bool MuQt_QCoreApplication::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QCoreApplication::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QCoreApplication::eventFilter(watched, event); + } +} + +void MuQt_QCoreApplication::customEvent(QEvent * event) +{ + if (!_env) { QCoreApplication::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QCoreApplication::customEvent(event); + } +} + +void MuQt_QCoreApplication::timerEvent(QTimerEvent * event) +{ + if (!_env) { QCoreApplication::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QCoreApplication::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QCoreApplicationType::QCoreApplicationType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QCoreApplicationType::~QCoreApplicationType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QCoreApplication_QCoreApplication_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QCoreApplication* w = object(widget)) + { + QCoreApplicationType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QCoreApplication"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QCoreApplication_QCoreApplication_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +bool qt_QCoreApplication_notify_bool_QCoreApplication_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_receiver, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCoreApplication* arg0 = object(param_this); + QObject * arg1 = object(param_receiver); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QCoreApplication::notify(arg1, arg2) : arg0->notify(arg1, arg2); +} + +bool qt_QCoreApplication_event_bool_QCoreApplication_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCoreApplication* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QCoreApplication*)arg0)->event_pub_parent(arg1) : ((MuQt_QCoreApplication*)arg0)->event_pub(arg1); +} + +bool qt_QCoreApplication_eventFilter_bool_QCoreApplication_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCoreApplication* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QCoreApplication::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QCoreApplication_customEvent_void_QCoreApplication_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCoreApplication* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QCoreApplication*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QCoreApplication*)arg0)->customEvent_pub(arg1); +} + +void qt_QCoreApplication_timerEvent_void_QCoreApplication_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCoreApplication* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QCoreApplication*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QCoreApplication*)arg0)->timerEvent_pub(arg1); +} + +void qt_QCoreApplication_addLibraryPath_void_string(Mu::Thread& NODE_THREAD, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_path); + QCoreApplication::addLibraryPath(arg0); +} + +Pointer qt_QCoreApplication_applicationDirPath_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QCoreApplication::applicationDirPath()); +} + +Pointer qt_QCoreApplication_applicationFilePath_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QCoreApplication::applicationFilePath()); +} + +int64 qt_QCoreApplication_applicationPid_int64(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QCoreApplication::applicationPid(); +} + +Pointer qt_QCoreApplication_arguments_stringBSB_ESB_(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestringlist(c,QCoreApplication::arguments()); +} + +bool qt_QCoreApplication_closingDown_bool(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QCoreApplication::closingDown(); +} + +int qt_QCoreApplication_exec_int(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QCoreApplication::exec(); +} + +Pointer qt_QCoreApplication_instance_QCoreApplication(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QCoreApplication::instance(), "qt.QCoreApplication"); +} + +bool qt_QCoreApplication_isSetuidAllowed_bool(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QCoreApplication::isSetuidAllowed(); +} + +Pointer qt_QCoreApplication_libraryPaths_stringBSB_ESB_(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestringlist(c,QCoreApplication::libraryPaths()); +} + +void qt_QCoreApplication_postEvent_void_QObject_QEvent_int(Mu::Thread& NODE_THREAD, Pointer param_receiver, Pointer param_event, int param_priority) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg0 = object(param_receiver); + QEvent * arg1 = getqpointer(param_event); + int arg2 = (int)(param_priority); + QCoreApplication::postEvent(arg0, arg1, arg2); +} + +void qt_QCoreApplication_processEvents_void_int(Mu::Thread& NODE_THREAD, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop::ProcessEventsFlags arg0 = (QEventLoop::ProcessEventsFlags)(param_flags); + QCoreApplication::processEvents(arg0); +} + +void qt_QCoreApplication_processEvents_void_int_int(Mu::Thread& NODE_THREAD, int param_flags, int param_ms) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop::ProcessEventsFlags arg0 = (QEventLoop::ProcessEventsFlags)(param_flags); + int arg1 = (int)(param_ms); + QCoreApplication::processEvents(arg0, arg1); +} + +void qt_QCoreApplication_removeLibraryPath_void_string(Mu::Thread& NODE_THREAD, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_path); + QCoreApplication::removeLibraryPath(arg0); +} + +void qt_QCoreApplication_removePostedEvents_void_QObject_int(Mu::Thread& NODE_THREAD, Pointer param_receiver, int param_eventType) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg0 = object(param_receiver); + int arg1 = (int)(param_eventType); + QCoreApplication::removePostedEvents(arg0, arg1); +} + +bool qt_QCoreApplication_sendEvent_bool_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_receiver, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg0 = object(param_receiver); + QEvent * arg1 = getqpointer(param_event); + return QCoreApplication::sendEvent(arg0, arg1); +} + +void qt_QCoreApplication_sendPostedEvents_void_QObject_int(Mu::Thread& NODE_THREAD, Pointer param_receiver, int param_event_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg0 = object(param_receiver); + int arg1 = (int)(param_event_type); + QCoreApplication::sendPostedEvents(arg0, arg1); +} + +void qt_QCoreApplication_setAttribute_void_int_bool(Mu::Thread& NODE_THREAD, int param_attribute, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::ApplicationAttribute arg0 = (Qt::ApplicationAttribute)(param_attribute); + bool arg1 = (bool)(param_on); + QCoreApplication::setAttribute(arg0, arg1); +} + +void qt_QCoreApplication_setLibraryPaths_void_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_paths) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QStringList arg0 = qstringlist(param_paths); + QCoreApplication::setLibraryPaths(arg0); +} + +void qt_QCoreApplication_setSetuidAllowed_void_bool(Mu::Thread& NODE_THREAD, bool param_allow) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + bool arg0 = (bool)(param_allow); + QCoreApplication::setSetuidAllowed(arg0); +} + +bool qt_QCoreApplication_startingUp_bool(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QCoreApplication::startingUp(); +} + +bool qt_QCoreApplication_testAttribute_bool_int(Mu::Thread& NODE_THREAD, int param_attribute) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::ApplicationAttribute arg0 = (Qt::ApplicationAttribute)(param_attribute); + return QCoreApplication::testAttribute(arg0); +} + + +static NODE_IMPLEMENTATION(_n_notify0, bool) +{ + NODE_RETURN(qt_QCoreApplication_notify_bool_QCoreApplication_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QCoreApplication_event_bool_QCoreApplication_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QCoreApplication_eventFilter_bool_QCoreApplication_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QCoreApplication_customEvent_void_QCoreApplication_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QCoreApplication_timerEvent_void_QCoreApplication_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addLibraryPath0, void) +{ + qt_QCoreApplication_addLibraryPath_void_string(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_applicationDirPath0, Pointer) +{ + NODE_RETURN(qt_QCoreApplication_applicationDirPath_string(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_applicationFilePath0, Pointer) +{ + NODE_RETURN(qt_QCoreApplication_applicationFilePath_string(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_applicationPid0, int64) +{ + NODE_RETURN(qt_QCoreApplication_applicationPid_int64(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_arguments0, Pointer) +{ + NODE_RETURN(qt_QCoreApplication_arguments_stringBSB_ESB_(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_closingDown0, bool) +{ + NODE_RETURN(qt_QCoreApplication_closingDown_bool(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_exec0, int) +{ + NODE_RETURN(qt_QCoreApplication_exec_int(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_instance0, Pointer) +{ + NODE_RETURN(qt_QCoreApplication_instance_QCoreApplication(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_isSetuidAllowed0, bool) +{ + NODE_RETURN(qt_QCoreApplication_isSetuidAllowed_bool(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_libraryPaths0, Pointer) +{ + NODE_RETURN(qt_QCoreApplication_libraryPaths_stringBSB_ESB_(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_postEvent0, void) +{ + qt_QCoreApplication_postEvent_void_QObject_QEvent_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_processEvents0, void) +{ + qt_QCoreApplication_processEvents_void_int(NODE_THREAD, NODE_ARG(0, int)); +} + +static NODE_IMPLEMENTATION(_n_processEvents1, void) +{ + qt_QCoreApplication_processEvents_void_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_removeLibraryPath0, void) +{ + qt_QCoreApplication_removeLibraryPath_void_string(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removePostedEvents0, void) +{ + qt_QCoreApplication_removePostedEvents_void_QObject_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_sendEvent0, bool) +{ + NODE_RETURN(qt_QCoreApplication_sendEvent_bool_QObject_QEvent(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sendPostedEvents0, void) +{ + qt_QCoreApplication_sendPostedEvents_void_QObject_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setAttribute0, void) +{ + qt_QCoreApplication_setAttribute_void_int_bool(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setLibraryPaths0, void) +{ + qt_QCoreApplication_setLibraryPaths_void_stringBSB_ESB_(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSetuidAllowed0, void) +{ + qt_QCoreApplication_setSetuidAllowed_void_bool(NODE_THREAD, NODE_ARG(0, bool)); +} + +static NODE_IMPLEMENTATION(_n_startingUp0, bool) +{ + NODE_RETURN(qt_QCoreApplication_startingUp_bool(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_testAttribute0, bool) +{ + NODE_RETURN(qt_QCoreApplication_testAttribute_bool_int(NODE_THREAD, NODE_ARG(0, int))); +} + + + +void +QCoreApplicationType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QCoreApplication_QCoreApplication_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + // MISSING: QCoreApplication (QCoreApplication; QCoreApplication this, "int &" argc, "char * *" argv) + // MISSING: checkPermission (flags Qt::PermissionStatus; QCoreApplication this, "const QPermission &" permission) + // MISSING: installNativeEventFilter (void; QCoreApplication this, "QAbstractNativeEventFilter *" filterObj) + _func[0] = new MemberFunction(c, "notify", _n_notify0, None, Compiled, qt_QCoreApplication_notify_bool_QCoreApplication_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QCoreApplication"), new Param(c, "receiver", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: removeNativeEventFilter (void; QCoreApplication this, "QAbstractNativeEventFilter *" filterObject) + // MISSING: requestPermission (void; QCoreApplication this, "const QPermission &" permission, QObject context, "Functor" functor) + _func[1] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QCoreApplication_event_bool_QCoreApplication_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QCoreApplication"), new Param(c, "e", "qt.QEvent"), End), + _func[2] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QCoreApplication_eventFilter_bool_QCoreApplication_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QCoreApplication"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QCoreApplication this) + // MISSING: childEvent (void; QCoreApplication this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QCoreApplication this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QCoreApplication_customEvent_void_QCoreApplication_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCoreApplication"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QCoreApplication this, "const QMetaMethod &" signal) // protected + _func[4] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QCoreApplication_timerEvent_void_QCoreApplication_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QCoreApplication"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + new Function(c, "addLibraryPath", _n_addLibraryPath0, None, Compiled, qt_QCoreApplication_addLibraryPath_void_string, Return, "void", Parameters, new Param(c, "path", "string"), End), + new Function(c, "applicationDirPath", _n_applicationDirPath0, None, Compiled, qt_QCoreApplication_applicationDirPath_string, Return, "string", End), + new Function(c, "applicationFilePath", _n_applicationFilePath0, None, Compiled, qt_QCoreApplication_applicationFilePath_string, Return, "string", End), + new Function(c, "applicationPid", _n_applicationPid0, None, Compiled, qt_QCoreApplication_applicationPid_int64, Return, "int64", End), + new Function(c, "arguments", _n_arguments0, None, Compiled, qt_QCoreApplication_arguments_stringBSB_ESB_, Return, "string[]", End), + new Function(c, "closingDown", _n_closingDown0, None, Compiled, qt_QCoreApplication_closingDown_bool, Return, "bool", End), + // MISSING: eventDispatcher ("QAbstractEventDispatcher *"; ) + new Function(c, "exec", _n_exec0, None, Compiled, qt_QCoreApplication_exec_int, Return, "int", End), + // MISSING: installTranslator (bool; "QTranslator *" translationFile) + new Function(c, "instance", _n_instance0, None, Compiled, qt_QCoreApplication_instance_QCoreApplication, Return, "qt.QCoreApplication", End), + new Function(c, "isSetuidAllowed", _n_isSetuidAllowed0, None, Compiled, qt_QCoreApplication_isSetuidAllowed_bool, Return, "bool", End), + new Function(c, "libraryPaths", _n_libraryPaths0, None, Compiled, qt_QCoreApplication_libraryPaths_stringBSB_ESB_, Return, "string[]", End), + new Function(c, "postEvent", _n_postEvent0, None, Compiled, qt_QCoreApplication_postEvent_void_QObject_QEvent_int, Return, "void", Parameters, new Param(c, "receiver", "qt.QObject"), new Param(c, "event", "qt.QEvent"), new Param(c, "priority", "int", Value((int)Qt::NormalEventPriority)), End), + new Function(c, "processEvents", _n_processEvents0, None, Compiled, qt_QCoreApplication_processEvents_void_int, Return, "void", Parameters, new Param(c, "flags", "int", Value((int)QEventLoop::AllEvents)), End), + new Function(c, "processEvents", _n_processEvents1, None, Compiled, qt_QCoreApplication_processEvents_void_int_int, Return, "void", Parameters, new Param(c, "flags", "int"), new Param(c, "ms", "int"), End), + new Function(c, "removeLibraryPath", _n_removeLibraryPath0, None, Compiled, qt_QCoreApplication_removeLibraryPath_void_string, Return, "void", Parameters, new Param(c, "path", "string"), End), + new Function(c, "removePostedEvents", _n_removePostedEvents0, None, Compiled, qt_QCoreApplication_removePostedEvents_void_QObject_int, Return, "void", Parameters, new Param(c, "receiver", "qt.QObject"), new Param(c, "eventType", "int", Value((int)0)), End), + // MISSING: removeTranslator (bool; "QTranslator *" translationFile) + new Function(c, "sendEvent", _n_sendEvent0, None, Compiled, qt_QCoreApplication_sendEvent_bool_QObject_QEvent, Return, "bool", Parameters, new Param(c, "receiver", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + new Function(c, "sendPostedEvents", _n_sendPostedEvents0, None, Compiled, qt_QCoreApplication_sendPostedEvents_void_QObject_int, Return, "void", Parameters, new Param(c, "receiver", "qt.QObject"), new Param(c, "event_type", "int", Value((int)0)), End), + new Function(c, "setAttribute", _n_setAttribute0, None, Compiled, qt_QCoreApplication_setAttribute_void_int_bool, Return, "void", Parameters, new Param(c, "attribute", "int"), new Param(c, "on", "bool"), End), + // MISSING: setEventDispatcher (void; "QAbstractEventDispatcher *" eventDispatcher) + new Function(c, "setLibraryPaths", _n_setLibraryPaths0, None, Compiled, qt_QCoreApplication_setLibraryPaths_void_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "paths", "string[]"), End), + new Function(c, "setSetuidAllowed", _n_setSetuidAllowed0, None, Compiled, qt_QCoreApplication_setSetuidAllowed_void_bool, Return, "void", Parameters, new Param(c, "allow", "bool"), End), + new Function(c, "startingUp", _n_startingUp0, None, Compiled, qt_QCoreApplication_startingUp_bool, Return, "bool", End), + new Function(c, "testAttribute", _n_testAttribute0, None, Compiled, qt_QCoreApplication_testAttribute_bool_int, Return, "bool", Parameters, new Param(c, "attribute", "int"), End), + // MISSING: translate (string; "const char *" context, "const char *" sourceText, "const char *" disambiguation, int n) + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QCoreApplication::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QCursorType.cpp b/src/lib/mu/MuQt6/QCursorType.cpp new file mode 100644 index 000000000..be4f0ae00 --- /dev/null +++ b/src/lib/mu/MuQt6/QCursorType.cpp @@ -0,0 +1,343 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QCursorType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QCursorType::QCursorType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QCursorType::~QCursorType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QCursorType::Instance* i = new QCursorType::Instance((Class*)NODE_THIS.type()); + QCursorType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QCursorType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QCursorType::finalizer, 0, 0, 0); +} + +void +QCursorType::finalizer (void* obj, void* data) +{ + QCursorType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QCursor_QCursor_QCursor_QCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QCursor()); + return param_this; +} + +Pointer qt_QCursor_QCursor_QCursor_QCursor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_shape) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::CursorShape arg1 = (Qt::CursorShape)(param_shape); + setqtype(param_this,QCursor(arg1)); + return param_this; +} + +Pointer qt_QCursor_QCursor_QCursor_QCursor_QBitmap_QBitmap_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_bitmap, Pointer param_mask, int param_hotX, int param_hotY) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBitmap arg1 = getqtype(param_bitmap); + const QBitmap arg2 = getqtype(param_mask); + int arg3 = (int)(param_hotX); + int arg4 = (int)(param_hotY); + setqtype(param_this,QCursor(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QCursor_QCursor_QCursor_QCursor_QPixmap_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pixmap, int param_hotX, int param_hotY) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap arg1 = getqtype(param_pixmap); + int arg2 = (int)(param_hotX); + int arg3 = (int)(param_hotY); + setqtype(param_this,QCursor(arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QCursor_hotSpot_QPoint_QCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QCursor& arg0 = getqtype(param_this); + return makeqtype(c,arg0.hotSpot(),"qt.QPoint"); +} + +Pointer qt_QCursor_pixmap_QPixmap_QCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QCursor& arg0 = getqtype(param_this); + return makeqtype(c,arg0.pixmap(),"qt.QPixmap"); +} + +void qt_QCursor_setShape_void_QCursor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_shape) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCursor& arg0 = getqtype(param_this); + Qt::CursorShape arg1 = (Qt::CursorShape)(param_shape); + arg0.setShape(arg1); + setqtype(param_this,arg0); +} + +int qt_QCursor_shape_int_QCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QCursor& arg0 = getqtype(param_this); + return int(arg0.shape()); +} + +void qt_QCursor_swap_void_QCursor_QCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QCursor& arg0 = getqtype(param_this); + QCursor arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QCursor_pos_QPoint(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QCursor::pos(),"qt.QPoint"); +} + +Pointer qt_QCursor_pos_QPoint_QScreen(Mu::Thread& NODE_THREAD, Pointer param_screen) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QScreen * arg0 = object(param_screen); + return makeqtype(c,QCursor::pos(arg0),"qt.QPoint"); +} + +void qt_QCursor_setPos_void_int_int(Mu::Thread& NODE_THREAD, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_x); + int arg1 = (int)(param_y); + QCursor::setPos(arg0, arg1); +} + +void qt_QCursor_setPos_void_QScreen_int_int(Mu::Thread& NODE_THREAD, Pointer param_screen, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen * arg0 = object(param_screen); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + QCursor::setPos(arg0, arg1, arg2); +} + +void qt_QCursor_setPos_void_QPoint(Mu::Thread& NODE_THREAD, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg0 = getqtype(param_p); + QCursor::setPos(arg0); +} + +void qt_QCursor_setPos_void_QScreen_QPoint(Mu::Thread& NODE_THREAD, Pointer param_screen, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen * arg0 = object(param_screen); + const QPoint arg1 = getqtype(param_p); + QCursor::setPos(arg0, arg1); +} + + +static NODE_IMPLEMENTATION(_n_QCursor0, Pointer) +{ + NODE_RETURN(qt_QCursor_QCursor_QCursor_QCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QCursor1, Pointer) +{ + NODE_RETURN(qt_QCursor_QCursor_QCursor_QCursor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_QCursor2, Pointer) +{ + NODE_RETURN(qt_QCursor_QCursor_QCursor_QCursor_QBitmap_QBitmap_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_QCursor3, Pointer) +{ + NODE_RETURN(qt_QCursor_QCursor_QCursor_QCursor_QPixmap_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_hotSpot0, Pointer) +{ + NODE_RETURN(qt_QCursor_hotSpot_QPoint_QCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pixmap0, Pointer) +{ + NODE_RETURN(qt_QCursor_pixmap_QPixmap_QCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setShape0, void) +{ + qt_QCursor_setShape_void_QCursor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_shape0, int) +{ + NODE_RETURN(qt_QCursor_shape_int_QCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QCursor_swap_void_QCursor_QCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_pos0, Pointer) +{ + NODE_RETURN(qt_QCursor_pos_QPoint(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_pos1, Pointer) +{ + NODE_RETURN(qt_QCursor_pos_QPoint_QScreen(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setPos0, void) +{ + qt_QCursor_setPos_void_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setPos1, void) +{ + qt_QCursor_setPos_void_QScreen_int_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setPos2, void) +{ + qt_QCursor_setPos_void_QPoint(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPos3, void) +{ + qt_QCursor_setPos_void_QScreen_QPoint(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QCursorType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QCursor", _n_QCursor0, None, Compiled, qt_QCursor_QCursor_QCursor_QCursor, Return, "qt.QCursor", Parameters, new Param(c, "this", "qt.QCursor"), End), + new Function(c, "QCursor", _n_QCursor1, None, Compiled, qt_QCursor_QCursor_QCursor_QCursor_int, Return, "qt.QCursor", Parameters, new Param(c, "this", "qt.QCursor"), new Param(c, "shape", "int"), End), + new Function(c, "QCursor", _n_QCursor2, None, Compiled, qt_QCursor_QCursor_QCursor_QCursor_QBitmap_QBitmap_int_int, Return, "qt.QCursor", Parameters, new Param(c, "this", "qt.QCursor"), new Param(c, "bitmap", "qt.QBitmap"), new Param(c, "mask", "qt.QBitmap"), new Param(c, "hotX", "int", Value((int)-1)), new Param(c, "hotY", "int", Value((int)-1)), End), + new Function(c, "QCursor", _n_QCursor3, None, Compiled, qt_QCursor_QCursor_QCursor_QCursor_QPixmap_int_int, Return, "qt.QCursor", Parameters, new Param(c, "this", "qt.QCursor"), new Param(c, "pixmap", "qt.QPixmap"), new Param(c, "hotX", "int", Value((int)-1)), new Param(c, "hotY", "int", Value((int)-1)), End), + // MISSING: QCursor (QCursor; QCursor this, QCursor c) + // MISSING: QCursor (QCursor; QCursor this, "QCursor & &" other) + new Function(c, "hotSpot", _n_hotSpot0, None, Compiled, qt_QCursor_hotSpot_QPoint_QCursor, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QCursor"), End), + new Function(c, "pixmap", _n_pixmap0, None, Compiled, qt_QCursor_pixmap_QPixmap_QCursor, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QCursor"), End), + new Function(c, "setShape", _n_setShape0, None, Compiled, qt_QCursor_setShape_void_QCursor_int, Return, "void", Parameters, new Param(c, "this", "qt.QCursor"), new Param(c, "shape", "int"), End), + new Function(c, "shape", _n_shape0, None, Compiled, qt_QCursor_shape_int_QCursor, Return, "int", Parameters, new Param(c, "this", "qt.QCursor"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QCursor_swap_void_QCursor_QCursor, Return, "void", Parameters, new Param(c, "this", "qt.QCursor"), new Param(c, "other", "qt.QCursor"), End), + // MISSING: QVariant ("QVariant operator"; QCursor this) + // static functions + new Function(c, "pos", _n_pos0, None, Compiled, qt_QCursor_pos_QPoint, Return, "qt.QPoint", End), + new Function(c, "pos", _n_pos1, None, Compiled, qt_QCursor_pos_QPoint_QScreen, Return, "qt.QPoint", Parameters, new Param(c, "screen", "qt.QScreen"), End), + new Function(c, "setPos", _n_setPos0, None, Compiled, qt_QCursor_setPos_void_int_int, Return, "void", Parameters, new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "setPos", _n_setPos1, None, Compiled, qt_QCursor_setPos_void_QScreen_int_int, Return, "void", Parameters, new Param(c, "screen", "qt.QScreen"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "setPos", _n_setPos2, None, Compiled, qt_QCursor_setPos_void_QPoint, Return, "void", Parameters, new Param(c, "p", "qt.QPoint"), End), + new Function(c, "setPos", _n_setPos3, None, Compiled, qt_QCursor_setPos_void_QScreen_QPoint, Return, "void", Parameters, new Param(c, "screen", "qt.QScreen"), new Param(c, "p", "qt.QPoint"), End), + EndArguments); +globalScope()->addSymbols( + // MISSING: = (QCursor; QCursor this, QCursor c) + // MISSING: = (QCursor; QCursor this, "QCursor & &" other) + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QDateTimeType.cpp b/src/lib/mu/MuQt6/QDateTimeType.cpp new file mode 100644 index 000000000..8b5c1c458 --- /dev/null +++ b/src/lib/mu/MuQt6/QDateTimeType.cpp @@ -0,0 +1,680 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QDateTimeType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QDateTimeType::QDateTimeType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QDateTimeType::~QDateTimeType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QDateTimeType::Instance* i = new QDateTimeType::Instance((Class*)NODE_THIS.type()); + QDateTimeType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QDateTimeType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QDateTimeType::finalizer, 0, 0, 0); +} + +void +QDateTimeType::finalizer (void* obj, void* data) +{ + QDateTimeType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QDateTime_QDateTime_QDateTime_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QDateTime()); + return param_this; +} + +Pointer qt_QDateTime_QDateTime_QDateTime_QDateTime_QDate_QTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_date, Pointer param_time) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg1 = getqtype(param_date); + QTime arg2 = getqtype(param_time); + setqtype(param_this,QDateTime(arg1, arg2)); + return param_this; +} + +Pointer qt_QDateTime_addDays_QDateTime_QDateTime_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_ndays) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + qint64 arg1 = (int64)(param_ndays); + return makeqtype(c,arg0.addDays(arg1),"qt.QDateTime"); +} + +Pointer qt_QDateTime_addDuration_QDateTime_QDateTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + std::chrono::milliseconds arg1 = (std::chrono::milliseconds)(param_msecs); + return makeqtype(c,arg0.addDuration(arg1),"qt.QDateTime"); +} + +Pointer qt_QDateTime_addMSecs_QDateTime_QDateTime_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + qint64 arg1 = (int64)(param_msecs); + return makeqtype(c,arg0.addMSecs(arg1),"qt.QDateTime"); +} + +Pointer qt_QDateTime_addMonths_QDateTime_QDateTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_nmonths) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + int arg1 = (int)(param_nmonths); + return makeqtype(c,arg0.addMonths(arg1),"qt.QDateTime"); +} + +Pointer qt_QDateTime_addSecs_QDateTime_QDateTime_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_s) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + qint64 arg1 = (int64)(param_s); + return makeqtype(c,arg0.addSecs(arg1),"qt.QDateTime"); +} + +Pointer qt_QDateTime_addYears_QDateTime_QDateTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_nyears) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + int arg1 = (int)(param_nyears); + return makeqtype(c,arg0.addYears(arg1),"qt.QDateTime"); +} + +Pointer qt_QDateTime_date_QDate_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return makeqtype(c,arg0.date(),"qt.QDate"); +} + +int64 qt_QDateTime_daysTo_int64_QDateTime_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + const QDateTime arg1 = getqtype(param_other); + return arg0.daysTo(arg1); +} + +bool qt_QDateTime_isDaylightTime_bool_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return arg0.isDaylightTime(); +} + +bool qt_QDateTime_isNull_bool_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return arg0.isNull(); +} + +bool qt_QDateTime_isValid_bool_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return arg0.isValid(); +} + +int64 qt_QDateTime_msecsTo_int64_QDateTime_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + const QDateTime arg1 = getqtype(param_other); + return arg0.msecsTo(arg1); +} + +int qt_QDateTime_offsetFromUtc_int_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return arg0.offsetFromUtc(); +} + +int64 qt_QDateTime_secsTo_int64_QDateTime_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + const QDateTime arg1 = getqtype(param_other); + return arg0.secsTo(arg1); +} + +void qt_QDateTime_setDate_void_QDateTime_QDate(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_date) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + QDate arg1 = getqtype(param_date); + arg0.setDate(arg1); + setqtype(param_this,arg0); +} + +void qt_QDateTime_setMSecsSinceEpoch_void_QDateTime_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + qint64 arg1 = (int64)(param_msecs); + arg0.setMSecsSinceEpoch(arg1); + setqtype(param_this,arg0); +} + +void qt_QDateTime_setSecsSinceEpoch_void_QDateTime_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_secs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + qint64 arg1 = (int64)(param_secs); + arg0.setSecsSinceEpoch(arg1); + setqtype(param_this,arg0); +} + +void qt_QDateTime_setTime_void_QDateTime_QTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_time) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + QTime arg1 = getqtype(param_time); + arg0.setTime(arg1); + setqtype(param_this,arg0); +} + +void qt_QDateTime_swap_void_QDateTime_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + QDateTime arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QDateTime_time_QTime_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return makeqtype(c,arg0.time(),"qt.QTime"); +} + +int qt_QDateTime_timeSpec_int_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return int(arg0.timeSpec()); +} + +Pointer qt_QDateTime_timeZoneAbbreviation_string_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return makestring(c,arg0.timeZoneAbbreviation()); +} + +Pointer qt_QDateTime_toLocalTime_QDateTime_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return makeqtype(c,arg0.toLocalTime(),"qt.QDateTime"); +} + +int64 qt_QDateTime_toMSecsSinceEpoch_int64_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return arg0.toMSecsSinceEpoch(); +} + +Pointer qt_QDateTime_toOffsetFromUtc_QDateTime_QDateTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_offsetSeconds) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + int arg1 = (int)(param_offsetSeconds); + return makeqtype(c,arg0.toOffsetFromUtc(arg1),"qt.QDateTime"); +} + +int64 qt_QDateTime_toSecsSinceEpoch_int64_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return arg0.toSecsSinceEpoch(); +} + +Pointer qt_QDateTime_toString_string_QDateTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + Qt::DateFormat arg1 = (Qt::DateFormat)(param_format); + return makestring(c,arg0.toString(arg1)); +} + +Pointer qt_QDateTime_toUTC_QDateTime_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + return makeqtype(c,arg0.toUTC(),"qt.QDateTime"); +} + +Pointer qt_QDateTime_operatorPlus_EQ__QDateTime_QDateTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_duration) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + std::chrono::milliseconds arg1 = (std::chrono::milliseconds)(param_duration); + return makeqtype(c,arg0.operator+=(arg1),"qt.QDateTime"); +} + +Pointer qt_QDateTime_operatorMinus_EQ__QDateTime_QDateTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_duration) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDateTime arg0 = getqtype(param_this); + std::chrono::milliseconds arg1 = (std::chrono::milliseconds)(param_duration); + return makeqtype(c,arg0.operator-=(arg1),"qt.QDateTime"); +} + +Pointer qt_QDateTime_currentDateTime_QDateTime(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QDateTime::currentDateTime(),"qt.QDateTime"); +} + +Pointer qt_QDateTime_currentDateTimeUtc_QDateTime(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QDateTime::currentDateTimeUtc(),"qt.QDateTime"); +} + +int64 qt_QDateTime_currentMSecsSinceEpoch_int64(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QDateTime::currentMSecsSinceEpoch(); +} + +int64 qt_QDateTime_currentSecsSinceEpoch_int64(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QDateTime::currentSecsSinceEpoch(); +} + +Pointer qt_QDateTime_fromMSecsSinceEpoch_QDateTime_int64(Mu::Thread& NODE_THREAD, int64 param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qint64 arg0 = (int64)(param_msecs); + return makeqtype(c,QDateTime::fromMSecsSinceEpoch(arg0),"qt.QDateTime"); +} + +Pointer qt_QDateTime_fromSecsSinceEpoch_QDateTime_int64(Mu::Thread& NODE_THREAD, int64 param_secs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qint64 arg0 = (int64)(param_secs); + return makeqtype(c,QDateTime::fromSecsSinceEpoch(arg0),"qt.QDateTime"); +} + +Pointer qt_QDateTime_fromString_QDateTime_string_int(Mu::Thread& NODE_THREAD, Pointer param_string, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_string); + Qt::DateFormat arg1 = (Qt::DateFormat)(param_format); + return makeqtype(c,QDateTime::fromString(arg0, arg1),"qt.QDateTime"); +} + + +static NODE_IMPLEMENTATION(_n_QDateTime0, Pointer) +{ + NODE_RETURN(qt_QDateTime_QDateTime_QDateTime_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QDateTime2, Pointer) +{ + NODE_RETURN(qt_QDateTime_QDateTime_QDateTime_QDateTime_QDate_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addDays0, Pointer) +{ + NODE_RETURN(qt_QDateTime_addDays_QDateTime_QDateTime_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_addDuration0, Pointer) +{ + NODE_RETURN(qt_QDateTime_addDuration_QDateTime_QDateTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_addMSecs0, Pointer) +{ + NODE_RETURN(qt_QDateTime_addMSecs_QDateTime_QDateTime_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_addMonths0, Pointer) +{ + NODE_RETURN(qt_QDateTime_addMonths_QDateTime_QDateTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_addSecs0, Pointer) +{ + NODE_RETURN(qt_QDateTime_addSecs_QDateTime_QDateTime_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_addYears0, Pointer) +{ + NODE_RETURN(qt_QDateTime_addYears_QDateTime_QDateTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_date0, Pointer) +{ + NODE_RETURN(qt_QDateTime_date_QDate_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_daysTo0, int64) +{ + NODE_RETURN(qt_QDateTime_daysTo_int64_QDateTime_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isDaylightTime0, bool) +{ + NODE_RETURN(qt_QDateTime_isDaylightTime_bool_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QDateTime_isNull_bool_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QDateTime_isValid_bool_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_msecsTo0, int64) +{ + NODE_RETURN(qt_QDateTime_msecsTo_int64_QDateTime_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_offsetFromUtc0, int) +{ + NODE_RETURN(qt_QDateTime_offsetFromUtc_int_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_secsTo0, int64) +{ + NODE_RETURN(qt_QDateTime_secsTo_int64_QDateTime_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setDate0, void) +{ + qt_QDateTime_setDate_void_QDateTime_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setMSecsSinceEpoch0, void) +{ + qt_QDateTime_setMSecsSinceEpoch_void_QDateTime_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64)); +} + +static NODE_IMPLEMENTATION(_n_setSecsSinceEpoch0, void) +{ + qt_QDateTime_setSecsSinceEpoch_void_QDateTime_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64)); +} + +static NODE_IMPLEMENTATION(_n_setTime0, void) +{ + qt_QDateTime_setTime_void_QDateTime_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QDateTime_swap_void_QDateTime_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_time0, Pointer) +{ + NODE_RETURN(qt_QDateTime_time_QTime_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_timeSpec0, int) +{ + NODE_RETURN(qt_QDateTime_timeSpec_int_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_timeZoneAbbreviation0, Pointer) +{ + NODE_RETURN(qt_QDateTime_timeZoneAbbreviation_string_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toLocalTime0, Pointer) +{ + NODE_RETURN(qt_QDateTime_toLocalTime_QDateTime_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toMSecsSinceEpoch0, int64) +{ + NODE_RETURN(qt_QDateTime_toMSecsSinceEpoch_int64_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toOffsetFromUtc0, Pointer) +{ + NODE_RETURN(qt_QDateTime_toOffsetFromUtc_QDateTime_QDateTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_toSecsSinceEpoch0, int64) +{ + NODE_RETURN(qt_QDateTime_toSecsSinceEpoch_int64_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toString1, Pointer) +{ + NODE_RETURN(qt_QDateTime_toString_string_QDateTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_toUTC0, Pointer) +{ + NODE_RETURN(qt_QDateTime_toUTC_QDateTime_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QDateTime_operatorPlus_EQ__QDateTime_QDateTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_operatorMinus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QDateTime_operatorMinus_EQ__QDateTime_QDateTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_currentDateTime1, Pointer) +{ + NODE_RETURN(qt_QDateTime_currentDateTime_QDateTime(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_currentDateTimeUtc0, Pointer) +{ + NODE_RETURN(qt_QDateTime_currentDateTimeUtc_QDateTime(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_currentMSecsSinceEpoch0, int64) +{ + NODE_RETURN(qt_QDateTime_currentMSecsSinceEpoch_int64(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_currentSecsSinceEpoch0, int64) +{ + NODE_RETURN(qt_QDateTime_currentSecsSinceEpoch_int64(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_fromMSecsSinceEpoch1, Pointer) +{ + NODE_RETURN(qt_QDateTime_fromMSecsSinceEpoch_QDateTime_int64(NODE_THREAD, NODE_ARG(0, int64))); +} + +static NODE_IMPLEMENTATION(_n_fromSecsSinceEpoch1, Pointer) +{ + NODE_RETURN(qt_QDateTime_fromSecsSinceEpoch_QDateTime_int64(NODE_THREAD, NODE_ARG(0, int64))); +} + +static NODE_IMPLEMENTATION(_n_fromString0, Pointer) +{ + NODE_RETURN(qt_QDateTime_fromString_QDateTime_string_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QDateTimeType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "YearRange", "int"), + new SymbolicConstant(c, "First", "int", Value(int(QDateTime::YearRange::First))), + new SymbolicConstant(c, "Last", "int", Value(int(QDateTime::YearRange::Last))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QDateTime", _n_QDateTime0, None, Compiled, qt_QDateTime_QDateTime_QDateTime_QDateTime, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), End), + // MISSING: QDateTime (QDateTime; QDateTime this, QDate date, QTime time, "const QTimeZone &" timeZone) + new Function(c, "QDateTime", _n_QDateTime2, None, Compiled, qt_QDateTime_QDateTime_QDateTime_QDateTime_QDate_QTime, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "date", "qt.QDate"), new Param(c, "time", "qt.QTime"), End), + // MISSING: QDateTime (QDateTime; QDateTime this, QDateTime other) + // MISSING: QDateTime (QDateTime; QDateTime this, "QDateTime & &" other) + new Function(c, "addDays", _n_addDays0, None, Compiled, qt_QDateTime_addDays_QDateTime_QDateTime_int64, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "ndays", "int64"), End), + new Function(c, "addDuration", _n_addDuration0, None, Compiled, qt_QDateTime_addDuration_QDateTime_QDateTime_int, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "msecs", "int"), End), + new Function(c, "addMSecs", _n_addMSecs0, None, Compiled, qt_QDateTime_addMSecs_QDateTime_QDateTime_int64, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "msecs", "int64"), End), + new Function(c, "addMonths", _n_addMonths0, None, Compiled, qt_QDateTime_addMonths_QDateTime_QDateTime_int, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "nmonths", "int"), End), + new Function(c, "addSecs", _n_addSecs0, None, Compiled, qt_QDateTime_addSecs_QDateTime_QDateTime_int64, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "s", "int64"), End), + new Function(c, "addYears", _n_addYears0, None, Compiled, qt_QDateTime_addYears_QDateTime_QDateTime_int, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "nyears", "int"), End), + new Function(c, "date", _n_date0, None, Compiled, qt_QDateTime_date_QDate_QDateTime, Return, "qt.QDate", Parameters, new Param(c, "this", "qt.QDateTime"), End), + new Function(c, "daysTo", _n_daysTo0, None, Compiled, qt_QDateTime_daysTo_int64_QDateTime_QDateTime, Return, "int64", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "other", "qt.QDateTime"), End), + new Function(c, "isDaylightTime", _n_isDaylightTime0, None, Compiled, qt_QDateTime_isDaylightTime_bool_QDateTime, Return, "bool", Parameters, new Param(c, "this", "qt.QDateTime"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QDateTime_isNull_bool_QDateTime, Return, "bool", Parameters, new Param(c, "this", "qt.QDateTime"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QDateTime_isValid_bool_QDateTime, Return, "bool", Parameters, new Param(c, "this", "qt.QDateTime"), End), + new Function(c, "msecsTo", _n_msecsTo0, None, Compiled, qt_QDateTime_msecsTo_int64_QDateTime_QDateTime, Return, "int64", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "other", "qt.QDateTime"), End), + new Function(c, "offsetFromUtc", _n_offsetFromUtc0, None, Compiled, qt_QDateTime_offsetFromUtc_int_QDateTime, Return, "int", Parameters, new Param(c, "this", "qt.QDateTime"), End), + new Function(c, "secsTo", _n_secsTo0, None, Compiled, qt_QDateTime_secsTo_int64_QDateTime_QDateTime, Return, "int64", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "other", "qt.QDateTime"), End), + new Function(c, "setDate", _n_setDate0, None, Compiled, qt_QDateTime_setDate_void_QDateTime_QDate, Return, "void", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "date", "qt.QDate"), End), + new Function(c, "setMSecsSinceEpoch", _n_setMSecsSinceEpoch0, None, Compiled, qt_QDateTime_setMSecsSinceEpoch_void_QDateTime_int64, Return, "void", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "msecs", "int64"), End), + new Function(c, "setSecsSinceEpoch", _n_setSecsSinceEpoch0, None, Compiled, qt_QDateTime_setSecsSinceEpoch_void_QDateTime_int64, Return, "void", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "secs", "int64"), End), + new Function(c, "setTime", _n_setTime0, None, Compiled, qt_QDateTime_setTime_void_QDateTime_QTime, Return, "void", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "time", "qt.QTime"), End), + // MISSING: setTimeZone (void; QDateTime this, "const QTimeZone &" toZone) + new Function(c, "swap", _n_swap0, None, Compiled, qt_QDateTime_swap_void_QDateTime_QDateTime, Return, "void", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "other", "qt.QDateTime"), End), + new Function(c, "time", _n_time0, None, Compiled, qt_QDateTime_time_QTime_QDateTime, Return, "qt.QTime", Parameters, new Param(c, "this", "qt.QDateTime"), End), + // MISSING: timeRepresentation ("QTimeZone"; QDateTime this) + new Function(c, "timeSpec", _n_timeSpec0, None, Compiled, qt_QDateTime_timeSpec_int_QDateTime, Return, "int", Parameters, new Param(c, "this", "qt.QDateTime"), End), + // MISSING: timeZone ("QTimeZone"; QDateTime this) + new Function(c, "timeZoneAbbreviation", _n_timeZoneAbbreviation0, None, Compiled, qt_QDateTime_timeZoneAbbreviation_string_QDateTime, Return, "string", Parameters, new Param(c, "this", "qt.QDateTime"), End), + // MISSING: toCFDate ("CFDateRef"; QDateTime this) + new Function(c, "toLocalTime", _n_toLocalTime0, None, Compiled, qt_QDateTime_toLocalTime_QDateTime_QDateTime, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), End), + new Function(c, "toMSecsSinceEpoch", _n_toMSecsSinceEpoch0, None, Compiled, qt_QDateTime_toMSecsSinceEpoch_int64_QDateTime, Return, "int64", Parameters, new Param(c, "this", "qt.QDateTime"), End), + // MISSING: toNSDate ("NSDate *"; QDateTime this) + new Function(c, "toOffsetFromUtc", _n_toOffsetFromUtc0, None, Compiled, qt_QDateTime_toOffsetFromUtc_QDateTime_QDateTime_int, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "offsetSeconds", "int"), End), + new Function(c, "toSecsSinceEpoch", _n_toSecsSinceEpoch0, None, Compiled, qt_QDateTime_toSecsSinceEpoch_int64_QDateTime, Return, "int64", Parameters, new Param(c, "this", "qt.QDateTime"), End), + // MISSING: toString (string; QDateTime this, string format, "QCalendar" cal) + new Function(c, "toString", _n_toString1, None, Compiled, qt_QDateTime_toString_string_QDateTime_int, Return, "string", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "format", "int", Value((int)Qt::TextDate)), End), + // MISSING: toString (string; QDateTime this, "QStringView" format, "QCalendar" cal) + // MISSING: toTimeZone (QDateTime; QDateTime this, "const QTimeZone &" timeZone) + new Function(c, "toUTC", _n_toUTC0, None, Compiled, qt_QDateTime_toUTC_QDateTime_QDateTime, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), End), + // static functions + // MISSING: currentDateTime (QDateTime; "const QTimeZone &" zone) + new Function(c, "currentDateTime", _n_currentDateTime1, None, Compiled, qt_QDateTime_currentDateTime_QDateTime, Return, "qt.QDateTime", End), + new Function(c, "currentDateTimeUtc", _n_currentDateTimeUtc0, None, Compiled, qt_QDateTime_currentDateTimeUtc_QDateTime, Return, "qt.QDateTime", End), + new Function(c, "currentMSecsSinceEpoch", _n_currentMSecsSinceEpoch0, None, Compiled, qt_QDateTime_currentMSecsSinceEpoch_int64, Return, "int64", End), + new Function(c, "currentSecsSinceEpoch", _n_currentSecsSinceEpoch0, None, Compiled, qt_QDateTime_currentSecsSinceEpoch_int64, Return, "int64", End), + // MISSING: fromCFDate (QDateTime; "CFDateRef" date) + // MISSING: fromMSecsSinceEpoch (QDateTime; int64 msecs, "const QTimeZone &" timeZone) + new Function(c, "fromMSecsSinceEpoch", _n_fromMSecsSinceEpoch1, None, Compiled, qt_QDateTime_fromMSecsSinceEpoch_QDateTime_int64, Return, "qt.QDateTime", Parameters, new Param(c, "msecs", "int64"), End), + // MISSING: fromNSDate (QDateTime; "const NSDate *" date) + // MISSING: fromSecsSinceEpoch (QDateTime; int64 secs, "const QTimeZone &" timeZone) + new Function(c, "fromSecsSinceEpoch", _n_fromSecsSinceEpoch1, None, Compiled, qt_QDateTime_fromSecsSinceEpoch_QDateTime_int64, Return, "qt.QDateTime", Parameters, new Param(c, "secs", "int64"), End), + new Function(c, "fromString", _n_fromString0, None, Compiled, qt_QDateTime_fromString_QDateTime_string_int, Return, "qt.QDateTime", Parameters, new Param(c, "string", "string"), new Param(c, "format", "int", Value((int)Qt::TextDate)), End), + // MISSING: fromString (QDateTime; "QStringView" string, flags Qt::DateFormat format) + // MISSING: fromString (QDateTime; "QStringView" string, "QStringView" format, "QCalendar" cal) + // MISSING: fromString (QDateTime; string string, "QStringView" format, "QCalendar" cal) + // MISSING: fromString (QDateTime; string string, string format, "QCalendar" cal) + EndArguments); +globalScope()->addSymbols( + new Function(c, "+=", _n_operatorPlus_EQ_0, Op, Compiled, qt_QDateTime_operatorPlus_EQ__QDateTime_QDateTime_int, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "duration", "int"), End), + new Function(c, "-=", _n_operatorMinus_EQ_0, Op, Compiled, qt_QDateTime_operatorMinus_EQ__QDateTime_QDateTime_int, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDateTime"), new Param(c, "duration", "int"), End), + // MISSING: = (QDateTime; QDateTime this, QDateTime other) + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QDateType.cpp b/src/lib/mu/MuQt6/QDateType.cpp new file mode 100644 index 000000000..3d709fdd0 --- /dev/null +++ b/src/lib/mu/MuQt6/QDateType.cpp @@ -0,0 +1,485 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QDateType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QDateType::QDateType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QDateType::~QDateType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QDateType::Instance* i = new QDateType::Instance((Class*)NODE_THIS.type()); + QDateType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QDateType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QDateType::finalizer, 0, 0, 0); +} + +void +QDateType::finalizer (void* obj, void* data) +{ + QDateType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QDate_QDate_QDate_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QDate()); + return param_this; +} + +Pointer qt_QDate_QDate_QDate_QDate_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_y, int param_m, int param_d) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_y); + int arg2 = (int)(param_m); + int arg3 = (int)(param_d); + setqtype(param_this,QDate(arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QDate_addDays_QDate_QDate_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_ndays) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + qint64 arg1 = (int64)(param_ndays); + return makeqtype(c,arg0.addDays(arg1),"qt.QDate"); +} + +Pointer qt_QDate_addMonths_QDate_QDate_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_nmonths) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + int arg1 = (int)(param_nmonths); + return makeqtype(c,arg0.addMonths(arg1),"qt.QDate"); +} + +Pointer qt_QDate_addYears_QDate_QDate_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_nyears) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + int arg1 = (int)(param_nyears); + return makeqtype(c,arg0.addYears(arg1),"qt.QDate"); +} + +int qt_QDate_day_int_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return arg0.day(); +} + +int qt_QDate_dayOfWeek_int_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return arg0.dayOfWeek(); +} + +int qt_QDate_dayOfYear_int_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return arg0.dayOfYear(); +} + +int qt_QDate_daysInMonth_int_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return arg0.daysInMonth(); +} + +int qt_QDate_daysInYear_int_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return arg0.daysInYear(); +} + +int64 qt_QDate_daysTo_int64_QDate_QDate(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_d) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + QDate arg1 = getqtype(param_d); + return arg0.daysTo(arg1); +} + +Pointer qt_QDate_endOfDay_QDateTime_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return makeqtype(c,arg0.endOfDay(),"qt.QDateTime"); +} + +bool qt_QDate_isNull_bool_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return arg0.isNull(); +} + +bool qt_QDate_isValid_bool_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return arg0.isValid(); +} + +int qt_QDate_month_int_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return arg0.month(); +} + +bool qt_QDate_setDate_bool_QDate_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_year, int param_month, int param_day) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + int arg1 = (int)(param_year); + int arg2 = (int)(param_month); + int arg3 = (int)(param_day); + return arg0.setDate(arg1, arg2, arg3); +} + +Pointer qt_QDate_startOfDay_QDateTime_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return makeqtype(c,arg0.startOfDay(),"qt.QDateTime"); +} + +int64 qt_QDate_toJulianDay_int64_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return arg0.toJulianDay(); +} + +Pointer qt_QDate_toString_string_QDate_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + Qt::DateFormat arg1 = (Qt::DateFormat)(param_format); + return makestring(c,arg0.toString(arg1)); +} + +int qt_QDate_year_int_QDate(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg0 = getqtype(param_this); + return arg0.year(); +} + +Pointer qt_QDate_currentDate_QDate(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QDate::currentDate(),"qt.QDate"); +} + +Pointer qt_QDate_fromJulianDay_QDate_int64(Mu::Thread& NODE_THREAD, int64 param_jd) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qint64 arg0 = (int64)(param_jd); + return makeqtype(c,QDate::fromJulianDay(arg0),"qt.QDate"); +} + +Pointer qt_QDate_fromString_QDate_string_int(Mu::Thread& NODE_THREAD, Pointer param_string, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_string); + Qt::DateFormat arg1 = (Qt::DateFormat)(param_format); + return makeqtype(c,QDate::fromString(arg0, arg1),"qt.QDate"); +} + +bool qt_QDate_isLeapYear_bool_int(Mu::Thread& NODE_THREAD, int param_year) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_year); + return QDate::isLeapYear(arg0); +} + +bool qt_QDate_isValid_bool_int_int_int(Mu::Thread& NODE_THREAD, int param_year, int param_month, int param_day) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_year); + int arg1 = (int)(param_month); + int arg2 = (int)(param_day); + return QDate::isValid(arg0, arg1, arg2); +} + + +static NODE_IMPLEMENTATION(_n_QDate0, Pointer) +{ + NODE_RETURN(qt_QDate_QDate_QDate_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QDate1, Pointer) +{ + NODE_RETURN(qt_QDate_QDate_QDate_QDate_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_addDays0, Pointer) +{ + NODE_RETURN(qt_QDate_addDays_QDate_QDate_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_addMonths1, Pointer) +{ + NODE_RETURN(qt_QDate_addMonths_QDate_QDate_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_addYears1, Pointer) +{ + NODE_RETURN(qt_QDate_addYears_QDate_QDate_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_day1, int) +{ + NODE_RETURN(qt_QDate_day_int_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dayOfWeek1, int) +{ + NODE_RETURN(qt_QDate_dayOfWeek_int_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dayOfYear1, int) +{ + NODE_RETURN(qt_QDate_dayOfYear_int_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_daysInMonth1, int) +{ + NODE_RETURN(qt_QDate_daysInMonth_int_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_daysInYear1, int) +{ + NODE_RETURN(qt_QDate_daysInYear_int_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_daysTo0, int64) +{ + NODE_RETURN(qt_QDate_daysTo_int64_QDate_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_endOfDay1, Pointer) +{ + NODE_RETURN(qt_QDate_endOfDay_QDateTime_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QDate_isNull_bool_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QDate_isValid_bool_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_month1, int) +{ + NODE_RETURN(qt_QDate_month_int_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setDate0, bool) +{ + NODE_RETURN(qt_QDate_setDate_bool_QDate_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_startOfDay1, Pointer) +{ + NODE_RETURN(qt_QDate_startOfDay_QDateTime_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toJulianDay0, int64) +{ + NODE_RETURN(qt_QDate_toJulianDay_int64_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toString1, Pointer) +{ + NODE_RETURN(qt_QDate_toString_string_QDate_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_year1, int) +{ + NODE_RETURN(qt_QDate_year_int_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentDate0, Pointer) +{ + NODE_RETURN(qt_QDate_currentDate_QDate(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_fromJulianDay0, Pointer) +{ + NODE_RETURN(qt_QDate_fromJulianDay_QDate_int64(NODE_THREAD, NODE_ARG(0, int64))); +} + +static NODE_IMPLEMENTATION(_n_fromString0, Pointer) +{ + NODE_RETURN(qt_QDate_fromString_QDate_string_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isLeapYear0, bool) +{ + NODE_RETURN(qt_QDate_isLeapYear_bool_int(NODE_THREAD, NODE_ARG(0, int))); +} + +static NODE_IMPLEMENTATION(_n_isValid1, bool) +{ + NODE_RETURN(qt_QDate_isValid_bool_int_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int), NODE_ARG(2, int))); +} + + + +void +QDateType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QDate", _n_QDate0, None, Compiled, qt_QDate_QDate_QDate_QDate, Return, "qt.QDate", Parameters, new Param(c, "this", "qt.QDate"), End), + new Function(c, "QDate", _n_QDate1, None, Compiled, qt_QDate_QDate_QDate_QDate_int_int_int, Return, "qt.QDate", Parameters, new Param(c, "this", "qt.QDate"), new Param(c, "y", "int"), new Param(c, "m", "int"), new Param(c, "d", "int"), End), + new Function(c, "addDays", _n_addDays0, None, Compiled, qt_QDate_addDays_QDate_QDate_int64, Return, "qt.QDate", Parameters, new Param(c, "this", "qt.QDate"), new Param(c, "ndays", "int64"), End), + // MISSING: addMonths (QDate; QDate this, int nmonths, "QCalendar" cal) + new Function(c, "addMonths", _n_addMonths1, None, Compiled, qt_QDate_addMonths_QDate_QDate_int, Return, "qt.QDate", Parameters, new Param(c, "this", "qt.QDate"), new Param(c, "nmonths", "int"), End), + // MISSING: addYears (QDate; QDate this, int nyears, "QCalendar" cal) + new Function(c, "addYears", _n_addYears1, None, Compiled, qt_QDate_addYears_QDate_QDate_int, Return, "qt.QDate", Parameters, new Param(c, "this", "qt.QDate"), new Param(c, "nyears", "int"), End), + // MISSING: day (int; QDate this, "QCalendar" cal) + new Function(c, "day", _n_day1, None, Compiled, qt_QDate_day_int_QDate, Return, "int", Parameters, new Param(c, "this", "qt.QDate"), End), + // MISSING: dayOfWeek (int; QDate this, "QCalendar" cal) + new Function(c, "dayOfWeek", _n_dayOfWeek1, None, Compiled, qt_QDate_dayOfWeek_int_QDate, Return, "int", Parameters, new Param(c, "this", "qt.QDate"), End), + // MISSING: dayOfYear (int; QDate this, "QCalendar" cal) + new Function(c, "dayOfYear", _n_dayOfYear1, None, Compiled, qt_QDate_dayOfYear_int_QDate, Return, "int", Parameters, new Param(c, "this", "qt.QDate"), End), + // MISSING: daysInMonth (int; QDate this, "QCalendar" cal) + new Function(c, "daysInMonth", _n_daysInMonth1, None, Compiled, qt_QDate_daysInMonth_int_QDate, Return, "int", Parameters, new Param(c, "this", "qt.QDate"), End), + // MISSING: daysInYear (int; QDate this, "QCalendar" cal) + new Function(c, "daysInYear", _n_daysInYear1, None, Compiled, qt_QDate_daysInYear_int_QDate, Return, "int", Parameters, new Param(c, "this", "qt.QDate"), End), + new Function(c, "daysTo", _n_daysTo0, None, Compiled, qt_QDate_daysTo_int64_QDate_QDate, Return, "int64", Parameters, new Param(c, "this", "qt.QDate"), new Param(c, "d", "qt.QDate"), End), + // MISSING: endOfDay (QDateTime; QDate this, "const QTimeZone &" zone) + new Function(c, "endOfDay", _n_endOfDay1, None, Compiled, qt_QDate_endOfDay_QDateTime_QDate, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDate"), End), + // MISSING: getDate (void; QDate this, "int *" year, "int *" month, "int *" day) + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QDate_isNull_bool_QDate, Return, "bool", Parameters, new Param(c, "this", "qt.QDate"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QDate_isValid_bool_QDate, Return, "bool", Parameters, new Param(c, "this", "qt.QDate"), End), + // MISSING: month (int; QDate this, "QCalendar" cal) + new Function(c, "month", _n_month1, None, Compiled, qt_QDate_month_int_QDate, Return, "int", Parameters, new Param(c, "this", "qt.QDate"), End), + new Function(c, "setDate", _n_setDate0, None, Compiled, qt_QDate_setDate_bool_QDate_int_int_int, Return, "bool", Parameters, new Param(c, "this", "qt.QDate"), new Param(c, "year", "int"), new Param(c, "month", "int"), new Param(c, "day", "int"), End), + // MISSING: setDate (bool; QDate this, int year, int month, int day, "QCalendar" cal) + // MISSING: startOfDay (QDateTime; QDate this, "const QTimeZone &" zone) + new Function(c, "startOfDay", _n_startOfDay1, None, Compiled, qt_QDate_startOfDay_QDateTime_QDate, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QDate"), End), + new Function(c, "toJulianDay", _n_toJulianDay0, None, Compiled, qt_QDate_toJulianDay_int64_QDate, Return, "int64", Parameters, new Param(c, "this", "qt.QDate"), End), + // MISSING: toString (string; QDate this, string format, "QCalendar" cal) + new Function(c, "toString", _n_toString1, None, Compiled, qt_QDate_toString_string_QDate_int, Return, "string", Parameters, new Param(c, "this", "qt.QDate"), new Param(c, "format", "int", Value((int)Qt::TextDate)), End), + // MISSING: toString (string; QDate this, "QStringView" format, "QCalendar" cal) + // MISSING: weekNumber (int; QDate this, "int *" yearNumber) + // MISSING: year (int; QDate this, "QCalendar" cal) + new Function(c, "year", _n_year1, None, Compiled, qt_QDate_year_int_QDate, Return, "int", Parameters, new Param(c, "this", "qt.QDate"), End), + // static functions + new Function(c, "currentDate", _n_currentDate0, None, Compiled, qt_QDate_currentDate_QDate, Return, "qt.QDate", End), + new Function(c, "fromJulianDay", _n_fromJulianDay0, None, Compiled, qt_QDate_fromJulianDay_QDate_int64, Return, "qt.QDate", Parameters, new Param(c, "jd", "int64"), End), + // MISSING: fromStdSysDays (QDate; "const int &" days) + new Function(c, "fromString", _n_fromString0, None, Compiled, qt_QDate_fromString_QDate_string_int, Return, "qt.QDate", Parameters, new Param(c, "string", "string"), new Param(c, "format", "int", Value((int)Qt::TextDate)), End), + // MISSING: fromString (QDate; "QStringView" string, flags Qt::DateFormat format) + // MISSING: fromString (QDate; "QStringView" string, "QStringView" format, "QCalendar" cal) + // MISSING: fromString (QDate; string string, "QStringView" format, "QCalendar" cal) + // MISSING: fromString (QDate; string string, string format, "QCalendar" cal) + new Function(c, "isLeapYear", _n_isLeapYear0, None, Compiled, qt_QDate_isLeapYear_bool_int, Return, "bool", Parameters, new Param(c, "year", "int"), End), + new Function(c, "isValid", _n_isValid1, None, Compiled, qt_QDate_isValid_bool_int_int_int, Return, "bool", Parameters, new Param(c, "year", "int"), new Param(c, "month", "int"), new Param(c, "day", "int"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QDialType.cpp b/src/lib/mu/MuQt6/QDialType.cpp new file mode 100644 index 000000000..38bb86f70 --- /dev/null +++ b/src/lib/mu/MuQt6/QDialType.cpp @@ -0,0 +1,603 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QDial::~MuQt_QDial() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QDial::MuQt_QDial(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QDial(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QDial")); +} + +QSize MuQt_QDial::minimumSizeHint() const +{ + if (!_env) return QDial::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QDial::minimumSizeHint(); + } +} + +QSize MuQt_QDial::sizeHint() const +{ + if (!_env) return QDial::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QDial::sizeHint(); + } +} + +bool MuQt_QDial::event(QEvent * e) +{ + if (!_env) return QDial::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QDial::event(e); + } +} + +void MuQt_QDial::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QDial::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDial::mouseMoveEvent(e); + } +} + +void MuQt_QDial::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QDial::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDial::mousePressEvent(e); + } +} + +void MuQt_QDial::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QDial::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDial::mouseReleaseEvent(e); + } +} + +void MuQt_QDial::paintEvent(QPaintEvent * pe) +{ + if (!_env) { QDial::paintEvent(pe); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,pe,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QDial::paintEvent(pe); + } +} + +void MuQt_QDial::resizeEvent(QResizeEvent * e) +{ + if (!_env) { QDial::resizeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QDial::resizeEvent(e); + } +} + +void MuQt_QDial::changeEvent(QEvent * ev) +{ + if (!_env) { QDial::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QDial::changeEvent(ev); + } +} + +void MuQt_QDial::keyPressEvent(QKeyEvent * ev) +{ + if (!_env) { QDial::keyPressEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QDial::keyPressEvent(ev); + } +} + +void MuQt_QDial::timerEvent(QTimerEvent * e) +{ + if (!_env) { QDial::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QDial::timerEvent(e); + } +} + +void MuQt_QDial::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QDial::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QDial::wheelEvent(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QDialType::QDialType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QDialType::~QDialType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QDial_QDial_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QDial* w = object(widget)) + { + QDialType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QDial"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QDial_QDial_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QDial_QDial_QDial_QDial_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QDial(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QDial_minimumSizeHint_QSize_QDial(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QDial::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QDial_sizeHint_QSize_QDial(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QDial::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +bool qt_QDial_event_bool_QDial_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QDial*)arg0)->event_pub_parent(arg1) : ((MuQt_QDial*)arg0)->event_pub(arg1); +} + +void qt_QDial_mouseMoveEvent_void_QDial_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QDial*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QDial*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QDial_mousePressEvent_void_QDial_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QDial*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QDial*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QDial_mouseReleaseEvent_void_QDial_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QDial*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QDial*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QDial_paintEvent_void_QDial_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pe) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_pe); + if (isMuQtObject(arg0)) ((MuQt_QDial*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QDial*)arg0)->paintEvent_pub(arg1); +} + +void qt_QDial_resizeEvent_void_QDial_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QDial*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QDial*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QDial_changeEvent_void_QDial_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QDial*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QDial*)arg0)->changeEvent_pub(arg1); +} + +void qt_QDial_keyPressEvent_void_QDial_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QDial*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QDial*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QDial_timerEvent_void_QDial_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QDial*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QDial*)arg0)->timerEvent_pub(arg1); +} + +void qt_QDial_wheelEvent_void_QDial_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDial* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QDial*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QDial*)arg0)->wheelEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QDial0, Pointer) +{ + NODE_RETURN(qt_QDial_QDial_QDial_QDial_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QDial_minimumSizeHint_QSize_QDial(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QDial_sizeHint_QSize_QDial(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QDial_event_bool_QDial_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QDial_mouseMoveEvent_void_QDial_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QDial_mousePressEvent_void_QDial_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QDial_mouseReleaseEvent_void_QDial_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QDial_paintEvent_void_QDial_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QDial_resizeEvent_void_QDial_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QDial_changeEvent_void_QDial_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QDial_keyPressEvent_void_QDial_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QDial_timerEvent_void_QDial_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QDial_wheelEvent_void_QDial_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QDialType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QDial_QDial_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QDial", _n_QDial0, None, Compiled, qt_QDial_QDial_QDial_QDial_QWidget, Return, "qt.QDial", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: notchSize (int; QDial this) + // PROP: notchTarget (double; QDial this) + // PROP: notchesVisible (bool; QDial this) + // PROP: setNotchTarget (void; QDial this, double target) + // PROP: wrapping (bool; QDial this) + _func[0] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QDial_minimumSizeHint_QSize_QDial, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QDial"), End), + _func[1] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QDial_sizeHint_QSize_QDial, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QDial"), End), + // MISSING: initStyleOption (void; QDial this, "QStyleOptionSlider *" option) // protected + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QDial_event_bool_QDial_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QDial_mouseMoveEvent_void_QDial_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[4] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QDial_mousePressEvent_void_QDial_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[5] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QDial_mouseReleaseEvent_void_QDial_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[6] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QDial_paintEvent_void_QDial_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "pe", "qt.QPaintEvent"), End), + _func[7] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QDial_resizeEvent_void_QDial_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "e", "qt.QResizeEvent"), End), + _func[8] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QDial_changeEvent_void_QDial_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "ev", "qt.QEvent"), End), + _func[9] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QDial_keyPressEvent_void_QDial_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "ev", "qt.QKeyEvent"), End), + _func[10] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QDial_timerEvent_void_QDial_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "e", "qt.QTimerEvent"), End), + _func[11] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QDial_wheelEvent_void_QDial_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDial"), new Param(c, "e", "qt.QWheelEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QDial::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QDialogType.cpp b/src/lib/mu/MuQt6/QDialogType.cpp new file mode 100644 index 000000000..448ae6c69 --- /dev/null +++ b/src/lib/mu/MuQt6/QDialogType.cpp @@ -0,0 +1,1360 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QDialog::~MuQt_QDialog() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QDialog::MuQt_QDialog(Pointer muobj, const CallEnvironment* ce, QWidget * parent, Qt::WindowFlags f) + : QDialog(parent, f) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QDialog")); +} + +QSize MuQt_QDialog::minimumSizeHint() const +{ + if (!_env) return QDialog::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QDialog::minimumSizeHint(); + } +} + +void MuQt_QDialog::setVisible(bool visible) +{ + if (!_env) { QDialog::setVisible(visible); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(visible); + Value rval = _env->call(F, args); + } + else + { + QDialog::setVisible(visible); + } +} + +QSize MuQt_QDialog::sizeHint() const +{ + if (!_env) return QDialog::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QDialog::sizeHint(); + } +} + +void MuQt_QDialog::closeEvent(QCloseEvent * e) +{ + if (!_env) { QDialog::closeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::closeEvent(e); + } +} + +void MuQt_QDialog::contextMenuEvent(QContextMenuEvent * e) +{ + if (!_env) { QDialog::contextMenuEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::contextMenuEvent(e); + } +} + +bool MuQt_QDialog::eventFilter(QObject * o, QEvent * e) +{ + if (!_env) return QDialog::eventFilter(o, e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,o,"qt.QObject")); + args[2] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QDialog::eventFilter(o, e); + } +} + +void MuQt_QDialog::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QDialog::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::keyPressEvent(e); + } +} + +void MuQt_QDialog::resizeEvent(QResizeEvent * _p15) +{ + if (!_env) { QDialog::resizeEvent(_p15); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p15,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::resizeEvent(_p15); + } +} + +void MuQt_QDialog::showEvent(QShowEvent * event) +{ + if (!_env) { QDialog::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::showEvent(event); + } +} + +bool MuQt_QDialog::hasHeightForWidth() const +{ + if (!_env) return QDialog::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QDialog::hasHeightForWidth(); + } +} + +int MuQt_QDialog::heightForWidth(int w) const +{ + if (!_env) return QDialog::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QDialog::heightForWidth(w); + } +} + +QVariant MuQt_QDialog::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QDialog::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QDialog::inputMethodQuery(query); + } +} + +void MuQt_QDialog::changeEvent(QEvent * event) +{ + if (!_env) { QDialog::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::changeEvent(event); + } +} + +void MuQt_QDialog::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QDialog::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::dragEnterEvent(event); + } +} + +void MuQt_QDialog::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QDialog::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::dragLeaveEvent(event); + } +} + +void MuQt_QDialog::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QDialog::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::dragMoveEvent(event); + } +} + +void MuQt_QDialog::dropEvent(QDropEvent * event) +{ + if (!_env) { QDialog::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::dropEvent(event); + } +} + +void MuQt_QDialog::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QDialog::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::focusInEvent(event); + } +} + +bool MuQt_QDialog::focusNextPrevChild(bool next) +{ + if (!_env) return QDialog::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QDialog::focusNextPrevChild(next); + } +} + +void MuQt_QDialog::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QDialog::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::focusOutEvent(event); + } +} + +void MuQt_QDialog::hideEvent(QHideEvent * event) +{ + if (!_env) { QDialog::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::hideEvent(event); + } +} + +void MuQt_QDialog::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QDialog::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::keyReleaseEvent(event); + } +} + +void MuQt_QDialog::leaveEvent(QEvent * event) +{ + if (!_env) { QDialog::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::leaveEvent(event); + } +} + +void MuQt_QDialog::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QDialog::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::mouseDoubleClickEvent(event); + } +} + +void MuQt_QDialog::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QDialog::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::mouseMoveEvent(event); + } +} + +void MuQt_QDialog::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QDialog::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::mousePressEvent(event); + } +} + +void MuQt_QDialog::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QDialog::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::mouseReleaseEvent(event); + } +} + +void MuQt_QDialog::moveEvent(QMoveEvent * event) +{ + if (!_env) { QDialog::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::moveEvent(event); + } +} + +void MuQt_QDialog::paintEvent(QPaintEvent * event) +{ + if (!_env) { QDialog::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::paintEvent(event); + } +} + +void MuQt_QDialog::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QDialog::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::tabletEvent(event); + } +} + +void MuQt_QDialog::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QDialog::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QDialog::wheelEvent(event); + } +} + +bool MuQt_QDialog::event(QEvent * event_) +{ + if (!_env) return QDialog::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QDialog::event(event_); + } +} + +int MuQt_QDialog::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QDialog::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QDialog::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QDialogType::QDialogType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QDialogType::~QDialogType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QDialog_QDialog_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QDialog* w = object(widget)) + { + QDialogType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QDialog"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QDialog_QDialog_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QDialog_QDialog_QDialog_QDialog_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + Qt::WindowFlags arg2 = (Qt::WindowFlags)(param_f); + setobject(param_this, new MuQt_QDialog(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +int qt_QDialog_result_int_QDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + return arg0->result(); +} + +void qt_QDialog_setResult_void_QDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_i) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + int arg1 = (int)(param_i); + arg0->setResult(arg1); +} + +Pointer qt_QDialog_minimumSizeHint_QSize_QDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QDialog::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +void qt_QDialog_setVisible_void_QDialog_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_visible) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + bool arg1 = (bool)(param_visible); + if (isMuQtObject(arg0)) arg0->QDialog::setVisible(arg1); + else arg0->setVisible(arg1); +} + +Pointer qt_QDialog_sizeHint_QSize_QDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QDialog::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QDialog_closeEvent_void_QDialog_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->closeEvent_pub(arg1); +} + +void qt_QDialog_contextMenuEvent_void_QDialog_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->contextMenuEvent_pub(arg1); +} + +bool qt_QDialog_eventFilter_bool_QDialog_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_o, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QObject * arg1 = object(param_o); + QEvent * arg2 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QDialog*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QDialog*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QDialog_keyPressEvent_void_QDialog_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QDialog_resizeEvent_void_QDialog_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p15) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param__p15); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QDialog_showEvent_void_QDialog_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->showEvent_pub(arg1); +} + +bool qt_QDialog_hasHeightForWidth_bool_QDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QDialog::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QDialog_heightForWidth_int_QDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QDialog::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QDialog_inputMethodQuery_QVariant_QDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QDialog::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +void qt_QDialog_changeEvent_void_QDialog_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->changeEvent_pub(arg1); +} + +void qt_QDialog_dragEnterEvent_void_QDialog_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QDialog_dragLeaveEvent_void_QDialog_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QDialog_dragMoveEvent_void_QDialog_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QDialog_dropEvent_void_QDialog_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->dropEvent_pub(arg1); +} + +void qt_QDialog_focusInEvent_void_QDialog_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QDialog_focusNextPrevChild_bool_QDialog_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QDialog*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QDialog*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QDialog_focusOutEvent_void_QDialog_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QDialog_hideEvent_void_QDialog_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->hideEvent_pub(arg1); +} + +void qt_QDialog_keyReleaseEvent_void_QDialog_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QDialog_leaveEvent_void_QDialog_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QDialog_mouseDoubleClickEvent_void_QDialog_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QDialog_mouseMoveEvent_void_QDialog_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QDialog_mousePressEvent_void_QDialog_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QDialog_mouseReleaseEvent_void_QDialog_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QDialog_moveEvent_void_QDialog_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->moveEvent_pub(arg1); +} + +void qt_QDialog_paintEvent_void_QDialog_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->paintEvent_pub(arg1); +} + +void qt_QDialog_tabletEvent_void_QDialog_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QDialog_wheelEvent_void_QDialog_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDialog*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QDialog*)arg0)->wheelEvent_pub(arg1); +} + +bool qt_QDialog_event_bool_QDialog_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QDialog*)arg0)->event_pub_parent(arg1) : ((MuQt_QDialog*)arg0)->event_pub(arg1); +} + +int qt_QDialog_metric_int_QDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDialog* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QDialog*)arg0)->metric_pub_parent(arg1) : ((MuQt_QDialog*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QDialog0, Pointer) +{ + NODE_RETURN(qt_QDialog_QDialog_QDialog_QDialog_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_result0, int) +{ + NODE_RETURN(qt_QDialog_result_int_QDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setResult0, void) +{ + qt_QDialog_setResult_void_QDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QDialog_minimumSizeHint_QSize_QDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setVisible0, void) +{ + qt_QDialog_setVisible_void_QDialog_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QDialog_sizeHint_QSize_QDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QDialog_closeEvent_void_QDialog_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QDialog_contextMenuEvent_void_QDialog_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QDialog_eventFilter_bool_QDialog_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QDialog_keyPressEvent_void_QDialog_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QDialog_resizeEvent_void_QDialog_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QDialog_showEvent_void_QDialog_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QDialog_hasHeightForWidth_bool_QDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QDialog_heightForWidth_int_QDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QDialog_inputMethodQuery_QVariant_QDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QDialog_changeEvent_void_QDialog_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QDialog_dragEnterEvent_void_QDialog_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QDialog_dragLeaveEvent_void_QDialog_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QDialog_dragMoveEvent_void_QDialog_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QDialog_dropEvent_void_QDialog_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QDialog_focusInEvent_void_QDialog_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QDialog_focusNextPrevChild_bool_QDialog_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QDialog_focusOutEvent_void_QDialog_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QDialog_hideEvent_void_QDialog_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QDialog_keyReleaseEvent_void_QDialog_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QDialog_leaveEvent_void_QDialog_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QDialog_mouseDoubleClickEvent_void_QDialog_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QDialog_mouseMoveEvent_void_QDialog_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QDialog_mousePressEvent_void_QDialog_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QDialog_mouseReleaseEvent_void_QDialog_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QDialog_moveEvent_void_QDialog_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QDialog_paintEvent_void_QDialog_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QDialog_tabletEvent_void_QDialog_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QDialog_wheelEvent_void_QDialog_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QDialog_event_bool_QDialog_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QDialog_metric_int_QDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QDialogType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QDialog_QDialog_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QDialog", _n_QDialog0, None, Compiled, qt_QDialog_QDialog_QDialog_QDialog_QWidget_int, Return, "qt.QDialog", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "parent", "qt.QWidget"), new Param(c, "f", "int", Value((int)Qt::WindowFlags())), End), + // PROP: isSizeGripEnabled (bool; QDialog this) + new Function(c, "result", _n_result0, None, Compiled, qt_QDialog_result_int_QDialog, Return, "int", Parameters, new Param(c, "this", "qt.QDialog"), End), + // PROP: setModal (void; QDialog this, bool modal) + new Function(c, "setResult", _n_setResult0, None, Compiled, qt_QDialog_setResult_void_QDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "i", "int"), End), + // PROP: setSizeGripEnabled (void; QDialog this, bool _p4) + _func[0] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QDialog_minimumSizeHint_QSize_QDialog, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QDialog"), End), + _func[1] = new MemberFunction(c, "setVisible", _n_setVisible0, None, Compiled, qt_QDialog_setVisible_void_QDialog_bool, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "visible", "bool"), End), + _func[2] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QDialog_sizeHint_QSize_QDialog, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QDialog"), End), + _func[3] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QDialog_closeEvent_void_QDialog_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "e", "qt.QCloseEvent"), End), + _func[4] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QDialog_contextMenuEvent_void_QDialog_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "e", "qt.QContextMenuEvent"), End), + _func[5] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QDialog_eventFilter_bool_QDialog_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "o", "qt.QObject"), new Param(c, "e", "qt.QEvent"), End), + _func[6] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QDialog_keyPressEvent_void_QDialog_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[7] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QDialog_resizeEvent_void_QDialog_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "_p15", "qt.QResizeEvent"), End), + _func[8] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QDialog_showEvent_void_QDialog_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QShowEvent"), End), + _func[9] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QDialog_hasHeightForWidth_bool_QDialog, Return, "bool", Parameters, new Param(c, "this", "qt.QDialog"), End), + _func[10] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QDialog_heightForWidth_int_QDialog_int, Return, "int", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "w", "int"), End), + _func[11] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QDialog_inputMethodQuery_QVariant_QDialog_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "query", "int"), End), + // MISSING: paintEngine ("QPaintEngine *"; QDialog this) + // MISSING: actionEvent (void; QDialog this, "QActionEvent *" event) // protected + _func[12] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QDialog_changeEvent_void_QDialog_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QEvent"), End), + _func[13] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QDialog_dragEnterEvent_void_QDialog_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[14] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QDialog_dragLeaveEvent_void_QDialog_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[15] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QDialog_dragMoveEvent_void_QDialog_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[16] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QDialog_dropEvent_void_QDialog_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QDialog this, "QEnterEvent *" event) // protected + _func[17] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QDialog_focusInEvent_void_QDialog_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[18] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QDialog_focusNextPrevChild_bool_QDialog_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "next", "bool"), End), + _func[19] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QDialog_focusOutEvent_void_QDialog_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[20] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QDialog_hideEvent_void_QDialog_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QDialog this, "QInputMethodEvent *" event) // protected + _func[21] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QDialog_keyReleaseEvent_void_QDialog_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[22] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QDialog_leaveEvent_void_QDialog_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QEvent"), End), + _func[23] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QDialog_mouseDoubleClickEvent_void_QDialog_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QDialog_mouseMoveEvent_void_QDialog_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[25] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QDialog_mousePressEvent_void_QDialog_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[26] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QDialog_mouseReleaseEvent_void_QDialog_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[27] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QDialog_moveEvent_void_QDialog_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QDialog this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[28] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QDialog_paintEvent_void_QDialog_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[29] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QDialog_tabletEvent_void_QDialog_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[30] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QDialog_wheelEvent_void_QDialog_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event", "qt.QWheelEvent"), End), + _func[31] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QDialog_event_bool_QDialog_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "event_", "qt.QEvent"), End), + // MISSING: initPainter (void; QDialog this, "QPainter *" painter) // protected + _func[32] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QDialog_metric_int_QDialog_int, Return, "int", Parameters, new Param(c, "this", "qt.QDialog"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QDialog::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QDirType.cpp b/src/lib/mu/MuQt6/QDirType.cpp new file mode 100644 index 000000000..063d7e0fc --- /dev/null +++ b/src/lib/mu/MuQt6/QDirType.cpp @@ -0,0 +1,1007 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QDirType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QDirType::QDirType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QDirType::~QDirType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QDirType::Instance* i = new QDirType::Instance((Class*)NODE_THIS.type()); + QDirType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QDirType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QDirType::finalizer, 0, 0, 0); +} + +void +QDirType::finalizer (void* obj, void* data) +{ + QDirType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QDir_QDir_QDir_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_path); + setqtype(param_this,QDir(arg1)); + return param_this; +} + +Pointer qt_QDir_QDir_QDir_QDir_string_string_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path, Pointer param_nameFilter, int param_sort, int param_filters) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_path); + const QString arg2 = qstring(param_nameFilter); + QDir::SortFlags arg3 = (QDir::SortFlags)(param_sort); + QDir::Filters arg4 = (QDir::Filters)(param_filters); + setqtype(param_this,QDir(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QDir_absoluteFilePath_string_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_fileName); + return makestring(c,arg0.absoluteFilePath(arg1)); +} + +Pointer qt_QDir_absolutePath_string_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return makestring(c,arg0.absolutePath()); +} + +Pointer qt_QDir_canonicalPath_string_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return makestring(c,arg0.canonicalPath()); +} + +bool qt_QDir_cd_bool_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dirName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_dirName); + return arg0.cd(arg1); +} + +bool qt_QDir_cdUp_bool_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + return arg0.cdUp(); +} + +Pointer qt_QDir_dirName_string_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return makestring(c,arg0.dirName()); +} + +Pointer qt_QDir_entryInfoList_qt__QFileInfoBSB_ESB__QDir_stringBSB_ESB__int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_nameFilters, int param_filters, int param_sort) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QStringList arg1 = qstringlist(param_nameFilters); + QDir::Filters arg2 = (QDir::Filters)(param_filters); + QDir::SortFlags arg3 = (QDir::SortFlags)(param_sort); + return makeqfileinfolist(c,arg0.entryInfoList(arg1, arg2, arg3)); +} + +Pointer qt_QDir_entryInfoList_qt__QFileInfoBSB_ESB__QDir_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_filters, int param_sort) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + QDir::Filters arg1 = (QDir::Filters)(param_filters); + QDir::SortFlags arg2 = (QDir::SortFlags)(param_sort); + return makeqfileinfolist(c,arg0.entryInfoList(arg1, arg2)); +} + +Pointer qt_QDir_entryList_stringBSB_ESB__QDir_stringBSB_ESB__int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_nameFilters, int param_filters, int param_sort) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QStringList arg1 = qstringlist(param_nameFilters); + QDir::Filters arg2 = (QDir::Filters)(param_filters); + QDir::SortFlags arg3 = (QDir::SortFlags)(param_sort); + return makestringlist(c,arg0.entryList(arg1, arg2, arg3)); +} + +Pointer qt_QDir_entryList_stringBSB_ESB__QDir_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_filters, int param_sort) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + QDir::Filters arg1 = (QDir::Filters)(param_filters); + QDir::SortFlags arg2 = (QDir::SortFlags)(param_sort); + return makestringlist(c,arg0.entryList(arg1, arg2)); +} + +bool qt_QDir_exists_bool_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_name); + return arg0.exists(arg1); +} + +bool qt_QDir_exists_bool_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return arg0.exists(); +} + +Pointer qt_QDir_filePath_string_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_fileName); + return makestring(c,arg0.filePath(arg1)); +} + +int qt_QDir_filter_int_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return int(arg0.filter()); +} + +bool qt_QDir_isAbsolute_bool_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return arg0.isAbsolute(); +} + +bool qt_QDir_isEmpty_bool_QDir_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_filters) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + QDir::Filters arg1 = (QDir::Filters)(param_filters); + return arg0.isEmpty(arg1); +} + +bool qt_QDir_isReadable_bool_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return arg0.isReadable(); +} + +bool qt_QDir_isRelative_bool_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return arg0.isRelative(); +} + +bool qt_QDir_isRoot_bool_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return arg0.isRoot(); +} + +bool qt_QDir_makeAbsolute_bool_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + return arg0.makeAbsolute(); +} + +bool qt_QDir_mkdir_bool_QDir_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dirName, int param_permissions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_dirName); + QFile::Permissions arg2 = (QFile::Permissions)(param_permissions); + return arg0.mkdir(arg1, arg2); +} + +bool qt_QDir_mkdir_bool_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dirName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_dirName); + return arg0.mkdir(arg1); +} + +bool qt_QDir_mkpath_bool_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dirPath) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_dirPath); + return arg0.mkpath(arg1); +} + +Pointer qt_QDir_nameFilters_stringBSB_ESB__QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return makestringlist(c,arg0.nameFilters()); +} + +Pointer qt_QDir_path_string_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return makestring(c,arg0.path()); +} + +void qt_QDir_refresh_void_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + arg0.refresh(); + setqtype(param_this,arg0); +} + +Pointer qt_QDir_relativeFilePath_string_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_fileName); + return makestring(c,arg0.relativeFilePath(arg1)); +} + +bool qt_QDir_remove_bool_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_fileName); + return arg0.remove(arg1); +} + +bool qt_QDir_removeRecursively_bool_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + return arg0.removeRecursively(); +} + +bool qt_QDir_rename_bool_QDir_string_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_oldName, Pointer param_newName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_oldName); + const QString arg2 = qstring(param_newName); + return arg0.rename(arg1, arg2); +} + +bool qt_QDir_rmdir_bool_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dirName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_dirName); + return arg0.rmdir(arg1); +} + +bool qt_QDir_rmpath_bool_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dirPath) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_dirPath); + return arg0.rmpath(arg1); +} + +void qt_QDir_setFilter_void_QDir_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_filters) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + QDir::Filters arg1 = (QDir::Filters)(param_filters); + arg0.setFilter(arg1); + setqtype(param_this,arg0); +} + +void qt_QDir_setNameFilters_void_QDir_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_nameFilters) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + const QStringList arg1 = qstringlist(param_nameFilters); + arg0.setNameFilters(arg1); + setqtype(param_this,arg0); +} + +void qt_QDir_setPath_void_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_path); + arg0.setPath(arg1); + setqtype(param_this,arg0); +} + +void qt_QDir_setSorting_void_QDir_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_sort) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + QDir::SortFlags arg1 = (QDir::SortFlags)(param_sort); + arg0.setSorting(arg1); + setqtype(param_this,arg0); +} + +int qt_QDir_sorting_int_QDir(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + return int(arg0.sorting()); +} + +void qt_QDir_swap_void_QDir_QDir(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDir& arg0 = getqtype(param_this); + QDir arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +bool qt_QDir_operatorBang_EQ__bool_QDir_QDir(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dir) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QDir arg1 = getqtype(param_dir); + return arg0.operator!=(arg1); +} + +bool qt_QDir_operatorEQ_EQ__bool_QDir_QDir(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dir) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir& arg0 = getqtype(param_this); + const QDir arg1 = getqtype(param_dir); + return arg0.operator==(arg1); +} + +void qt_QDir_addSearchPath_void_string_string(Mu::Thread& NODE_THREAD, Pointer param_prefix, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_prefix); + const QString arg1 = qstring(param_path); + QDir::addSearchPath(arg0, arg1); +} + +Pointer qt_QDir_cleanPath_string_string(Mu::Thread& NODE_THREAD, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_path); + return makestring(c,QDir::cleanPath(arg0)); +} + +Pointer qt_QDir_current_QDir(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QDir::current(),"qt.QDir"); +} + +Pointer qt_QDir_currentPath_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QDir::currentPath()); +} + +Pointer qt_QDir_drives_qt__QFileInfoBSB_ESB_(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqfileinfolist(c,QDir::drives()); +} + +Pointer qt_QDir_fromNativeSeparators_string_string(Mu::Thread& NODE_THREAD, Pointer param_pathName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_pathName); + return makestring(c,QDir::fromNativeSeparators(arg0)); +} + +Pointer qt_QDir_home_QDir(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QDir::home(),"qt.QDir"); +} + +Pointer qt_QDir_homePath_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QDir::homePath()); +} + +bool qt_QDir_isAbsolutePath_bool_string(Mu::Thread& NODE_THREAD, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_path); + return QDir::isAbsolutePath(arg0); +} + +bool qt_QDir_isRelativePath_bool_string(Mu::Thread& NODE_THREAD, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_path); + return QDir::isRelativePath(arg0); +} + +bool qt_QDir_match_bool_string_string(Mu::Thread& NODE_THREAD, Pointer param_filter, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_filter); + const QString arg1 = qstring(param_fileName); + return QDir::match(arg0, arg1); +} + +bool qt_QDir_match_bool_stringBSB_ESB__string(Mu::Thread& NODE_THREAD, Pointer param_filters, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QStringList arg0 = qstringlist(param_filters); + const QString arg1 = qstring(param_fileName); + return QDir::match(arg0, arg1); +} + +Pointer qt_QDir_root_QDir(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QDir::root(),"qt.QDir"); +} + +Pointer qt_QDir_rootPath_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QDir::rootPath()); +} + +Pointer qt_QDir_searchPaths_stringBSB_ESB__string(Mu::Thread& NODE_THREAD, Pointer param_prefix) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_prefix); + return makestringlist(c,QDir::searchPaths(arg0)); +} + +bool qt_QDir_setCurrent_bool_string(Mu::Thread& NODE_THREAD, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_path); + return QDir::setCurrent(arg0); +} + +void qt_QDir_setSearchPaths_void_string_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_prefix, Pointer param_searchPaths) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_prefix); + const QStringList arg1 = qstringlist(param_searchPaths); + QDir::setSearchPaths(arg0, arg1); +} + +Pointer qt_QDir_temp_QDir(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QDir::temp(),"qt.QDir"); +} + +Pointer qt_QDir_tempPath_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QDir::tempPath()); +} + +Pointer qt_QDir_toNativeSeparators_string_string(Mu::Thread& NODE_THREAD, Pointer param_pathName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_pathName); + return makestring(c,QDir::toNativeSeparators(arg0)); +} + + +static NODE_IMPLEMENTATION(_n_QDir0, Pointer) +{ + NODE_RETURN(qt_QDir_QDir_QDir_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QDir1, Pointer) +{ + NODE_RETURN(qt_QDir_QDir_QDir_QDir_string_string_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_absoluteFilePath0, Pointer) +{ + NODE_RETURN(qt_QDir_absoluteFilePath_string_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_absolutePath0, Pointer) +{ + NODE_RETURN(qt_QDir_absolutePath_string_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canonicalPath0, Pointer) +{ + NODE_RETURN(qt_QDir_canonicalPath_string_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cd0, bool) +{ + NODE_RETURN(qt_QDir_cd_bool_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cdUp0, bool) +{ + NODE_RETURN(qt_QDir_cdUp_bool_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dirName0, Pointer) +{ + NODE_RETURN(qt_QDir_dirName_string_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_entryInfoList0, Pointer) +{ + NODE_RETURN(qt_QDir_entryInfoList_qt__QFileInfoBSB_ESB__QDir_stringBSB_ESB__int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_entryInfoList1, Pointer) +{ + NODE_RETURN(qt_QDir_entryInfoList_qt__QFileInfoBSB_ESB__QDir_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_entryList0, Pointer) +{ + NODE_RETURN(qt_QDir_entryList_stringBSB_ESB__QDir_stringBSB_ESB__int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_entryList1, Pointer) +{ + NODE_RETURN(qt_QDir_entryList_stringBSB_ESB__QDir_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_exists0, bool) +{ + NODE_RETURN(qt_QDir_exists_bool_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exists1, bool) +{ + NODE_RETURN(qt_QDir_exists_bool_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_filePath0, Pointer) +{ + NODE_RETURN(qt_QDir_filePath_string_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_filter0, int) +{ + NODE_RETURN(qt_QDir_filter_int_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isAbsolute0, bool) +{ + NODE_RETURN(qt_QDir_isAbsolute_bool_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QDir_isEmpty_bool_QDir_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isReadable0, bool) +{ + NODE_RETURN(qt_QDir_isReadable_bool_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRelative0, bool) +{ + NODE_RETURN(qt_QDir_isRelative_bool_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRoot0, bool) +{ + NODE_RETURN(qt_QDir_isRoot_bool_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_makeAbsolute0, bool) +{ + NODE_RETURN(qt_QDir_makeAbsolute_bool_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mkdir0, bool) +{ + NODE_RETURN(qt_QDir_mkdir_bool_QDir_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_mkdir1, bool) +{ + NODE_RETURN(qt_QDir_mkdir_bool_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mkpath0, bool) +{ + NODE_RETURN(qt_QDir_mkpath_bool_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nameFilters0, Pointer) +{ + NODE_RETURN(qt_QDir_nameFilters_stringBSB_ESB__QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_path0, Pointer) +{ + NODE_RETURN(qt_QDir_path_string_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_refresh0, void) +{ + qt_QDir_refresh_void_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_relativeFilePath0, Pointer) +{ + NODE_RETURN(qt_QDir_relativeFilePath_string_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_remove0, bool) +{ + NODE_RETURN(qt_QDir_remove_bool_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeRecursively0, bool) +{ + NODE_RETURN(qt_QDir_removeRecursively_bool_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rename0, bool) +{ + NODE_RETURN(qt_QDir_rename_bool_QDir_string_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rmdir0, bool) +{ + NODE_RETURN(qt_QDir_rmdir_bool_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rmpath0, bool) +{ + NODE_RETURN(qt_QDir_rmpath_bool_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setFilter0, void) +{ + qt_QDir_setFilter_void_QDir_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setNameFilters0, void) +{ + qt_QDir_setNameFilters_void_QDir_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPath0, void) +{ + qt_QDir_setPath_void_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSorting0, void) +{ + qt_QDir_setSorting_void_QDir_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_sorting0, int) +{ + NODE_RETURN(qt_QDir_sorting_int_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QDir_swap_void_QDir_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QDir_operatorBang_EQ__bool_QDir_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QDir_operatorEQ_EQ__bool_QDir_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addSearchPath0, void) +{ + qt_QDir_addSearchPath_void_string_string(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_cleanPath0, Pointer) +{ + NODE_RETURN(qt_QDir_cleanPath_string_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_current0, Pointer) +{ + NODE_RETURN(qt_QDir_current_QDir(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_currentPath0, Pointer) +{ + NODE_RETURN(qt_QDir_currentPath_string(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_drives0, Pointer) +{ + NODE_RETURN(qt_QDir_drives_qt__QFileInfoBSB_ESB_(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_fromNativeSeparators0, Pointer) +{ + NODE_RETURN(qt_QDir_fromNativeSeparators_string_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_home0, Pointer) +{ + NODE_RETURN(qt_QDir_home_QDir(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_homePath0, Pointer) +{ + NODE_RETURN(qt_QDir_homePath_string(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_isAbsolutePath0, bool) +{ + NODE_RETURN(qt_QDir_isAbsolutePath_bool_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRelativePath0, bool) +{ + NODE_RETURN(qt_QDir_isRelativePath_bool_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_match0, bool) +{ + NODE_RETURN(qt_QDir_match_bool_string_string(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_match1, bool) +{ + NODE_RETURN(qt_QDir_match_bool_stringBSB_ESB__string(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_root0, Pointer) +{ + NODE_RETURN(qt_QDir_root_QDir(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_rootPath0, Pointer) +{ + NODE_RETURN(qt_QDir_rootPath_string(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_searchPaths0, Pointer) +{ + NODE_RETURN(qt_QDir_searchPaths_stringBSB_ESB__string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCurrent0, bool) +{ + NODE_RETURN(qt_QDir_setCurrent_bool_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setSearchPaths0, void) +{ + qt_QDir_setSearchPaths_void_string_stringBSB_ESB_(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_temp0, Pointer) +{ + NODE_RETURN(qt_QDir_temp_QDir(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_tempPath0, Pointer) +{ + NODE_RETURN(qt_QDir_tempPath_string(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_toNativeSeparators0, Pointer) +{ + NODE_RETURN(qt_QDir_toNativeSeparators_string_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + + + +void +QDirType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "Filter", "int"), + new Alias(c, "Filters", "int"), + new SymbolicConstant(c, "Dirs", "int", Value(int(QDir::Dirs))), + new SymbolicConstant(c, "AllDirs", "int", Value(int(QDir::AllDirs))), + new SymbolicConstant(c, "Files", "int", Value(int(QDir::Files))), + new SymbolicConstant(c, "Drives", "int", Value(int(QDir::Drives))), + new SymbolicConstant(c, "NoSymLinks", "int", Value(int(QDir::NoSymLinks))), + new SymbolicConstant(c, "NoDotAndDotDot", "int", Value(int(QDir::NoDotAndDotDot))), + new SymbolicConstant(c, "NoDot", "int", Value(int(QDir::NoDot))), + new SymbolicConstant(c, "NoDotDot", "int", Value(int(QDir::NoDotDot))), + new SymbolicConstant(c, "AllEntries", "int", Value(int(QDir::AllEntries))), + new SymbolicConstant(c, "Readable", "int", Value(int(QDir::Readable))), + new SymbolicConstant(c, "Writable", "int", Value(int(QDir::Writable))), + new SymbolicConstant(c, "Executable", "int", Value(int(QDir::Executable))), + new SymbolicConstant(c, "Modified", "int", Value(int(QDir::Modified))), + new SymbolicConstant(c, "Hidden", "int", Value(int(QDir::Hidden))), + new SymbolicConstant(c, "System", "int", Value(int(QDir::System))), + new SymbolicConstant(c, "CaseSensitive", "int", Value(int(QDir::CaseSensitive))), + new Alias(c, "SortFlag", "int"), + new Alias(c, "SortFlags", "int"), + new SymbolicConstant(c, "Name", "int", Value(int(QDir::Name))), + new SymbolicConstant(c, "Time", "int", Value(int(QDir::Time))), + new SymbolicConstant(c, "Size", "int", Value(int(QDir::Size))), + new SymbolicConstant(c, "Type", "int", Value(int(QDir::Type))), + new SymbolicConstant(c, "Unsorted", "int", Value(int(QDir::Unsorted))), + new SymbolicConstant(c, "NoSort", "int", Value(int(QDir::NoSort))), + new SymbolicConstant(c, "DirsFirst", "int", Value(int(QDir::DirsFirst))), + new SymbolicConstant(c, "DirsLast", "int", Value(int(QDir::DirsLast))), + new SymbolicConstant(c, "Reversed", "int", Value(int(QDir::Reversed))), + new SymbolicConstant(c, "IgnoreCase", "int", Value(int(QDir::IgnoreCase))), + new SymbolicConstant(c, "LocaleAware", "int", Value(int(QDir::LocaleAware))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QDir", _n_QDir0, None, Compiled, qt_QDir_QDir_QDir_QDir_string, Return, "qt.QDir", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "path", "string"), End), + new Function(c, "QDir", _n_QDir1, None, Compiled, qt_QDir_QDir_QDir_QDir_string_string_int_int, Return, "qt.QDir", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "path", "string"), new Param(c, "nameFilter", "string"), new Param(c, "sort", "int", Value((int)QDir::SortFlags(QDir::Name | QDir::IgnoreCase))), new Param(c, "filters", "int", Value((int)QDir::AllEntries)), End), + // MISSING: QDir (QDir; QDir this, QDir dir) + new Function(c, "absoluteFilePath", _n_absoluteFilePath0, None, Compiled, qt_QDir_absoluteFilePath_string_QDir_string, Return, "string", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "fileName", "string"), End), + new Function(c, "absolutePath", _n_absolutePath0, None, Compiled, qt_QDir_absolutePath_string_QDir, Return, "string", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "canonicalPath", _n_canonicalPath0, None, Compiled, qt_QDir_canonicalPath_string_QDir, Return, "string", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "cd", _n_cd0, None, Compiled, qt_QDir_cd_bool_QDir_string, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "dirName", "string"), End), + new Function(c, "cdUp", _n_cdUp0, None, Compiled, qt_QDir_cdUp_bool_QDir, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), End), + // MISSING: count ("qsizetype"; QDir this) + new Function(c, "dirName", _n_dirName0, None, Compiled, qt_QDir_dirName_string_QDir, Return, "string", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "entryInfoList", _n_entryInfoList0, None, Compiled, qt_QDir_entryInfoList_qt__QFileInfoBSB_ESB__QDir_stringBSB_ESB__int_int, Return, "qt.QFileInfo[]", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "nameFilters", "string[]"), new Param(c, "filters", "int"), new Param(c, "sort", "int"), End), + new Function(c, "entryInfoList", _n_entryInfoList1, None, Compiled, qt_QDir_entryInfoList_qt__QFileInfoBSB_ESB__QDir_int_int, Return, "qt.QFileInfo[]", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "filters", "int"), new Param(c, "sort", "int"), End), + new Function(c, "entryList", _n_entryList0, None, Compiled, qt_QDir_entryList_stringBSB_ESB__QDir_stringBSB_ESB__int_int, Return, "string[]", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "nameFilters", "string[]"), new Param(c, "filters", "int"), new Param(c, "sort", "int"), End), + new Function(c, "entryList", _n_entryList1, None, Compiled, qt_QDir_entryList_stringBSB_ESB__QDir_int_int, Return, "string[]", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "filters", "int"), new Param(c, "sort", "int"), End), + new Function(c, "exists", _n_exists0, None, Compiled, qt_QDir_exists_bool_QDir_string, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "name", "string"), End), + new Function(c, "exists", _n_exists1, None, Compiled, qt_QDir_exists_bool_QDir, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "filePath", _n_filePath0, None, Compiled, qt_QDir_filePath_string_QDir_string, Return, "string", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "fileName", "string"), End), + new Function(c, "filter", _n_filter0, None, Compiled, qt_QDir_filter_int_QDir, Return, "int", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "isAbsolute", _n_isAbsolute0, None, Compiled, qt_QDir_isAbsolute_bool_QDir, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QDir_isEmpty_bool_QDir_int, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "filters", "int", Value((int)QDir::Filters(QDir::AllEntries | QDir::NoDotAndDotDot))), End), + new Function(c, "isReadable", _n_isReadable0, None, Compiled, qt_QDir_isReadable_bool_QDir, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "isRelative", _n_isRelative0, None, Compiled, qt_QDir_isRelative_bool_QDir, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "isRoot", _n_isRoot0, None, Compiled, qt_QDir_isRoot_bool_QDir, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "makeAbsolute", _n_makeAbsolute0, None, Compiled, qt_QDir_makeAbsolute_bool_QDir, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "mkdir", _n_mkdir0, None, Compiled, qt_QDir_mkdir_bool_QDir_string_int, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "dirName", "string"), new Param(c, "permissions", "int"), End), + new Function(c, "mkdir", _n_mkdir1, None, Compiled, qt_QDir_mkdir_bool_QDir_string, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "dirName", "string"), End), + new Function(c, "mkpath", _n_mkpath0, None, Compiled, qt_QDir_mkpath_bool_QDir_string, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "dirPath", "string"), End), + new Function(c, "nameFilters", _n_nameFilters0, None, Compiled, qt_QDir_nameFilters_stringBSB_ESB__QDir, Return, "string[]", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "path", _n_path0, None, Compiled, qt_QDir_path_string_QDir, Return, "string", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "refresh", _n_refresh0, None, Compiled, qt_QDir_refresh_void_QDir, Return, "void", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "relativeFilePath", _n_relativeFilePath0, None, Compiled, qt_QDir_relativeFilePath_string_QDir_string, Return, "string", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "fileName", "string"), End), + new Function(c, "remove", _n_remove0, None, Compiled, qt_QDir_remove_bool_QDir_string, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "fileName", "string"), End), + new Function(c, "removeRecursively", _n_removeRecursively0, None, Compiled, qt_QDir_removeRecursively_bool_QDir, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "rename", _n_rename0, None, Compiled, qt_QDir_rename_bool_QDir_string_string, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "oldName", "string"), new Param(c, "newName", "string"), End), + new Function(c, "rmdir", _n_rmdir0, None, Compiled, qt_QDir_rmdir_bool_QDir_string, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "dirName", "string"), End), + new Function(c, "rmpath", _n_rmpath0, None, Compiled, qt_QDir_rmpath_bool_QDir_string, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "dirPath", "string"), End), + new Function(c, "setFilter", _n_setFilter0, None, Compiled, qt_QDir_setFilter_void_QDir_int, Return, "void", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "filters", "int"), End), + new Function(c, "setNameFilters", _n_setNameFilters0, None, Compiled, qt_QDir_setNameFilters_void_QDir_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "nameFilters", "string[]"), End), + new Function(c, "setPath", _n_setPath0, None, Compiled, qt_QDir_setPath_void_QDir_string, Return, "void", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "path", "string"), End), + new Function(c, "setSorting", _n_setSorting0, None, Compiled, qt_QDir_setSorting_void_QDir_int, Return, "void", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "sort", "int"), End), + new Function(c, "sorting", _n_sorting0, None, Compiled, qt_QDir_sorting_int_QDir, Return, "int", Parameters, new Param(c, "this", "qt.QDir"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QDir_swap_void_QDir_QDir, Return, "void", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "other", "qt.QDir"), End), + // static functions + new Function(c, "addSearchPath", _n_addSearchPath0, None, Compiled, qt_QDir_addSearchPath_void_string_string, Return, "void", Parameters, new Param(c, "prefix", "string"), new Param(c, "path", "string"), End), + new Function(c, "cleanPath", _n_cleanPath0, None, Compiled, qt_QDir_cleanPath_string_string, Return, "string", Parameters, new Param(c, "path", "string"), End), + new Function(c, "current", _n_current0, None, Compiled, qt_QDir_current_QDir, Return, "qt.QDir", End), + new Function(c, "currentPath", _n_currentPath0, None, Compiled, qt_QDir_currentPath_string, Return, "string", End), + new Function(c, "drives", _n_drives0, None, Compiled, qt_QDir_drives_qt__QFileInfoBSB_ESB_, Return, "qt.QFileInfo[]", End), + new Function(c, "fromNativeSeparators", _n_fromNativeSeparators0, None, Compiled, qt_QDir_fromNativeSeparators_string_string, Return, "string", Parameters, new Param(c, "pathName", "string"), End), + new Function(c, "home", _n_home0, None, Compiled, qt_QDir_home_QDir, Return, "qt.QDir", End), + new Function(c, "homePath", _n_homePath0, None, Compiled, qt_QDir_homePath_string, Return, "string", End), + new Function(c, "isAbsolutePath", _n_isAbsolutePath0, None, Compiled, qt_QDir_isAbsolutePath_bool_string, Return, "bool", Parameters, new Param(c, "path", "string"), End), + new Function(c, "isRelativePath", _n_isRelativePath0, None, Compiled, qt_QDir_isRelativePath_bool_string, Return, "bool", Parameters, new Param(c, "path", "string"), End), + // MISSING: listSeparator ("QChar"; ) + new Function(c, "match", _n_match0, None, Compiled, qt_QDir_match_bool_string_string, Return, "bool", Parameters, new Param(c, "filter", "string"), new Param(c, "fileName", "string"), End), + new Function(c, "match", _n_match1, None, Compiled, qt_QDir_match_bool_stringBSB_ESB__string, Return, "bool", Parameters, new Param(c, "filters", "string[]"), new Param(c, "fileName", "string"), End), + new Function(c, "root", _n_root0, None, Compiled, qt_QDir_root_QDir, Return, "qt.QDir", End), + new Function(c, "rootPath", _n_rootPath0, None, Compiled, qt_QDir_rootPath_string, Return, "string", End), + new Function(c, "searchPaths", _n_searchPaths0, None, Compiled, qt_QDir_searchPaths_stringBSB_ESB__string, Return, "string[]", Parameters, new Param(c, "prefix", "string"), End), + // MISSING: separator ("QChar"; ) + new Function(c, "setCurrent", _n_setCurrent0, None, Compiled, qt_QDir_setCurrent_bool_string, Return, "bool", Parameters, new Param(c, "path", "string"), End), + new Function(c, "setSearchPaths", _n_setSearchPaths0, None, Compiled, qt_QDir_setSearchPaths_void_string_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "prefix", "string"), new Param(c, "searchPaths", "string[]"), End), + new Function(c, "temp", _n_temp0, None, Compiled, qt_QDir_temp_QDir, Return, "qt.QDir", End), + new Function(c, "tempPath", _n_tempPath0, None, Compiled, qt_QDir_tempPath_string, Return, "string", End), + new Function(c, "toNativeSeparators", _n_toNativeSeparators0, None, Compiled, qt_QDir_toNativeSeparators_string_string, Return, "string", Parameters, new Param(c, "pathName", "string"), End), + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QDir_operatorBang_EQ__bool_QDir_QDir, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "dir", "qt.QDir"), End), + // MISSING: = (QDir; QDir this, QDir dir) + // MISSING: = (QDir; QDir this, "QDir & &" other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QDir_operatorEQ_EQ__bool_QDir_QDir, Return, "bool", Parameters, new Param(c, "this", "qt.QDir"), new Param(c, "dir", "qt.QDir"), End), + // MISSING: [] (string; QDir this, "qsizetype" pos) + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QDockWidgetType.cpp b/src/lib/mu/MuQt6/QDockWidgetType.cpp new file mode 100644 index 000000000..cd4ee0d60 --- /dev/null +++ b/src/lib/mu/MuQt6/QDockWidgetType.cpp @@ -0,0 +1,1375 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QDockWidget::~MuQt_QDockWidget() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QDockWidget::MuQt_QDockWidget(Pointer muobj, const CallEnvironment* ce, const QString & title, QWidget * parent, Qt::WindowFlags flags) + : QDockWidget(title, parent, flags) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QDockWidget")); +} + +MuQt_QDockWidget::MuQt_QDockWidget(Pointer muobj, const CallEnvironment* ce, QWidget * parent, Qt::WindowFlags flags) + : QDockWidget(parent, flags) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QDockWidget")); +} + +void MuQt_QDockWidget::changeEvent(QEvent * event) +{ + if (!_env) { QDockWidget::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::changeEvent(event); + } +} + +void MuQt_QDockWidget::closeEvent(QCloseEvent * event) +{ + if (!_env) { QDockWidget::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::closeEvent(event); + } +} + +bool MuQt_QDockWidget::event(QEvent * event_) +{ + if (!_env) return QDockWidget::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QDockWidget::event(event_); + } +} + +void MuQt_QDockWidget::paintEvent(QPaintEvent * event) +{ + if (!_env) { QDockWidget::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::paintEvent(event); + } +} + +bool MuQt_QDockWidget::hasHeightForWidth() const +{ + if (!_env) return QDockWidget::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QDockWidget::hasHeightForWidth(); + } +} + +int MuQt_QDockWidget::heightForWidth(int w) const +{ + if (!_env) return QDockWidget::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QDockWidget::heightForWidth(w); + } +} + +QVariant MuQt_QDockWidget::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QDockWidget::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QDockWidget::inputMethodQuery(query); + } +} + +QSize MuQt_QDockWidget::minimumSizeHint() const +{ + if (!_env) return QDockWidget::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QDockWidget::minimumSizeHint(); + } +} + +QSize MuQt_QDockWidget::sizeHint() const +{ + if (!_env) return QDockWidget::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QDockWidget::sizeHint(); + } +} + +void MuQt_QDockWidget::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QDockWidget::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::contextMenuEvent(event); + } +} + +void MuQt_QDockWidget::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QDockWidget::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::dragEnterEvent(event); + } +} + +void MuQt_QDockWidget::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QDockWidget::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::dragLeaveEvent(event); + } +} + +void MuQt_QDockWidget::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QDockWidget::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::dragMoveEvent(event); + } +} + +void MuQt_QDockWidget::dropEvent(QDropEvent * event) +{ + if (!_env) { QDockWidget::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::dropEvent(event); + } +} + +void MuQt_QDockWidget::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QDockWidget::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::focusInEvent(event); + } +} + +bool MuQt_QDockWidget::focusNextPrevChild(bool next) +{ + if (!_env) return QDockWidget::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QDockWidget::focusNextPrevChild(next); + } +} + +void MuQt_QDockWidget::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QDockWidget::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::focusOutEvent(event); + } +} + +void MuQt_QDockWidget::hideEvent(QHideEvent * event) +{ + if (!_env) { QDockWidget::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::hideEvent(event); + } +} + +void MuQt_QDockWidget::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QDockWidget::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::keyPressEvent(event); + } +} + +void MuQt_QDockWidget::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QDockWidget::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::keyReleaseEvent(event); + } +} + +void MuQt_QDockWidget::leaveEvent(QEvent * event) +{ + if (!_env) { QDockWidget::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::leaveEvent(event); + } +} + +void MuQt_QDockWidget::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QDockWidget::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::mouseDoubleClickEvent(event); + } +} + +void MuQt_QDockWidget::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QDockWidget::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::mouseMoveEvent(event); + } +} + +void MuQt_QDockWidget::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QDockWidget::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::mousePressEvent(event); + } +} + +void MuQt_QDockWidget::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QDockWidget::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::mouseReleaseEvent(event); + } +} + +void MuQt_QDockWidget::moveEvent(QMoveEvent * event) +{ + if (!_env) { QDockWidget::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::moveEvent(event); + } +} + +void MuQt_QDockWidget::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QDockWidget::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::resizeEvent(event); + } +} + +void MuQt_QDockWidget::showEvent(QShowEvent * event) +{ + if (!_env) { QDockWidget::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::showEvent(event); + } +} + +void MuQt_QDockWidget::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QDockWidget::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::tabletEvent(event); + } +} + +void MuQt_QDockWidget::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QDockWidget::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QDockWidget::wheelEvent(event); + } +} + +int MuQt_QDockWidget::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QDockWidget::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QDockWidget::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QDockWidgetType::QDockWidgetType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QDockWidgetType::~QDockWidgetType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QDockWidget_QDockWidget_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QDockWidget* w = object(widget)) + { + QDockWidgetType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QDockWidget"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QDockWidget_QDockWidget_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QDockWidget_QDockWidget_QDockWidget_QDockWidget_string_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_title, Pointer param_parent, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_title); + QWidget * arg2 = object(param_parent); + Qt::WindowFlags arg3 = (Qt::WindowFlags)(param_flags); + setobject(param_this, new MuQt_QDockWidget(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QDockWidget_QDockWidget_QDockWidget_QDockWidget_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + Qt::WindowFlags arg2 = (Qt::WindowFlags)(param_flags); + setobject(param_this, new MuQt_QDockWidget(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +bool qt_QDockWidget_isAreaAllowed_bool_QDockWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_area) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + Qt::DockWidgetArea arg1 = (Qt::DockWidgetArea)(param_area); + return arg0->isAreaAllowed(arg1); +} + +void qt_QDockWidget_setTitleBarWidget_void_QDockWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->setTitleBarWidget(arg1); +} + +void qt_QDockWidget_setWidget_void_QDockWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->setWidget(arg1); +} + +Pointer qt_QDockWidget_titleBarWidget_QWidget_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + return makeinstance(c, arg0->titleBarWidget(), "qt.QWidget"); +} + +Pointer qt_QDockWidget_toggleViewAction_QAction_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + return makeinstance(c, arg0->toggleViewAction(), "qt.QAction"); +} + +Pointer qt_QDockWidget_widget_QWidget_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + return makeinstance(c, arg0->widget(), "qt.QWidget"); +} + +void qt_QDockWidget_changeEvent_void_QDockWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->changeEvent_pub(arg1); +} + +void qt_QDockWidget_closeEvent_void_QDockWidget_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->closeEvent_pub(arg1); +} + +bool qt_QDockWidget_event_bool_QDockWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QDockWidget*)arg0)->event_pub_parent(arg1) : ((MuQt_QDockWidget*)arg0)->event_pub(arg1); +} + +void qt_QDockWidget_paintEvent_void_QDockWidget_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->paintEvent_pub(arg1); +} + +bool qt_QDockWidget_hasHeightForWidth_bool_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QDockWidget::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QDockWidget_heightForWidth_int_QDockWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QDockWidget::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QDockWidget_inputMethodQuery_QVariant_QDockWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QDockWidget::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QDockWidget_minimumSizeHint_QSize_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QDockWidget::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QDockWidget_sizeHint_QSize_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QDockWidget::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QDockWidget_contextMenuEvent_void_QDockWidget_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QDockWidget_dragEnterEvent_void_QDockWidget_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QDockWidget_dragLeaveEvent_void_QDockWidget_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QDockWidget_dragMoveEvent_void_QDockWidget_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QDockWidget_dropEvent_void_QDockWidget_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->dropEvent_pub(arg1); +} + +void qt_QDockWidget_focusInEvent_void_QDockWidget_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QDockWidget_focusNextPrevChild_bool_QDockWidget_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QDockWidget*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QDockWidget*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QDockWidget_focusOutEvent_void_QDockWidget_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QDockWidget_hideEvent_void_QDockWidget_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->hideEvent_pub(arg1); +} + +void qt_QDockWidget_keyPressEvent_void_QDockWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QDockWidget_keyReleaseEvent_void_QDockWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QDockWidget_leaveEvent_void_QDockWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QDockWidget_mouseDoubleClickEvent_void_QDockWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QDockWidget_mouseMoveEvent_void_QDockWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QDockWidget_mousePressEvent_void_QDockWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QDockWidget_mouseReleaseEvent_void_QDockWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QDockWidget_moveEvent_void_QDockWidget_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->moveEvent_pub(arg1); +} + +void qt_QDockWidget_resizeEvent_void_QDockWidget_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QDockWidget_showEvent_void_QDockWidget_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->showEvent_pub(arg1); +} + +void qt_QDockWidget_tabletEvent_void_QDockWidget_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QDockWidget_wheelEvent_void_QDockWidget_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QDockWidget*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QDockWidget*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QDockWidget_metric_int_QDockWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDockWidget* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QDockWidget*)arg0)->metric_pub_parent(arg1) : ((MuQt_QDockWidget*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QDockWidget0, Pointer) +{ + NODE_RETURN(qt_QDockWidget_QDockWidget_QDockWidget_QDockWidget_string_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_QDockWidget1, Pointer) +{ + NODE_RETURN(qt_QDockWidget_QDockWidget_QDockWidget_QDockWidget_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_isAreaAllowed0, bool) +{ + NODE_RETURN(qt_QDockWidget_isAreaAllowed_bool_QDockWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setTitleBarWidget0, void) +{ + qt_QDockWidget_setTitleBarWidget_void_QDockWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setWidget0, void) +{ + qt_QDockWidget_setWidget_void_QDockWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_titleBarWidget0, Pointer) +{ + NODE_RETURN(qt_QDockWidget_titleBarWidget_QWidget_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toggleViewAction0, Pointer) +{ + NODE_RETURN(qt_QDockWidget_toggleViewAction_QAction_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QDockWidget_widget_QWidget_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QDockWidget_changeEvent_void_QDockWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QDockWidget_closeEvent_void_QDockWidget_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QDockWidget_event_bool_QDockWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QDockWidget_paintEvent_void_QDockWidget_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QDockWidget_hasHeightForWidth_bool_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QDockWidget_heightForWidth_int_QDockWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QDockWidget_inputMethodQuery_QVariant_QDockWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QDockWidget_minimumSizeHint_QSize_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QDockWidget_sizeHint_QSize_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QDockWidget_contextMenuEvent_void_QDockWidget_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QDockWidget_dragEnterEvent_void_QDockWidget_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QDockWidget_dragLeaveEvent_void_QDockWidget_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QDockWidget_dragMoveEvent_void_QDockWidget_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QDockWidget_dropEvent_void_QDockWidget_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QDockWidget_focusInEvent_void_QDockWidget_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QDockWidget_focusNextPrevChild_bool_QDockWidget_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QDockWidget_focusOutEvent_void_QDockWidget_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QDockWidget_hideEvent_void_QDockWidget_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QDockWidget_keyPressEvent_void_QDockWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QDockWidget_keyReleaseEvent_void_QDockWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QDockWidget_leaveEvent_void_QDockWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QDockWidget_mouseDoubleClickEvent_void_QDockWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QDockWidget_mouseMoveEvent_void_QDockWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QDockWidget_mousePressEvent_void_QDockWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QDockWidget_mouseReleaseEvent_void_QDockWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QDockWidget_moveEvent_void_QDockWidget_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QDockWidget_resizeEvent_void_QDockWidget_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QDockWidget_showEvent_void_QDockWidget_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QDockWidget_tabletEvent_void_QDockWidget_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QDockWidget_wheelEvent_void_QDockWidget_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QDockWidget_metric_int_QDockWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QDockWidgetType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QDockWidget_QDockWidget_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QDockWidget", _n_QDockWidget0, None, Compiled, qt_QDockWidget_QDockWidget_QDockWidget_QDockWidget_string_QWidget_int, Return, "qt.QDockWidget", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "title", "string"), new Param(c, "parent", "qt.QWidget"), new Param(c, "flags", "int", Value((int)Qt::WindowFlags())), End), + new Function(c, "QDockWidget", _n_QDockWidget1, None, Compiled, qt_QDockWidget_QDockWidget_QDockWidget_QDockWidget_QWidget_int, Return, "qt.QDockWidget", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "parent", "qt.QWidget"), new Param(c, "flags", "int", Value((int)Qt::WindowFlags())), End), + // PROP: allowedAreas (flags Qt::DockWidgetAreas; QDockWidget this) + // PROP: features (flags QDockWidget::DockWidgetFeatures; QDockWidget this) + new Function(c, "isAreaAllowed", _n_isAreaAllowed0, None, Compiled, qt_QDockWidget_isAreaAllowed_bool_QDockWidget_int, Return, "bool", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "area", "int"), End), + // PROP: isFloating (bool; QDockWidget this) + // PROP: setAllowedAreas (void; QDockWidget this, flags Qt::DockWidgetAreas areas) + // PROP: setFeatures (void; QDockWidget this, flags QDockWidget::DockWidgetFeatures features) + // PROP: setFloating (void; QDockWidget this, bool floating) + new Function(c, "setTitleBarWidget", _n_setTitleBarWidget0, None, Compiled, qt_QDockWidget_setTitleBarWidget_void_QDockWidget_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "setWidget", _n_setWidget0, None, Compiled, qt_QDockWidget_setWidget_void_QDockWidget_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "titleBarWidget", _n_titleBarWidget0, None, Compiled, qt_QDockWidget_titleBarWidget_QWidget_QDockWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QDockWidget"), End), + new Function(c, "toggleViewAction", _n_toggleViewAction0, None, Compiled, qt_QDockWidget_toggleViewAction_QAction_QDockWidget, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QDockWidget"), End), + new Function(c, "widget", _n_widget0, None, Compiled, qt_QDockWidget_widget_QWidget_QDockWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QDockWidget"), End), + // MISSING: initStyleOption (void; QDockWidget this, "QStyleOptionDockWidget *" option) // protected + _func[0] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QDockWidget_changeEvent_void_QDockWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QDockWidget_closeEvent_void_QDockWidget_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QDockWidget_event_bool_QDockWidget_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event_", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QDockWidget_paintEvent_void_QDockWidget_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[4] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QDockWidget_hasHeightForWidth_bool_QDockWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QDockWidget"), End), + _func[5] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QDockWidget_heightForWidth_int_QDockWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "w", "int"), End), + _func[6] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QDockWidget_inputMethodQuery_QVariant_QDockWidget_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "query", "int"), End), + _func[7] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QDockWidget_minimumSizeHint_QSize_QDockWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QDockWidget"), End), + _func[8] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QDockWidget_sizeHint_QSize_QDockWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QDockWidget"), End), + // MISSING: paintEngine ("QPaintEngine *"; QDockWidget this) + // MISSING: actionEvent (void; QDockWidget this, "QActionEvent *" event) // protected + _func[9] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QDockWidget_contextMenuEvent_void_QDockWidget_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[10] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QDockWidget_dragEnterEvent_void_QDockWidget_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[11] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QDockWidget_dragLeaveEvent_void_QDockWidget_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[12] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QDockWidget_dragMoveEvent_void_QDockWidget_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[13] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QDockWidget_dropEvent_void_QDockWidget_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QDockWidget this, "QEnterEvent *" event) // protected + _func[14] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QDockWidget_focusInEvent_void_QDockWidget_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[15] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QDockWidget_focusNextPrevChild_bool_QDockWidget_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "next", "bool"), End), + _func[16] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QDockWidget_focusOutEvent_void_QDockWidget_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[17] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QDockWidget_hideEvent_void_QDockWidget_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QDockWidget this, "QInputMethodEvent *" event) // protected + _func[18] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QDockWidget_keyPressEvent_void_QDockWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[19] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QDockWidget_keyReleaseEvent_void_QDockWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[20] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QDockWidget_leaveEvent_void_QDockWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[21] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QDockWidget_mouseDoubleClickEvent_void_QDockWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[22] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QDockWidget_mouseMoveEvent_void_QDockWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[23] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QDockWidget_mousePressEvent_void_QDockWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QDockWidget_mouseReleaseEvent_void_QDockWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[25] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QDockWidget_moveEvent_void_QDockWidget_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QDockWidget this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[26] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QDockWidget_resizeEvent_void_QDockWidget_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[27] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QDockWidget_showEvent_void_QDockWidget_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QShowEvent"), End), + _func[28] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QDockWidget_tabletEvent_void_QDockWidget_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[29] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QDockWidget_wheelEvent_void_QDockWidget_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QDockWidget this, "QPainter *" painter) // protected + _func[30] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QDockWidget_metric_int_QDockWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QDockWidget"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QDockWidget::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QDragEnterEventType.cpp b/src/lib/mu/MuQt6/QDragEnterEventType.cpp new file mode 100644 index 000000000..2b34917c7 --- /dev/null +++ b/src/lib/mu/MuQt6/QDragEnterEventType.cpp @@ -0,0 +1,124 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QDragEnterEventType::QDragEnterEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QDragEnterEventType::~QDragEnterEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QDragEnterEvent_QDragEnterEvent_QDragEnterEvent_QDragEnterEvent_QPoint_int_QMimeData_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point, int param_actions, Pointer param_data, int param_buttons, int param_modifiers) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg1 = getqtype(param_point); + Qt::DropActions arg2 = (Qt::DropActions)(param_actions); + const QMimeData * arg3 = object(param_data); + Qt::MouseButtons arg4 = (Qt::MouseButtons)(param_buttons); + Qt::KeyboardModifiers arg5 = (Qt::KeyboardModifiers)(param_modifiers); + setqpointer(param_this,new QDragEnterEvent(arg1, arg2, arg3, arg4, arg5)); + return param_this; +} + + +static NODE_IMPLEMENTATION(_n_QDragEnterEvent0, Pointer) +{ + NODE_RETURN(qt_QDragEnterEvent_QDragEnterEvent_QDragEnterEvent_QDragEnterEvent_QPoint_int_QMimeData_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int), NODE_ARG(5, int))); +} + + + +void +QDragEnterEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QDragEnterEvent", _n_QDragEnterEvent0, None, Compiled, qt_QDragEnterEvent_QDragEnterEvent_QDragEnterEvent_QDragEnterEvent_QPoint_int_QMimeData_int_int, Return, "qt.QDragEnterEvent", Parameters, new Param(c, "this", "qt.QDragEnterEvent"), new Param(c, "point", "qt.QPoint"), new Param(c, "actions", "int"), new Param(c, "data", "qt.QMimeData"), new Param(c, "buttons", "int"), new Param(c, "modifiers", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QDragLeaveEventType.cpp b/src/lib/mu/MuQt6/QDragLeaveEventType.cpp new file mode 100644 index 000000000..56e25473c --- /dev/null +++ b/src/lib/mu/MuQt6/QDragLeaveEventType.cpp @@ -0,0 +1,118 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QDragLeaveEventType::QDragLeaveEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QDragLeaveEventType::~QDragLeaveEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QDragLeaveEvent_QDragLeaveEvent_QDragLeaveEvent_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqpointer(param_this,new QDragLeaveEvent()); + return param_this; +} + + +static NODE_IMPLEMENTATION(_n_QDragLeaveEvent0, Pointer) +{ + NODE_RETURN(qt_QDragLeaveEvent_QDragLeaveEvent_QDragLeaveEvent_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QDragLeaveEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QDragLeaveEvent", _n_QDragLeaveEvent0, None, Compiled, qt_QDragLeaveEvent_QDragLeaveEvent_QDragLeaveEvent_QDragLeaveEvent, Return, "qt.QDragLeaveEvent", Parameters, new Param(c, "this", "qt.QDragLeaveEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QDragMoveEventType.cpp b/src/lib/mu/MuQt6/QDragMoveEventType.cpp new file mode 100644 index 000000000..c9a9609b0 --- /dev/null +++ b/src/lib/mu/MuQt6/QDragMoveEventType.cpp @@ -0,0 +1,197 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QDragMoveEventType::QDragMoveEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QDragMoveEventType::~QDragMoveEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QDragMoveEvent_QDragMoveEvent_QDragMoveEvent_QDragMoveEvent_QPoint_int_QMimeData_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos, int param_actions, Pointer param_data, int param_buttons, int param_modifiers, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg1 = getqtype(param_pos); + Qt::DropActions arg2 = (Qt::DropActions)(param_actions); + const QMimeData * arg3 = object(param_data); + Qt::MouseButtons arg4 = (Qt::MouseButtons)(param_buttons); + Qt::KeyboardModifiers arg5 = (Qt::KeyboardModifiers)(param_modifiers); + QEvent::Type arg6 = (QEvent::Type)(param_type); + setqpointer(param_this,new QDragMoveEvent(arg1, arg2, arg3, arg4, arg5, arg6)); + return param_this; +} + +void qt_QDragMoveEvent_accept_void_QDragMoveEvent_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDragMoveEvent * arg0 = getqpointer(param_this); + const QRect arg1 = getqtype(param_rectangle); + arg0->accept(arg1); + setqpointer(param_this,arg0); +} + +void qt_QDragMoveEvent_accept_void_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDragMoveEvent * arg0 = getqpointer(param_this); + arg0->accept(); + setqpointer(param_this,arg0); +} + +Pointer qt_QDragMoveEvent_answerRect_QRect_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDragMoveEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->answerRect(),"qt.QRect"); +} + +void qt_QDragMoveEvent_ignore_void_QDragMoveEvent_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDragMoveEvent * arg0 = getqpointer(param_this); + const QRect arg1 = getqtype(param_rectangle); + arg0->ignore(arg1); + setqpointer(param_this,arg0); +} + +void qt_QDragMoveEvent_ignore_void_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDragMoveEvent * arg0 = getqpointer(param_this); + arg0->ignore(); + setqpointer(param_this,arg0); +} + + +static NODE_IMPLEMENTATION(_n_QDragMoveEvent0, Pointer) +{ + NODE_RETURN(qt_QDragMoveEvent_QDragMoveEvent_QDragMoveEvent_QDragMoveEvent_QPoint_int_QMimeData_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int), NODE_ARG(5, int), NODE_ARG(6, int))); +} + +static NODE_IMPLEMENTATION(_n_accept0, void) +{ + qt_QDragMoveEvent_accept_void_QDragMoveEvent_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_accept1, void) +{ + qt_QDragMoveEvent_accept_void_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_answerRect0, Pointer) +{ + NODE_RETURN(qt_QDragMoveEvent_answerRect_QRect_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_ignore0, void) +{ + qt_QDragMoveEvent_ignore_void_QDragMoveEvent_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_ignore1, void) +{ + qt_QDragMoveEvent_ignore_void_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + + + +void +QDragMoveEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QDragMoveEvent", _n_QDragMoveEvent0, None, Compiled, qt_QDragMoveEvent_QDragMoveEvent_QDragMoveEvent_QDragMoveEvent_QPoint_int_QMimeData_int_int_int, Return, "qt.QDragMoveEvent", Parameters, new Param(c, "this", "qt.QDragMoveEvent"), new Param(c, "pos", "qt.QPoint"), new Param(c, "actions", "int"), new Param(c, "data", "qt.QMimeData"), new Param(c, "buttons", "int"), new Param(c, "modifiers", "int"), new Param(c, "type", "int", Value((int)QEvent::DragMove)), End), + new Function(c, "accept", _n_accept0, None, Compiled, qt_QDragMoveEvent_accept_void_QDragMoveEvent_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QDragMoveEvent"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "accept", _n_accept1, None, Compiled, qt_QDragMoveEvent_accept_void_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDragMoveEvent"), End), + new Function(c, "answerRect", _n_answerRect0, None, Compiled, qt_QDragMoveEvent_answerRect_QRect_QDragMoveEvent, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QDragMoveEvent"), End), + new Function(c, "ignore", _n_ignore0, None, Compiled, qt_QDragMoveEvent_ignore_void_QDragMoveEvent_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QDragMoveEvent"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "ignore", _n_ignore1, None, Compiled, qt_QDragMoveEvent_ignore_void_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDragMoveEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QDropEventType.cpp b/src/lib/mu/MuQt6/QDropEventType.cpp new file mode 100644 index 000000000..81646baeb --- /dev/null +++ b/src/lib/mu/MuQt6/QDropEventType.cpp @@ -0,0 +1,260 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QDropEventType::QDropEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QDropEventType::~QDropEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QDropEvent_QDropEvent_QDropEvent_QDropEvent_QPointF_int_QMimeData_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos, int param_actions, Pointer param_data, int param_buttons, int param_modifiers, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPointF arg1 = getqtype(param_pos); + Qt::DropActions arg2 = (Qt::DropActions)(param_actions); + const QMimeData * arg3 = object(param_data); + Qt::MouseButtons arg4 = (Qt::MouseButtons)(param_buttons); + Qt::KeyboardModifiers arg5 = (Qt::KeyboardModifiers)(param_modifiers); + QEvent::Type arg6 = (QEvent::Type)(param_type); + setqpointer(param_this,new QDropEvent(arg1, arg2, arg3, arg4, arg5, arg6)); + return param_this; +} + +void qt_QDropEvent_acceptProposedAction_void_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDropEvent * arg0 = getqpointer(param_this); + arg0->acceptProposedAction(); + setqpointer(param_this,arg0); +} + +int qt_QDropEvent_buttons_int_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDropEvent * arg0 = getqpointer(param_this); + return int(arg0->buttons()); +} + +int qt_QDropEvent_dropAction_int_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDropEvent * arg0 = getqpointer(param_this); + return int(arg0->dropAction()); +} + +Pointer qt_QDropEvent_mimeData_QMimeData_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDropEvent * arg0 = getqpointer(param_this); + return makeinstance(c,arg0->mimeData(),"qt.QMimeData"); +} + +int qt_QDropEvent_modifiers_int_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDropEvent * arg0 = getqpointer(param_this); + return int(arg0->modifiers()); +} + +Pointer qt_QDropEvent_position_QPointF_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDropEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->position(),"qt.QPointF"); +} + +int qt_QDropEvent_possibleActions_int_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDropEvent * arg0 = getqpointer(param_this); + return int(arg0->possibleActions()); +} + +int qt_QDropEvent_proposedAction_int_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDropEvent * arg0 = getqpointer(param_this); + return int(arg0->proposedAction()); +} + +void qt_QDropEvent_setDropAction_void_QDropEvent_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDropEvent * arg0 = getqpointer(param_this); + Qt::DropAction arg1 = (Qt::DropAction)(param_action); + arg0->setDropAction(arg1); + setqpointer(param_this,arg0); +} + +Pointer qt_QDropEvent_source_QObject_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDropEvent * arg0 = getqpointer(param_this); + return makeinstance(c,arg0->source(),"qt.QObject"); +} + + +static NODE_IMPLEMENTATION(_n_QDropEvent0, Pointer) +{ + NODE_RETURN(qt_QDropEvent_QDropEvent_QDropEvent_QDropEvent_QPointF_int_QMimeData_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int), NODE_ARG(5, int), NODE_ARG(6, int))); +} + +static NODE_IMPLEMENTATION(_n_acceptProposedAction0, void) +{ + qt_QDropEvent_acceptProposedAction_void_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_buttons0, int) +{ + NODE_RETURN(qt_QDropEvent_buttons_int_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dropAction0, int) +{ + NODE_RETURN(qt_QDropEvent_dropAction_int_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mimeData0, Pointer) +{ + NODE_RETURN(qt_QDropEvent_mimeData_QMimeData_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_modifiers0, int) +{ + NODE_RETURN(qt_QDropEvent_modifiers_int_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_position0, Pointer) +{ + NODE_RETURN(qt_QDropEvent_position_QPointF_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_possibleActions0, int) +{ + NODE_RETURN(qt_QDropEvent_possibleActions_int_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_proposedAction0, int) +{ + NODE_RETURN(qt_QDropEvent_proposedAction_int_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setDropAction0, void) +{ + qt_QDropEvent_setDropAction_void_QDropEvent_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_source0, Pointer) +{ + NODE_RETURN(qt_QDropEvent_source_QObject_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QDropEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QDropEvent", _n_QDropEvent0, None, Compiled, qt_QDropEvent_QDropEvent_QDropEvent_QDropEvent_QPointF_int_QMimeData_int_int_int, Return, "qt.QDropEvent", Parameters, new Param(c, "this", "qt.QDropEvent"), new Param(c, "pos", "qt.QPointF"), new Param(c, "actions", "int"), new Param(c, "data", "qt.QMimeData"), new Param(c, "buttons", "int"), new Param(c, "modifiers", "int"), new Param(c, "type", "int", Value((int)QEvent::Drop)), End), + new Function(c, "acceptProposedAction", _n_acceptProposedAction0, None, Compiled, qt_QDropEvent_acceptProposedAction_void_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QDropEvent"), End), + new Function(c, "buttons", _n_buttons0, None, Compiled, qt_QDropEvent_buttons_int_QDropEvent, Return, "int", Parameters, new Param(c, "this", "qt.QDropEvent"), End), + new Function(c, "dropAction", _n_dropAction0, None, Compiled, qt_QDropEvent_dropAction_int_QDropEvent, Return, "int", Parameters, new Param(c, "this", "qt.QDropEvent"), End), + new Function(c, "mimeData", _n_mimeData0, None, Compiled, qt_QDropEvent_mimeData_QMimeData_QDropEvent, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QDropEvent"), End), + new Function(c, "modifiers", _n_modifiers0, None, Compiled, qt_QDropEvent_modifiers_int_QDropEvent, Return, "int", Parameters, new Param(c, "this", "qt.QDropEvent"), End), + new Function(c, "position", _n_position0, None, Compiled, qt_QDropEvent_position_QPointF_QDropEvent, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QDropEvent"), End), + new Function(c, "possibleActions", _n_possibleActions0, None, Compiled, qt_QDropEvent_possibleActions_int_QDropEvent, Return, "int", Parameters, new Param(c, "this", "qt.QDropEvent"), End), + new Function(c, "proposedAction", _n_proposedAction0, None, Compiled, qt_QDropEvent_proposedAction_int_QDropEvent, Return, "int", Parameters, new Param(c, "this", "qt.QDropEvent"), End), + new Function(c, "setDropAction", _n_setDropAction0, None, Compiled, qt_QDropEvent_setDropAction_void_QDropEvent_int, Return, "void", Parameters, new Param(c, "this", "qt.QDropEvent"), new Param(c, "action", "int"), End), + new Function(c, "source", _n_source0, None, Compiled, qt_QDropEvent_source_QObject_QDropEvent, Return, "qt.QObject", Parameters, new Param(c, "this", "qt.QDropEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QEventLoopType.cpp b/src/lib/mu/MuQt6/QEventLoopType.cpp new file mode 100644 index 000000000..040fdecba --- /dev/null +++ b/src/lib/mu/MuQt6/QEventLoopType.cpp @@ -0,0 +1,399 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QEventLoop::~MuQt_QEventLoop() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QEventLoop::MuQt_QEventLoop(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QEventLoop(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QEventLoop")); +} + +bool MuQt_QEventLoop::event(QEvent * event_) +{ + if (!_env) return QEventLoop::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QEventLoop::event(event_); + } +} + +bool MuQt_QEventLoop::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QEventLoop::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QEventLoop::eventFilter(watched, event); + } +} + +void MuQt_QEventLoop::customEvent(QEvent * event) +{ + if (!_env) { QEventLoop::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QEventLoop::customEvent(event); + } +} + +void MuQt_QEventLoop::timerEvent(QTimerEvent * event) +{ + if (!_env) { QEventLoop::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QEventLoop::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QEventLoopType::QEventLoopType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QEventLoopType::~QEventLoopType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QEventLoop_QEventLoop_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QEventLoop* w = object(widget)) + { + QEventLoopType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QEventLoop"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QEventLoop_QEventLoop_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QEventLoop_QEventLoop_QEventLoop_QEventLoop_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QEventLoop(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +int qt_QEventLoop_exec_int_QEventLoop_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop* arg0 = object(param_this); + QEventLoop::ProcessEventsFlags arg1 = (QEventLoop::ProcessEventsFlags)(param_flags); + return arg0->exec(arg1); +} + +bool qt_QEventLoop_isRunning_bool_QEventLoop(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop* arg0 = object(param_this); + return arg0->isRunning(); +} + +bool qt_QEventLoop_processEvents_bool_QEventLoop_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop* arg0 = object(param_this); + QEventLoop::ProcessEventsFlags arg1 = (QEventLoop::ProcessEventsFlags)(param_flags); + return arg0->processEvents(arg1); +} + +void qt_QEventLoop_processEvents_void_QEventLoop_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags, int param_maxTime) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop* arg0 = object(param_this); + QEventLoop::ProcessEventsFlags arg1 = (QEventLoop::ProcessEventsFlags)(param_flags); + int arg2 = (int)(param_maxTime); + arg0->processEvents(arg1, arg2); +} + +void qt_QEventLoop_wakeUp_void_QEventLoop(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop* arg0 = object(param_this); + arg0->wakeUp(); +} + +bool qt_QEventLoop_event_bool_QEventLoop_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? arg0->QEventLoop::event(arg1) : arg0->event(arg1); +} + +bool qt_QEventLoop_eventFilter_bool_QEventLoop_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QEventLoop::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QEventLoop_customEvent_void_QEventLoop_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QEventLoop*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QEventLoop*)arg0)->customEvent_pub(arg1); +} + +void qt_QEventLoop_timerEvent_void_QEventLoop_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEventLoop* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QEventLoop*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QEventLoop*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QEventLoop0, Pointer) +{ + NODE_RETURN(qt_QEventLoop_QEventLoop_QEventLoop_QEventLoop_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exec0, int) +{ + NODE_RETURN(qt_QEventLoop_exec_int_QEventLoop_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isRunning0, bool) +{ + NODE_RETURN(qt_QEventLoop_isRunning_bool_QEventLoop(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_processEvents0, bool) +{ + NODE_RETURN(qt_QEventLoop_processEvents_bool_QEventLoop_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_processEvents1, void) +{ + qt_QEventLoop_processEvents_void_QEventLoop_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_wakeUp0, void) +{ + qt_QEventLoop_wakeUp_void_QEventLoop(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QEventLoop_event_bool_QEventLoop_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QEventLoop_eventFilter_bool_QEventLoop_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QEventLoop_customEvent_void_QEventLoop_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QEventLoop_timerEvent_void_QEventLoop_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QEventLoopType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QEventLoop_QEventLoop_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QEventLoop", _n_QEventLoop0, None, Compiled, qt_QEventLoop_QEventLoop_QEventLoop_QEventLoop_QObject, Return, "qt.QEventLoop", Parameters, new Param(c, "this", "qt.QEventLoop"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "exec", _n_exec0, None, Compiled, qt_QEventLoop_exec_int_QEventLoop_int, Return, "int", Parameters, new Param(c, "this", "qt.QEventLoop"), new Param(c, "flags", "int", Value((int)QEventLoop::AllEvents)), End), + new Function(c, "isRunning", _n_isRunning0, None, Compiled, qt_QEventLoop_isRunning_bool_QEventLoop, Return, "bool", Parameters, new Param(c, "this", "qt.QEventLoop"), End), + new Function(c, "processEvents", _n_processEvents0, None, Compiled, qt_QEventLoop_processEvents_bool_QEventLoop_int, Return, "bool", Parameters, new Param(c, "this", "qt.QEventLoop"), new Param(c, "flags", "int", Value((int)QEventLoop::AllEvents)), End), + new Function(c, "processEvents", _n_processEvents1, None, Compiled, qt_QEventLoop_processEvents_void_QEventLoop_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QEventLoop"), new Param(c, "flags", "int"), new Param(c, "maxTime", "int"), End), + new Function(c, "wakeUp", _n_wakeUp0, None, Compiled, qt_QEventLoop_wakeUp_void_QEventLoop, Return, "void", Parameters, new Param(c, "this", "qt.QEventLoop"), End), + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QEventLoop_event_bool_QEventLoop_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QEventLoop"), new Param(c, "event_", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QEventLoop_eventFilter_bool_QEventLoop_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QEventLoop"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QEventLoop this) + // MISSING: childEvent (void; QEventLoop this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QEventLoop this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QEventLoop_customEvent_void_QEventLoop_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QEventLoop"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QEventLoop this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QEventLoop_timerEvent_void_QEventLoop_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QEventLoop"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QEventLoop::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QEventType.cpp b/src/lib/mu/MuQt6/QEventType.cpp new file mode 100644 index 000000000..2265ef290 --- /dev/null +++ b/src/lib/mu/MuQt6/QEventType.cpp @@ -0,0 +1,402 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QEventType::QEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QEventType::~QEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QEvent_QEvent_QEvent_QEvent_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent::Type arg1 = (QEvent::Type)(param_type); + setqpointer(param_this,new QEvent(arg1)); + return param_this; +} + +void qt_QEvent_accept_void_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent * arg0 = getqpointer(param_this); + arg0->accept(); + setqpointer(param_this,arg0); +} + +Pointer qt_QEvent_clone_QEvent_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent * arg0 = getqpointer(param_this); + return makeqpointer(c,arg0->clone(),"qt.QEvent"); +} + +void qt_QEvent_ignore_void_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent * arg0 = getqpointer(param_this); + arg0->ignore(); + setqpointer(param_this,arg0); +} + +bool qt_QEvent_isInputEvent_bool_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent * arg0 = getqpointer(param_this); + return arg0->isInputEvent(); +} + +bool qt_QEvent_isPointerEvent_bool_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent * arg0 = getqpointer(param_this); + return arg0->isPointerEvent(); +} + +bool qt_QEvent_isSinglePointEvent_bool_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent * arg0 = getqpointer(param_this); + return arg0->isSinglePointEvent(); +} + +void qt_QEvent_setAccepted_void_QEvent_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_accepted) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_accepted); + arg0->setAccepted(arg1); + setqpointer(param_this,arg0); +} + +bool qt_QEvent_spontaneous_bool_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent * arg0 = getqpointer(param_this); + return arg0->spontaneous(); +} + +int qt_QEvent_type_int_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent * arg0 = getqpointer(param_this); + return int(arg0->type()); +} + +int qt_QEvent_registerEventType_int_int(Mu::Thread& NODE_THREAD, int param_hint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_hint); + return QEvent::registerEventType(arg0); +} + + +static NODE_IMPLEMENTATION(_n_QEvent0, Pointer) +{ + NODE_RETURN(qt_QEvent_QEvent_QEvent_QEvent_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_accept0, void) +{ + qt_QEvent_accept_void_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_clone0, Pointer) +{ + NODE_RETURN(qt_QEvent_clone_QEvent_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_ignore0, void) +{ + qt_QEvent_ignore_void_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isInputEvent0, bool) +{ + NODE_RETURN(qt_QEvent_isInputEvent_bool_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isPointerEvent0, bool) +{ + NODE_RETURN(qt_QEvent_isPointerEvent_bool_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSinglePointEvent0, bool) +{ + NODE_RETURN(qt_QEvent_isSinglePointEvent_bool_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAccepted0, void) +{ + qt_QEvent_setAccepted_void_QEvent_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_spontaneous0, bool) +{ + NODE_RETURN(qt_QEvent_spontaneous_bool_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_type0, int) +{ + NODE_RETURN(qt_QEvent_type_int_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_registerEventType0, int) +{ + NODE_RETURN(qt_QEvent_registerEventType_int_int(NODE_THREAD, NODE_ARG(0, int))); +} + + + +void +QEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + new Alias(c, "Type", "int"), + new SymbolicConstant(c, "None", "int", Value(int(QEvent::None))), + new SymbolicConstant(c, "ActionAdded", "int", Value(int(QEvent::ActionAdded))), + new SymbolicConstant(c, "ActionChanged", "int", Value(int(QEvent::ActionChanged))), + new SymbolicConstant(c, "ActionRemoved", "int", Value(int(QEvent::ActionRemoved))), + new SymbolicConstant(c, "ActivationChange", "int", Value(int(QEvent::ActivationChange))), + new SymbolicConstant(c, "ApplicationActivate", "int", Value(int(QEvent::ApplicationActivate))), + new SymbolicConstant(c, "ApplicationActivated", "int", Value(int(QEvent::ApplicationActivated))), + new SymbolicConstant(c, "ApplicationDeactivate", "int", Value(int(QEvent::ApplicationDeactivate))), + new SymbolicConstant(c, "ApplicationFontChange", "int", Value(int(QEvent::ApplicationFontChange))), + new SymbolicConstant(c, "ApplicationLayoutDirectionChange", "int", Value(int(QEvent::ApplicationLayoutDirectionChange))), + new SymbolicConstant(c, "ApplicationPaletteChange", "int", Value(int(QEvent::ApplicationPaletteChange))), + new SymbolicConstant(c, "ApplicationStateChange", "int", Value(int(QEvent::ApplicationStateChange))), + new SymbolicConstant(c, "ApplicationWindowIconChange", "int", Value(int(QEvent::ApplicationWindowIconChange))), + new SymbolicConstant(c, "ChildAdded", "int", Value(int(QEvent::ChildAdded))), + new SymbolicConstant(c, "ChildPolished", "int", Value(int(QEvent::ChildPolished))), + new SymbolicConstant(c, "ChildRemoved", "int", Value(int(QEvent::ChildRemoved))), + new SymbolicConstant(c, "Clipboard", "int", Value(int(QEvent::Clipboard))), + new SymbolicConstant(c, "Close", "int", Value(int(QEvent::Close))), + new SymbolicConstant(c, "CloseSoftwareInputPanel", "int", Value(int(QEvent::CloseSoftwareInputPanel))), + new SymbolicConstant(c, "ContentsRectChange", "int", Value(int(QEvent::ContentsRectChange))), + new SymbolicConstant(c, "ContextMenu", "int", Value(int(QEvent::ContextMenu))), + new SymbolicConstant(c, "CursorChange", "int", Value(int(QEvent::CursorChange))), + new SymbolicConstant(c, "DeferredDelete", "int", Value(int(QEvent::DeferredDelete))), + new SymbolicConstant(c, "DragEnter", "int", Value(int(QEvent::DragEnter))), + new SymbolicConstant(c, "DragLeave", "int", Value(int(QEvent::DragLeave))), + new SymbolicConstant(c, "DragMove", "int", Value(int(QEvent::DragMove))), + new SymbolicConstant(c, "Drop", "int", Value(int(QEvent::Drop))), + new SymbolicConstant(c, "DynamicPropertyChange", "int", Value(int(QEvent::DynamicPropertyChange))), + new SymbolicConstant(c, "EnabledChange", "int", Value(int(QEvent::EnabledChange))), + new SymbolicConstant(c, "Enter", "int", Value(int(QEvent::Enter))), + new SymbolicConstant(c, "EnterWhatsThisMode", "int", Value(int(QEvent::EnterWhatsThisMode))), + new SymbolicConstant(c, "Expose", "int", Value(int(QEvent::Expose))), + new SymbolicConstant(c, "FileOpen", "int", Value(int(QEvent::FileOpen))), + new SymbolicConstant(c, "FocusIn", "int", Value(int(QEvent::FocusIn))), + new SymbolicConstant(c, "FocusOut", "int", Value(int(QEvent::FocusOut))), + new SymbolicConstant(c, "FocusAboutToChange", "int", Value(int(QEvent::FocusAboutToChange))), + new SymbolicConstant(c, "FontChange", "int", Value(int(QEvent::FontChange))), + new SymbolicConstant(c, "Gesture", "int", Value(int(QEvent::Gesture))), + new SymbolicConstant(c, "GestureOverride", "int", Value(int(QEvent::GestureOverride))), + new SymbolicConstant(c, "GrabKeyboard", "int", Value(int(QEvent::GrabKeyboard))), + new SymbolicConstant(c, "GrabMouse", "int", Value(int(QEvent::GrabMouse))), + new SymbolicConstant(c, "GraphicsSceneContextMenu", "int", Value(int(QEvent::GraphicsSceneContextMenu))), + new SymbolicConstant(c, "GraphicsSceneDragEnter", "int", Value(int(QEvent::GraphicsSceneDragEnter))), + new SymbolicConstant(c, "GraphicsSceneDragLeave", "int", Value(int(QEvent::GraphicsSceneDragLeave))), + new SymbolicConstant(c, "GraphicsSceneDragMove", "int", Value(int(QEvent::GraphicsSceneDragMove))), + new SymbolicConstant(c, "GraphicsSceneDrop", "int", Value(int(QEvent::GraphicsSceneDrop))), + new SymbolicConstant(c, "GraphicsSceneHelp", "int", Value(int(QEvent::GraphicsSceneHelp))), + new SymbolicConstant(c, "GraphicsSceneHoverEnter", "int", Value(int(QEvent::GraphicsSceneHoverEnter))), + new SymbolicConstant(c, "GraphicsSceneHoverLeave", "int", Value(int(QEvent::GraphicsSceneHoverLeave))), + new SymbolicConstant(c, "GraphicsSceneHoverMove", "int", Value(int(QEvent::GraphicsSceneHoverMove))), + new SymbolicConstant(c, "GraphicsSceneMouseDoubleClick", "int", Value(int(QEvent::GraphicsSceneMouseDoubleClick))), + new SymbolicConstant(c, "GraphicsSceneMouseMove", "int", Value(int(QEvent::GraphicsSceneMouseMove))), + new SymbolicConstant(c, "GraphicsSceneMousePress", "int", Value(int(QEvent::GraphicsSceneMousePress))), + new SymbolicConstant(c, "GraphicsSceneMouseRelease", "int", Value(int(QEvent::GraphicsSceneMouseRelease))), + new SymbolicConstant(c, "GraphicsSceneMove", "int", Value(int(QEvent::GraphicsSceneMove))), + new SymbolicConstant(c, "GraphicsSceneResize", "int", Value(int(QEvent::GraphicsSceneResize))), + new SymbolicConstant(c, "GraphicsSceneWheel", "int", Value(int(QEvent::GraphicsSceneWheel))), + new SymbolicConstant(c, "GraphicsSceneLeave", "int", Value(int(QEvent::GraphicsSceneLeave))), + new SymbolicConstant(c, "Hide", "int", Value(int(QEvent::Hide))), + new SymbolicConstant(c, "HideToParent", "int", Value(int(QEvent::HideToParent))), + new SymbolicConstant(c, "HoverEnter", "int", Value(int(QEvent::HoverEnter))), + new SymbolicConstant(c, "HoverLeave", "int", Value(int(QEvent::HoverLeave))), + new SymbolicConstant(c, "HoverMove", "int", Value(int(QEvent::HoverMove))), + new SymbolicConstant(c, "IconDrag", "int", Value(int(QEvent::IconDrag))), + new SymbolicConstant(c, "IconTextChange", "int", Value(int(QEvent::IconTextChange))), + new SymbolicConstant(c, "InputMethod", "int", Value(int(QEvent::InputMethod))), + new SymbolicConstant(c, "InputMethodQuery", "int", Value(int(QEvent::InputMethodQuery))), + new SymbolicConstant(c, "KeyboardLayoutChange", "int", Value(int(QEvent::KeyboardLayoutChange))), + new SymbolicConstant(c, "KeyPress", "int", Value(int(QEvent::KeyPress))), + new SymbolicConstant(c, "KeyRelease", "int", Value(int(QEvent::KeyRelease))), + new SymbolicConstant(c, "LanguageChange", "int", Value(int(QEvent::LanguageChange))), + new SymbolicConstant(c, "LayoutDirectionChange", "int", Value(int(QEvent::LayoutDirectionChange))), + new SymbolicConstant(c, "LayoutRequest", "int", Value(int(QEvent::LayoutRequest))), + new SymbolicConstant(c, "Leave", "int", Value(int(QEvent::Leave))), + new SymbolicConstant(c, "LeaveWhatsThisMode", "int", Value(int(QEvent::LeaveWhatsThisMode))), + new SymbolicConstant(c, "LocaleChange", "int", Value(int(QEvent::LocaleChange))), + new SymbolicConstant(c, "NonClientAreaMouseButtonDblClick", "int", Value(int(QEvent::NonClientAreaMouseButtonDblClick))), + new SymbolicConstant(c, "NonClientAreaMouseButtonPress", "int", Value(int(QEvent::NonClientAreaMouseButtonPress))), + new SymbolicConstant(c, "NonClientAreaMouseButtonRelease", "int", Value(int(QEvent::NonClientAreaMouseButtonRelease))), + new SymbolicConstant(c, "NonClientAreaMouseMove", "int", Value(int(QEvent::NonClientAreaMouseMove))), + new SymbolicConstant(c, "MacSizeChange", "int", Value(int(QEvent::MacSizeChange))), + new SymbolicConstant(c, "MetaCall", "int", Value(int(QEvent::MetaCall))), + new SymbolicConstant(c, "ModifiedChange", "int", Value(int(QEvent::ModifiedChange))), + new SymbolicConstant(c, "MouseButtonDblClick", "int", Value(int(QEvent::MouseButtonDblClick))), + new SymbolicConstant(c, "MouseButtonPress", "int", Value(int(QEvent::MouseButtonPress))), + new SymbolicConstant(c, "MouseButtonRelease", "int", Value(int(QEvent::MouseButtonRelease))), + new SymbolicConstant(c, "MouseMove", "int", Value(int(QEvent::MouseMove))), + new SymbolicConstant(c, "MouseTrackingChange", "int", Value(int(QEvent::MouseTrackingChange))), + new SymbolicConstant(c, "Move", "int", Value(int(QEvent::Move))), + new SymbolicConstant(c, "NativeGesture", "int", Value(int(QEvent::NativeGesture))), + new SymbolicConstant(c, "OrientationChange", "int", Value(int(QEvent::OrientationChange))), + new SymbolicConstant(c, "Paint", "int", Value(int(QEvent::Paint))), + new SymbolicConstant(c, "PaletteChange", "int", Value(int(QEvent::PaletteChange))), + new SymbolicConstant(c, "ParentAboutToChange", "int", Value(int(QEvent::ParentAboutToChange))), + new SymbolicConstant(c, "ParentChange", "int", Value(int(QEvent::ParentChange))), + new SymbolicConstant(c, "PlatformPanel", "int", Value(int(QEvent::PlatformPanel))), + new SymbolicConstant(c, "PlatformSurface", "int", Value(int(QEvent::PlatformSurface))), + new SymbolicConstant(c, "Polish", "int", Value(int(QEvent::Polish))), + new SymbolicConstant(c, "PolishRequest", "int", Value(int(QEvent::PolishRequest))), + new SymbolicConstant(c, "QueryWhatsThis", "int", Value(int(QEvent::QueryWhatsThis))), + new SymbolicConstant(c, "Quit", "int", Value(int(QEvent::Quit))), + new SymbolicConstant(c, "ReadOnlyChange", "int", Value(int(QEvent::ReadOnlyChange))), + new SymbolicConstant(c, "RequestSoftwareInputPanel", "int", Value(int(QEvent::RequestSoftwareInputPanel))), + new SymbolicConstant(c, "Resize", "int", Value(int(QEvent::Resize))), + new SymbolicConstant(c, "ScrollPrepare", "int", Value(int(QEvent::ScrollPrepare))), + new SymbolicConstant(c, "Scroll", "int", Value(int(QEvent::Scroll))), + new SymbolicConstant(c, "Shortcut", "int", Value(int(QEvent::Shortcut))), + new SymbolicConstant(c, "ShortcutOverride", "int", Value(int(QEvent::ShortcutOverride))), + new SymbolicConstant(c, "Show", "int", Value(int(QEvent::Show))), + new SymbolicConstant(c, "ShowToParent", "int", Value(int(QEvent::ShowToParent))), + new SymbolicConstant(c, "SockAct", "int", Value(int(QEvent::SockAct))), + new SymbolicConstant(c, "StateMachineSignal", "int", Value(int(QEvent::StateMachineSignal))), + new SymbolicConstant(c, "StateMachineWrapped", "int", Value(int(QEvent::StateMachineWrapped))), + new SymbolicConstant(c, "StatusTip", "int", Value(int(QEvent::StatusTip))), + new SymbolicConstant(c, "StyleChange", "int", Value(int(QEvent::StyleChange))), + new SymbolicConstant(c, "TabletMove", "int", Value(int(QEvent::TabletMove))), + new SymbolicConstant(c, "TabletPress", "int", Value(int(QEvent::TabletPress))), + new SymbolicConstant(c, "TabletRelease", "int", Value(int(QEvent::TabletRelease))), + new SymbolicConstant(c, "TabletEnterProximity", "int", Value(int(QEvent::TabletEnterProximity))), + new SymbolicConstant(c, "TabletLeaveProximity", "int", Value(int(QEvent::TabletLeaveProximity))), + new SymbolicConstant(c, "TabletTrackingChange", "int", Value(int(QEvent::TabletTrackingChange))), + new SymbolicConstant(c, "ThreadChange", "int", Value(int(QEvent::ThreadChange))), + new SymbolicConstant(c, "Timer", "int", Value(int(QEvent::Timer))), + new SymbolicConstant(c, "ToolBarChange", "int", Value(int(QEvent::ToolBarChange))), + new SymbolicConstant(c, "ToolTip", "int", Value(int(QEvent::ToolTip))), + new SymbolicConstant(c, "ToolTipChange", "int", Value(int(QEvent::ToolTipChange))), + new SymbolicConstant(c, "TouchBegin", "int", Value(int(QEvent::TouchBegin))), + new SymbolicConstant(c, "TouchCancel", "int", Value(int(QEvent::TouchCancel))), + new SymbolicConstant(c, "TouchEnd", "int", Value(int(QEvent::TouchEnd))), + new SymbolicConstant(c, "TouchUpdate", "int", Value(int(QEvent::TouchUpdate))), + new SymbolicConstant(c, "UngrabKeyboard", "int", Value(int(QEvent::UngrabKeyboard))), + new SymbolicConstant(c, "UngrabMouse", "int", Value(int(QEvent::UngrabMouse))), + new SymbolicConstant(c, "UpdateLater", "int", Value(int(QEvent::UpdateLater))), + new SymbolicConstant(c, "UpdateRequest", "int", Value(int(QEvent::UpdateRequest))), + new SymbolicConstant(c, "WhatsThis", "int", Value(int(QEvent::WhatsThis))), + new SymbolicConstant(c, "WhatsThisClicked", "int", Value(int(QEvent::WhatsThisClicked))), + new SymbolicConstant(c, "Wheel", "int", Value(int(QEvent::Wheel))), + new SymbolicConstant(c, "WinEventAct", "int", Value(int(QEvent::WinEventAct))), + new SymbolicConstant(c, "WindowActivate", "int", Value(int(QEvent::WindowActivate))), + new SymbolicConstant(c, "WindowBlocked", "int", Value(int(QEvent::WindowBlocked))), + new SymbolicConstant(c, "WindowDeactivate", "int", Value(int(QEvent::WindowDeactivate))), + new SymbolicConstant(c, "WindowIconChange", "int", Value(int(QEvent::WindowIconChange))), + new SymbolicConstant(c, "WindowStateChange", "int", Value(int(QEvent::WindowStateChange))), + new SymbolicConstant(c, "WindowTitleChange", "int", Value(int(QEvent::WindowTitleChange))), + new SymbolicConstant(c, "WindowUnblocked", "int", Value(int(QEvent::WindowUnblocked))), + new SymbolicConstant(c, "WinIdChange", "int", Value(int(QEvent::WinIdChange))), + new SymbolicConstant(c, "ZOrderChange", "int", Value(int(QEvent::ZOrderChange))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QEvent", _n_QEvent0, None, Compiled, qt_QEvent_QEvent_QEvent_QEvent_int, Return, "qt.QEvent", Parameters, new Param(c, "this", "qt.QEvent"), new Param(c, "type", "int"), End), + new Function(c, "accept", _n_accept0, None, Compiled, qt_QEvent_accept_void_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QEvent"), End), + new MemberFunction(c, "clone", _n_clone0, None, Compiled, qt_QEvent_clone_QEvent_QEvent, Return, "qt.QEvent", Parameters, new Param(c, "this", "qt.QEvent"), End), + new Function(c, "ignore", _n_ignore0, None, Compiled, qt_QEvent_ignore_void_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QEvent"), End), + // PROP: isAccepted (bool; QEvent this) + new Function(c, "isInputEvent", _n_isInputEvent0, None, Compiled, qt_QEvent_isInputEvent_bool_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QEvent"), End), + new Function(c, "isPointerEvent", _n_isPointerEvent0, None, Compiled, qt_QEvent_isPointerEvent_bool_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QEvent"), End), + new Function(c, "isSinglePointEvent", _n_isSinglePointEvent0, None, Compiled, qt_QEvent_isSinglePointEvent_bool_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QEvent"), End), + new MemberFunction(c, "setAccepted", _n_setAccepted0, None, Compiled, qt_QEvent_setAccepted_void_QEvent_bool, Return, "void", Parameters, new Param(c, "this", "qt.QEvent"), new Param(c, "accepted", "bool"), End), + new Function(c, "spontaneous", _n_spontaneous0, None, Compiled, qt_QEvent_spontaneous_bool_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QEvent"), End), + new Function(c, "type", _n_type0, None, Compiled, qt_QEvent_type_int_QEvent, Return, "int", Parameters, new Param(c, "this", "qt.QEvent"), End), + // static functions + new Function(c, "registerEventType", _n_registerEventType0, None, Compiled, qt_QEvent_registerEventType_int_int, Return, "int", Parameters, new Param(c, "hint", "int", Value((int)-1)), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QFileDeviceType.cpp b/src/lib/mu/MuQt6/QFileDeviceType.cpp new file mode 100644 index 000000000..04a43dd55 --- /dev/null +++ b/src/lib/mu/MuQt6/QFileDeviceType.cpp @@ -0,0 +1,872 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QFileDevice::~MuQt_QFileDevice() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +QString MuQt_QFileDevice::fileName() const +{ + if (!_env) return QFileDevice::fileName(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstring(rval._Pointer); + } + else + { + return QFileDevice::fileName(); + } +} + +QFileDevice::Permissions MuQt_QFileDevice::permissions() const +{ + if (!_env) return QFileDevice::permissions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QFileDevice::Permissions)(rval._int); + } + else + { + return QFileDevice::permissions(); + } +} + +bool MuQt_QFileDevice::resize(qint64 sz) +{ + if (!_env) return QFileDevice::resize(sz); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(sz); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDevice::resize(sz); + } +} + +bool MuQt_QFileDevice::setPermissions(QFileDevice::Permissions permissions) +{ + if (!_env) return QFileDevice::setPermissions(permissions); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(permissions)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDevice::setPermissions(permissions); + } +} + +bool MuQt_QFileDevice::atEnd() const +{ + if (!_env) return QFileDevice::atEnd(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDevice::atEnd(); + } +} + +void MuQt_QFileDevice::close() +{ + if (!_env) { QFileDevice::close(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QFileDevice::close(); + } +} + +bool MuQt_QFileDevice::isSequential() const +{ + if (!_env) return QFileDevice::isSequential(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDevice::isSequential(); + } +} + +qint64 MuQt_QFileDevice::pos() const +{ + if (!_env) return QFileDevice::pos(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QFileDevice::pos(); + } +} + +bool MuQt_QFileDevice::seek(qint64 pos) +{ + if (!_env) return QFileDevice::seek(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(pos); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDevice::seek(pos); + } +} + +qint64 MuQt_QFileDevice::size() const +{ + if (!_env) return QFileDevice::size(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QFileDevice::size(); + } +} + +qint64 MuQt_QFileDevice::bytesAvailable() const +{ + if (!_env) return QFileDevice::bytesAvailable(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QFileDevice::bytesAvailable(); + } +} + +qint64 MuQt_QFileDevice::bytesToWrite() const +{ + if (!_env) return QFileDevice::bytesToWrite(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QFileDevice::bytesToWrite(); + } +} + +bool MuQt_QFileDevice::canReadLine() const +{ + if (!_env) return QFileDevice::canReadLine(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDevice::canReadLine(); + } +} + +bool MuQt_QFileDevice::open(QIODeviceBase::OpenMode mode) +{ + if (!_env) return QFileDevice::open(mode); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(mode)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDevice::open(mode); + } +} + +bool MuQt_QFileDevice::reset() +{ + if (!_env) return QFileDevice::reset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDevice::reset(); + } +} + +bool MuQt_QFileDevice::waitForBytesWritten(int msecs) +{ + if (!_env) return QFileDevice::waitForBytesWritten(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDevice::waitForBytesWritten(msecs); + } +} + +bool MuQt_QFileDevice::waitForReadyRead(int msecs) +{ + if (!_env) return QFileDevice::waitForReadyRead(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDevice::waitForReadyRead(msecs); + } +} + +qint64 MuQt_QFileDevice::skipData(qint64 maxSize) +{ + if (!_env) return QFileDevice::skipData(maxSize); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(maxSize); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QFileDevice::skipData(maxSize); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QFileDeviceType::QFileDeviceType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QFileDeviceType::~QFileDeviceType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QFileDevice_QFileDevice_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QFileDevice* w = object(widget)) + { + QFileDeviceType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFileDevice"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QFileDevice_QFileDevice_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +int qt_QFileDevice_error_int_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return int(arg0->error()); +} + +Pointer qt_QFileDevice_fileName_string_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestring(c,arg0->QFileDevice::fileName()) : makestring(c,arg0->fileName()); +} + +Pointer qt_QFileDevice_fileTime_QDateTime_QFileDevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_time) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + QFileDevice::FileTime arg1 = (QFileDevice::FileTime)(param_time); + return makeqtype(c,arg0->fileTime(arg1),"qt.QDateTime"); +} + +bool qt_QFileDevice_flush_bool_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return arg0->flush(); +} + +int qt_QFileDevice_handle_int_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return arg0->handle(); +} + +int qt_QFileDevice_permissions_int_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QFileDevice::permissions()) : int(arg0->permissions()); +} + +bool qt_QFileDevice_resize_bool_QFileDevice_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_sz) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + qint64 arg1 = (int64)(param_sz); + return isMuQtObject(arg0) ? arg0->QFileDevice::resize(arg1) : arg0->resize(arg1); +} + +bool qt_QFileDevice_setFileTime_bool_QFileDevice_QDateTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_newDate, int param_fileTime) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + const QDateTime arg1 = getqtype(param_newDate); + QFileDevice::FileTime arg2 = (QFileDevice::FileTime)(param_fileTime); + return arg0->setFileTime(arg1, arg2); +} + +bool qt_QFileDevice_setPermissions_bool_QFileDevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_permissions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + QFileDevice::Permissions arg1 = (QFileDevice::Permissions)(param_permissions); + return isMuQtObject(arg0) ? arg0->QFileDevice::setPermissions(arg1) : arg0->setPermissions(arg1); +} + +void qt_QFileDevice_unsetError_void_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + arg0->unsetError(); +} + +bool qt_QFileDevice_atEnd_bool_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFileDevice::atEnd() : arg0->atEnd(); +} + +void qt_QFileDevice_close_void_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QFileDevice::close(); + else arg0->close(); +} + +bool qt_QFileDevice_isSequential_bool_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFileDevice::isSequential() : arg0->isSequential(); +} + +int64 qt_QFileDevice_pos_int64_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFileDevice::pos() : arg0->pos(); +} + +bool qt_QFileDevice_seek_bool_QFileDevice_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + qint64 arg1 = (int64)(param_pos); + return isMuQtObject(arg0) ? arg0->QFileDevice::seek(arg1) : arg0->seek(arg1); +} + +int64 qt_QFileDevice_size_int64_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFileDevice::size() : arg0->size(); +} + +int64 qt_QFileDevice_bytesAvailable_int64_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFileDevice::bytesAvailable() : arg0->bytesAvailable(); +} + +int64 qt_QFileDevice_bytesToWrite_int64_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFileDevice::bytesToWrite() : arg0->bytesToWrite(); +} + +bool qt_QFileDevice_canReadLine_bool_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFileDevice::canReadLine() : arg0->canReadLine(); +} + +bool qt_QFileDevice_open_bool_QFileDevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + QIODeviceBase::OpenMode arg1 = (QIODeviceBase::OpenMode)(param_mode); + return isMuQtObject(arg0) ? arg0->QFileDevice::open(arg1) : arg0->open(arg1); +} + +bool qt_QFileDevice_reset_bool_QFileDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFileDevice::reset() : arg0->reset(); +} + +bool qt_QFileDevice_waitForBytesWritten_bool_QFileDevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QFileDevice::waitForBytesWritten(arg1) : arg0->waitForBytesWritten(arg1); +} + +bool qt_QFileDevice_waitForReadyRead_bool_QFileDevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QFileDevice::waitForReadyRead(arg1) : arg0->waitForReadyRead(arg1); +} + +int64 qt_QFileDevice_skipData_int64_QFileDevice_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDevice* arg0 = object(param_this); + qint64 arg1 = (int64)(param_maxSize); + return isMuQtObject(arg0) ? ((MuQt_QFileDevice*)arg0)->skipData_pub_parent(arg1) : ((MuQt_QFileDevice*)arg0)->skipData_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_error0, int) +{ + NODE_RETURN(qt_QFileDevice_error_int_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fileName0, Pointer) +{ + NODE_RETURN(qt_QFileDevice_fileName_string_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fileTime0, Pointer) +{ + NODE_RETURN(qt_QFileDevice_fileTime_QDateTime_QFileDevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_flush0, bool) +{ + NODE_RETURN(qt_QFileDevice_flush_bool_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_handle0, int) +{ + NODE_RETURN(qt_QFileDevice_handle_int_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_permissions0, int) +{ + NODE_RETURN(qt_QFileDevice_permissions_int_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resize0, bool) +{ + NODE_RETURN(qt_QFileDevice_resize_bool_QFileDevice_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_setFileTime0, bool) +{ + NODE_RETURN(qt_QFileDevice_setFileTime_bool_QFileDevice_QDateTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_setPermissions0, bool) +{ + NODE_RETURN(qt_QFileDevice_setPermissions_bool_QFileDevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_unsetError0, void) +{ + qt_QFileDevice_unsetError_void_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_atEnd0, bool) +{ + NODE_RETURN(qt_QFileDevice_atEnd_bool_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_close0, void) +{ + qt_QFileDevice_close_void_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isSequential0, bool) +{ + NODE_RETURN(qt_QFileDevice_isSequential_bool_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pos0, int64) +{ + NODE_RETURN(qt_QFileDevice_pos_int64_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_seek0, bool) +{ + NODE_RETURN(qt_QFileDevice_seek_bool_QFileDevice_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_size0, int64) +{ + NODE_RETURN(qt_QFileDevice_size_int64_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesAvailable0, int64) +{ + NODE_RETURN(qt_QFileDevice_bytesAvailable_int64_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesToWrite0, int64) +{ + NODE_RETURN(qt_QFileDevice_bytesToWrite_int64_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canReadLine0, bool) +{ + NODE_RETURN(qt_QFileDevice_canReadLine_bool_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_open0, bool) +{ + NODE_RETURN(qt_QFileDevice_open_bool_QFileDevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_reset0, bool) +{ + NODE_RETURN(qt_QFileDevice_reset_bool_QFileDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_waitForBytesWritten0, bool) +{ + NODE_RETURN(qt_QFileDevice_waitForBytesWritten_bool_QFileDevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForReadyRead0, bool) +{ + NODE_RETURN(qt_QFileDevice_waitForReadyRead_bool_QFileDevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_skipData0, int64) +{ + NODE_RETURN(qt_QFileDevice_skipData_int64_QFileDevice_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + + + +void +QFileDeviceType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QFileDevice_QFileDevice_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + new Alias(c, "FileError", "int"), + new SymbolicConstant(c, "NoError", "int", Value(int(QFileDevice::NoError))), + new SymbolicConstant(c, "ReadError", "int", Value(int(QFileDevice::ReadError))), + new SymbolicConstant(c, "WriteError", "int", Value(int(QFileDevice::WriteError))), + new SymbolicConstant(c, "FatalError", "int", Value(int(QFileDevice::FatalError))), + new SymbolicConstant(c, "ResourceError", "int", Value(int(QFileDevice::ResourceError))), + new SymbolicConstant(c, "OpenError", "int", Value(int(QFileDevice::OpenError))), + new SymbolicConstant(c, "AbortError", "int", Value(int(QFileDevice::AbortError))), + new SymbolicConstant(c, "TimeOutError", "int", Value(int(QFileDevice::TimeOutError))), + new SymbolicConstant(c, "UnspecifiedError", "int", Value(int(QFileDevice::UnspecifiedError))), + new SymbolicConstant(c, "RemoveError", "int", Value(int(QFileDevice::RemoveError))), + new SymbolicConstant(c, "RenameError", "int", Value(int(QFileDevice::RenameError))), + new SymbolicConstant(c, "PositionError", "int", Value(int(QFileDevice::PositionError))), + new SymbolicConstant(c, "ResizeError", "int", Value(int(QFileDevice::ResizeError))), + new SymbolicConstant(c, "PermissionsError", "int", Value(int(QFileDevice::PermissionsError))), + new SymbolicConstant(c, "CopyError", "int", Value(int(QFileDevice::CopyError))), + new Alias(c, "FileHandleFlag", "int"), + new Alias(c, "FileHandleFlags", "int"), + new SymbolicConstant(c, "AutoCloseHandle", "int", Value(int(QFileDevice::AutoCloseHandle))), + new SymbolicConstant(c, "DontCloseHandle", "int", Value(int(QFileDevice::DontCloseHandle))), + new Alias(c, "Permission", "int"), + new Alias(c, "Permissions", "int"), + new SymbolicConstant(c, "ReadOwner", "int", Value(int(QFileDevice::ReadOwner))), + new SymbolicConstant(c, "WriteOwner", "int", Value(int(QFileDevice::WriteOwner))), + new SymbolicConstant(c, "ExeOwner", "int", Value(int(QFileDevice::ExeOwner))), + new SymbolicConstant(c, "ReadUser", "int", Value(int(QFileDevice::ReadUser))), + new SymbolicConstant(c, "WriteUser", "int", Value(int(QFileDevice::WriteUser))), + new SymbolicConstant(c, "ExeUser", "int", Value(int(QFileDevice::ExeUser))), + new SymbolicConstant(c, "ReadGroup", "int", Value(int(QFileDevice::ReadGroup))), + new SymbolicConstant(c, "WriteGroup", "int", Value(int(QFileDevice::WriteGroup))), + new SymbolicConstant(c, "ExeGroup", "int", Value(int(QFileDevice::ExeGroup))), + new SymbolicConstant(c, "ReadOther", "int", Value(int(QFileDevice::ReadOther))), + new SymbolicConstant(c, "WriteOther", "int", Value(int(QFileDevice::WriteOther))), + new SymbolicConstant(c, "ExeOther", "int", Value(int(QFileDevice::ExeOther))), + // member functions + new Function(c, "error", _n_error0, None, Compiled, qt_QFileDevice_error_int_QFileDevice, Return, "int", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[0] = new MemberFunction(c, "fileName", _n_fileName0, None, Compiled, qt_QFileDevice_fileName_string_QFileDevice, Return, "string", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + new Function(c, "fileTime", _n_fileTime0, None, Compiled, qt_QFileDevice_fileTime_QDateTime_QFileDevice_int, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QFileDevice"), new Param(c, "time", "int"), End), + new Function(c, "flush", _n_flush0, None, Compiled, qt_QFileDevice_flush_bool_QFileDevice, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + new Function(c, "handle", _n_handle0, None, Compiled, qt_QFileDevice_handle_int_QFileDevice, Return, "int", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + // MISSING: map ("uchar *"; QFileDevice this, int64 offset, int64 size, flags QFileDevice::MemoryMapFlags flags) + _func[1] = new MemberFunction(c, "permissions", _n_permissions0, None, Compiled, qt_QFileDevice_permissions_int_QFileDevice, Return, "int", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[2] = new MemberFunction(c, "resize", _n_resize0, None, Compiled, qt_QFileDevice_resize_bool_QFileDevice_int64, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), new Param(c, "sz", "int64"), End), + new Function(c, "setFileTime", _n_setFileTime0, None, Compiled, qt_QFileDevice_setFileTime_bool_QFileDevice_QDateTime_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), new Param(c, "newDate", "qt.QDateTime"), new Param(c, "fileTime", "int"), End), + _func[3] = new MemberFunction(c, "setPermissions", _n_setPermissions0, None, Compiled, qt_QFileDevice_setPermissions_bool_QFileDevice_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), new Param(c, "permissions", "int"), End), + // MISSING: unmap (bool; QFileDevice this, "uchar *" address) + new Function(c, "unsetError", _n_unsetError0, None, Compiled, qt_QFileDevice_unsetError_void_QFileDevice, Return, "void", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[4] = new MemberFunction(c, "atEnd", _n_atEnd0, None, Compiled, qt_QFileDevice_atEnd_bool_QFileDevice, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[5] = new MemberFunction(c, "close", _n_close0, None, Compiled, qt_QFileDevice_close_void_QFileDevice, Return, "void", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[6] = new MemberFunction(c, "isSequential", _n_isSequential0, None, Compiled, qt_QFileDevice_isSequential_bool_QFileDevice, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[7] = new MemberFunction(c, "pos", _n_pos0, None, Compiled, qt_QFileDevice_pos_int64_QFileDevice, Return, "int64", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[8] = new MemberFunction(c, "seek", _n_seek0, None, Compiled, qt_QFileDevice_seek_bool_QFileDevice_int64, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), new Param(c, "pos", "int64"), End), + _func[9] = new MemberFunction(c, "size", _n_size0, None, Compiled, qt_QFileDevice_size_int64_QFileDevice, Return, "int64", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + // MISSING: readData (int64; QFileDevice this, "char *" data, int64 len) // protected + // MISSING: readLineData (int64; QFileDevice this, "char *" data, int64 maxlen) // protected + // MISSING: writeData (int64; QFileDevice this, "const char *" data, int64 len) // protected + _func[10] = new MemberFunction(c, "bytesAvailable", _n_bytesAvailable0, None, Compiled, qt_QFileDevice_bytesAvailable_int64_QFileDevice, Return, "int64", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[11] = new MemberFunction(c, "bytesToWrite", _n_bytesToWrite0, None, Compiled, qt_QFileDevice_bytesToWrite_int64_QFileDevice, Return, "int64", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[12] = new MemberFunction(c, "canReadLine", _n_canReadLine0, None, Compiled, qt_QFileDevice_canReadLine_bool_QFileDevice, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[13] = new MemberFunction(c, "open", _n_open0, None, Compiled, qt_QFileDevice_open_bool_QFileDevice_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), new Param(c, "mode", "int"), End), + _func[14] = new MemberFunction(c, "reset", _n_reset0, None, Compiled, qt_QFileDevice_reset_bool_QFileDevice, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), End), + _func[15] = new MemberFunction(c, "waitForBytesWritten", _n_waitForBytesWritten0, None, Compiled, qt_QFileDevice_waitForBytesWritten_bool_QFileDevice_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), new Param(c, "msecs", "int"), End), + _func[16] = new MemberFunction(c, "waitForReadyRead", _n_waitForReadyRead0, None, Compiled, qt_QFileDevice_waitForReadyRead_bool_QFileDevice_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDevice"), new Param(c, "msecs", "int"), End), + _func[17] = new MemberFunction(c, "skipData", _n_skipData0, None, Compiled, qt_QFileDevice_skipData_int64_QFileDevice_int64, Return, "int64", Parameters, new Param(c, "this", "qt.QFileDevice"), new Param(c, "maxSize", "int64"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QFileDevice::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QFileDialogType.cpp b/src/lib/mu/MuQt6/QFileDialogType.cpp new file mode 100644 index 000000000..a82f9e740 --- /dev/null +++ b/src/lib/mu/MuQt6/QFileDialogType.cpp @@ -0,0 +1,1087 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QFileDialog::~MuQt_QFileDialog() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QFileDialog::MuQt_QFileDialog(Pointer muobj, const CallEnvironment* ce, QWidget * parent, Qt::WindowFlags flags) + : QFileDialog(parent, flags) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFileDialog")); +} + +MuQt_QFileDialog::MuQt_QFileDialog(Pointer muobj, const CallEnvironment* ce, QWidget * parent, const QString & caption, const QString & directory, const QString & filter) + : QFileDialog(parent, caption, directory, filter) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFileDialog")); +} + +void MuQt_QFileDialog::setVisible(bool visible) +{ + if (!_env) { QFileDialog::setVisible(visible); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(visible); + Value rval = _env->call(F, args); + } + else + { + QFileDialog::setVisible(visible); + } +} + +void MuQt_QFileDialog::accept() +{ + if (!_env) { QFileDialog::accept(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QFileDialog::accept(); + } +} + +void MuQt_QFileDialog::changeEvent(QEvent * e) +{ + if (!_env) { QFileDialog::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QFileDialog::changeEvent(e); + } +} + +void MuQt_QFileDialog::done(int result) +{ + if (!_env) { QFileDialog::done(result); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(result); + Value rval = _env->call(F, args); + } + else + { + QFileDialog::done(result); + } +} + +QSize MuQt_QFileDialog::minimumSizeHint() const +{ + if (!_env) return QFileDialog::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QFileDialog::minimumSizeHint(); + } +} + +QSize MuQt_QFileDialog::sizeHint() const +{ + if (!_env) return QFileDialog::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QFileDialog::sizeHint(); + } +} + +void MuQt_QFileDialog::closeEvent(QCloseEvent * e) +{ + if (!_env) { QFileDialog::closeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QFileDialog::closeEvent(e); + } +} + +void MuQt_QFileDialog::contextMenuEvent(QContextMenuEvent * e) +{ + if (!_env) { QFileDialog::contextMenuEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QFileDialog::contextMenuEvent(e); + } +} + +bool MuQt_QFileDialog::eventFilter(QObject * o, QEvent * e) +{ + if (!_env) return QFileDialog::eventFilter(o, e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,o,"qt.QObject")); + args[2] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFileDialog::eventFilter(o, e); + } +} + +void MuQt_QFileDialog::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QFileDialog::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QFileDialog::keyPressEvent(e); + } +} + +void MuQt_QFileDialog::resizeEvent(QResizeEvent * _p15) +{ + if (!_env) { QFileDialog::resizeEvent(_p15); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p15,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QFileDialog::resizeEvent(_p15); + } +} + +void MuQt_QFileDialog::showEvent(QShowEvent * event) +{ + if (!_env) { QFileDialog::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QFileDialog::showEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QFileDialogType::QFileDialogType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QFileDialogType::~QFileDialogType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QFileDialog_QFileDialog_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QFileDialog* w = object(widget)) + { + QFileDialogType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFileDialog"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QFileDialog_QFileDialog_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QFileDialog_QFileDialog_QFileDialog_QFileDialog_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + Qt::WindowFlags arg2 = (Qt::WindowFlags)(param_flags); + setobject(param_this, new MuQt_QFileDialog(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QFileDialog_QFileDialog_QFileDialog_QFileDialog_QWidget_string_string_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, Pointer param_caption, Pointer param_directory, Pointer param_filter) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + const QString arg2 = qstring(param_caption); + const QString arg3 = qstring(param_directory); + const QString arg4 = qstring(param_filter); + setobject(param_this, new MuQt_QFileDialog(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QFileDialog_directory_QDir_QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makeqtype(c,arg0->directory(),"qt.QDir"); +} + +Pointer qt_QFileDialog_directoryUrl_QUrl_QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makeqtype(c,arg0->directoryUrl(),"qt.QUrl"); +} + +int qt_QFileDialog_filter_int_QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return int(arg0->filter()); +} + +Pointer qt_QFileDialog_history_stringBSB_ESB__QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makestringlist(c,arg0->history()); +} + +Pointer qt_QFileDialog_labelText_string_QFileDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_label) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QFileDialog::DialogLabel arg1 = (QFileDialog::DialogLabel)(param_label); + return makestring(c,arg0->labelText(arg1)); +} + +Pointer qt_QFileDialog_mimeTypeFilters_stringBSB_ESB__QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makestringlist(c,arg0->mimeTypeFilters()); +} + +Pointer qt_QFileDialog_nameFilters_stringBSB_ESB__QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makestringlist(c,arg0->nameFilters()); +} + +bool qt_QFileDialog_restoreState_bool_QFileDialog_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_state); + return arg0->restoreState(arg1); +} + +Pointer qt_QFileDialog_saveState_QByteArray_QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makeqtype(c,arg0->saveState(),"qt.QByteArray"); +} + +void qt_QFileDialog_selectFile_void_QFileDialog_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_filename) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QString arg1 = qstring(param_filename); + arg0->selectFile(arg1); +} + +void qt_QFileDialog_selectMimeTypeFilter_void_QFileDialog_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_filter) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QString arg1 = qstring(param_filter); + arg0->selectMimeTypeFilter(arg1); +} + +void qt_QFileDialog_selectNameFilter_void_QFileDialog_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_filter) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QString arg1 = qstring(param_filter); + arg0->selectNameFilter(arg1); +} + +void qt_QFileDialog_selectUrl_void_QFileDialog_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_url); + arg0->selectUrl(arg1); +} + +Pointer qt_QFileDialog_selectedFiles_stringBSB_ESB__QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makestringlist(c,arg0->selectedFiles()); +} + +Pointer qt_QFileDialog_selectedMimeTypeFilter_string_QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makestring(c,arg0->selectedMimeTypeFilter()); +} + +Pointer qt_QFileDialog_selectedNameFilter_string_QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makestring(c,arg0->selectedNameFilter()); +} + +Pointer qt_QFileDialog_selectedUrls_qt__QUrlBSB_ESB__QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makeqtypelist(c,arg0->selectedUrls(),"qt.QUrl"); +} + +void qt_QFileDialog_setDirectory_void_QFileDialog_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_directory) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QString arg1 = qstring(param_directory); + arg0->setDirectory(arg1); +} + +void qt_QFileDialog_setDirectory_void_QFileDialog_QDir(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_directory) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QDir arg1 = getqtype(param_directory); + arg0->setDirectory(arg1); +} + +void qt_QFileDialog_setDirectoryUrl_void_QFileDialog_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_directory) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_directory); + arg0->setDirectoryUrl(arg1); +} + +void qt_QFileDialog_setFilter_void_QFileDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_filters) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QDir::Filters arg1 = (QDir::Filters)(param_filters); + arg0->setFilter(arg1); +} + +void qt_QFileDialog_setHistory_void_QFileDialog_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_paths) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_paths); + arg0->setHistory(arg1); +} + +void qt_QFileDialog_setLabelText_void_QFileDialog_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_label, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QFileDialog::DialogLabel arg1 = (QFileDialog::DialogLabel)(param_label); + const QString arg2 = qstring(param_text); + arg0->setLabelText(arg1, arg2); +} + +void qt_QFileDialog_setMimeTypeFilters_void_QFileDialog_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_filters) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_filters); + arg0->setMimeTypeFilters(arg1); +} + +void qt_QFileDialog_setNameFilter_void_QFileDialog_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_filter) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QString arg1 = qstring(param_filter); + arg0->setNameFilter(arg1); +} + +void qt_QFileDialog_setNameFilters_void_QFileDialog_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_filters) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_filters); + arg0->setNameFilters(arg1); +} + +void qt_QFileDialog_setOption_void_QFileDialog_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QFileDialog::Option arg1 = (QFileDialog::Option)(param_option); + bool arg2 = (bool)(param_on); + arg0->setOption(arg1, arg2); +} + +void qt_QFileDialog_setSidebarUrls_void_QFileDialog_qt__QUrlBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_urls) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + const QList arg1 = qtypelist(param_urls); + arg0->setSidebarUrls(arg1); +} + +Pointer qt_QFileDialog_sidebarUrls_qt__QUrlBSB_ESB__QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return makeqtypelist(c,arg0->sidebarUrls(),"qt.QUrl"); +} + +bool qt_QFileDialog_testOption_bool_QFileDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QFileDialog::Option arg1 = (QFileDialog::Option)(param_option); + return arg0->testOption(arg1); +} + +void qt_QFileDialog_setVisible_void_QFileDialog_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_visible) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + bool arg1 = (bool)(param_visible); + if (isMuQtObject(arg0)) arg0->QFileDialog::setVisible(arg1); + else arg0->setVisible(arg1); +} + +void qt_QFileDialog_accept_void_QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QFileDialog*)arg0)->accept_pub_parent(); + else ((MuQt_QFileDialog*)arg0)->accept_pub(); +} + +void qt_QFileDialog_changeEvent_void_QFileDialog_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QFileDialog*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QFileDialog*)arg0)->changeEvent_pub(arg1); +} + +void qt_QFileDialog_done_void_QFileDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_result) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + int arg1 = (int)(param_result); + if (isMuQtObject(arg0)) ((MuQt_QFileDialog*)arg0)->done_pub_parent(arg1); + else ((MuQt_QFileDialog*)arg0)->done_pub(arg1); +} + +Pointer qt_QFileDialog_minimumSizeHint_QSize_QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QFileDialog::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QFileDialog_sizeHint_QSize_QFileDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QFileDialog::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QFileDialog_closeEvent_void_QFileDialog_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QFileDialog*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QFileDialog*)arg0)->closeEvent_pub(arg1); +} + +void qt_QFileDialog_contextMenuEvent_void_QFileDialog_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QFileDialog*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QFileDialog*)arg0)->contextMenuEvent_pub(arg1); +} + +bool qt_QFileDialog_eventFilter_bool_QFileDialog_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_o, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QObject * arg1 = object(param_o); + QEvent * arg2 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QFileDialog*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QFileDialog*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QFileDialog_keyPressEvent_void_QFileDialog_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QFileDialog*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QFileDialog*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QFileDialog_resizeEvent_void_QFileDialog_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p15) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param__p15); + if (isMuQtObject(arg0)) ((MuQt_QFileDialog*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QFileDialog*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QFileDialog_showEvent_void_QFileDialog_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileDialog* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFileDialog*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QFileDialog*)arg0)->showEvent_pub(arg1); +} + +Pointer qt_QFileDialog_getExistingDirectory_string_QWidget_string_string_int(Mu::Thread& NODE_THREAD, Pointer param_parent, Pointer param_caption, Pointer param_dir, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg0 = object(param_parent); + const QString arg1 = qstring(param_caption); + const QString arg2 = qstring(param_dir); + QFileDialog::Options arg3 = (QFileDialog::Options)(param_options); + return makestring(c,QFileDialog::getExistingDirectory(arg0, arg1, arg2, arg3)); +} + +void qt_QFileDialog_saveFileContent_void_QByteArray_string(Mu::Thread& NODE_THREAD, Pointer param_fileContent, Pointer param_fileNameHint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray arg0 = getqtype(param_fileContent); + const QString arg1 = qstring(param_fileNameHint); + QFileDialog::saveFileContent(arg0, arg1); +} + + +static NODE_IMPLEMENTATION(_n_QFileDialog0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_QFileDialog_QFileDialog_QFileDialog_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QFileDialog1, Pointer) +{ + NODE_RETURN(qt_QFileDialog_QFileDialog_QFileDialog_QFileDialog_QWidget_string_string_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer), NODE_ARG(4, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_directory0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_directory_QDir_QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_directoryUrl0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_directoryUrl_QUrl_QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_filter0, int) +{ + NODE_RETURN(qt_QFileDialog_filter_int_QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_history0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_history_stringBSB_ESB__QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_labelText0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_labelText_string_QFileDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_mimeTypeFilters0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_mimeTypeFilters_stringBSB_ESB__QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nameFilters0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_nameFilters_stringBSB_ESB__QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_restoreState0, bool) +{ + NODE_RETURN(qt_QFileDialog_restoreState_bool_QFileDialog_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_saveState0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_saveState_QByteArray_QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectFile0, void) +{ + qt_QFileDialog_selectFile_void_QFileDialog_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_selectMimeTypeFilter0, void) +{ + qt_QFileDialog_selectMimeTypeFilter_void_QFileDialog_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_selectNameFilter0, void) +{ + qt_QFileDialog_selectNameFilter_void_QFileDialog_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_selectUrl0, void) +{ + qt_QFileDialog_selectUrl_void_QFileDialog_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_selectedFiles0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_selectedFiles_stringBSB_ESB__QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectedMimeTypeFilter0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_selectedMimeTypeFilter_string_QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectedNameFilter0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_selectedNameFilter_string_QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectedUrls0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_selectedUrls_qt__QUrlBSB_ESB__QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setDirectory0, void) +{ + qt_QFileDialog_setDirectory_void_QFileDialog_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setDirectory1, void) +{ + qt_QFileDialog_setDirectory_void_QFileDialog_QDir(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setDirectoryUrl0, void) +{ + qt_QFileDialog_setDirectoryUrl_void_QFileDialog_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFilter0, void) +{ + qt_QFileDialog_setFilter_void_QFileDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setHistory0, void) +{ + qt_QFileDialog_setHistory_void_QFileDialog_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setLabelText0, void) +{ + qt_QFileDialog_setLabelText_void_QFileDialog_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setMimeTypeFilters0, void) +{ + qt_QFileDialog_setMimeTypeFilters_void_QFileDialog_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setNameFilter0, void) +{ + qt_QFileDialog_setNameFilter_void_QFileDialog_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setNameFilters0, void) +{ + qt_QFileDialog_setNameFilters_void_QFileDialog_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setOption0, void) +{ + qt_QFileDialog_setOption_void_QFileDialog_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSidebarUrls0, void) +{ + qt_QFileDialog_setSidebarUrls_void_QFileDialog_qt__QUrlBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sidebarUrls0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_sidebarUrls_qt__QUrlBSB_ESB__QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_testOption0, bool) +{ + NODE_RETURN(qt_QFileDialog_testOption_bool_QFileDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setVisible0, void) +{ + qt_QFileDialog_setVisible_void_QFileDialog_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_accept0, void) +{ + qt_QFileDialog_accept_void_QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QFileDialog_changeEvent_void_QFileDialog_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_done0, void) +{ + qt_QFileDialog_done_void_QFileDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_minimumSizeHint_QSize_QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_sizeHint_QSize_QFileDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QFileDialog_closeEvent_void_QFileDialog_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QFileDialog_contextMenuEvent_void_QFileDialog_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QFileDialog_eventFilter_bool_QFileDialog_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QFileDialog_keyPressEvent_void_QFileDialog_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QFileDialog_resizeEvent_void_QFileDialog_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QFileDialog_showEvent_void_QFileDialog_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_getExistingDirectory0, Pointer) +{ + NODE_RETURN(qt_QFileDialog_getExistingDirectory_string_QWidget_string_string_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_saveFileContent0, void) +{ + qt_QFileDialog_saveFileContent_void_QByteArray_string(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QFileDialogType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QFileDialog_QFileDialog_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QFileDialog", _n_QFileDialog0, None, Compiled, qt_QFileDialog_QFileDialog_QFileDialog_QFileDialog_QWidget_int, Return, "qt.QFileDialog", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "parent", "qt.QWidget"), new Param(c, "flags", "int"), End), + new Function(c, "QFileDialog", _n_QFileDialog1, None, Compiled, qt_QFileDialog_QFileDialog_QFileDialog_QFileDialog_QWidget_string_string_string, Return, "qt.QFileDialog", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "parent", "qt.QWidget"), new Param(c, "caption", "string"), new Param(c, "directory", "string"), new Param(c, "filter", "string"), End), + // PROP: acceptMode (flags QFileDialog::AcceptMode; QFileDialog this) + // PROP: defaultSuffix (string; QFileDialog this) + new Function(c, "directory", _n_directory0, None, Compiled, qt_QFileDialog_directory_QDir_QFileDialog, Return, "qt.QDir", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + new Function(c, "directoryUrl", _n_directoryUrl0, None, Compiled, qt_QFileDialog_directoryUrl_QUrl_QFileDialog, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + // PROP: fileMode (flags QFileDialog::FileMode; QFileDialog this) + new Function(c, "filter", _n_filter0, None, Compiled, qt_QFileDialog_filter_int_QFileDialog, Return, "int", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + new Function(c, "history", _n_history0, None, Compiled, qt_QFileDialog_history_stringBSB_ESB__QFileDialog, Return, "string[]", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + // MISSING: iconProvider ("QAbstractFileIconProvider *"; QFileDialog this) + // MISSING: itemDelegate ("QAbstractItemDelegate *"; QFileDialog this) + new Function(c, "labelText", _n_labelText0, None, Compiled, qt_QFileDialog_labelText_string_QFileDialog_int, Return, "string", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "label", "int"), End), + new Function(c, "mimeTypeFilters", _n_mimeTypeFilters0, None, Compiled, qt_QFileDialog_mimeTypeFilters_stringBSB_ESB__QFileDialog, Return, "string[]", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + new Function(c, "nameFilters", _n_nameFilters0, None, Compiled, qt_QFileDialog_nameFilters_stringBSB_ESB__QFileDialog, Return, "string[]", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + // MISSING: open (void; QFileDialog this, QObject receiver, "const char *" member) + // PROP: options (flags QFileDialog::Options; QFileDialog this) + // MISSING: proxyModel ("QAbstractProxyModel *"; QFileDialog this) + new Function(c, "restoreState", _n_restoreState0, None, Compiled, qt_QFileDialog_restoreState_bool_QFileDialog_QByteArray, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "state", "qt.QByteArray"), End), + new Function(c, "saveState", _n_saveState0, None, Compiled, qt_QFileDialog_saveState_QByteArray_QFileDialog, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + new Function(c, "selectFile", _n_selectFile0, None, Compiled, qt_QFileDialog_selectFile_void_QFileDialog_string, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "filename", "string"), End), + new Function(c, "selectMimeTypeFilter", _n_selectMimeTypeFilter0, None, Compiled, qt_QFileDialog_selectMimeTypeFilter_void_QFileDialog_string, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "filter", "string"), End), + new Function(c, "selectNameFilter", _n_selectNameFilter0, None, Compiled, qt_QFileDialog_selectNameFilter_void_QFileDialog_string, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "filter", "string"), End), + new Function(c, "selectUrl", _n_selectUrl0, None, Compiled, qt_QFileDialog_selectUrl_void_QFileDialog_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "url", "qt.QUrl"), End), + new Function(c, "selectedFiles", _n_selectedFiles0, None, Compiled, qt_QFileDialog_selectedFiles_stringBSB_ESB__QFileDialog, Return, "string[]", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + new Function(c, "selectedMimeTypeFilter", _n_selectedMimeTypeFilter0, None, Compiled, qt_QFileDialog_selectedMimeTypeFilter_string_QFileDialog, Return, "string", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + new Function(c, "selectedNameFilter", _n_selectedNameFilter0, None, Compiled, qt_QFileDialog_selectedNameFilter_string_QFileDialog, Return, "string", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + new Function(c, "selectedUrls", _n_selectedUrls0, None, Compiled, qt_QFileDialog_selectedUrls_qt__QUrlBSB_ESB__QFileDialog, Return, "qt.QUrl[]", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + // PROP: setAcceptMode (void; QFileDialog this, flags QFileDialog::AcceptMode mode) + // PROP: setDefaultSuffix (void; QFileDialog this, string suffix) + new Function(c, "setDirectory", _n_setDirectory0, None, Compiled, qt_QFileDialog_setDirectory_void_QFileDialog_string, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "directory", "string"), End), + new Function(c, "setDirectory", _n_setDirectory1, None, Compiled, qt_QFileDialog_setDirectory_void_QFileDialog_QDir, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "directory", "qt.QDir"), End), + new Function(c, "setDirectoryUrl", _n_setDirectoryUrl0, None, Compiled, qt_QFileDialog_setDirectoryUrl_void_QFileDialog_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "directory", "qt.QUrl"), End), + // PROP: setFileMode (void; QFileDialog this, flags QFileDialog::FileMode mode) + new Function(c, "setFilter", _n_setFilter0, None, Compiled, qt_QFileDialog_setFilter_void_QFileDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "filters", "int"), End), + new Function(c, "setHistory", _n_setHistory0, None, Compiled, qt_QFileDialog_setHistory_void_QFileDialog_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "paths", "string[]"), End), + // MISSING: setIconProvider (void; QFileDialog this, "QAbstractFileIconProvider *" provider) + // MISSING: setItemDelegate (void; QFileDialog this, "QAbstractItemDelegate *" delegate) + new Function(c, "setLabelText", _n_setLabelText0, None, Compiled, qt_QFileDialog_setLabelText_void_QFileDialog_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "label", "int"), new Param(c, "text", "string"), End), + new Function(c, "setMimeTypeFilters", _n_setMimeTypeFilters0, None, Compiled, qt_QFileDialog_setMimeTypeFilters_void_QFileDialog_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "filters", "string[]"), End), + new Function(c, "setNameFilter", _n_setNameFilter0, None, Compiled, qt_QFileDialog_setNameFilter_void_QFileDialog_string, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "filter", "string"), End), + new Function(c, "setNameFilters", _n_setNameFilters0, None, Compiled, qt_QFileDialog_setNameFilters_void_QFileDialog_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "filters", "string[]"), End), + new Function(c, "setOption", _n_setOption0, None, Compiled, qt_QFileDialog_setOption_void_QFileDialog_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "option", "int"), new Param(c, "on", "bool"), End), + // PROP: setOptions (void; QFileDialog this, flags QFileDialog::Options options) + // MISSING: setProxyModel (void; QFileDialog this, "QAbstractProxyModel *" proxyModel) + new Function(c, "setSidebarUrls", _n_setSidebarUrls0, None, Compiled, qt_QFileDialog_setSidebarUrls_void_QFileDialog_qt__QUrlBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "urls", "qt.QUrl[]"), End), + // PROP: setSupportedSchemes (void; QFileDialog this, string[] schemes) + // PROP: setViewMode (void; QFileDialog this, flags QFileDialog::ViewMode mode) + new Function(c, "sidebarUrls", _n_sidebarUrls0, None, Compiled, qt_QFileDialog_sidebarUrls_qt__QUrlBSB_ESB__QFileDialog, Return, "qt.QUrl[]", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + // PROP: supportedSchemes (string[]; QFileDialog this) + new Function(c, "testOption", _n_testOption0, None, Compiled, qt_QFileDialog_testOption_bool_QFileDialog_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "option", "int"), End), + // PROP: viewMode (flags QFileDialog::ViewMode; QFileDialog this) + _func[0] = new MemberFunction(c, "setVisible", _n_setVisible0, None, Compiled, qt_QFileDialog_setVisible_void_QFileDialog_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "visible", "bool"), End), + _func[1] = new MemberFunction(c, "accept", _n_accept0, None, Compiled, qt_QFileDialog_accept_void_QFileDialog, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + _func[2] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QFileDialog_changeEvent_void_QFileDialog_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "done", _n_done0, None, Compiled, qt_QFileDialog_done_void_QFileDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "result", "int"), End), + _func[4] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QFileDialog_minimumSizeHint_QSize_QFileDialog, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + _func[5] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QFileDialog_sizeHint_QSize_QFileDialog, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QFileDialog"), End), + _func[6] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QFileDialog_closeEvent_void_QFileDialog_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "e", "qt.QCloseEvent"), End), + _func[7] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QFileDialog_contextMenuEvent_void_QFileDialog_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "e", "qt.QContextMenuEvent"), End), + _func[8] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QFileDialog_eventFilter_bool_QFileDialog_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "o", "qt.QObject"), new Param(c, "e", "qt.QEvent"), End), + _func[9] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QFileDialog_keyPressEvent_void_QFileDialog_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[10] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QFileDialog_resizeEvent_void_QFileDialog_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "_p15", "qt.QResizeEvent"), End), + _func[11] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QFileDialog_showEvent_void_QFileDialog_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFileDialog"), new Param(c, "event", "qt.QShowEvent"), End), + // static functions + new Function(c, "getExistingDirectory", _n_getExistingDirectory0, None, Compiled, qt_QFileDialog_getExistingDirectory_string_QWidget_string_string_int, Return, "string", Parameters, new Param(c, "parent", "qt.QWidget"), new Param(c, "caption", "string"), new Param(c, "dir", "string"), new Param(c, "options", "int", Value((int)QFileDialog::ShowDirsOnly)), End), + new Function(c, "saveFileContent", _n_saveFileContent0, None, Compiled, qt_QFileDialog_saveFileContent_void_QByteArray_string, Return, "void", Parameters, new Param(c, "fileContent", "qt.QByteArray"), new Param(c, "fileNameHint", "string"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QFileDialog::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QFileInfoType.cpp b/src/lib/mu/MuQt6/QFileInfoType.cpp new file mode 100644 index 000000000..973f6b0a1 --- /dev/null +++ b/src/lib/mu/MuQt6/QFileInfoType.cpp @@ -0,0 +1,903 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QFileInfoType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QFileInfoType::QFileInfoType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QFileInfoType::~QFileInfoType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QFileInfoType::Instance* i = new QFileInfoType::Instance((Class*)NODE_THIS.type()); + QFileInfoType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QFileInfoType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QFileInfoType::finalizer, 0, 0, 0); +} + +void +QFileInfoType::finalizer (void* obj, void* data) +{ + QFileInfoType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QFileInfo_QFileInfo_QFileInfo_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QFileInfo()); + return param_this; +} + +Pointer qt_QFileInfo_QFileInfo_QFileInfo_QFileInfo_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_file) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_file); + setqtype(param_this,QFileInfo(arg1)); + return param_this; +} + +Pointer qt_QFileInfo_QFileInfo_QFileInfo_QFileInfo_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dir, Pointer param_file) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDir arg1 = getqtype(param_dir); + const QString arg2 = qstring(param_file); + setqtype(param_this,QFileInfo(arg1, arg2)); + return param_this; +} + +Pointer qt_QFileInfo_absoluteDir_QDir_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makeqtype(c,arg0.absoluteDir(),"qt.QDir"); +} + +Pointer qt_QFileInfo_absoluteFilePath_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.absoluteFilePath()); +} + +Pointer qt_QFileInfo_absolutePath_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.absolutePath()); +} + +Pointer qt_QFileInfo_baseName_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.baseName()); +} + +Pointer qt_QFileInfo_birthTime_QDateTime_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makeqtype(c,arg0.birthTime(),"qt.QDateTime"); +} + +Pointer qt_QFileInfo_bundleName_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.bundleName()); +} + +bool qt_QFileInfo_caching_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.caching(); +} + +Pointer qt_QFileInfo_canonicalFilePath_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.canonicalFilePath()); +} + +Pointer qt_QFileInfo_canonicalPath_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.canonicalPath()); +} + +Pointer qt_QFileInfo_completeBaseName_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.completeBaseName()); +} + +Pointer qt_QFileInfo_completeSuffix_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.completeSuffix()); +} + +Pointer qt_QFileInfo_dir_QDir_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makeqtype(c,arg0.dir(),"qt.QDir"); +} + +bool qt_QFileInfo_exists_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.exists(); +} + +Pointer qt_QFileInfo_fileName_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.fileName()); +} + +Pointer qt_QFileInfo_filePath_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.filePath()); +} + +Pointer qt_QFileInfo_fileTime_QDateTime_QFileInfo_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_time) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + QFile::FileTime arg1 = (QFile::FileTime)(param_time); + return makeqtype(c,arg0.fileTime(arg1),"qt.QDateTime"); +} + +Pointer qt_QFileInfo_group_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.group()); +} + +int qt_QFileInfo_groupId_int_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.groupId(); +} + +bool qt_QFileInfo_isAbsolute_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isAbsolute(); +} + +bool qt_QFileInfo_isAlias_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isAlias(); +} + +bool qt_QFileInfo_isBundle_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isBundle(); +} + +bool qt_QFileInfo_isDir_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isDir(); +} + +bool qt_QFileInfo_isExecutable_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isExecutable(); +} + +bool qt_QFileInfo_isFile_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isFile(); +} + +bool qt_QFileInfo_isHidden_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isHidden(); +} + +bool qt_QFileInfo_isJunction_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isJunction(); +} + +bool qt_QFileInfo_isNativePath_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isNativePath(); +} + +bool qt_QFileInfo_isReadable_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isReadable(); +} + +bool qt_QFileInfo_isRelative_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isRelative(); +} + +bool qt_QFileInfo_isRoot_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isRoot(); +} + +bool qt_QFileInfo_isShortcut_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isShortcut(); +} + +bool qt_QFileInfo_isSymLink_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isSymLink(); +} + +bool qt_QFileInfo_isSymbolicLink_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isSymbolicLink(); +} + +bool qt_QFileInfo_isWritable_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.isWritable(); +} + +Pointer qt_QFileInfo_junctionTarget_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.junctionTarget()); +} + +Pointer qt_QFileInfo_lastModified_QDateTime_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makeqtype(c,arg0.lastModified(),"qt.QDateTime"); +} + +Pointer qt_QFileInfo_lastRead_QDateTime_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makeqtype(c,arg0.lastRead(),"qt.QDateTime"); +} + +bool qt_QFileInfo_makeAbsolute_bool_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileInfo& arg0 = getqtype(param_this); + return arg0.makeAbsolute(); +} + +Pointer qt_QFileInfo_metadataChangeTime_QDateTime_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makeqtype(c,arg0.metadataChangeTime(),"qt.QDateTime"); +} + +Pointer qt_QFileInfo_owner_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.owner()); +} + +int qt_QFileInfo_ownerId_int_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.ownerId(); +} + +Pointer qt_QFileInfo_path_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.path()); +} + +bool qt_QFileInfo_permission_bool_QFileInfo_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_permissions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + QFile::Permissions arg1 = (QFile::Permissions)(param_permissions); + return arg0.permission(arg1); +} + +int qt_QFileInfo_permissions_int_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return int(arg0.permissions()); +} + +void qt_QFileInfo_refresh_void_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileInfo& arg0 = getqtype(param_this); + arg0.refresh(); + setqtype(param_this,arg0); +} + +void qt_QFileInfo_setCaching_void_QFileInfo_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileInfo& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setCaching(arg1); + setqtype(param_this,arg0); +} + +void qt_QFileInfo_setFile_void_QFileInfo_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_file) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileInfo& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_file); + arg0.setFile(arg1); + setqtype(param_this,arg0); +} + +void qt_QFileInfo_setFile_void_QFileInfo_QDir_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dir, Pointer param_file) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileInfo& arg0 = getqtype(param_this); + const QDir arg1 = getqtype(param_dir); + const QString arg2 = qstring(param_file); + arg0.setFile(arg1, arg2); + setqtype(param_this,arg0); +} + +int64 qt_QFileInfo_size_int64_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return arg0.size(); +} + +void qt_QFileInfo_stat_void_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileInfo& arg0 = getqtype(param_this); + arg0.stat(); + setqtype(param_this,arg0); +} + +Pointer qt_QFileInfo_suffix_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.suffix()); +} + +void qt_QFileInfo_swap_void_QFileInfo_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileInfo& arg0 = getqtype(param_this); + QFileInfo arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QFileInfo_symLinkTarget_string_QFileInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFileInfo& arg0 = getqtype(param_this); + return makestring(c,arg0.symLinkTarget()); +} + +bool qt_QFileInfo_exists_bool_string(Mu::Thread& NODE_THREAD, Pointer param_file) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_file); + return QFileInfo::exists(arg0); +} + + +static NODE_IMPLEMENTATION(_n_QFileInfo0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_QFileInfo_QFileInfo_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QFileInfo1, Pointer) +{ + NODE_RETURN(qt_QFileInfo_QFileInfo_QFileInfo_QFileInfo_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QFileInfo2, Pointer) +{ + NODE_RETURN(qt_QFileInfo_QFileInfo_QFileInfo_QFileInfo_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_absoluteDir0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_absoluteDir_QDir_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_absoluteFilePath0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_absoluteFilePath_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_absolutePath0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_absolutePath_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_baseName0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_baseName_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_birthTime0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_birthTime_QDateTime_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bundleName0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_bundleName_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_caching0, bool) +{ + NODE_RETURN(qt_QFileInfo_caching_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canonicalFilePath0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_canonicalFilePath_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canonicalPath0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_canonicalPath_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_completeBaseName0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_completeBaseName_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_completeSuffix0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_completeSuffix_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dir0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_dir_QDir_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exists0, bool) +{ + NODE_RETURN(qt_QFileInfo_exists_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fileName0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_fileName_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_filePath0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_filePath_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fileTime0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_fileTime_QDateTime_QFileInfo_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_group0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_group_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_groupId0, int) +{ + NODE_RETURN(qt_QFileInfo_groupId_int_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isAbsolute0, bool) +{ + NODE_RETURN(qt_QFileInfo_isAbsolute_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isAlias0, bool) +{ + NODE_RETURN(qt_QFileInfo_isAlias_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isBundle0, bool) +{ + NODE_RETURN(qt_QFileInfo_isBundle_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isDir0, bool) +{ + NODE_RETURN(qt_QFileInfo_isDir_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isExecutable0, bool) +{ + NODE_RETURN(qt_QFileInfo_isExecutable_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isFile0, bool) +{ + NODE_RETURN(qt_QFileInfo_isFile_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isHidden0, bool) +{ + NODE_RETURN(qt_QFileInfo_isHidden_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isJunction0, bool) +{ + NODE_RETURN(qt_QFileInfo_isJunction_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNativePath0, bool) +{ + NODE_RETURN(qt_QFileInfo_isNativePath_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isReadable0, bool) +{ + NODE_RETURN(qt_QFileInfo_isReadable_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRelative0, bool) +{ + NODE_RETURN(qt_QFileInfo_isRelative_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRoot0, bool) +{ + NODE_RETURN(qt_QFileInfo_isRoot_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isShortcut0, bool) +{ + NODE_RETURN(qt_QFileInfo_isShortcut_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSymLink0, bool) +{ + NODE_RETURN(qt_QFileInfo_isSymLink_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSymbolicLink0, bool) +{ + NODE_RETURN(qt_QFileInfo_isSymbolicLink_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isWritable0, bool) +{ + NODE_RETURN(qt_QFileInfo_isWritable_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_junctionTarget0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_junctionTarget_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_lastModified0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_lastModified_QDateTime_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_lastRead0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_lastRead_QDateTime_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_makeAbsolute0, bool) +{ + NODE_RETURN(qt_QFileInfo_makeAbsolute_bool_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_metadataChangeTime0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_metadataChangeTime_QDateTime_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_owner0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_owner_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_ownerId0, int) +{ + NODE_RETURN(qt_QFileInfo_ownerId_int_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_path0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_path_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_permission0, bool) +{ + NODE_RETURN(qt_QFileInfo_permission_bool_QFileInfo_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_permissions0, int) +{ + NODE_RETURN(qt_QFileInfo_permissions_int_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_refresh0, void) +{ + qt_QFileInfo_refresh_void_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCaching0, void) +{ + qt_QFileInfo_setCaching_void_QFileInfo_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setFile0, void) +{ + qt_QFileInfo_setFile_void_QFileInfo_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFile1, void) +{ + qt_QFileInfo_setFile_void_QFileInfo_QDir_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_size0, int64) +{ + NODE_RETURN(qt_QFileInfo_size_int64_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_stat0, void) +{ + qt_QFileInfo_stat_void_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_suffix0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_suffix_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QFileInfo_swap_void_QFileInfo_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_symLinkTarget0, Pointer) +{ + NODE_RETURN(qt_QFileInfo_symLinkTarget_string_QFileInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exists1, bool) +{ + NODE_RETURN(qt_QFileInfo_exists_bool_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + + + +void +QFileInfoType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QFileInfo", _n_QFileInfo0, None, Compiled, qt_QFileInfo_QFileInfo_QFileInfo_QFileInfo, Return, "qt.QFileInfo", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "QFileInfo", _n_QFileInfo1, None, Compiled, qt_QFileInfo_QFileInfo_QFileInfo_QFileInfo_string, Return, "qt.QFileInfo", Parameters, new Param(c, "this", "qt.QFileInfo"), new Param(c, "file", "string"), End), + new Function(c, "QFileInfo", _n_QFileInfo2, None, Compiled, qt_QFileInfo_QFileInfo_QFileInfo_QFileInfo_QDir_string, Return, "qt.QFileInfo", Parameters, new Param(c, "this", "qt.QFileInfo"), new Param(c, "dir", "qt.QDir"), new Param(c, "file", "string"), End), + // MISSING: QFileInfo (QFileInfo; QFileInfo this, QFileInfo fileinfo) + new Function(c, "absoluteDir", _n_absoluteDir0, None, Compiled, qt_QFileInfo_absoluteDir_QDir_QFileInfo, Return, "qt.QDir", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "absoluteFilePath", _n_absoluteFilePath0, None, Compiled, qt_QFileInfo_absoluteFilePath_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "absolutePath", _n_absolutePath0, None, Compiled, qt_QFileInfo_absolutePath_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "baseName", _n_baseName0, None, Compiled, qt_QFileInfo_baseName_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "birthTime", _n_birthTime0, None, Compiled, qt_QFileInfo_birthTime_QDateTime_QFileInfo, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "bundleName", _n_bundleName0, None, Compiled, qt_QFileInfo_bundleName_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "caching", _n_caching0, None, Compiled, qt_QFileInfo_caching_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "canonicalFilePath", _n_canonicalFilePath0, None, Compiled, qt_QFileInfo_canonicalFilePath_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "canonicalPath", _n_canonicalPath0, None, Compiled, qt_QFileInfo_canonicalPath_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "completeBaseName", _n_completeBaseName0, None, Compiled, qt_QFileInfo_completeBaseName_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "completeSuffix", _n_completeSuffix0, None, Compiled, qt_QFileInfo_completeSuffix_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "dir", _n_dir0, None, Compiled, qt_QFileInfo_dir_QDir_QFileInfo, Return, "qt.QDir", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "exists", _n_exists0, None, Compiled, qt_QFileInfo_exists_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "fileName", _n_fileName0, None, Compiled, qt_QFileInfo_fileName_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "filePath", _n_filePath0, None, Compiled, qt_QFileInfo_filePath_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "fileTime", _n_fileTime0, None, Compiled, qt_QFileInfo_fileTime_QDateTime_QFileInfo_int, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QFileInfo"), new Param(c, "time", "int"), End), + new Function(c, "group", _n_group0, None, Compiled, qt_QFileInfo_group_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "groupId", _n_groupId0, None, Compiled, qt_QFileInfo_groupId_int_QFileInfo, Return, "int", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isAbsolute", _n_isAbsolute0, None, Compiled, qt_QFileInfo_isAbsolute_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isAlias", _n_isAlias0, None, Compiled, qt_QFileInfo_isAlias_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isBundle", _n_isBundle0, None, Compiled, qt_QFileInfo_isBundle_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isDir", _n_isDir0, None, Compiled, qt_QFileInfo_isDir_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isExecutable", _n_isExecutable0, None, Compiled, qt_QFileInfo_isExecutable_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isFile", _n_isFile0, None, Compiled, qt_QFileInfo_isFile_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isHidden", _n_isHidden0, None, Compiled, qt_QFileInfo_isHidden_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isJunction", _n_isJunction0, None, Compiled, qt_QFileInfo_isJunction_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isNativePath", _n_isNativePath0, None, Compiled, qt_QFileInfo_isNativePath_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isReadable", _n_isReadable0, None, Compiled, qt_QFileInfo_isReadable_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isRelative", _n_isRelative0, None, Compiled, qt_QFileInfo_isRelative_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isRoot", _n_isRoot0, None, Compiled, qt_QFileInfo_isRoot_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isShortcut", _n_isShortcut0, None, Compiled, qt_QFileInfo_isShortcut_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isSymLink", _n_isSymLink0, None, Compiled, qt_QFileInfo_isSymLink_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isSymbolicLink", _n_isSymbolicLink0, None, Compiled, qt_QFileInfo_isSymbolicLink_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "isWritable", _n_isWritable0, None, Compiled, qt_QFileInfo_isWritable_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "junctionTarget", _n_junctionTarget0, None, Compiled, qt_QFileInfo_junctionTarget_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "lastModified", _n_lastModified0, None, Compiled, qt_QFileInfo_lastModified_QDateTime_QFileInfo, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "lastRead", _n_lastRead0, None, Compiled, qt_QFileInfo_lastRead_QDateTime_QFileInfo, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "makeAbsolute", _n_makeAbsolute0, None, Compiled, qt_QFileInfo_makeAbsolute_bool_QFileInfo, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "metadataChangeTime", _n_metadataChangeTime0, None, Compiled, qt_QFileInfo_metadataChangeTime_QDateTime_QFileInfo, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "owner", _n_owner0, None, Compiled, qt_QFileInfo_owner_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "ownerId", _n_ownerId0, None, Compiled, qt_QFileInfo_ownerId_int_QFileInfo, Return, "int", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "path", _n_path0, None, Compiled, qt_QFileInfo_path_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "permission", _n_permission0, None, Compiled, qt_QFileInfo_permission_bool_QFileInfo_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFileInfo"), new Param(c, "permissions", "int"), End), + new Function(c, "permissions", _n_permissions0, None, Compiled, qt_QFileInfo_permissions_int_QFileInfo, Return, "int", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "refresh", _n_refresh0, None, Compiled, qt_QFileInfo_refresh_void_QFileInfo, Return, "void", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "setCaching", _n_setCaching0, None, Compiled, qt_QFileInfo_setCaching_void_QFileInfo_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFileInfo"), new Param(c, "enable", "bool"), End), + new Function(c, "setFile", _n_setFile0, None, Compiled, qt_QFileInfo_setFile_void_QFileInfo_string, Return, "void", Parameters, new Param(c, "this", "qt.QFileInfo"), new Param(c, "file", "string"), End), + new Function(c, "setFile", _n_setFile1, None, Compiled, qt_QFileInfo_setFile_void_QFileInfo_QDir_string, Return, "void", Parameters, new Param(c, "this", "qt.QFileInfo"), new Param(c, "dir", "qt.QDir"), new Param(c, "file", "string"), End), + new Function(c, "size", _n_size0, None, Compiled, qt_QFileInfo_size_int64_QFileInfo, Return, "int64", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "stat", _n_stat0, None, Compiled, qt_QFileInfo_stat_void_QFileInfo, Return, "void", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "suffix", _n_suffix0, None, Compiled, qt_QFileInfo_suffix_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QFileInfo_swap_void_QFileInfo_QFileInfo, Return, "void", Parameters, new Param(c, "this", "qt.QFileInfo"), new Param(c, "other", "qt.QFileInfo"), End), + new Function(c, "symLinkTarget", _n_symLinkTarget0, None, Compiled, qt_QFileInfo_symLinkTarget_string_QFileInfo, Return, "string", Parameters, new Param(c, "this", "qt.QFileInfo"), End), + // static functions + new Function(c, "exists", _n_exists1, None, Compiled, qt_QFileInfo_exists_bool_string, Return, "bool", Parameters, new Param(c, "file", "string"), End), + EndArguments); +globalScope()->addSymbols( + // MISSING: = (QFileInfo; QFileInfo this, QFileInfo fileinfo) + // MISSING: = (QFileInfo; QFileInfo this, "QFileInfo & &" other) + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QFileOpenEventType.cpp b/src/lib/mu/MuQt6/QFileOpenEventType.cpp new file mode 100644 index 000000000..e8f6d1d9e --- /dev/null +++ b/src/lib/mu/MuQt6/QFileOpenEventType.cpp @@ -0,0 +1,132 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QFileOpenEventType::QFileOpenEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QFileOpenEventType::~QFileOpenEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QFileOpenEvent_file_string_QFileOpenEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileOpenEvent * arg0 = getqpointer(param_this); + return makestring(c,arg0->file()); +} + +Pointer qt_QFileOpenEvent_url_QUrl_QFileOpenEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFileOpenEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->url(),"qt.QUrl"); +} + + +static NODE_IMPLEMENTATION(_n_file0, Pointer) +{ + NODE_RETURN(qt_QFileOpenEvent_file_string_QFileOpenEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_url0, Pointer) +{ + NODE_RETURN(qt_QFileOpenEvent_url_QUrl_QFileOpenEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QFileOpenEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "file", _n_file0, None, Compiled, qt_QFileOpenEvent_file_string_QFileOpenEvent, Return, "string", Parameters, new Param(c, "this", "qt.QFileOpenEvent"), End), + new Function(c, "url", _n_url0, None, Compiled, qt_QFileOpenEvent_url_QUrl_QFileOpenEvent, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QFileOpenEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QFileType.cpp b/src/lib/mu/MuQt6/QFileType.cpp new file mode 100644 index 000000000..6f02642fd --- /dev/null +++ b/src/lib/mu/MuQt6/QFileType.cpp @@ -0,0 +1,862 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QFile::~MuQt_QFile() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QFile::MuQt_QFile(Pointer muobj, const CallEnvironment* ce) + : QFile() +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFile")); +} + +MuQt_QFile::MuQt_QFile(Pointer muobj, const CallEnvironment* ce, const QString & name) + : QFile(name) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFile")); +} + +MuQt_QFile::MuQt_QFile(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QFile(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFile")); +} + +MuQt_QFile::MuQt_QFile(Pointer muobj, const CallEnvironment* ce, const QString & name, QObject * parent) + : QFile(name, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFile")); +} + +QString MuQt_QFile::fileName() const +{ + if (!_env) return QFile::fileName(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstring(rval._Pointer); + } + else + { + return QFile::fileName(); + } +} + +bool MuQt_QFile::open(QIODeviceBase::OpenMode mode) +{ + if (!_env) return QFile::open(mode); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(mode)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFile::open(mode); + } +} + +QFileDevice::Permissions MuQt_QFile::permissions() const +{ + if (!_env) return QFile::permissions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QFileDevice::Permissions)(rval._int); + } + else + { + return QFile::permissions(); + } +} + +bool MuQt_QFile::resize(qint64 sz) +{ + if (!_env) return QFile::resize(sz); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(sz); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFile::resize(sz); + } +} + +qint64 MuQt_QFile::size() const +{ + if (!_env) return QFile::size(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QFile::size(); + } +} + +bool MuQt_QFile::atEnd() const +{ + if (!_env) return QFile::atEnd(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFile::atEnd(); + } +} + +void MuQt_QFile::close() +{ + if (!_env) { QFile::close(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QFile::close(); + } +} + +bool MuQt_QFile::isSequential() const +{ + if (!_env) return QFile::isSequential(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFile::isSequential(); + } +} + +qint64 MuQt_QFile::pos() const +{ + if (!_env) return QFile::pos(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QFile::pos(); + } +} + +bool MuQt_QFile::seek(qint64 pos) +{ + if (!_env) return QFile::seek(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(pos); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFile::seek(pos); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QFileType::QFileType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QFileType::~QFileType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QFile_QFile_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QFile* w = object(widget)) + { + QFileType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFile"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QFile_QFile_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QFile_QFile_QFile_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setobject(param_this, new MuQt_QFile(param_this, NODE_THREAD.process()->callEnv())); + return param_this; +} + +Pointer qt_QFile_QFile_QFile_QFile_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_name); + setobject(param_this, new MuQt_QFile(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QFile_QFile_QFile_QFile_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QFile(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QFile_QFile_QFile_QFile_string_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_name); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QFile(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +bool qt_QFile_copy_bool_QFile_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_newName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + const QString arg1 = qstring(param_newName); + return arg0->copy(arg1); +} + +bool qt_QFile_exists_bool_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + return arg0->exists(); +} + +bool qt_QFile_link_bool_QFile_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_linkName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + const QString arg1 = qstring(param_linkName); + return arg0->link(arg1); +} + +bool qt_QFile_moveToTrash_bool_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + return arg0->moveToTrash(); +} + +bool qt_QFile_open_bool_QFile_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode, int param_permissions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + QIODeviceBase::OpenMode arg1 = (QIODeviceBase::OpenMode)(param_mode); + QFileDevice::Permissions arg2 = (QFileDevice::Permissions)(param_permissions); + return arg0->open(arg1, arg2); +} + +bool qt_QFile_open_bool_QFile_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_fd, int param_mode, int param_handleFlags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + int arg1 = (int)(param_fd); + QIODeviceBase::OpenMode arg2 = (QIODeviceBase::OpenMode)(param_mode); + QFileDevice::FileHandleFlags arg3 = (QFileDevice::FileHandleFlags)(param_handleFlags); + return arg0->open(arg1, arg2, arg3); +} + +bool qt_QFile_remove_bool_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + return arg0->remove(); +} + +bool qt_QFile_rename_bool_QFile_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_newName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + const QString arg1 = qstring(param_newName); + return arg0->rename(arg1); +} + +void qt_QFile_setFileName_void_QFile_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + const QString arg1 = qstring(param_name); + arg0->setFileName(arg1); +} + +Pointer qt_QFile_symLinkTarget_string_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + return makestring(c,arg0->symLinkTarget()); +} + +Pointer qt_QFile_fileName_string_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestring(c,arg0->QFile::fileName()) : makestring(c,arg0->fileName()); +} + +bool qt_QFile_open_bool_QFile_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + QIODeviceBase::OpenMode arg1 = (QIODeviceBase::OpenMode)(param_mode); + return isMuQtObject(arg0) ? arg0->QFile::open(arg1) : arg0->open(arg1); +} + +int qt_QFile_permissions_int_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QFile::permissions()) : int(arg0->permissions()); +} + +bool qt_QFile_resize_bool_QFile_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_sz) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + qint64 arg1 = (int64)(param_sz); + return isMuQtObject(arg0) ? arg0->QFile::resize(arg1) : arg0->resize(arg1); +} + +int64 qt_QFile_size_int64_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFile::size() : arg0->size(); +} + +bool qt_QFile_atEnd_bool_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFile::atEnd() : arg0->atEnd(); +} + +void qt_QFile_close_void_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QFile::close(); + else arg0->close(); +} + +bool qt_QFile_isSequential_bool_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFile::isSequential() : arg0->isSequential(); +} + +int64 qt_QFile_pos_int64_QFile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFile::pos() : arg0->pos(); +} + +bool qt_QFile_seek_bool_QFile_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFile* arg0 = object(param_this); + qint64 arg1 = (int64)(param_pos); + return isMuQtObject(arg0) ? arg0->QFile::seek(arg1) : arg0->seek(arg1); +} + +bool qt_QFile_copy_bool_string_string(Mu::Thread& NODE_THREAD, Pointer param_fileName, Pointer param_newName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_fileName); + const QString arg1 = qstring(param_newName); + return QFile::copy(arg0, arg1); +} + +Pointer qt_QFile_decodeName_string_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_localFileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray arg0 = getqtype(param_localFileName); + return makestring(c,QFile::decodeName(arg0)); +} + +Pointer qt_QFile_encodeName_QByteArray_string(Mu::Thread& NODE_THREAD, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_fileName); + return makeqtype(c,QFile::encodeName(arg0),"qt.QByteArray"); +} + +bool qt_QFile_exists_bool_string(Mu::Thread& NODE_THREAD, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_fileName); + return QFile::exists(arg0); +} + +bool qt_QFile_link_bool_string_string(Mu::Thread& NODE_THREAD, Pointer param_fileName, Pointer param_linkName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_fileName); + const QString arg1 = qstring(param_linkName); + return QFile::link(arg0, arg1); +} + +int qt_QFile_permissions_int_string(Mu::Thread& NODE_THREAD, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_fileName); + return int(QFile::permissions(arg0)); +} + +bool qt_QFile_remove_bool_string(Mu::Thread& NODE_THREAD, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_fileName); + return QFile::remove(arg0); +} + +bool qt_QFile_rename_bool_string_string(Mu::Thread& NODE_THREAD, Pointer param_oldName, Pointer param_newName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_oldName); + const QString arg1 = qstring(param_newName); + return QFile::rename(arg0, arg1); +} + +bool qt_QFile_resize_bool_string_int64(Mu::Thread& NODE_THREAD, Pointer param_fileName, int64 param_sz) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_fileName); + qint64 arg1 = (int64)(param_sz); + return QFile::resize(arg0, arg1); +} + +Pointer qt_QFile_symLinkTarget_string_string(Mu::Thread& NODE_THREAD, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_fileName); + return makestring(c,QFile::symLinkTarget(arg0)); +} + + +static NODE_IMPLEMENTATION(_n_QFile0, Pointer) +{ + NODE_RETURN(qt_QFile_QFile_QFile_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QFile1, Pointer) +{ + NODE_RETURN(qt_QFile_QFile_QFile_QFile_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QFile2, Pointer) +{ + NODE_RETURN(qt_QFile_QFile_QFile_QFile_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QFile3, Pointer) +{ + NODE_RETURN(qt_QFile_QFile_QFile_QFile_string_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_copy0, bool) +{ + NODE_RETURN(qt_QFile_copy_bool_QFile_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exists0, bool) +{ + NODE_RETURN(qt_QFile_exists_bool_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_link0, bool) +{ + NODE_RETURN(qt_QFile_link_bool_QFile_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_moveToTrash0, bool) +{ + NODE_RETURN(qt_QFile_moveToTrash_bool_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_open0, bool) +{ + NODE_RETURN(qt_QFile_open_bool_QFile_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_open2, bool) +{ + NODE_RETURN(qt_QFile_open_bool_QFile_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_remove0, bool) +{ + NODE_RETURN(qt_QFile_remove_bool_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rename0, bool) +{ + NODE_RETURN(qt_QFile_rename_bool_QFile_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setFileName0, void) +{ + qt_QFile_setFileName_void_QFile_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_symLinkTarget0, Pointer) +{ + NODE_RETURN(qt_QFile_symLinkTarget_string_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fileName0, Pointer) +{ + NODE_RETURN(qt_QFile_fileName_string_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_open3, bool) +{ + NODE_RETURN(qt_QFile_open_bool_QFile_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_permissions0, int) +{ + NODE_RETURN(qt_QFile_permissions_int_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resize0, bool) +{ + NODE_RETURN(qt_QFile_resize_bool_QFile_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_size0, int64) +{ + NODE_RETURN(qt_QFile_size_int64_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_atEnd0, bool) +{ + NODE_RETURN(qt_QFile_atEnd_bool_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_close0, void) +{ + qt_QFile_close_void_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isSequential0, bool) +{ + NODE_RETURN(qt_QFile_isSequential_bool_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pos0, int64) +{ + NODE_RETURN(qt_QFile_pos_int64_QFile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_seek0, bool) +{ + NODE_RETURN(qt_QFile_seek_bool_QFile_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_copy1, bool) +{ + NODE_RETURN(qt_QFile_copy_bool_string_string(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_decodeName0, Pointer) +{ + NODE_RETURN(qt_QFile_decodeName_string_QByteArray(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_encodeName0, Pointer) +{ + NODE_RETURN(qt_QFile_encodeName_QByteArray_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exists1, bool) +{ + NODE_RETURN(qt_QFile_exists_bool_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_link1, bool) +{ + NODE_RETURN(qt_QFile_link_bool_string_string(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_permissions1, int) +{ + NODE_RETURN(qt_QFile_permissions_int_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_remove1, bool) +{ + NODE_RETURN(qt_QFile_remove_bool_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rename1, bool) +{ + NODE_RETURN(qt_QFile_rename_bool_string_string(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resize1, bool) +{ + NODE_RETURN(qt_QFile_resize_bool_string_int64(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_symLinkTarget1, Pointer) +{ + NODE_RETURN(qt_QFile_symLinkTarget_string_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + + + +void +QFileType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QFile_QFile_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QFile", _n_QFile0, None, Compiled, qt_QFile_QFile_QFile_QFile, Return, "qt.QFile", Parameters, new Param(c, "this", "qt.QFile"), End), + new Function(c, "QFile", _n_QFile1, None, Compiled, qt_QFile_QFile_QFile_QFile_string, Return, "qt.QFile", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "name", "string"), End), + new Function(c, "QFile", _n_QFile2, None, Compiled, qt_QFile_QFile_QFile_QFile_QObject, Return, "qt.QFile", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QFile", _n_QFile3, None, Compiled, qt_QFile_QFile_QFile_QFile_string_QObject, Return, "qt.QFile", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "name", "string"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "copy", _n_copy0, None, Compiled, qt_QFile_copy_bool_QFile_string, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "newName", "string"), End), + new Function(c, "exists", _n_exists0, None, Compiled, qt_QFile_exists_bool_QFile, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), End), + new Function(c, "link", _n_link0, None, Compiled, qt_QFile_link_bool_QFile_string, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "linkName", "string"), End), + new Function(c, "moveToTrash", _n_moveToTrash0, None, Compiled, qt_QFile_moveToTrash_bool_QFile, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), End), + new Function(c, "open", _n_open0, None, Compiled, qt_QFile_open_bool_QFile_int_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "mode", "int"), new Param(c, "permissions", "int"), End), + // MISSING: open (bool; QFile this, "FILE *" fh, flags QIODeviceBase::OpenMode mode, flags QFileDevice::FileHandleFlags handleFlags) + new Function(c, "open", _n_open2, None, Compiled, qt_QFile_open_bool_QFile_int_int_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "fd", "int"), new Param(c, "mode", "int"), new Param(c, "handleFlags", "int", Value((int)QFileDevice::DontCloseHandle)), End), + new Function(c, "remove", _n_remove0, None, Compiled, qt_QFile_remove_bool_QFile, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), End), + new Function(c, "rename", _n_rename0, None, Compiled, qt_QFile_rename_bool_QFile_string, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "newName", "string"), End), + new Function(c, "setFileName", _n_setFileName0, None, Compiled, qt_QFile_setFileName_void_QFile_string, Return, "void", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "name", "string"), End), + new Function(c, "symLinkTarget", _n_symLinkTarget0, None, Compiled, qt_QFile_symLinkTarget_string_QFile, Return, "string", Parameters, new Param(c, "this", "qt.QFile"), End), + _func[0] = new MemberFunction(c, "fileName", _n_fileName0, None, Compiled, qt_QFile_fileName_string_QFile, Return, "string", Parameters, new Param(c, "this", "qt.QFile"), End), + _func[1] = new MemberFunction(c, "open", _n_open3, None, Compiled, qt_QFile_open_bool_QFile_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "mode", "int"), End), + _func[2] = new MemberFunction(c, "permissions", _n_permissions0, None, Compiled, qt_QFile_permissions_int_QFile, Return, "int", Parameters, new Param(c, "this", "qt.QFile"), End), + _func[3] = new MemberFunction(c, "resize", _n_resize0, None, Compiled, qt_QFile_resize_bool_QFile_int64, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "sz", "int64"), End), + _func[4] = new MemberFunction(c, "size", _n_size0, None, Compiled, qt_QFile_size_int64_QFile, Return, "int64", Parameters, new Param(c, "this", "qt.QFile"), End), + _func[5] = new MemberFunction(c, "atEnd", _n_atEnd0, None, Compiled, qt_QFile_atEnd_bool_QFile, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), End), + _func[6] = new MemberFunction(c, "close", _n_close0, None, Compiled, qt_QFile_close_void_QFile, Return, "void", Parameters, new Param(c, "this", "qt.QFile"), End), + _func[7] = new MemberFunction(c, "isSequential", _n_isSequential0, None, Compiled, qt_QFile_isSequential_bool_QFile, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), End), + _func[8] = new MemberFunction(c, "pos", _n_pos0, None, Compiled, qt_QFile_pos_int64_QFile, Return, "int64", Parameters, new Param(c, "this", "qt.QFile"), End), + _func[9] = new MemberFunction(c, "seek", _n_seek0, None, Compiled, qt_QFile_seek_bool_QFile_int64, Return, "bool", Parameters, new Param(c, "this", "qt.QFile"), new Param(c, "pos", "int64"), End), + // MISSING: readData (int64; QFile this, "char *" data, int64 len) // protected + // MISSING: readLineData (int64; QFile this, "char *" data, int64 maxlen) // protected + // MISSING: writeData (int64; QFile this, "const char *" data, int64 len) // protected + // static functions + new Function(c, "copy", _n_copy1, None, Compiled, qt_QFile_copy_bool_string_string, Return, "bool", Parameters, new Param(c, "fileName", "string"), new Param(c, "newName", "string"), End), + new Function(c, "decodeName", _n_decodeName0, None, Compiled, qt_QFile_decodeName_string_QByteArray, Return, "string", Parameters, new Param(c, "localFileName", "qt.QByteArray"), End), + // MISSING: decodeName (string; "const char *" localFileName) + new Function(c, "encodeName", _n_encodeName0, None, Compiled, qt_QFile_encodeName_QByteArray_string, Return, "qt.QByteArray", Parameters, new Param(c, "fileName", "string"), End), + new Function(c, "exists", _n_exists1, None, Compiled, qt_QFile_exists_bool_string, Return, "bool", Parameters, new Param(c, "fileName", "string"), End), + new Function(c, "link", _n_link1, None, Compiled, qt_QFile_link_bool_string_string, Return, "bool", Parameters, new Param(c, "fileName", "string"), new Param(c, "linkName", "string"), End), + new Function(c, "permissions", _n_permissions1, None, Compiled, qt_QFile_permissions_int_string, Return, "int", Parameters, new Param(c, "fileName", "string"), End), + new Function(c, "remove", _n_remove1, None, Compiled, qt_QFile_remove_bool_string, Return, "bool", Parameters, new Param(c, "fileName", "string"), End), + new Function(c, "rename", _n_rename1, None, Compiled, qt_QFile_rename_bool_string_string, Return, "bool", Parameters, new Param(c, "oldName", "string"), new Param(c, "newName", "string"), End), + new Function(c, "resize", _n_resize1, None, Compiled, qt_QFile_resize_bool_string_int64, Return, "bool", Parameters, new Param(c, "fileName", "string"), new Param(c, "sz", "int64"), End), + new Function(c, "symLinkTarget", _n_symLinkTarget1, None, Compiled, qt_QFile_symLinkTarget_string_string, Return, "string", Parameters, new Param(c, "fileName", "string"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QFile::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QFocusEventType.cpp b/src/lib/mu/MuQt6/QFocusEventType.cpp new file mode 100644 index 000000000..52ce9b997 --- /dev/null +++ b/src/lib/mu/MuQt6/QFocusEventType.cpp @@ -0,0 +1,159 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QFocusEventType::QFocusEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QFocusEventType::~QFocusEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QFocusEvent_QFocusEvent_QFocusEvent_QFocusEvent_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type, int param_reason) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent::Type arg1 = (QEvent::Type)(param_type); + Qt::FocusReason arg2 = (Qt::FocusReason)(param_reason); + setqpointer(param_this,new QFocusEvent(arg1, arg2)); + return param_this; +} + +bool qt_QFocusEvent_gotFocus_bool_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFocusEvent * arg0 = getqpointer(param_this); + return arg0->gotFocus(); +} + +bool qt_QFocusEvent_lostFocus_bool_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFocusEvent * arg0 = getqpointer(param_this); + return arg0->lostFocus(); +} + +int qt_QFocusEvent_reason_int_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFocusEvent * arg0 = getqpointer(param_this); + return int(arg0->reason()); +} + + +static NODE_IMPLEMENTATION(_n_QFocusEvent0, Pointer) +{ + NODE_RETURN(qt_QFocusEvent_QFocusEvent_QFocusEvent_QFocusEvent_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_gotFocus0, bool) +{ + NODE_RETURN(qt_QFocusEvent_gotFocus_bool_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_lostFocus0, bool) +{ + NODE_RETURN(qt_QFocusEvent_lostFocus_bool_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_reason0, int) +{ + NODE_RETURN(qt_QFocusEvent_reason_int_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QFocusEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QFocusEvent", _n_QFocusEvent0, None, Compiled, qt_QFocusEvent_QFocusEvent_QFocusEvent_QFocusEvent_int_int, Return, "qt.QFocusEvent", Parameters, new Param(c, "this", "qt.QFocusEvent"), new Param(c, "type", "int"), new Param(c, "reason", "int", Value((int)Qt::OtherFocusReason)), End), + new Function(c, "gotFocus", _n_gotFocus0, None, Compiled, qt_QFocusEvent_gotFocus_bool_QFocusEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QFocusEvent"), End), + new Function(c, "lostFocus", _n_lostFocus0, None, Compiled, qt_QFocusEvent_lostFocus_bool_QFocusEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QFocusEvent"), End), + new Function(c, "reason", _n_reason0, None, Compiled, qt_QFocusEvent_reason_int_QFocusEvent, Return, "int", Parameters, new Param(c, "this", "qt.QFocusEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QFontType.cpp b/src/lib/mu/MuQt6/QFontType.cpp new file mode 100644 index 000000000..60715f2ef --- /dev/null +++ b/src/lib/mu/MuQt6/QFontType.cpp @@ -0,0 +1,1116 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QFontType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QFontType::QFontType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QFontType::~QFontType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QFontType::Instance* i = new QFontType::Instance((Class*)NODE_THIS.type()); + QFontType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QFontType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QFontType::finalizer, 0, 0, 0); +} + +void +QFontType::finalizer (void* obj, void* data) +{ + QFontType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QFont_QFont_QFont_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QFont()); + return param_this; +} + +Pointer qt_QFont_QFont_QFont_QFont_string_int_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_family, int param_pointSize, int param_weight, bool param_italic) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_family); + int arg2 = (int)(param_pointSize); + int arg3 = (int)(param_weight); + bool arg4 = (bool)(param_italic); + setqtype(param_this,QFont(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QFont_QFont_QFont_QFont_stringBSB_ESB__int_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_families, int param_pointSize, int param_weight, bool param_italic) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QStringList arg1 = qstringlist(param_families); + int arg2 = (int)(param_pointSize); + int arg3 = (int)(param_weight); + bool arg4 = (bool)(param_italic); + setqtype(param_this,QFont(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QFont_QFont_QFont_QFont_QFont_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_font, Pointer param_pd) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont arg1 = getqtype(param_font); + const QPaintDevice * arg2 = paintdevice(param_pd); + setqtype(param_this,QFont(arg1, arg2)); + return param_this; +} + +bool qt_QFont_bold_bool_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.bold(); +} + +int qt_QFont_capitalization_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return int(arg0.capitalization()); +} + +Pointer qt_QFont_defaultFamily_string_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return makestring(c,arg0.defaultFamily()); +} + +bool qt_QFont_exactMatch_bool_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.exactMatch(); +} + +Pointer qt_QFont_families_stringBSB_ESB__QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return makestringlist(c,arg0.families()); +} + +Pointer qt_QFont_family_string_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return makestring(c,arg0.family()); +} + +bool qt_QFont_fixedPitch_bool_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.fixedPitch(); +} + +bool qt_QFont_fromString_bool_QFont_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_descrip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_descrip); + return arg0.fromString(arg1); +} + +int qt_QFont_hintingPreference_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return int(arg0.hintingPreference()); +} + +bool qt_QFont_isCopyOf_bool_QFont_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + const QFont arg1 = getqtype(param_f); + return arg0.isCopyOf(arg1); +} + +bool qt_QFont_italic_bool_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.italic(); +} + +bool qt_QFont_kerning_bool_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.kerning(); +} + +Pointer qt_QFont_key_string_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return makestring(c,arg0.key()); +} + +double qt_QFont_letterSpacing_double_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.letterSpacing(); +} + +int qt_QFont_letterSpacingType_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return int(arg0.letterSpacingType()); +} + +bool qt_QFont_overline_bool_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.overline(); +} + +int qt_QFont_pixelSize_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.pixelSize(); +} + +int qt_QFont_pointSize_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.pointSize(); +} + +double qt_QFont_pointSizeF_double_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.pointSizeF(); +} + +Pointer qt_QFont_resolve_QFont_QFont_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + const QFont arg1 = getqtype(param_other); + return makeqtype(c,arg0.resolve(arg1),"qt.QFont"); +} + +void qt_QFont_setBold_void_QFont_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setBold(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setCapitalization_void_QFont_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_caps) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + QFont::Capitalization arg1 = (QFont::Capitalization)(param_caps); + arg0.setCapitalization(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setFamilies_void_QFont_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_families) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + const QStringList arg1 = qstringlist(param_families); + arg0.setFamilies(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setFamily_void_QFont_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_family) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_family); + arg0.setFamily(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setFixedPitch_void_QFont_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setFixedPitch(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setHintingPreference_void_QFont_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_hintingPreference) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + QFont::HintingPreference arg1 = (QFont::HintingPreference)(param_hintingPreference); + arg0.setHintingPreference(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setItalic_void_QFont_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setItalic(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setKerning_void_QFont_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setKerning(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setLetterSpacing_void_QFont_int_double(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type, double param_spacing) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + QFont::SpacingType arg1 = (QFont::SpacingType)(param_type); + qreal arg2 = (double)(param_spacing); + arg0.setLetterSpacing(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QFont_setOverline_void_QFont_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setOverline(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setPixelSize_void_QFont_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_pixelSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + int arg1 = (int)(param_pixelSize); + arg0.setPixelSize(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setPointSize_void_QFont_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_pointSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + int arg1 = (int)(param_pointSize); + arg0.setPointSize(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setPointSizeF_void_QFont_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_pointSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + qreal arg1 = (double)(param_pointSize); + arg0.setPointSizeF(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setStretch_void_QFont_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_factor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + int arg1 = (int)(param_factor); + arg0.setStretch(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setStrikeOut_void_QFont_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setStrikeOut(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setStyle_void_QFont_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_style) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + QFont::Style arg1 = (QFont::Style)(param_style); + arg0.setStyle(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setStyleHint_void_QFont_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_hint, int param_strategy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + QFont::StyleHint arg1 = (QFont::StyleHint)(param_hint); + QFont::StyleStrategy arg2 = (QFont::StyleStrategy)(param_strategy); + arg0.setStyleHint(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QFont_setStyleName_void_QFont_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_styleName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_styleName); + arg0.setStyleName(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setStyleStrategy_void_QFont_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_s) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + QFont::StyleStrategy arg1 = (QFont::StyleStrategy)(param_s); + arg0.setStyleStrategy(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setUnderline_void_QFont_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setUnderline(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setWeight_void_QFont_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_weight) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + QFont::Weight arg1 = (QFont::Weight)(param_weight); + arg0.setWeight(arg1); + setqtype(param_this,arg0); +} + +void qt_QFont_setWordSpacing_void_QFont_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_spacing) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + qreal arg1 = (double)(param_spacing); + arg0.setWordSpacing(arg1); + setqtype(param_this,arg0); +} + +int qt_QFont_stretch_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.stretch(); +} + +bool qt_QFont_strikeOut_bool_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.strikeOut(); +} + +int qt_QFont_style_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return int(arg0.style()); +} + +int qt_QFont_styleHint_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return int(arg0.styleHint()); +} + +Pointer qt_QFont_styleName_string_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return makestring(c,arg0.styleName()); +} + +int qt_QFont_styleStrategy_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return int(arg0.styleStrategy()); +} + +void qt_QFont_swap_void_QFont_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFont& arg0 = getqtype(param_this); + QFont arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QFont_toString_string_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return makestring(c,arg0.toString()); +} + +bool qt_QFont_underline_bool_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.underline(); +} + +int qt_QFont_weight_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return int(arg0.weight()); +} + +double qt_QFont_wordSpacing_double_QFont(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + return arg0.wordSpacing(); +} + +bool qt_QFont_operatorBang_EQ__bool_QFont_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + const QFont arg1 = getqtype(param_f); + return arg0.operator!=(arg1); +} + +bool qt_QFont_operatorLT__bool_QFont_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + const QFont arg1 = getqtype(param_f); + return arg0.operator<(arg1); +} + +bool qt_QFont_operatorEQ_EQ__bool_QFont_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont& arg0 = getqtype(param_this); + const QFont arg1 = getqtype(param_f); + return arg0.operator==(arg1); +} + +void qt_QFont_insertSubstitution_void_string_string(Mu::Thread& NODE_THREAD, Pointer param_familyName, Pointer param_substituteName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_familyName); + const QString arg1 = qstring(param_substituteName); + QFont::insertSubstitution(arg0, arg1); +} + +void qt_QFont_insertSubstitutions_void_string_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_familyName, Pointer param_substituteNames) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_familyName); + const QStringList arg1 = qstringlist(param_substituteNames); + QFont::insertSubstitutions(arg0, arg1); +} + +void qt_QFont_removeSubstitutions_void_string(Mu::Thread& NODE_THREAD, Pointer param_familyName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_familyName); + QFont::removeSubstitutions(arg0); +} + +Pointer qt_QFont_substitute_string_string(Mu::Thread& NODE_THREAD, Pointer param_familyName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_familyName); + return makestring(c,QFont::substitute(arg0)); +} + +Pointer qt_QFont_substitutes_stringBSB_ESB__string(Mu::Thread& NODE_THREAD, Pointer param_familyName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_familyName); + return makestringlist(c,QFont::substitutes(arg0)); +} + +Pointer qt_QFont_substitutions_stringBSB_ESB_(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestringlist(c,QFont::substitutions()); +} + + +static NODE_IMPLEMENTATION(_n_QFont0, Pointer) +{ + NODE_RETURN(qt_QFont_QFont_QFont_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QFont1, Pointer) +{ + NODE_RETURN(qt_QFont_QFont_QFont_QFont_string_int_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, bool))); +} + +static NODE_IMPLEMENTATION(_n_QFont2, Pointer) +{ + NODE_RETURN(qt_QFont_QFont_QFont_QFont_stringBSB_ESB__int_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, bool))); +} + +static NODE_IMPLEMENTATION(_n_QFont3, Pointer) +{ + NODE_RETURN(qt_QFont_QFont_QFont_QFont_QFont_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bold0, bool) +{ + NODE_RETURN(qt_QFont_bold_bool_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_capitalization0, int) +{ + NODE_RETURN(qt_QFont_capitalization_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_defaultFamily0, Pointer) +{ + NODE_RETURN(qt_QFont_defaultFamily_string_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exactMatch0, bool) +{ + NODE_RETURN(qt_QFont_exactMatch_bool_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_families0, Pointer) +{ + NODE_RETURN(qt_QFont_families_stringBSB_ESB__QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_family0, Pointer) +{ + NODE_RETURN(qt_QFont_family_string_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fixedPitch0, bool) +{ + NODE_RETURN(qt_QFont_fixedPitch_bool_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fromString0, bool) +{ + NODE_RETURN(qt_QFont_fromString_bool_QFont_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hintingPreference0, int) +{ + NODE_RETURN(qt_QFont_hintingPreference_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isCopyOf0, bool) +{ + NODE_RETURN(qt_QFont_isCopyOf_bool_QFont_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_italic0, bool) +{ + NODE_RETURN(qt_QFont_italic_bool_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_kerning0, bool) +{ + NODE_RETURN(qt_QFont_kerning_bool_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_key0, Pointer) +{ + NODE_RETURN(qt_QFont_key_string_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_letterSpacing0, double) +{ + NODE_RETURN(qt_QFont_letterSpacing_double_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_letterSpacingType0, int) +{ + NODE_RETURN(qt_QFont_letterSpacingType_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_overline0, bool) +{ + NODE_RETURN(qt_QFont_overline_bool_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pixelSize0, int) +{ + NODE_RETURN(qt_QFont_pixelSize_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pointSize0, int) +{ + NODE_RETURN(qt_QFont_pointSize_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pointSizeF0, double) +{ + NODE_RETURN(qt_QFont_pointSizeF_double_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resolve0, Pointer) +{ + NODE_RETURN(qt_QFont_resolve_QFont_QFont_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBold0, void) +{ + qt_QFont_setBold_void_QFont_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setCapitalization0, void) +{ + qt_QFont_setCapitalization_void_QFont_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFamilies0, void) +{ + qt_QFont_setFamilies_void_QFont_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFamily0, void) +{ + qt_QFont_setFamily_void_QFont_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFixedPitch0, void) +{ + qt_QFont_setFixedPitch_void_QFont_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setHintingPreference0, void) +{ + qt_QFont_setHintingPreference_void_QFont_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setItalic0, void) +{ + qt_QFont_setItalic_void_QFont_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setKerning0, void) +{ + qt_QFont_setKerning_void_QFont_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setLetterSpacing0, void) +{ + qt_QFont_setLetterSpacing_void_QFont_int_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, double)); +} + +static NODE_IMPLEMENTATION(_n_setOverline0, void) +{ + qt_QFont_setOverline_void_QFont_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setPixelSize0, void) +{ + qt_QFont_setPixelSize_void_QFont_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setPointSize0, void) +{ + qt_QFont_setPointSize_void_QFont_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setPointSizeF0, void) +{ + qt_QFont_setPointSizeF_void_QFont_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setStretch0, void) +{ + qt_QFont_setStretch_void_QFont_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setStrikeOut0, void) +{ + qt_QFont_setStrikeOut_void_QFont_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setStyle0, void) +{ + qt_QFont_setStyle_void_QFont_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setStyleHint0, void) +{ + qt_QFont_setStyleHint_void_QFont_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setStyleName0, void) +{ + qt_QFont_setStyleName_void_QFont_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setStyleStrategy0, void) +{ + qt_QFont_setStyleStrategy_void_QFont_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setUnderline0, void) +{ + qt_QFont_setUnderline_void_QFont_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setWeight0, void) +{ + qt_QFont_setWeight_void_QFont_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setWordSpacing0, void) +{ + qt_QFont_setWordSpacing_void_QFont_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_stretch0, int) +{ + NODE_RETURN(qt_QFont_stretch_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_strikeOut0, bool) +{ + NODE_RETURN(qt_QFont_strikeOut_bool_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_style0, int) +{ + NODE_RETURN(qt_QFont_style_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_styleHint0, int) +{ + NODE_RETURN(qt_QFont_styleHint_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_styleName0, Pointer) +{ + NODE_RETURN(qt_QFont_styleName_string_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_styleStrategy0, int) +{ + NODE_RETURN(qt_QFont_styleStrategy_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QFont_swap_void_QFont_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toString0, Pointer) +{ + NODE_RETURN(qt_QFont_toString_string_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_underline0, bool) +{ + NODE_RETURN(qt_QFont_underline_bool_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_weight0, int) +{ + NODE_RETURN(qt_QFont_weight_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_wordSpacing0, double) +{ + NODE_RETURN(qt_QFont_wordSpacing_double_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QFont_operatorBang_EQ__bool_QFont_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorLT_0, bool) +{ + NODE_RETURN(qt_QFont_operatorLT__bool_QFont_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QFont_operatorEQ_EQ__bool_QFont_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertSubstitution0, void) +{ + qt_QFont_insertSubstitution_void_string_string(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertSubstitutions0, void) +{ + qt_QFont_insertSubstitutions_void_string_stringBSB_ESB_(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removeSubstitutions0, void) +{ + qt_QFont_removeSubstitutions_void_string(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_substitute0, Pointer) +{ + NODE_RETURN(qt_QFont_substitute_string_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_substitutes0, Pointer) +{ + NODE_RETURN(qt_QFont_substitutes_stringBSB_ESB__string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_substitutions0, Pointer) +{ + NODE_RETURN(qt_QFont_substitutions_stringBSB_ESB_(NODE_THREAD)); +} + + + +void +QFontType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "Capitalization", "int"), + new SymbolicConstant(c, "MixedCase", "int", Value(int(QFont::MixedCase))), + new SymbolicConstant(c, "AllUppercase", "int", Value(int(QFont::AllUppercase))), + new SymbolicConstant(c, "AllLowercase", "int", Value(int(QFont::AllLowercase))), + new SymbolicConstant(c, "SmallCaps", "int", Value(int(QFont::SmallCaps))), + new SymbolicConstant(c, "Capitalize", "int", Value(int(QFont::Capitalize))), + new Alias(c, "HintingPreference", "int"), + new SymbolicConstant(c, "PreferDefaultHinting", "int", Value(int(QFont::PreferDefaultHinting))), + new SymbolicConstant(c, "PreferNoHinting", "int", Value(int(QFont::PreferNoHinting))), + new SymbolicConstant(c, "PreferVerticalHinting", "int", Value(int(QFont::PreferVerticalHinting))), + new SymbolicConstant(c, "PreferFullHinting", "int", Value(int(QFont::PreferFullHinting))), + new Alias(c, "SpacingType", "int"), + new SymbolicConstant(c, "PercentageSpacing", "int", Value(int(QFont::PercentageSpacing))), + new SymbolicConstant(c, "AbsoluteSpacing", "int", Value(int(QFont::AbsoluteSpacing))), + new Alias(c, "Stretch", "int"), + new SymbolicConstant(c, "AnyStretch", "int", Value(int(QFont::AnyStretch))), + new SymbolicConstant(c, "UltraCondensed", "int", Value(int(QFont::UltraCondensed))), + new SymbolicConstant(c, "ExtraCondensed", "int", Value(int(QFont::ExtraCondensed))), + new SymbolicConstant(c, "Condensed", "int", Value(int(QFont::Condensed))), + new SymbolicConstant(c, "SemiCondensed", "int", Value(int(QFont::SemiCondensed))), + new SymbolicConstant(c, "Unstretched", "int", Value(int(QFont::Unstretched))), + new SymbolicConstant(c, "SemiExpanded", "int", Value(int(QFont::SemiExpanded))), + new SymbolicConstant(c, "Expanded", "int", Value(int(QFont::Expanded))), + new SymbolicConstant(c, "ExtraExpanded", "int", Value(int(QFont::ExtraExpanded))), + new SymbolicConstant(c, "UltraExpanded", "int", Value(int(QFont::UltraExpanded))), + new Alias(c, "Style", "int"), + new SymbolicConstant(c, "StyleNormal", "int", Value(int(QFont::StyleNormal))), + new SymbolicConstant(c, "StyleItalic", "int", Value(int(QFont::StyleItalic))), + new SymbolicConstant(c, "StyleOblique", "int", Value(int(QFont::StyleOblique))), + new Alias(c, "StyleHint", "int"), + new SymbolicConstant(c, "AnyStyle", "int", Value(int(QFont::AnyStyle))), + new SymbolicConstant(c, "SansSerif", "int", Value(int(QFont::SansSerif))), + new SymbolicConstant(c, "Helvetica", "int", Value(int(QFont::Helvetica))), + new SymbolicConstant(c, "Serif", "int", Value(int(QFont::Serif))), + new SymbolicConstant(c, "Times", "int", Value(int(QFont::Times))), + new SymbolicConstant(c, "TypeWriter", "int", Value(int(QFont::TypeWriter))), + new SymbolicConstant(c, "Courier", "int", Value(int(QFont::Courier))), + new SymbolicConstant(c, "OldEnglish", "int", Value(int(QFont::OldEnglish))), + new SymbolicConstant(c, "Decorative", "int", Value(int(QFont::Decorative))), + new SymbolicConstant(c, "Monospace", "int", Value(int(QFont::Monospace))), + new SymbolicConstant(c, "Fantasy", "int", Value(int(QFont::Fantasy))), + new SymbolicConstant(c, "Cursive", "int", Value(int(QFont::Cursive))), + new SymbolicConstant(c, "System", "int", Value(int(QFont::System))), + new Alias(c, "StyleStrategy", "int"), + new SymbolicConstant(c, "PreferDefault", "int", Value(int(QFont::PreferDefault))), + new SymbolicConstant(c, "PreferBitmap", "int", Value(int(QFont::PreferBitmap))), + new SymbolicConstant(c, "PreferDevice", "int", Value(int(QFont::PreferDevice))), + new SymbolicConstant(c, "PreferOutline", "int", Value(int(QFont::PreferOutline))), + new SymbolicConstant(c, "ForceOutline", "int", Value(int(QFont::ForceOutline))), + new SymbolicConstant(c, "NoAntialias", "int", Value(int(QFont::NoAntialias))), + new SymbolicConstant(c, "NoSubpixelAntialias", "int", Value(int(QFont::NoSubpixelAntialias))), + new SymbolicConstant(c, "PreferAntialias", "int", Value(int(QFont::PreferAntialias))), + new SymbolicConstant(c, "NoFontMerging", "int", Value(int(QFont::NoFontMerging))), + new SymbolicConstant(c, "PreferNoShaping", "int", Value(int(QFont::PreferNoShaping))), + new Alias(c, "Weight", "int"), + new SymbolicConstant(c, "Thin", "int", Value(int(QFont::Thin))), + new SymbolicConstant(c, "ExtraLight", "int", Value(int(QFont::ExtraLight))), + new SymbolicConstant(c, "Light", "int", Value(int(QFont::Light))), + new SymbolicConstant(c, "Normal", "int", Value(int(QFont::Normal))), + new SymbolicConstant(c, "Medium", "int", Value(int(QFont::Medium))), + new SymbolicConstant(c, "DemiBold", "int", Value(int(QFont::DemiBold))), + new SymbolicConstant(c, "Bold", "int", Value(int(QFont::Bold))), + new SymbolicConstant(c, "ExtraBold", "int", Value(int(QFont::ExtraBold))), + new SymbolicConstant(c, "Black", "int", Value(int(QFont::Black))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QFont", _n_QFont0, None, Compiled, qt_QFont_QFont_QFont_QFont, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "QFont", _n_QFont1, None, Compiled, qt_QFont_QFont_QFont_QFont_string_int_int_bool, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "family", "string"), new Param(c, "pointSize", "int", Value((int)-1)), new Param(c, "weight", "int", Value((int)-1)), new Param(c, "italic", "bool"), End), + new Function(c, "QFont", _n_QFont2, None, Compiled, qt_QFont_QFont_QFont_QFont_stringBSB_ESB__int_int_bool, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "families", "string[]"), new Param(c, "pointSize", "int", Value((int)-1)), new Param(c, "weight", "int", Value((int)-1)), new Param(c, "italic", "bool"), End), + new Function(c, "QFont", _n_QFont3, None, Compiled, qt_QFont_QFont_QFont_QFont_QFont_QPaintDevice, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "font", "qt.QFont"), new Param(c, "pd", "qt.QPaintDevice"), End), + // MISSING: QFont (QFont; QFont this, QFont font) + new Function(c, "bold", _n_bold0, None, Compiled, qt_QFont_bold_bool_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "capitalization", _n_capitalization0, None, Compiled, qt_QFont_capitalization_int_QFont, Return, "int", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "defaultFamily", _n_defaultFamily0, None, Compiled, qt_QFont_defaultFamily_string_QFont, Return, "string", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "exactMatch", _n_exactMatch0, None, Compiled, qt_QFont_exactMatch_bool_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "families", _n_families0, None, Compiled, qt_QFont_families_stringBSB_ESB__QFont, Return, "string[]", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "family", _n_family0, None, Compiled, qt_QFont_family_string_QFont, Return, "string", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "fixedPitch", _n_fixedPitch0, None, Compiled, qt_QFont_fixedPitch_bool_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "fromString", _n_fromString0, None, Compiled, qt_QFont_fromString_bool_QFont_string, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "descrip", "string"), End), + new Function(c, "hintingPreference", _n_hintingPreference0, None, Compiled, qt_QFont_hintingPreference_int_QFont, Return, "int", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "isCopyOf", _n_isCopyOf0, None, Compiled, qt_QFont_isCopyOf_bool_QFont_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "f", "qt.QFont"), End), + new Function(c, "italic", _n_italic0, None, Compiled, qt_QFont_italic_bool_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "kerning", _n_kerning0, None, Compiled, qt_QFont_kerning_bool_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "key", _n_key0, None, Compiled, qt_QFont_key_string_QFont, Return, "string", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "letterSpacing", _n_letterSpacing0, None, Compiled, qt_QFont_letterSpacing_double_QFont, Return, "double", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "letterSpacingType", _n_letterSpacingType0, None, Compiled, qt_QFont_letterSpacingType_int_QFont, Return, "int", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "overline", _n_overline0, None, Compiled, qt_QFont_overline_bool_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "pixelSize", _n_pixelSize0, None, Compiled, qt_QFont_pixelSize_int_QFont, Return, "int", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "pointSize", _n_pointSize0, None, Compiled, qt_QFont_pointSize_int_QFont, Return, "int", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "pointSizeF", _n_pointSizeF0, None, Compiled, qt_QFont_pointSizeF_double_QFont, Return, "double", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "resolve", _n_resolve0, None, Compiled, qt_QFont_resolve_QFont_QFont_QFont, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "other", "qt.QFont"), End), + new Function(c, "setBold", _n_setBold0, None, Compiled, qt_QFont_setBold_void_QFont_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "enable", "bool"), End), + new Function(c, "setCapitalization", _n_setCapitalization0, None, Compiled, qt_QFont_setCapitalization_void_QFont_int, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "caps", "int"), End), + new Function(c, "setFamilies", _n_setFamilies0, None, Compiled, qt_QFont_setFamilies_void_QFont_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "families", "string[]"), End), + new Function(c, "setFamily", _n_setFamily0, None, Compiled, qt_QFont_setFamily_void_QFont_string, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "family", "string"), End), + new Function(c, "setFixedPitch", _n_setFixedPitch0, None, Compiled, qt_QFont_setFixedPitch_void_QFont_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "enable", "bool"), End), + new Function(c, "setHintingPreference", _n_setHintingPreference0, None, Compiled, qt_QFont_setHintingPreference_void_QFont_int, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "hintingPreference", "int"), End), + new Function(c, "setItalic", _n_setItalic0, None, Compiled, qt_QFont_setItalic_void_QFont_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "enable", "bool"), End), + new Function(c, "setKerning", _n_setKerning0, None, Compiled, qt_QFont_setKerning_void_QFont_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "enable", "bool"), End), + new Function(c, "setLetterSpacing", _n_setLetterSpacing0, None, Compiled, qt_QFont_setLetterSpacing_void_QFont_int_double, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "type", "int"), new Param(c, "spacing", "double"), End), + new Function(c, "setOverline", _n_setOverline0, None, Compiled, qt_QFont_setOverline_void_QFont_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "enable", "bool"), End), + new Function(c, "setPixelSize", _n_setPixelSize0, None, Compiled, qt_QFont_setPixelSize_void_QFont_int, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "pixelSize", "int"), End), + new Function(c, "setPointSize", _n_setPointSize0, None, Compiled, qt_QFont_setPointSize_void_QFont_int, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "pointSize", "int"), End), + new Function(c, "setPointSizeF", _n_setPointSizeF0, None, Compiled, qt_QFont_setPointSizeF_void_QFont_double, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "pointSize", "double"), End), + new Function(c, "setStretch", _n_setStretch0, None, Compiled, qt_QFont_setStretch_void_QFont_int, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "factor", "int"), End), + new Function(c, "setStrikeOut", _n_setStrikeOut0, None, Compiled, qt_QFont_setStrikeOut_void_QFont_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "enable", "bool"), End), + new Function(c, "setStyle", _n_setStyle0, None, Compiled, qt_QFont_setStyle_void_QFont_int, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "style", "int"), End), + new Function(c, "setStyleHint", _n_setStyleHint0, None, Compiled, qt_QFont_setStyleHint_void_QFont_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "hint", "int"), new Param(c, "strategy", "int", Value((int)QFont::PreferDefault)), End), + new Function(c, "setStyleName", _n_setStyleName0, None, Compiled, qt_QFont_setStyleName_void_QFont_string, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "styleName", "string"), End), + new Function(c, "setStyleStrategy", _n_setStyleStrategy0, None, Compiled, qt_QFont_setStyleStrategy_void_QFont_int, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "s", "int"), End), + new Function(c, "setUnderline", _n_setUnderline0, None, Compiled, qt_QFont_setUnderline_void_QFont_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "enable", "bool"), End), + new Function(c, "setWeight", _n_setWeight0, None, Compiled, qt_QFont_setWeight_void_QFont_int, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "weight", "int"), End), + new Function(c, "setWordSpacing", _n_setWordSpacing0, None, Compiled, qt_QFont_setWordSpacing_void_QFont_double, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "spacing", "double"), End), + new Function(c, "stretch", _n_stretch0, None, Compiled, qt_QFont_stretch_int_QFont, Return, "int", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "strikeOut", _n_strikeOut0, None, Compiled, qt_QFont_strikeOut_bool_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "style", _n_style0, None, Compiled, qt_QFont_style_int_QFont, Return, "int", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "styleHint", _n_styleHint0, None, Compiled, qt_QFont_styleHint_int_QFont, Return, "int", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "styleName", _n_styleName0, None, Compiled, qt_QFont_styleName_string_QFont, Return, "string", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "styleStrategy", _n_styleStrategy0, None, Compiled, qt_QFont_styleStrategy_int_QFont, Return, "int", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QFont_swap_void_QFont_QFont, Return, "void", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "other", "qt.QFont"), End), + new Function(c, "toString", _n_toString0, None, Compiled, qt_QFont_toString_string_QFont, Return, "string", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "underline", _n_underline0, None, Compiled, qt_QFont_underline_bool_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "weight", _n_weight0, None, Compiled, qt_QFont_weight_int_QFont, Return, "int", Parameters, new Param(c, "this", "qt.QFont"), End), + new Function(c, "wordSpacing", _n_wordSpacing0, None, Compiled, qt_QFont_wordSpacing_double_QFont, Return, "double", Parameters, new Param(c, "this", "qt.QFont"), End), + // MISSING: QVariant ("QVariant operator"; QFont this) + // static functions + new Function(c, "insertSubstitution", _n_insertSubstitution0, None, Compiled, qt_QFont_insertSubstitution_void_string_string, Return, "void", Parameters, new Param(c, "familyName", "string"), new Param(c, "substituteName", "string"), End), + new Function(c, "insertSubstitutions", _n_insertSubstitutions0, None, Compiled, qt_QFont_insertSubstitutions_void_string_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "familyName", "string"), new Param(c, "substituteNames", "string[]"), End), + new Function(c, "removeSubstitutions", _n_removeSubstitutions0, None, Compiled, qt_QFont_removeSubstitutions_void_string, Return, "void", Parameters, new Param(c, "familyName", "string"), End), + new Function(c, "substitute", _n_substitute0, None, Compiled, qt_QFont_substitute_string_string, Return, "string", Parameters, new Param(c, "familyName", "string"), End), + new Function(c, "substitutes", _n_substitutes0, None, Compiled, qt_QFont_substitutes_stringBSB_ESB__string, Return, "string[]", Parameters, new Param(c, "familyName", "string"), End), + new Function(c, "substitutions", _n_substitutions0, None, Compiled, qt_QFont_substitutions_stringBSB_ESB_, Return, "string[]", End), + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QFont_operatorBang_EQ__bool_QFont_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "f", "qt.QFont"), End), + new Function(c, "<", _n_operatorLT_0, Op, Compiled, qt_QFont_operatorLT__bool_QFont_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "f", "qt.QFont"), End), + // MISSING: = (QFont; QFont this, QFont font) + // MISSING: = (QFont; QFont this, "QFont & &" other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QFont_operatorEQ_EQ__bool_QFont_QFont, Return, "bool", Parameters, new Param(c, "this", "qt.QFont"), new Param(c, "f", "qt.QFont"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QFormLayoutType.cpp b/src/lib/mu/MuQt6/QFormLayoutType.cpp new file mode 100644 index 000000000..86164f87a --- /dev/null +++ b/src/lib/mu/MuQt6/QFormLayoutType.cpp @@ -0,0 +1,1281 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QFormLayout::~MuQt_QFormLayout() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QFormLayout::MuQt_QFormLayout(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QFormLayout(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFormLayout")); +} + +void MuQt_QFormLayout::addItem(QLayoutItem * item) +{ + if (!_env) { QFormLayout::addItem(item); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makelayoutitem(c,item,"qt.QLayoutItem")); + Value rval = _env->call(F, args); + } + else + { + QFormLayout::addItem(item); + } +} + +int MuQt_QFormLayout::count() const +{ + if (!_env) return QFormLayout::count(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QFormLayout::count(); + } +} + +Qt::Orientations MuQt_QFormLayout::expandingDirections() const +{ + if (!_env) return QFormLayout::expandingDirections(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::Orientations)(rval._int); + } + else + { + return QFormLayout::expandingDirections(); + } +} + +bool MuQt_QFormLayout::hasHeightForWidth() const +{ + if (!_env) return QFormLayout::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFormLayout::hasHeightForWidth(); + } +} + +int MuQt_QFormLayout::heightForWidth(int width) const +{ + if (!_env) return QFormLayout::heightForWidth(width); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(width); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QFormLayout::heightForWidth(width); + } +} + +void MuQt_QFormLayout::invalidate() +{ + if (!_env) { QFormLayout::invalidate(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QFormLayout::invalidate(); + } +} + +QLayoutItem * MuQt_QFormLayout::itemAt(int index) const +{ + if (!_env) return QFormLayout::itemAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QFormLayout::itemAt(index); + } +} + +QSize MuQt_QFormLayout::minimumSize() const +{ + if (!_env) return QFormLayout::minimumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QFormLayout::minimumSize(); + } +} + +void MuQt_QFormLayout::setGeometry(const QRect & rect) +{ + if (!_env) { QFormLayout::setGeometry(rect); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + Value rval = _env->call(F, args); + } + else + { + QFormLayout::setGeometry(rect); + } +} + +void MuQt_QFormLayout::setSpacing(int spacing) +{ + if (!_env) { QFormLayout::setSpacing(spacing); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(spacing); + Value rval = _env->call(F, args); + } + else + { + QFormLayout::setSpacing(spacing); + } +} + +QSize MuQt_QFormLayout::sizeHint() const +{ + if (!_env) return QFormLayout::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QFormLayout::sizeHint(); + } +} + +int MuQt_QFormLayout::spacing() const +{ + if (!_env) return QFormLayout::spacing(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QFormLayout::spacing(); + } +} + +QLayoutItem * MuQt_QFormLayout::takeAt(int index) +{ + if (!_env) return QFormLayout::takeAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QFormLayout::takeAt(index); + } +} + +int MuQt_QFormLayout::indexOf(const QWidget * widget) const +{ + if (!_env) return QFormLayout::indexOf(widget); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,widget,"qt.QWidget")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QFormLayout::indexOf(widget); + } +} + +QLayoutItem * MuQt_QFormLayout::replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options) +{ + if (!_env) return QFormLayout::replaceWidget(from, to, options); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,from,"qt.QWidget")); + args[2] = Value(makeinstance(c,to,"qt.QWidget")); + args[3] = Value(int(options)); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QFormLayout::replaceWidget(from, to, options); + } +} + +QSizePolicy::ControlTypes MuQt_QFormLayout::controlTypes() const +{ + if (!_env) return QFormLayout::controlTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QSizePolicy::ControlTypes)(rval._int); + } + else + { + return QFormLayout::controlTypes(); + } +} + +QRect MuQt_QFormLayout::geometry() const +{ + if (!_env) return QFormLayout::geometry(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QFormLayout::geometry(); + } +} + +bool MuQt_QFormLayout::isEmpty() const +{ + if (!_env) return QFormLayout::isEmpty(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFormLayout::isEmpty(); + } +} + +QLayout * MuQt_QFormLayout::layout() +{ + if (!_env) return QFormLayout::layout(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QFormLayout::layout(); + } +} + +QSize MuQt_QFormLayout::maximumSize() const +{ + if (!_env) return QFormLayout::maximumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QFormLayout::maximumSize(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QFormLayoutType::QFormLayoutType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QFormLayoutType::~QFormLayoutType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QFormLayout_QFormLayout_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QFormLayout* w = object(widget)) + { + QFormLayoutType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFormLayout"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QFormLayout_QFormLayout_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QFormLayout_QFormLayout_QFormLayout_QFormLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QFormLayout(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QFormLayout_addRow_void_QFormLayout_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_label, Pointer param_field) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_label); + QWidget * arg2 = object(param_field); + arg0->addRow(arg1, arg2); +} + +void qt_QFormLayout_addRow_void_QFormLayout_QWidget_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_label, Pointer param_field) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_label); + QLayout * arg2 = object(param_field); + arg0->addRow(arg1, arg2); +} + +void qt_QFormLayout_addRow_void_QFormLayout_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_labelText, Pointer param_field) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + const QString arg1 = qstring(param_labelText); + QWidget * arg2 = object(param_field); + arg0->addRow(arg1, arg2); +} + +void qt_QFormLayout_addRow_void_QFormLayout_string_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_labelText, Pointer param_field) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + const QString arg1 = qstring(param_labelText); + QLayout * arg2 = object(param_field); + arg0->addRow(arg1, arg2); +} + +void qt_QFormLayout_addRow_void_QFormLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->addRow(arg1); +} + +void qt_QFormLayout_addRow_void_QFormLayout_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_layout) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_layout); + arg0->addRow(arg1); +} + +void qt_QFormLayout_insertRow_void_QFormLayout_int_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_label, Pointer param_field) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + QWidget * arg2 = object(param_label); + QWidget * arg3 = object(param_field); + arg0->insertRow(arg1, arg2, arg3); +} + +void qt_QFormLayout_insertRow_void_QFormLayout_int_QWidget_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_label, Pointer param_field) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + QWidget * arg2 = object(param_label); + QLayout * arg3 = object(param_field); + arg0->insertRow(arg1, arg2, arg3); +} + +void qt_QFormLayout_insertRow_void_QFormLayout_int_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_labelText, Pointer param_field) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QString arg2 = qstring(param_labelText); + QWidget * arg3 = object(param_field); + arg0->insertRow(arg1, arg2, arg3); +} + +void qt_QFormLayout_insertRow_void_QFormLayout_int_string_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_labelText, Pointer param_field) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QString arg2 = qstring(param_labelText); + QLayout * arg3 = object(param_field); + arg0->insertRow(arg1, arg2, arg3); +} + +void qt_QFormLayout_insertRow_void_QFormLayout_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + QWidget * arg2 = object(param_widget); + arg0->insertRow(arg1, arg2); +} + +void qt_QFormLayout_insertRow_void_QFormLayout_int_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_layout) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + QLayout * arg2 = object(param_layout); + arg0->insertRow(arg1, arg2); +} + +bool qt_QFormLayout_isRowVisible_bool_QFormLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + return arg0->isRowVisible(arg1); +} + +bool qt_QFormLayout_isRowVisible_bool_QFormLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + return arg0->isRowVisible(arg1); +} + +bool qt_QFormLayout_isRowVisible_bool_QFormLayout_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_layout) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_layout); + return arg0->isRowVisible(arg1); +} + +Pointer qt_QFormLayout_itemAt_QLayoutItem_QFormLayout_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + QFormLayout::ItemRole arg2 = (QFormLayout::ItemRole)(param_role); + return makelayoutitem(c, arg0->itemAt(arg1, arg2), "qt.QLayoutItem"); +} + +Pointer qt_QFormLayout_labelForField_QWidget_QFormLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_field) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_field); + return makeinstance(c, arg0->labelForField(arg1), "qt.QWidget"); +} + +Pointer qt_QFormLayout_labelForField_QWidget_QFormLayout_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_field) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_field); + return makeinstance(c, arg0->labelForField(arg1), "qt.QWidget"); +} + +void qt_QFormLayout_removeRow_void_QFormLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + arg0->removeRow(arg1); +} + +void qt_QFormLayout_removeRow_void_QFormLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->removeRow(arg1); +} + +void qt_QFormLayout_removeRow_void_QFormLayout_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_layout) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_layout); + arg0->removeRow(arg1); +} + +int qt_QFormLayout_rowCount_int_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return arg0->rowCount(); +} + +void qt_QFormLayout_setItem_void_QFormLayout_int_int_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_role, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + QFormLayout::ItemRole arg2 = (QFormLayout::ItemRole)(param_role); + QLayoutItem * arg3 = layoutitem(param_item); + arg0->setItem(arg1, arg2, arg3); +} + +void qt_QFormLayout_setLayout_void_QFormLayout_int_int_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_role, Pointer param_layout) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + QFormLayout::ItemRole arg2 = (QFormLayout::ItemRole)(param_role); + QLayout * arg3 = object(param_layout); + arg0->setLayout(arg1, arg2, arg3); +} + +void qt_QFormLayout_setRowVisible_void_QFormLayout_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + bool arg2 = (bool)(param_on); + arg0->setRowVisible(arg1, arg2); +} + +void qt_QFormLayout_setRowVisible_void_QFormLayout_QWidget_bool(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + bool arg2 = (bool)(param_on); + arg0->setRowVisible(arg1, arg2); +} + +void qt_QFormLayout_setRowVisible_void_QFormLayout_QLayout_bool(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_layout, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_layout); + bool arg2 = (bool)(param_on); + arg0->setRowVisible(arg1, arg2); +} + +void qt_QFormLayout_setWidget_void_QFormLayout_int_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_role, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + QFormLayout::ItemRole arg2 = (QFormLayout::ItemRole)(param_role); + QWidget * arg3 = object(param_widget); + arg0->setWidget(arg1, arg2, arg3); +} + +void qt_QFormLayout_addItem_void_QFormLayout_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QLayoutItem * arg1 = layoutitem(param_item); + if (isMuQtObject(arg0)) arg0->QFormLayout::addItem(arg1); + else arg0->addItem(arg1); +} + +int qt_QFormLayout_count_int_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFormLayout::count() : arg0->count(); +} + +int qt_QFormLayout_expandingDirections_int_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QFormLayout::expandingDirections()) : int(arg0->expandingDirections()); +} + +bool qt_QFormLayout_hasHeightForWidth_bool_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFormLayout::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QFormLayout_heightForWidth_int_QFormLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_width); + return isMuQtObject(arg0) ? arg0->QFormLayout::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +void qt_QFormLayout_invalidate_void_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QFormLayout::invalidate(); + else arg0->invalidate(); +} + +Pointer qt_QFormLayout_itemAt_QLayoutItem_QFormLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QFormLayout::itemAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->itemAt(arg1), "qt.QLayoutItem"); +} + +Pointer qt_QFormLayout_minimumSize_QSize_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QFormLayout::minimumSize(),"qt.QSize") : makeqtype(c,arg0->minimumSize(),"qt.QSize"); +} + +void qt_QFormLayout_setGeometry_void_QFormLayout_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + if (isMuQtObject(arg0)) arg0->QFormLayout::setGeometry(arg1); + else arg0->setGeometry(arg1); +} + +void qt_QFormLayout_setSpacing_void_QFormLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_spacing) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_spacing); + if (isMuQtObject(arg0)) arg0->QFormLayout::setSpacing(arg1); + else arg0->setSpacing(arg1); +} + +Pointer qt_QFormLayout_sizeHint_QSize_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QFormLayout::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +int qt_QFormLayout_spacing_int_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFormLayout::spacing() : arg0->spacing(); +} + +Pointer qt_QFormLayout_takeAt_QLayoutItem_QFormLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QFormLayout::takeAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->takeAt(arg1), "qt.QLayoutItem"); +} + +int qt_QFormLayout_indexOf_int_QFormLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + const QWidget * arg1 = object(param_widget); + return isMuQtObject(arg0) ? arg0->QFormLayout::indexOf(arg1) : arg0->indexOf(arg1); +} + +Pointer qt_QFormLayout_replaceWidget_QLayoutItem_QFormLayout_QWidget_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_from, Pointer param_to, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_from); + QWidget * arg2 = object(param_to); + Qt::FindChildOptions arg3 = (Qt::FindChildOptions)(param_options); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QFormLayout::replaceWidget(arg1, arg2, arg3), "qt.QLayoutItem") : makelayoutitem(c, arg0->replaceWidget(arg1, arg2, arg3), "qt.QLayoutItem"); +} + +int qt_QFormLayout_controlTypes_int_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QFormLayout::controlTypes()) : int(arg0->controlTypes()); +} + +Pointer qt_QFormLayout_geometry_QRect_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QFormLayout::geometry(),"qt.QRect") : makeqtype(c,arg0->geometry(),"qt.QRect"); +} + +bool qt_QFormLayout_isEmpty_bool_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFormLayout::isEmpty() : arg0->isEmpty(); +} + +Pointer qt_QFormLayout_layout_QLayout_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QFormLayout::layout(), "qt.QLayout") : makeinstance(c, arg0->layout(), "qt.QLayout"); +} + +Pointer qt_QFormLayout_maximumSize_QSize_QFormLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFormLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QFormLayout::maximumSize(),"qt.QSize") : makeqtype(c,arg0->maximumSize(),"qt.QSize"); +} + + +static NODE_IMPLEMENTATION(_n_QFormLayout0, Pointer) +{ + NODE_RETURN(qt_QFormLayout_QFormLayout_QFormLayout_QFormLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addRow0, void) +{ + qt_QFormLayout_addRow_void_QFormLayout_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addRow1, void) +{ + qt_QFormLayout_addRow_void_QFormLayout_QWidget_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addRow2, void) +{ + qt_QFormLayout_addRow_void_QFormLayout_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addRow3, void) +{ + qt_QFormLayout_addRow_void_QFormLayout_string_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addRow4, void) +{ + qt_QFormLayout_addRow_void_QFormLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addRow5, void) +{ + qt_QFormLayout_addRow_void_QFormLayout_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRow0, void) +{ + qt_QFormLayout_insertRow_void_QFormLayout_int_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRow1, void) +{ + qt_QFormLayout_insertRow_void_QFormLayout_int_QWidget_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRow2, void) +{ + qt_QFormLayout_insertRow_void_QFormLayout_int_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRow3, void) +{ + qt_QFormLayout_insertRow_void_QFormLayout_int_string_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRow4, void) +{ + qt_QFormLayout_insertRow_void_QFormLayout_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRow5, void) +{ + qt_QFormLayout_insertRow_void_QFormLayout_int_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isRowVisible0, bool) +{ + NODE_RETURN(qt_QFormLayout_isRowVisible_bool_QFormLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isRowVisible1, bool) +{ + NODE_RETURN(qt_QFormLayout_isRowVisible_bool_QFormLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRowVisible2, bool) +{ + NODE_RETURN(qt_QFormLayout_isRowVisible_bool_QFormLayout_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemAt0, Pointer) +{ + NODE_RETURN(qt_QFormLayout_itemAt_QLayoutItem_QFormLayout_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_labelForField0, Pointer) +{ + NODE_RETURN(qt_QFormLayout_labelForField_QWidget_QFormLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_labelForField1, Pointer) +{ + NODE_RETURN(qt_QFormLayout_labelForField_QWidget_QFormLayout_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeRow0, void) +{ + qt_QFormLayout_removeRow_void_QFormLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_removeRow1, void) +{ + qt_QFormLayout_removeRow_void_QFormLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removeRow2, void) +{ + qt_QFormLayout_removeRow_void_QFormLayout_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_rowCount0, int) +{ + NODE_RETURN(qt_QFormLayout_rowCount_int_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setItem0, void) +{ + qt_QFormLayout_setItem_void_QFormLayout_int_int_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setLayout0, void) +{ + qt_QFormLayout_setLayout_void_QFormLayout_int_int_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRowVisible0, void) +{ + qt_QFormLayout_setRowVisible_void_QFormLayout_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setRowVisible1, void) +{ + qt_QFormLayout_setRowVisible_void_QFormLayout_QWidget_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setRowVisible2, void) +{ + qt_QFormLayout_setRowVisible_void_QFormLayout_QLayout_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setWidget0, void) +{ + qt_QFormLayout_setWidget_void_QFormLayout_int_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addItem0, void) +{ + qt_QFormLayout_addItem_void_QFormLayout_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QFormLayout_count_int_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expandingDirections0, int) +{ + NODE_RETURN(qt_QFormLayout_expandingDirections_int_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QFormLayout_hasHeightForWidth_bool_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QFormLayout_heightForWidth_int_QFormLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_invalidate0, void) +{ + qt_QFormLayout_invalidate_void_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_itemAt1, Pointer) +{ + NODE_RETURN(qt_QFormLayout_itemAt_QLayoutItem_QFormLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSize0, Pointer) +{ + NODE_RETURN(qt_QFormLayout_minimumSize_QSize_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setGeometry0, void) +{ + qt_QFormLayout_setGeometry_void_QFormLayout_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSpacing0, void) +{ + qt_QFormLayout_setSpacing_void_QFormLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QFormLayout_sizeHint_QSize_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_spacing0, int) +{ + NODE_RETURN(qt_QFormLayout_spacing_int_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_takeAt0, Pointer) +{ + NODE_RETURN(qt_QFormLayout_takeAt_QLayoutItem_QFormLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_indexOf0, int) +{ + NODE_RETURN(qt_QFormLayout_indexOf_int_QFormLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_replaceWidget0, Pointer) +{ + NODE_RETURN(qt_QFormLayout_replaceWidget_QLayoutItem_QFormLayout_QWidget_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_controlTypes0, int) +{ + NODE_RETURN(qt_QFormLayout_controlTypes_int_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_geometry0, Pointer) +{ + NODE_RETURN(qt_QFormLayout_geometry_QRect_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QFormLayout_isEmpty_bool_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_layout0, Pointer) +{ + NODE_RETURN(qt_QFormLayout_layout_QLayout_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_maximumSize0, Pointer) +{ + NODE_RETURN(qt_QFormLayout_maximumSize_QSize_QFormLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QFormLayoutType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QFormLayout_QFormLayout_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QFormLayout", _n_QFormLayout0, None, Compiled, qt_QFormLayout_QFormLayout_QFormLayout_QFormLayout_QWidget, Return, "qt.QFormLayout", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addRow", _n_addRow0, None, Compiled, qt_QFormLayout_addRow_void_QFormLayout_QWidget_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "label", "qt.QWidget"), new Param(c, "field", "qt.QWidget"), End), + new Function(c, "addRow", _n_addRow1, None, Compiled, qt_QFormLayout_addRow_void_QFormLayout_QWidget_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "label", "qt.QWidget"), new Param(c, "field", "qt.QLayout"), End), + new Function(c, "addRow", _n_addRow2, None, Compiled, qt_QFormLayout_addRow_void_QFormLayout_string_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "labelText", "string"), new Param(c, "field", "qt.QWidget"), End), + new Function(c, "addRow", _n_addRow3, None, Compiled, qt_QFormLayout_addRow_void_QFormLayout_string_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "labelText", "string"), new Param(c, "field", "qt.QLayout"), End), + new Function(c, "addRow", _n_addRow4, None, Compiled, qt_QFormLayout_addRow_void_QFormLayout_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "addRow", _n_addRow5, None, Compiled, qt_QFormLayout_addRow_void_QFormLayout_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "layout", "qt.QLayout"), End), + // PROP: fieldGrowthPolicy (flags QFormLayout::FieldGrowthPolicy; QFormLayout this) + // PROP: formAlignment (flags Qt::Alignment; QFormLayout this) + // MISSING: getItemPosition (void; QFormLayout this, int index, "int *" rowPtr, flags QFormLayout::ItemRole * rolePtr) + // MISSING: getLayoutPosition (void; QFormLayout this, QLayout layout, "int *" rowPtr, flags QFormLayout::ItemRole * rolePtr) + // MISSING: getWidgetPosition (void; QFormLayout this, QWidget widget, "int *" rowPtr, flags QFormLayout::ItemRole * rolePtr) + // PROP: horizontalSpacing (int; QFormLayout this) + new Function(c, "insertRow", _n_insertRow0, None, Compiled, qt_QFormLayout_insertRow_void_QFormLayout_int_QWidget_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "label", "qt.QWidget"), new Param(c, "field", "qt.QWidget"), End), + new Function(c, "insertRow", _n_insertRow1, None, Compiled, qt_QFormLayout_insertRow_void_QFormLayout_int_QWidget_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "label", "qt.QWidget"), new Param(c, "field", "qt.QLayout"), End), + new Function(c, "insertRow", _n_insertRow2, None, Compiled, qt_QFormLayout_insertRow_void_QFormLayout_int_string_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "labelText", "string"), new Param(c, "field", "qt.QWidget"), End), + new Function(c, "insertRow", _n_insertRow3, None, Compiled, qt_QFormLayout_insertRow_void_QFormLayout_int_string_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "labelText", "string"), new Param(c, "field", "qt.QLayout"), End), + new Function(c, "insertRow", _n_insertRow4, None, Compiled, qt_QFormLayout_insertRow_void_QFormLayout_int_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "insertRow", _n_insertRow5, None, Compiled, qt_QFormLayout_insertRow_void_QFormLayout_int_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "layout", "qt.QLayout"), End), + new Function(c, "isRowVisible", _n_isRowVisible0, None, Compiled, qt_QFormLayout_isRowVisible_bool_QFormLayout_int, Return, "bool", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), End), + new Function(c, "isRowVisible", _n_isRowVisible1, None, Compiled, qt_QFormLayout_isRowVisible_bool_QFormLayout_QWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "isRowVisible", _n_isRowVisible2, None, Compiled, qt_QFormLayout_isRowVisible_bool_QFormLayout_QLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "layout", "qt.QLayout"), End), + new Function(c, "itemAt", _n_itemAt0, None, Compiled, qt_QFormLayout_itemAt_QLayoutItem_QFormLayout_int_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "role", "int"), End), + // PROP: labelAlignment (flags Qt::Alignment; QFormLayout this) + new Function(c, "labelForField", _n_labelForField0, None, Compiled, qt_QFormLayout_labelForField_QWidget_QFormLayout_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "field", "qt.QWidget"), End), + new Function(c, "labelForField", _n_labelForField1, None, Compiled, qt_QFormLayout_labelForField_QWidget_QFormLayout_QLayout, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "field", "qt.QLayout"), End), + new Function(c, "removeRow", _n_removeRow0, None, Compiled, qt_QFormLayout_removeRow_void_QFormLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), End), + new Function(c, "removeRow", _n_removeRow1, None, Compiled, qt_QFormLayout_removeRow_void_QFormLayout_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "removeRow", _n_removeRow2, None, Compiled, qt_QFormLayout_removeRow_void_QFormLayout_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "layout", "qt.QLayout"), End), + new Function(c, "rowCount", _n_rowCount0, None, Compiled, qt_QFormLayout_rowCount_int_QFormLayout, Return, "int", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + // PROP: rowWrapPolicy (flags QFormLayout::RowWrapPolicy; QFormLayout this) + // PROP: setFieldGrowthPolicy (void; QFormLayout this, flags QFormLayout::FieldGrowthPolicy policy) + // PROP: setFormAlignment (void; QFormLayout this, flags Qt::Alignment alignment) + // PROP: setHorizontalSpacing (void; QFormLayout this, int spacing) + new Function(c, "setItem", _n_setItem0, None, Compiled, qt_QFormLayout_setItem_void_QFormLayout_int_int_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "role", "int"), new Param(c, "item", "qt.QLayoutItem"), End), + // PROP: setLabelAlignment (void; QFormLayout this, flags Qt::Alignment alignment) + new Function(c, "setLayout", _n_setLayout0, None, Compiled, qt_QFormLayout_setLayout_void_QFormLayout_int_int_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "role", "int"), new Param(c, "layout", "qt.QLayout"), End), + new Function(c, "setRowVisible", _n_setRowVisible0, None, Compiled, qt_QFormLayout_setRowVisible_void_QFormLayout_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "on", "bool"), End), + new Function(c, "setRowVisible", _n_setRowVisible1, None, Compiled, qt_QFormLayout_setRowVisible_void_QFormLayout_QWidget_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "widget", "qt.QWidget"), new Param(c, "on", "bool"), End), + new Function(c, "setRowVisible", _n_setRowVisible2, None, Compiled, qt_QFormLayout_setRowVisible_void_QFormLayout_QLayout_bool, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "layout", "qt.QLayout"), new Param(c, "on", "bool"), End), + // PROP: setRowWrapPolicy (void; QFormLayout this, flags QFormLayout::RowWrapPolicy policy) + // PROP: setVerticalSpacing (void; QFormLayout this, int spacing) + new Function(c, "setWidget", _n_setWidget0, None, Compiled, qt_QFormLayout_setWidget_void_QFormLayout_int_int_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "row", "int"), new Param(c, "role", "int"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: verticalSpacing (int; QFormLayout this) + _func[0] = new MemberFunction(c, "addItem", _n_addItem0, None, Compiled, qt_QFormLayout_addItem_void_QFormLayout_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "item", "qt.QLayoutItem"), End), + _func[1] = new MemberFunction(c, "count", _n_count0, None, Compiled, qt_QFormLayout_count_int_QFormLayout, Return, "int", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[2] = new MemberFunction(c, "expandingDirections", _n_expandingDirections0, None, Compiled, qt_QFormLayout_expandingDirections_int_QFormLayout, Return, "int", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[3] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QFormLayout_hasHeightForWidth_bool_QFormLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[4] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QFormLayout_heightForWidth_int_QFormLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "width", "int"), End), + _func[5] = new MemberFunction(c, "invalidate", _n_invalidate0, None, Compiled, qt_QFormLayout_invalidate_void_QFormLayout, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[6] = new MemberFunction(c, "itemAt", _n_itemAt1, None, Compiled, qt_QFormLayout_itemAt_QLayoutItem_QFormLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "index", "int"), End), + _func[7] = new MemberFunction(c, "minimumSize", _n_minimumSize0, None, Compiled, qt_QFormLayout_minimumSize_QSize_QFormLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[8] = new MemberFunction(c, "setGeometry", _n_setGeometry0, None, Compiled, qt_QFormLayout_setGeometry_void_QFormLayout_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "rect", "qt.QRect"), End), + _func[9] = new MemberFunction(c, "setSpacing", _n_setSpacing0, None, Compiled, qt_QFormLayout_setSpacing_void_QFormLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "spacing", "int"), End), + _func[10] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QFormLayout_sizeHint_QSize_QFormLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[11] = new MemberFunction(c, "spacing", _n_spacing0, None, Compiled, qt_QFormLayout_spacing_int_QFormLayout, Return, "int", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[12] = new MemberFunction(c, "takeAt", _n_takeAt0, None, Compiled, qt_QFormLayout_takeAt_QLayoutItem_QFormLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "index", "int"), End), + _func[13] = new MemberFunction(c, "indexOf", _n_indexOf0, None, Compiled, qt_QFormLayout_indexOf_int_QFormLayout_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "widget", "qt.QWidget"), End), + _func[14] = new MemberFunction(c, "replaceWidget", _n_replaceWidget0, None, Compiled, qt_QFormLayout_replaceWidget_QLayoutItem_QFormLayout_QWidget_QWidget_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QFormLayout"), new Param(c, "from", "qt.QWidget"), new Param(c, "to", "qt.QWidget"), new Param(c, "options", "int", Value((int)Qt::FindChildrenRecursively)), End), + _func[15] = new MemberFunction(c, "controlTypes", _n_controlTypes0, None, Compiled, qt_QFormLayout_controlTypes_int_QFormLayout, Return, "int", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[16] = new MemberFunction(c, "geometry", _n_geometry0, None, Compiled, qt_QFormLayout_geometry_QRect_QFormLayout, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[17] = new MemberFunction(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QFormLayout_isEmpty_bool_QFormLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[18] = new MemberFunction(c, "layout", _n_layout0, None, Compiled, qt_QFormLayout_layout_QLayout_QFormLayout, Return, "qt.QLayout", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + _func[19] = new MemberFunction(c, "maximumSize", _n_maximumSize0, None, Compiled, qt_QFormLayout_maximumSize_QSize_QFormLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QFormLayout"), End), + // MISSING: childEvent (void; QFormLayout this, "QChildEvent *" e) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QFormLayout::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QFrameType.cpp b/src/lib/mu/MuQt6/QFrameType.cpp new file mode 100644 index 000000000..e24188e92 --- /dev/null +++ b/src/lib/mu/MuQt6/QFrameType.cpp @@ -0,0 +1,1298 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QFrame::~MuQt_QFrame() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QFrame::MuQt_QFrame(Pointer muobj, const CallEnvironment* ce, QWidget * parent, Qt::WindowFlags f) + : QFrame(parent, f) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFrame")); +} + +QSize MuQt_QFrame::sizeHint() const +{ + if (!_env) return QFrame::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QFrame::sizeHint(); + } +} + +void MuQt_QFrame::changeEvent(QEvent * ev) +{ + if (!_env) { QFrame::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::changeEvent(ev); + } +} + +bool MuQt_QFrame::event(QEvent * e) +{ + if (!_env) return QFrame::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFrame::event(e); + } +} + +void MuQt_QFrame::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QFrame::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::paintEvent(_p14); + } +} + +bool MuQt_QFrame::hasHeightForWidth() const +{ + if (!_env) return QFrame::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFrame::hasHeightForWidth(); + } +} + +int MuQt_QFrame::heightForWidth(int w) const +{ + if (!_env) return QFrame::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QFrame::heightForWidth(w); + } +} + +QVariant MuQt_QFrame::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QFrame::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QFrame::inputMethodQuery(query); + } +} + +QSize MuQt_QFrame::minimumSizeHint() const +{ + if (!_env) return QFrame::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QFrame::minimumSizeHint(); + } +} + +void MuQt_QFrame::closeEvent(QCloseEvent * event) +{ + if (!_env) { QFrame::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::closeEvent(event); + } +} + +void MuQt_QFrame::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QFrame::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::contextMenuEvent(event); + } +} + +void MuQt_QFrame::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QFrame::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::dragEnterEvent(event); + } +} + +void MuQt_QFrame::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QFrame::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::dragLeaveEvent(event); + } +} + +void MuQt_QFrame::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QFrame::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::dragMoveEvent(event); + } +} + +void MuQt_QFrame::dropEvent(QDropEvent * event) +{ + if (!_env) { QFrame::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::dropEvent(event); + } +} + +void MuQt_QFrame::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QFrame::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::focusInEvent(event); + } +} + +bool MuQt_QFrame::focusNextPrevChild(bool next) +{ + if (!_env) return QFrame::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QFrame::focusNextPrevChild(next); + } +} + +void MuQt_QFrame::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QFrame::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::focusOutEvent(event); + } +} + +void MuQt_QFrame::hideEvent(QHideEvent * event) +{ + if (!_env) { QFrame::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::hideEvent(event); + } +} + +void MuQt_QFrame::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QFrame::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::keyPressEvent(event); + } +} + +void MuQt_QFrame::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QFrame::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::keyReleaseEvent(event); + } +} + +void MuQt_QFrame::leaveEvent(QEvent * event) +{ + if (!_env) { QFrame::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::leaveEvent(event); + } +} + +void MuQt_QFrame::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QFrame::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::mouseDoubleClickEvent(event); + } +} + +void MuQt_QFrame::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QFrame::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::mouseMoveEvent(event); + } +} + +void MuQt_QFrame::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QFrame::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::mousePressEvent(event); + } +} + +void MuQt_QFrame::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QFrame::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::mouseReleaseEvent(event); + } +} + +void MuQt_QFrame::moveEvent(QMoveEvent * event) +{ + if (!_env) { QFrame::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::moveEvent(event); + } +} + +void MuQt_QFrame::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QFrame::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::resizeEvent(event); + } +} + +void MuQt_QFrame::showEvent(QShowEvent * event) +{ + if (!_env) { QFrame::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::showEvent(event); + } +} + +void MuQt_QFrame::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QFrame::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::tabletEvent(event); + } +} + +void MuQt_QFrame::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QFrame::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QFrame::wheelEvent(event); + } +} + +int MuQt_QFrame::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QFrame::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QFrame::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QFrameType::QFrameType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QFrameType::~QFrameType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QFrame_QFrame_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QFrame* w = object(widget)) + { + QFrameType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QFrame"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QFrame_QFrame_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QFrame_QFrame_QFrame_QFrame_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + Qt::WindowFlags arg2 = (Qt::WindowFlags)(param_f); + setobject(param_this, new MuQt_QFrame(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +int qt_QFrame_frameStyle_int_QFrame(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + return arg0->frameStyle(); +} + +void qt_QFrame_setFrameStyle_void_QFrame_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_style) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + int arg1 = (int)(param_style); + arg0->setFrameStyle(arg1); +} + +Pointer qt_QFrame_sizeHint_QSize_QFrame(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QFrame::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QFrame_changeEvent_void_QFrame_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QFrame_event_bool_QFrame_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QFrame*)arg0)->event_pub_parent(arg1) : ((MuQt_QFrame*)arg0)->event_pub(arg1); +} + +void qt_QFrame_paintEvent_void_QFrame_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->paintEvent_pub(arg1); +} + +bool qt_QFrame_hasHeightForWidth_bool_QFrame(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QFrame::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QFrame_heightForWidth_int_QFrame_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QFrame::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QFrame_inputMethodQuery_QVariant_QFrame_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QFrame::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QFrame_minimumSizeHint_QSize_QFrame(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QFrame::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +void qt_QFrame_closeEvent_void_QFrame_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->closeEvent_pub(arg1); +} + +void qt_QFrame_contextMenuEvent_void_QFrame_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QFrame_dragEnterEvent_void_QFrame_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QFrame_dragLeaveEvent_void_QFrame_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QFrame_dragMoveEvent_void_QFrame_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QFrame_dropEvent_void_QFrame_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->dropEvent_pub(arg1); +} + +void qt_QFrame_focusInEvent_void_QFrame_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QFrame_focusNextPrevChild_bool_QFrame_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QFrame*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QFrame*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QFrame_focusOutEvent_void_QFrame_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QFrame_hideEvent_void_QFrame_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->hideEvent_pub(arg1); +} + +void qt_QFrame_keyPressEvent_void_QFrame_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QFrame_keyReleaseEvent_void_QFrame_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QFrame_leaveEvent_void_QFrame_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QFrame_mouseDoubleClickEvent_void_QFrame_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QFrame_mouseMoveEvent_void_QFrame_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QFrame_mousePressEvent_void_QFrame_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QFrame_mouseReleaseEvent_void_QFrame_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QFrame_moveEvent_void_QFrame_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->moveEvent_pub(arg1); +} + +void qt_QFrame_resizeEvent_void_QFrame_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QFrame_showEvent_void_QFrame_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->showEvent_pub(arg1); +} + +void qt_QFrame_tabletEvent_void_QFrame_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QFrame_wheelEvent_void_QFrame_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QFrame*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QFrame*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QFrame_metric_int_QFrame_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QFrame* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QFrame*)arg0)->metric_pub_parent(arg1) : ((MuQt_QFrame*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QFrame0, Pointer) +{ + NODE_RETURN(qt_QFrame_QFrame_QFrame_QFrame_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_frameStyle0, int) +{ + NODE_RETURN(qt_QFrame_frameStyle_int_QFrame(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setFrameStyle0, void) +{ + qt_QFrame_setFrameStyle_void_QFrame_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QFrame_sizeHint_QSize_QFrame(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QFrame_changeEvent_void_QFrame_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QFrame_event_bool_QFrame_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QFrame_paintEvent_void_QFrame_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QFrame_hasHeightForWidth_bool_QFrame(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QFrame_heightForWidth_int_QFrame_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QFrame_inputMethodQuery_QVariant_QFrame_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QFrame_minimumSizeHint_QSize_QFrame(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QFrame_closeEvent_void_QFrame_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QFrame_contextMenuEvent_void_QFrame_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QFrame_dragEnterEvent_void_QFrame_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QFrame_dragLeaveEvent_void_QFrame_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QFrame_dragMoveEvent_void_QFrame_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QFrame_dropEvent_void_QFrame_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QFrame_focusInEvent_void_QFrame_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QFrame_focusNextPrevChild_bool_QFrame_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QFrame_focusOutEvent_void_QFrame_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QFrame_hideEvent_void_QFrame_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QFrame_keyPressEvent_void_QFrame_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QFrame_keyReleaseEvent_void_QFrame_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QFrame_leaveEvent_void_QFrame_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QFrame_mouseDoubleClickEvent_void_QFrame_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QFrame_mouseMoveEvent_void_QFrame_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QFrame_mousePressEvent_void_QFrame_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QFrame_mouseReleaseEvent_void_QFrame_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QFrame_moveEvent_void_QFrame_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QFrame_resizeEvent_void_QFrame_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QFrame_showEvent_void_QFrame_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QFrame_tabletEvent_void_QFrame_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QFrame_wheelEvent_void_QFrame_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QFrame_metric_int_QFrame_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QFrameType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QFrame_QFrame_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QFrame", _n_QFrame0, None, Compiled, qt_QFrame_QFrame_QFrame_QFrame_QWidget_int, Return, "qt.QFrame", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "parent", "qt.QWidget"), new Param(c, "f", "int", Value((int)Qt::WindowFlags())), End), + // PROP: frameRect (QRect; QFrame this) + // PROP: frameShadow (flags QFrame::Shadow; QFrame this) + // PROP: frameShape (flags QFrame::Shape; QFrame this) + new Function(c, "frameStyle", _n_frameStyle0, None, Compiled, qt_QFrame_frameStyle_int_QFrame, Return, "int", Parameters, new Param(c, "this", "qt.QFrame"), End), + // PROP: frameWidth (int; QFrame this) + // PROP: lineWidth (int; QFrame this) + // PROP: midLineWidth (int; QFrame this) + // PROP: setFrameRect (void; QFrame this, QRect _p14) + // PROP: setFrameShadow (void; QFrame this, flags QFrame::Shadow _p14) + // PROP: setFrameShape (void; QFrame this, flags QFrame::Shape _p13) + new Function(c, "setFrameStyle", _n_setFrameStyle0, None, Compiled, qt_QFrame_setFrameStyle_void_QFrame_int, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "style", "int"), End), + // PROP: setLineWidth (void; QFrame this, int _p3) + // PROP: setMidLineWidth (void; QFrame this, int _p3) + _func[0] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QFrame_sizeHint_QSize_QFrame, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QFrame"), End), + // MISSING: initStyleOption (void; QFrame this, "QStyleOptionFrame *" option) // protected + _func[1] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QFrame_changeEvent_void_QFrame_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "ev", "qt.QEvent"), End), + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QFrame_event_bool_QFrame_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QFrame_paintEvent_void_QFrame_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "_p14", "qt.QPaintEvent"), End), + _func[4] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QFrame_hasHeightForWidth_bool_QFrame, Return, "bool", Parameters, new Param(c, "this", "qt.QFrame"), End), + _func[5] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QFrame_heightForWidth_int_QFrame_int, Return, "int", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "w", "int"), End), + _func[6] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QFrame_inputMethodQuery_QVariant_QFrame_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "query", "int"), End), + _func[7] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QFrame_minimumSizeHint_QSize_QFrame, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QFrame"), End), + // MISSING: paintEngine ("QPaintEngine *"; QFrame this) + // MISSING: actionEvent (void; QFrame this, "QActionEvent *" event) // protected + _func[8] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QFrame_closeEvent_void_QFrame_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[9] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QFrame_contextMenuEvent_void_QFrame_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[10] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QFrame_dragEnterEvent_void_QFrame_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[11] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QFrame_dragLeaveEvent_void_QFrame_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[12] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QFrame_dragMoveEvent_void_QFrame_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[13] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QFrame_dropEvent_void_QFrame_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QFrame this, "QEnterEvent *" event) // protected + _func[14] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QFrame_focusInEvent_void_QFrame_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[15] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QFrame_focusNextPrevChild_bool_QFrame_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "next", "bool"), End), + _func[16] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QFrame_focusOutEvent_void_QFrame_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[17] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QFrame_hideEvent_void_QFrame_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QFrame this, "QInputMethodEvent *" event) // protected + _func[18] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QFrame_keyPressEvent_void_QFrame_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[19] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QFrame_keyReleaseEvent_void_QFrame_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[20] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QFrame_leaveEvent_void_QFrame_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QEvent"), End), + _func[21] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QFrame_mouseDoubleClickEvent_void_QFrame_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[22] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QFrame_mouseMoveEvent_void_QFrame_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[23] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QFrame_mousePressEvent_void_QFrame_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QFrame_mouseReleaseEvent_void_QFrame_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[25] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QFrame_moveEvent_void_QFrame_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QFrame this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[26] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QFrame_resizeEvent_void_QFrame_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[27] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QFrame_showEvent_void_QFrame_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QShowEvent"), End), + _func[28] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QFrame_tabletEvent_void_QFrame_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[29] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QFrame_wheelEvent_void_QFrame_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QFrame this, "QPainter *" painter) // protected + _func[30] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QFrame_metric_int_QFrame_int, Return, "int", Parameters, new Param(c, "this", "qt.QFrame"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QFrame::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QGestureEventType.cpp b/src/lib/mu/MuQt6/QGestureEventType.cpp new file mode 100644 index 000000000..fe3ac7f77 --- /dev/null +++ b/src/lib/mu/MuQt6/QGestureEventType.cpp @@ -0,0 +1,203 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QGestureEventType::QGestureEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QGestureEventType::~QGestureEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +void qt_QGestureEvent_accept_void_QGestureEvent_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_gestureType) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGestureEvent * arg0 = getqpointer(param_this); + Qt::GestureType arg1 = (Qt::GestureType)(param_gestureType); + arg0->accept(arg1); + setqpointer(param_this,arg0); +} + +void qt_QGestureEvent_ignore_void_QGestureEvent_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_gestureType) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGestureEvent * arg0 = getqpointer(param_this); + Qt::GestureType arg1 = (Qt::GestureType)(param_gestureType); + arg0->ignore(arg1); + setqpointer(param_this,arg0); +} + +bool qt_QGestureEvent_isAccepted_bool_QGestureEvent_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_gestureType) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGestureEvent * arg0 = getqpointer(param_this); + Qt::GestureType arg1 = (Qt::GestureType)(param_gestureType); + return arg0->isAccepted(arg1); +} + +Pointer qt_QGestureEvent_mapToGraphicsScene_QPointF_QGestureEvent_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_gesturePoint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGestureEvent * arg0 = getqpointer(param_this); + const QPointF arg1 = getqtype(param_gesturePoint); + return makeqtype(c,arg0->mapToGraphicsScene(arg1),"qt.QPointF"); +} + +void qt_QGestureEvent_setAccepted_void_QGestureEvent_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_gestureType, bool param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGestureEvent * arg0 = getqpointer(param_this); + Qt::GestureType arg1 = (Qt::GestureType)(param_gestureType); + bool arg2 = (bool)(param_value); + arg0->setAccepted(arg1, arg2); + setqpointer(param_this,arg0); +} + +Pointer qt_QGestureEvent_widget_QWidget_QGestureEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGestureEvent * arg0 = getqpointer(param_this); + return makeinstance(c,arg0->widget(),"qt.QWidget"); +} + + +static NODE_IMPLEMENTATION(_n_accept1, void) +{ + qt_QGestureEvent_accept_void_QGestureEvent_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_ignore1, void) +{ + qt_QGestureEvent_ignore_void_QGestureEvent_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_isAccepted1, bool) +{ + NODE_RETURN(qt_QGestureEvent_isAccepted_bool_QGestureEvent_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_mapToGraphicsScene0, Pointer) +{ + NODE_RETURN(qt_QGestureEvent_mapToGraphicsScene_QPointF_QGestureEvent_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAccepted1, void) +{ + qt_QGestureEvent_setAccepted_void_QGestureEvent_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QGestureEvent_widget_QWidget_QGestureEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QGestureEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + // MISSING: QGestureEvent (QGestureEvent; QGestureEvent this, "const QList &" gestures) + // MISSING: accept (void; QGestureEvent this, "QGesture *" gesture) + new Function(c, "accept", _n_accept1, None, Compiled, qt_QGestureEvent_accept_void_QGestureEvent_int, Return, "void", Parameters, new Param(c, "this", "qt.QGestureEvent"), new Param(c, "gestureType", "int"), End), + // MISSING: activeGestures ("QList"; QGestureEvent this) + // MISSING: canceledGestures ("QList"; QGestureEvent this) + // MISSING: gesture ("QGesture *"; QGestureEvent this, flags Qt::GestureType type) + // MISSING: gestures ("QList"; QGestureEvent this) + // MISSING: ignore (void; QGestureEvent this, "QGesture *" gesture) + new Function(c, "ignore", _n_ignore1, None, Compiled, qt_QGestureEvent_ignore_void_QGestureEvent_int, Return, "void", Parameters, new Param(c, "this", "qt.QGestureEvent"), new Param(c, "gestureType", "int"), End), + // MISSING: isAccepted (bool; QGestureEvent this, "QGesture *" gesture) + new Function(c, "isAccepted", _n_isAccepted1, None, Compiled, qt_QGestureEvent_isAccepted_bool_QGestureEvent_int, Return, "bool", Parameters, new Param(c, "this", "qt.QGestureEvent"), new Param(c, "gestureType", "int"), End), + new Function(c, "mapToGraphicsScene", _n_mapToGraphicsScene0, None, Compiled, qt_QGestureEvent_mapToGraphicsScene_QPointF_QGestureEvent_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QGestureEvent"), new Param(c, "gesturePoint", "qt.QPointF"), End), + // MISSING: setAccepted (void; QGestureEvent this, "QGesture *" gesture, bool value) + new Function(c, "setAccepted", _n_setAccepted1, None, Compiled, qt_QGestureEvent_setAccepted_void_QGestureEvent_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QGestureEvent"), new Param(c, "gestureType", "int"), new Param(c, "value", "bool"), End), + new Function(c, "widget", _n_widget0, None, Compiled, qt_QGestureEvent_widget_QWidget_QGestureEvent, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QGestureEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QGradientType.cpp b/src/lib/mu/MuQt6/QGradientType.cpp new file mode 100644 index 000000000..f7c5c8290 --- /dev/null +++ b/src/lib/mu/MuQt6/QGradientType.cpp @@ -0,0 +1,479 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QGradientType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QGradientType::QGradientType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QGradientType::~QGradientType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QGradientType::Instance* i = new QGradientType::Instance((Class*)NODE_THIS.type()); + QGradientType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QGradientType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QGradientType::finalizer, 0, 0, 0); +} + +void +QGradientType::finalizer (void* obj, void* data) +{ + QGradientType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QGradient_QGradient_QGradient_QGradient_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_preset) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGradient::Preset arg1 = (QGradient::Preset)(param_preset); + setqtype(param_this,QGradient(arg1)); + return param_this; +} + +int qt_QGradient_coordinateMode_int_QGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QGradient& arg0 = getqtype(param_this); + return int(arg0.coordinateMode()); +} + +void qt_QGradient_setColorAt_void_QGradient_double_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, double param_position, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGradient& arg0 = getqtype(param_this); + qreal arg1 = (double)(param_position); + const QColor arg2 = getqtype(param_color); + arg0.setColorAt(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QGradient_setCoordinateMode_void_QGradient_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGradient& arg0 = getqtype(param_this); + QGradient::CoordinateMode arg1 = (QGradient::CoordinateMode)(param_mode); + arg0.setCoordinateMode(arg1); + setqtype(param_this,arg0); +} + +void qt_QGradient_setSpread_void_QGradient_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_method) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGradient& arg0 = getqtype(param_this); + QGradient::Spread arg1 = (QGradient::Spread)(param_method); + arg0.setSpread(arg1); + setqtype(param_this,arg0); +} + +int qt_QGradient_spread_int_QGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QGradient& arg0 = getqtype(param_this); + return int(arg0.spread()); +} + +int qt_QGradient_type_int_QGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QGradient& arg0 = getqtype(param_this); + return int(arg0.type()); +} + +bool qt_QGradient_operatorBang_EQ__bool_QGradient_QGradient(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_gradient) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QGradient& arg0 = getqtype(param_this); + const QGradient arg1 = getqtype(param_gradient); + return arg0.operator!=(arg1); +} + +bool qt_QGradient_operatorEQ_EQ__bool_QGradient_QGradient(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_gradient) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QGradient& arg0 = getqtype(param_this); + const QGradient arg1 = getqtype(param_gradient); + return arg0.operator==(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QGradient0, Pointer) +{ + NODE_RETURN(qt_QGradient_QGradient_QGradient_QGradient_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_coordinateMode0, int) +{ + NODE_RETURN(qt_QGradient_coordinateMode_int_QGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setColorAt0, void) +{ + qt_QGradient_setColorAt_void_QGradient_double_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCoordinateMode0, void) +{ + qt_QGradient_setCoordinateMode_void_QGradient_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setSpread0, void) +{ + qt_QGradient_setSpread_void_QGradient_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_spread0, int) +{ + NODE_RETURN(qt_QGradient_spread_int_QGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_type0, int) +{ + NODE_RETURN(qt_QGradient_type_int_QGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QGradient_operatorBang_EQ__bool_QGradient_QGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QGradient_operatorEQ_EQ__bool_QGradient_QGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +static NODE_IMPLEMENTATION(setStops, void) +{ + +} + +static NODE_IMPLEMENTATION(stops, Pointer) +{ + NODE_RETURN(Pointer(0)); +} + +void +QGradientType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "CoordinateMode", "int"), + new SymbolicConstant(c, "LogicalMode", "int", Value(int(QGradient::LogicalMode))), + new SymbolicConstant(c, "ObjectMode", "int", Value(int(QGradient::ObjectMode))), + new SymbolicConstant(c, "StretchToDeviceMode", "int", Value(int(QGradient::StretchToDeviceMode))), + new SymbolicConstant(c, "ObjectBoundingMode", "int", Value(int(QGradient::ObjectBoundingMode))), + new Alias(c, "Preset", "int"), + new SymbolicConstant(c, "WarmFlame", "int", Value(int(QGradient::WarmFlame))), + new SymbolicConstant(c, "NightFade", "int", Value(int(QGradient::NightFade))), + new SymbolicConstant(c, "SpringWarmth", "int", Value(int(QGradient::SpringWarmth))), + new SymbolicConstant(c, "JuicyPeach", "int", Value(int(QGradient::JuicyPeach))), + new SymbolicConstant(c, "YoungPassion", "int", Value(int(QGradient::YoungPassion))), + new SymbolicConstant(c, "LadyLips", "int", Value(int(QGradient::LadyLips))), + new SymbolicConstant(c, "SunnyMorning", "int", Value(int(QGradient::SunnyMorning))), + new SymbolicConstant(c, "RainyAshville", "int", Value(int(QGradient::RainyAshville))), + new SymbolicConstant(c, "FrozenDreams", "int", Value(int(QGradient::FrozenDreams))), + new SymbolicConstant(c, "WinterNeva", "int", Value(int(QGradient::WinterNeva))), + new SymbolicConstant(c, "DustyGrass", "int", Value(int(QGradient::DustyGrass))), + new SymbolicConstant(c, "TemptingAzure", "int", Value(int(QGradient::TemptingAzure))), + new SymbolicConstant(c, "HeavyRain", "int", Value(int(QGradient::HeavyRain))), + new SymbolicConstant(c, "AmyCrisp", "int", Value(int(QGradient::AmyCrisp))), + new SymbolicConstant(c, "MeanFruit", "int", Value(int(QGradient::MeanFruit))), + new SymbolicConstant(c, "DeepBlue", "int", Value(int(QGradient::DeepBlue))), + new SymbolicConstant(c, "RipeMalinka", "int", Value(int(QGradient::RipeMalinka))), + new SymbolicConstant(c, "CloudyKnoxville", "int", Value(int(QGradient::CloudyKnoxville))), + new SymbolicConstant(c, "MalibuBeach", "int", Value(int(QGradient::MalibuBeach))), + new SymbolicConstant(c, "NewLife", "int", Value(int(QGradient::NewLife))), + new SymbolicConstant(c, "TrueSunset", "int", Value(int(QGradient::TrueSunset))), + new SymbolicConstant(c, "MorpheusDen", "int", Value(int(QGradient::MorpheusDen))), + new SymbolicConstant(c, "RareWind", "int", Value(int(QGradient::RareWind))), + new SymbolicConstant(c, "NearMoon", "int", Value(int(QGradient::NearMoon))), + new SymbolicConstant(c, "WildApple", "int", Value(int(QGradient::WildApple))), + new SymbolicConstant(c, "SaintPetersburg", "int", Value(int(QGradient::SaintPetersburg))), + new SymbolicConstant(c, "PlumPlate", "int", Value(int(QGradient::PlumPlate))), + new SymbolicConstant(c, "EverlastingSky", "int", Value(int(QGradient::EverlastingSky))), + new SymbolicConstant(c, "HappyFisher", "int", Value(int(QGradient::HappyFisher))), + new SymbolicConstant(c, "Blessing", "int", Value(int(QGradient::Blessing))), + new SymbolicConstant(c, "SharpeyeEagle", "int", Value(int(QGradient::SharpeyeEagle))), + new SymbolicConstant(c, "LadogaBottom", "int", Value(int(QGradient::LadogaBottom))), + new SymbolicConstant(c, "LemonGate", "int", Value(int(QGradient::LemonGate))), + new SymbolicConstant(c, "ItmeoBranding", "int", Value(int(QGradient::ItmeoBranding))), + new SymbolicConstant(c, "ZeusMiracle", "int", Value(int(QGradient::ZeusMiracle))), + new SymbolicConstant(c, "OldHat", "int", Value(int(QGradient::OldHat))), + new SymbolicConstant(c, "StarWine", "int", Value(int(QGradient::StarWine))), + new SymbolicConstant(c, "HappyAcid", "int", Value(int(QGradient::HappyAcid))), + new SymbolicConstant(c, "AwesomePine", "int", Value(int(QGradient::AwesomePine))), + new SymbolicConstant(c, "NewYork", "int", Value(int(QGradient::NewYork))), + new SymbolicConstant(c, "ShyRainbow", "int", Value(int(QGradient::ShyRainbow))), + new SymbolicConstant(c, "MixedHopes", "int", Value(int(QGradient::MixedHopes))), + new SymbolicConstant(c, "FlyHigh", "int", Value(int(QGradient::FlyHigh))), + new SymbolicConstant(c, "StrongBliss", "int", Value(int(QGradient::StrongBliss))), + new SymbolicConstant(c, "FreshMilk", "int", Value(int(QGradient::FreshMilk))), + new SymbolicConstant(c, "SnowAgain", "int", Value(int(QGradient::SnowAgain))), + new SymbolicConstant(c, "FebruaryInk", "int", Value(int(QGradient::FebruaryInk))), + new SymbolicConstant(c, "KindSteel", "int", Value(int(QGradient::KindSteel))), + new SymbolicConstant(c, "SoftGrass", "int", Value(int(QGradient::SoftGrass))), + new SymbolicConstant(c, "GrownEarly", "int", Value(int(QGradient::GrownEarly))), + new SymbolicConstant(c, "SharpBlues", "int", Value(int(QGradient::SharpBlues))), + new SymbolicConstant(c, "ShadyWater", "int", Value(int(QGradient::ShadyWater))), + new SymbolicConstant(c, "DirtyBeauty", "int", Value(int(QGradient::DirtyBeauty))), + new SymbolicConstant(c, "GreatWhale", "int", Value(int(QGradient::GreatWhale))), + new SymbolicConstant(c, "TeenNotebook", "int", Value(int(QGradient::TeenNotebook))), + new SymbolicConstant(c, "PoliteRumors", "int", Value(int(QGradient::PoliteRumors))), + new SymbolicConstant(c, "SweetPeriod", "int", Value(int(QGradient::SweetPeriod))), + new SymbolicConstant(c, "WideMatrix", "int", Value(int(QGradient::WideMatrix))), + new SymbolicConstant(c, "SoftCherish", "int", Value(int(QGradient::SoftCherish))), + new SymbolicConstant(c, "RedSalvation", "int", Value(int(QGradient::RedSalvation))), + new SymbolicConstant(c, "BurningSpring", "int", Value(int(QGradient::BurningSpring))), + new SymbolicConstant(c, "NightParty", "int", Value(int(QGradient::NightParty))), + new SymbolicConstant(c, "SkyGlider", "int", Value(int(QGradient::SkyGlider))), + new SymbolicConstant(c, "HeavenPeach", "int", Value(int(QGradient::HeavenPeach))), + new SymbolicConstant(c, "PurpleDivision", "int", Value(int(QGradient::PurpleDivision))), + new SymbolicConstant(c, "AquaSplash", "int", Value(int(QGradient::AquaSplash))), + new SymbolicConstant(c, "SpikyNaga", "int", Value(int(QGradient::SpikyNaga))), + new SymbolicConstant(c, "LoveKiss", "int", Value(int(QGradient::LoveKiss))), + new SymbolicConstant(c, "CleanMirror", "int", Value(int(QGradient::CleanMirror))), + new SymbolicConstant(c, "PremiumDark", "int", Value(int(QGradient::PremiumDark))), + new SymbolicConstant(c, "ColdEvening", "int", Value(int(QGradient::ColdEvening))), + new SymbolicConstant(c, "CochitiLake", "int", Value(int(QGradient::CochitiLake))), + new SymbolicConstant(c, "SummerGames", "int", Value(int(QGradient::SummerGames))), + new SymbolicConstant(c, "PassionateBed", "int", Value(int(QGradient::PassionateBed))), + new SymbolicConstant(c, "MountainRock", "int", Value(int(QGradient::MountainRock))), + new SymbolicConstant(c, "DesertHump", "int", Value(int(QGradient::DesertHump))), + new SymbolicConstant(c, "JungleDay", "int", Value(int(QGradient::JungleDay))), + new SymbolicConstant(c, "PhoenixStart", "int", Value(int(QGradient::PhoenixStart))), + new SymbolicConstant(c, "OctoberSilence", "int", Value(int(QGradient::OctoberSilence))), + new SymbolicConstant(c, "FarawayRiver", "int", Value(int(QGradient::FarawayRiver))), + new SymbolicConstant(c, "AlchemistLab", "int", Value(int(QGradient::AlchemistLab))), + new SymbolicConstant(c, "OverSun", "int", Value(int(QGradient::OverSun))), + new SymbolicConstant(c, "PremiumWhite", "int", Value(int(QGradient::PremiumWhite))), + new SymbolicConstant(c, "MarsParty", "int", Value(int(QGradient::MarsParty))), + new SymbolicConstant(c, "EternalConstance", "int", Value(int(QGradient::EternalConstance))), + new SymbolicConstant(c, "JapanBlush", "int", Value(int(QGradient::JapanBlush))), + new SymbolicConstant(c, "SmilingRain", "int", Value(int(QGradient::SmilingRain))), + new SymbolicConstant(c, "CloudyApple", "int", Value(int(QGradient::CloudyApple))), + new SymbolicConstant(c, "BigMango", "int", Value(int(QGradient::BigMango))), + new SymbolicConstant(c, "HealthyWater", "int", Value(int(QGradient::HealthyWater))), + new SymbolicConstant(c, "AmourAmour", "int", Value(int(QGradient::AmourAmour))), + new SymbolicConstant(c, "RiskyConcrete", "int", Value(int(QGradient::RiskyConcrete))), + new SymbolicConstant(c, "StrongStick", "int", Value(int(QGradient::StrongStick))), + new SymbolicConstant(c, "ViciousStance", "int", Value(int(QGradient::ViciousStance))), + new SymbolicConstant(c, "PaloAlto", "int", Value(int(QGradient::PaloAlto))), + new SymbolicConstant(c, "HappyMemories", "int", Value(int(QGradient::HappyMemories))), + new SymbolicConstant(c, "MidnightBloom", "int", Value(int(QGradient::MidnightBloom))), + new SymbolicConstant(c, "Crystalline", "int", Value(int(QGradient::Crystalline))), + new SymbolicConstant(c, "PartyBliss", "int", Value(int(QGradient::PartyBliss))), + new SymbolicConstant(c, "ConfidentCloud", "int", Value(int(QGradient::ConfidentCloud))), + new SymbolicConstant(c, "LeCocktail", "int", Value(int(QGradient::LeCocktail))), + new SymbolicConstant(c, "RiverCity", "int", Value(int(QGradient::RiverCity))), + new SymbolicConstant(c, "FrozenBerry", "int", Value(int(QGradient::FrozenBerry))), + new SymbolicConstant(c, "ChildCare", "int", Value(int(QGradient::ChildCare))), + new SymbolicConstant(c, "FlyingLemon", "int", Value(int(QGradient::FlyingLemon))), + new SymbolicConstant(c, "NewRetrowave", "int", Value(int(QGradient::NewRetrowave))), + new SymbolicConstant(c, "HiddenJaguar", "int", Value(int(QGradient::HiddenJaguar))), + new SymbolicConstant(c, "AboveTheSky", "int", Value(int(QGradient::AboveTheSky))), + new SymbolicConstant(c, "Nega", "int", Value(int(QGradient::Nega))), + new SymbolicConstant(c, "DenseWater", "int", Value(int(QGradient::DenseWater))), + new SymbolicConstant(c, "Seashore", "int", Value(int(QGradient::Seashore))), + new SymbolicConstant(c, "MarbleWall", "int", Value(int(QGradient::MarbleWall))), + new SymbolicConstant(c, "CheerfulCaramel", "int", Value(int(QGradient::CheerfulCaramel))), + new SymbolicConstant(c, "NightSky", "int", Value(int(QGradient::NightSky))), + new SymbolicConstant(c, "MagicLake", "int", Value(int(QGradient::MagicLake))), + new SymbolicConstant(c, "YoungGrass", "int", Value(int(QGradient::YoungGrass))), + new SymbolicConstant(c, "ColorfulPeach", "int", Value(int(QGradient::ColorfulPeach))), + new SymbolicConstant(c, "GentleCare", "int", Value(int(QGradient::GentleCare))), + new SymbolicConstant(c, "PlumBath", "int", Value(int(QGradient::PlumBath))), + new SymbolicConstant(c, "HappyUnicorn", "int", Value(int(QGradient::HappyUnicorn))), + new SymbolicConstant(c, "AfricanField", "int", Value(int(QGradient::AfricanField))), + new SymbolicConstant(c, "SolidStone", "int", Value(int(QGradient::SolidStone))), + new SymbolicConstant(c, "OrangeJuice", "int", Value(int(QGradient::OrangeJuice))), + new SymbolicConstant(c, "GlassWater", "int", Value(int(QGradient::GlassWater))), + new SymbolicConstant(c, "NorthMiracle", "int", Value(int(QGradient::NorthMiracle))), + new SymbolicConstant(c, "FruitBlend", "int", Value(int(QGradient::FruitBlend))), + new SymbolicConstant(c, "MillenniumPine", "int", Value(int(QGradient::MillenniumPine))), + new SymbolicConstant(c, "HighFlight", "int", Value(int(QGradient::HighFlight))), + new SymbolicConstant(c, "MoleHall", "int", Value(int(QGradient::MoleHall))), + new SymbolicConstant(c, "SpaceShift", "int", Value(int(QGradient::SpaceShift))), + new SymbolicConstant(c, "ForestInei", "int", Value(int(QGradient::ForestInei))), + new SymbolicConstant(c, "RoyalGarden", "int", Value(int(QGradient::RoyalGarden))), + new SymbolicConstant(c, "RichMetal", "int", Value(int(QGradient::RichMetal))), + new SymbolicConstant(c, "JuicyCake", "int", Value(int(QGradient::JuicyCake))), + new SymbolicConstant(c, "SmartIndigo", "int", Value(int(QGradient::SmartIndigo))), + new SymbolicConstant(c, "SandStrike", "int", Value(int(QGradient::SandStrike))), + new SymbolicConstant(c, "NorseBeauty", "int", Value(int(QGradient::NorseBeauty))), + new SymbolicConstant(c, "AquaGuidance", "int", Value(int(QGradient::AquaGuidance))), + new SymbolicConstant(c, "SunVeggie", "int", Value(int(QGradient::SunVeggie))), + new SymbolicConstant(c, "SeaLord", "int", Value(int(QGradient::SeaLord))), + new SymbolicConstant(c, "BlackSea", "int", Value(int(QGradient::BlackSea))), + new SymbolicConstant(c, "GrassShampoo", "int", Value(int(QGradient::GrassShampoo))), + new SymbolicConstant(c, "LandingAircraft", "int", Value(int(QGradient::LandingAircraft))), + new SymbolicConstant(c, "WitchDance", "int", Value(int(QGradient::WitchDance))), + new SymbolicConstant(c, "SleeplessNight", "int", Value(int(QGradient::SleeplessNight))), + new SymbolicConstant(c, "AngelCare", "int", Value(int(QGradient::AngelCare))), + new SymbolicConstant(c, "CrystalRiver", "int", Value(int(QGradient::CrystalRiver))), + new SymbolicConstant(c, "SoftLipstick", "int", Value(int(QGradient::SoftLipstick))), + new SymbolicConstant(c, "SaltMountain", "int", Value(int(QGradient::SaltMountain))), + new SymbolicConstant(c, "PerfectWhite", "int", Value(int(QGradient::PerfectWhite))), + new SymbolicConstant(c, "FreshOasis", "int", Value(int(QGradient::FreshOasis))), + new SymbolicConstant(c, "StrictNovember", "int", Value(int(QGradient::StrictNovember))), + new SymbolicConstant(c, "MorningSalad", "int", Value(int(QGradient::MorningSalad))), + new SymbolicConstant(c, "DeepRelief", "int", Value(int(QGradient::DeepRelief))), + new SymbolicConstant(c, "SeaStrike", "int", Value(int(QGradient::SeaStrike))), + new SymbolicConstant(c, "NightCall", "int", Value(int(QGradient::NightCall))), + new SymbolicConstant(c, "SupremeSky", "int", Value(int(QGradient::SupremeSky))), + new SymbolicConstant(c, "LightBlue", "int", Value(int(QGradient::LightBlue))), + new SymbolicConstant(c, "MindCrawl", "int", Value(int(QGradient::MindCrawl))), + new SymbolicConstant(c, "LilyMeadow", "int", Value(int(QGradient::LilyMeadow))), + new SymbolicConstant(c, "SugarLollipop", "int", Value(int(QGradient::SugarLollipop))), + new SymbolicConstant(c, "SweetDessert", "int", Value(int(QGradient::SweetDessert))), + new SymbolicConstant(c, "MagicRay", "int", Value(int(QGradient::MagicRay))), + new SymbolicConstant(c, "TeenParty", "int", Value(int(QGradient::TeenParty))), + new SymbolicConstant(c, "FrozenHeat", "int", Value(int(QGradient::FrozenHeat))), + new SymbolicConstant(c, "GagarinView", "int", Value(int(QGradient::GagarinView))), + new SymbolicConstant(c, "FabledSunset", "int", Value(int(QGradient::FabledSunset))), + new SymbolicConstant(c, "PerfectBlue", "int", Value(int(QGradient::PerfectBlue))), + new Alias(c, "Spread", "int"), + new SymbolicConstant(c, "PadSpread", "int", Value(int(QGradient::PadSpread))), + new SymbolicConstant(c, "RepeatSpread", "int", Value(int(QGradient::RepeatSpread))), + new SymbolicConstant(c, "ReflectSpread", "int", Value(int(QGradient::ReflectSpread))), + new Alias(c, "Type", "int"), + new SymbolicConstant(c, "LinearGradient", "int", Value(int(QGradient::LinearGradient))), + new SymbolicConstant(c, "RadialGradient", "int", Value(int(QGradient::RadialGradient))), + new SymbolicConstant(c, "ConicalGradient", "int", Value(int(QGradient::ConicalGradient))), + new SymbolicConstant(c, "NoGradient", "int", Value(int(QGradient::NoGradient))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QGradient", _n_QGradient0, None, Compiled, qt_QGradient_QGradient_QGradient_QGradient_int, Return, "qt.QGradient", Parameters, new Param(c, "this", "qt.QGradient"), new Param(c, "preset", "int"), End), + new Function(c, "coordinateMode", _n_coordinateMode0, None, Compiled, qt_QGradient_coordinateMode_int_QGradient, Return, "int", Parameters, new Param(c, "this", "qt.QGradient"), End), + new Function(c, "setColorAt", _n_setColorAt0, None, Compiled, qt_QGradient_setColorAt_void_QGradient_double_QColor, Return, "void", Parameters, new Param(c, "this", "qt.QGradient"), new Param(c, "position", "double"), new Param(c, "color", "qt.QColor"), End), + new Function(c, "setCoordinateMode", _n_setCoordinateMode0, None, Compiled, qt_QGradient_setCoordinateMode_void_QGradient_int, Return, "void", Parameters, new Param(c, "this", "qt.QGradient"), new Param(c, "mode", "int"), End), + new Function(c, "setSpread", _n_setSpread0, None, Compiled, qt_QGradient_setSpread_void_QGradient_int, Return, "void", Parameters, new Param(c, "this", "qt.QGradient"), new Param(c, "method", "int"), End), + // MISSING: setStops (void; QGradient this, "const QGradientStops &" stopPoints) + new Function(c, "spread", _n_spread0, None, Compiled, qt_QGradient_spread_int_QGradient, Return, "int", Parameters, new Param(c, "this", "qt.QGradient"), End), + // MISSING: stops ("QGradientStops"; QGradient this) + new Function(c, "type", _n_type0, None, Compiled, qt_QGradient_type_int_QGradient, Return, "int", Parameters, new Param(c, "this", "qt.QGradient"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QGradient_operatorBang_EQ__bool_QGradient_QGradient, Return, "bool", Parameters, new Param(c, "this", "qt.QGradient"), new Param(c, "gradient", "qt.QGradient"), End), + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QGradient_operatorEQ_EQ__bool_QGradient_QGradient, Return, "bool", Parameters, new Param(c, "this", "qt.QGradient"), new Param(c, "gradient", "qt.QGradient"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + + +// MISSING: setStops (void; QGradient this, "const QGradientStops &" stopPoints) +// MISSING: stops ("QGradientStops"; QGradient this) +// +// the tuple and array are created in QColorSymbols.cpp + +addSymbol( new Function(c, "setStops", setStops, None, + //Compiled, QGradient_setStops_, + Return, "int", + Parameters, + new Param(c, "this", "qt.QGradient"), + new Param(c, "this", "(double,qt.QColor)[]"), + End) ); + + +addSymbol( new Function(c, "stops", stops, None, + //Compiled, QGradient_stops_, + Return, "(double,qt.QColor)[]", + Parameters, + new Param(c, "this", "qt.QGradient"), + End) ); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QGridLayoutType.cpp b/src/lib/mu/MuQt6/QGridLayoutType.cpp new file mode 100644 index 000000000..a2811d0d4 --- /dev/null +++ b/src/lib/mu/MuQt6/QGridLayoutType.cpp @@ -0,0 +1,1180 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QGridLayout::~MuQt_QGridLayout() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QGridLayout::MuQt_QGridLayout(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QGridLayout(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QGridLayout")); +} + +int MuQt_QGridLayout::count() const +{ + if (!_env) return QGridLayout::count(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QGridLayout::count(); + } +} + +Qt::Orientations MuQt_QGridLayout::expandingDirections() const +{ + if (!_env) return QGridLayout::expandingDirections(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::Orientations)(rval._int); + } + else + { + return QGridLayout::expandingDirections(); + } +} + +bool MuQt_QGridLayout::hasHeightForWidth() const +{ + if (!_env) return QGridLayout::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QGridLayout::hasHeightForWidth(); + } +} + +int MuQt_QGridLayout::heightForWidth(int w) const +{ + if (!_env) return QGridLayout::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QGridLayout::heightForWidth(w); + } +} + +void MuQt_QGridLayout::invalidate() +{ + if (!_env) { QGridLayout::invalidate(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QGridLayout::invalidate(); + } +} + +QLayoutItem * MuQt_QGridLayout::itemAt(int index) const +{ + if (!_env) return QGridLayout::itemAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QGridLayout::itemAt(index); + } +} + +QSize MuQt_QGridLayout::maximumSize() const +{ + if (!_env) return QGridLayout::maximumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QGridLayout::maximumSize(); + } +} + +int MuQt_QGridLayout::minimumHeightForWidth(int w) const +{ + if (!_env) return QGridLayout::minimumHeightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QGridLayout::minimumHeightForWidth(w); + } +} + +QSize MuQt_QGridLayout::minimumSize() const +{ + if (!_env) return QGridLayout::minimumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QGridLayout::minimumSize(); + } +} + +void MuQt_QGridLayout::setGeometry(const QRect & rect) +{ + if (!_env) { QGridLayout::setGeometry(rect); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + Value rval = _env->call(F, args); + } + else + { + QGridLayout::setGeometry(rect); + } +} + +void MuQt_QGridLayout::setSpacing(int spacing) +{ + if (!_env) { QGridLayout::setSpacing(spacing); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(spacing); + Value rval = _env->call(F, args); + } + else + { + QGridLayout::setSpacing(spacing); + } +} + +QSize MuQt_QGridLayout::sizeHint() const +{ + if (!_env) return QGridLayout::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QGridLayout::sizeHint(); + } +} + +int MuQt_QGridLayout::spacing() const +{ + if (!_env) return QGridLayout::spacing(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QGridLayout::spacing(); + } +} + +QLayoutItem * MuQt_QGridLayout::takeAt(int index) +{ + if (!_env) return QGridLayout::takeAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QGridLayout::takeAt(index); + } +} + +void MuQt_QGridLayout::addItem(QLayoutItem * item) +{ + if (!_env) { QGridLayout::addItem(item); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makelayoutitem(c,item,"qt.QLayoutItem")); + Value rval = _env->call(F, args); + } + else + { + QGridLayout::addItem(item); + } +} + +int MuQt_QGridLayout::indexOf(const QWidget * widget) const +{ + if (!_env) return QGridLayout::indexOf(widget); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,widget,"qt.QWidget")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QGridLayout::indexOf(widget); + } +} + +QLayoutItem * MuQt_QGridLayout::replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options) +{ + if (!_env) return QGridLayout::replaceWidget(from, to, options); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,from,"qt.QWidget")); + args[2] = Value(makeinstance(c,to,"qt.QWidget")); + args[3] = Value(int(options)); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QGridLayout::replaceWidget(from, to, options); + } +} + +QSizePolicy::ControlTypes MuQt_QGridLayout::controlTypes() const +{ + if (!_env) return QGridLayout::controlTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QSizePolicy::ControlTypes)(rval._int); + } + else + { + return QGridLayout::controlTypes(); + } +} + +QRect MuQt_QGridLayout::geometry() const +{ + if (!_env) return QGridLayout::geometry(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QGridLayout::geometry(); + } +} + +bool MuQt_QGridLayout::isEmpty() const +{ + if (!_env) return QGridLayout::isEmpty(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QGridLayout::isEmpty(); + } +} + +QLayout * MuQt_QGridLayout::layout() +{ + if (!_env) return QGridLayout::layout(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QGridLayout::layout(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QGridLayoutType::QGridLayoutType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QGridLayoutType::~QGridLayoutType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QGridLayout_QGridLayout_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QGridLayout* w = object(widget)) + { + QGridLayoutType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QGridLayout"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QGridLayout_QGridLayout_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QGridLayout_QGridLayout_QGridLayout_QGridLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QGridLayout(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QGridLayout_addItem_void_QGridLayout_QLayoutItem_int_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_row, int param_column, int param_rowSpan, int param_columnSpan, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + QLayoutItem * arg1 = layoutitem(param_item); + int arg2 = (int)(param_row); + int arg3 = (int)(param_column); + int arg4 = (int)(param_rowSpan); + int arg5 = (int)(param_columnSpan); + Qt::Alignment arg6 = (Qt::Alignment)(param_alignment); + arg0->addItem(arg1, arg2, arg3, arg4, arg5, arg6); +} + +void qt_QGridLayout_addLayout_void_QGridLayout_QLayout_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_layout, int param_row, int param_column, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_layout); + int arg2 = (int)(param_row); + int arg3 = (int)(param_column); + Qt::Alignment arg4 = (Qt::Alignment)(param_alignment); + arg0->addLayout(arg1, arg2, arg3, arg4); +} + +void qt_QGridLayout_addLayout_void_QGridLayout_QLayout_int_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_layout, int param_row, int param_column, int param_rowSpan, int param_columnSpan, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_layout); + int arg2 = (int)(param_row); + int arg3 = (int)(param_column); + int arg4 = (int)(param_rowSpan); + int arg5 = (int)(param_columnSpan); + Qt::Alignment arg6 = (Qt::Alignment)(param_alignment); + arg0->addLayout(arg1, arg2, arg3, arg4, arg5, arg6); +} + +void qt_QGridLayout_addWidget_void_QGridLayout_QWidget_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, int param_row, int param_column, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + int arg2 = (int)(param_row); + int arg3 = (int)(param_column); + Qt::Alignment arg4 = (Qt::Alignment)(param_alignment); + arg0->addWidget(arg1, arg2, arg3, arg4); +} + +void qt_QGridLayout_addWidget_void_QGridLayout_QWidget_int_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, int param_fromRow, int param_fromColumn, int param_rowSpan, int param_columnSpan, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + int arg2 = (int)(param_fromRow); + int arg3 = (int)(param_fromColumn); + int arg4 = (int)(param_rowSpan); + int arg5 = (int)(param_columnSpan); + Qt::Alignment arg6 = (Qt::Alignment)(param_alignment); + arg0->addWidget(arg1, arg2, arg3, arg4, arg5, arg6); +} + +Pointer qt_QGridLayout_cellRect_QRect_QGridLayout_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return makeqtype(c,arg0->cellRect(arg1, arg2),"qt.QRect"); +} + +int qt_QGridLayout_columnCount_int_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return arg0->columnCount(); +} + +int qt_QGridLayout_columnMinimumWidth_int_QGridLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_column); + return arg0->columnMinimumWidth(arg1); +} + +int qt_QGridLayout_columnStretch_int_QGridLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_column); + return arg0->columnStretch(arg1); +} + +Pointer qt_QGridLayout_itemAtPosition_QLayoutItem_QGridLayout_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return makelayoutitem(c, arg0->itemAtPosition(arg1, arg2), "qt.QLayoutItem"); +} + +int qt_QGridLayout_originCorner_int_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return int(arg0->originCorner()); +} + +int qt_QGridLayout_rowCount_int_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return arg0->rowCount(); +} + +int qt_QGridLayout_rowMinimumHeight_int_QGridLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + return arg0->rowMinimumHeight(arg1); +} + +int qt_QGridLayout_rowStretch_int_QGridLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + return arg0->rowStretch(arg1); +} + +void qt_QGridLayout_setColumnMinimumWidth_void_QGridLayout_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_minSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_minSize); + arg0->setColumnMinimumWidth(arg1, arg2); +} + +void qt_QGridLayout_setColumnStretch_void_QGridLayout_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_stretch); + arg0->setColumnStretch(arg1, arg2); +} + +void qt_QGridLayout_setOriginCorner_void_QGridLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_corner) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + Qt::Corner arg1 = (Qt::Corner)(param_corner); + arg0->setOriginCorner(arg1); +} + +void qt_QGridLayout_setRowMinimumHeight_void_QGridLayout_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_minSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_minSize); + arg0->setRowMinimumHeight(arg1, arg2); +} + +void qt_QGridLayout_setRowStretch_void_QGridLayout_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_stretch); + arg0->setRowStretch(arg1, arg2); +} + +int qt_QGridLayout_count_int_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QGridLayout::count() : arg0->count(); +} + +int qt_QGridLayout_expandingDirections_int_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QGridLayout::expandingDirections()) : int(arg0->expandingDirections()); +} + +bool qt_QGridLayout_hasHeightForWidth_bool_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QGridLayout::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QGridLayout_heightForWidth_int_QGridLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QGridLayout::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +void qt_QGridLayout_invalidate_void_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QGridLayout::invalidate(); + else arg0->invalidate(); +} + +Pointer qt_QGridLayout_itemAt_QLayoutItem_QGridLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QGridLayout::itemAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->itemAt(arg1), "qt.QLayoutItem"); +} + +Pointer qt_QGridLayout_maximumSize_QSize_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QGridLayout::maximumSize(),"qt.QSize") : makeqtype(c,arg0->maximumSize(),"qt.QSize"); +} + +int qt_QGridLayout_minimumHeightForWidth_int_QGridLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QGridLayout::minimumHeightForWidth(arg1) : arg0->minimumHeightForWidth(arg1); +} + +Pointer qt_QGridLayout_minimumSize_QSize_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QGridLayout::minimumSize(),"qt.QSize") : makeqtype(c,arg0->minimumSize(),"qt.QSize"); +} + +void qt_QGridLayout_setGeometry_void_QGridLayout_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + if (isMuQtObject(arg0)) arg0->QGridLayout::setGeometry(arg1); + else arg0->setGeometry(arg1); +} + +void qt_QGridLayout_setSpacing_void_QGridLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_spacing) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_spacing); + if (isMuQtObject(arg0)) arg0->QGridLayout::setSpacing(arg1); + else arg0->setSpacing(arg1); +} + +Pointer qt_QGridLayout_sizeHint_QSize_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QGridLayout::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +int qt_QGridLayout_spacing_int_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QGridLayout::spacing() : arg0->spacing(); +} + +Pointer qt_QGridLayout_takeAt_QLayoutItem_QGridLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QGridLayout::takeAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->takeAt(arg1), "qt.QLayoutItem"); +} + +void qt_QGridLayout_addItem_void_QGridLayout_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + QLayoutItem * arg1 = layoutitem(param_item); + if (isMuQtObject(arg0)) ((MuQt_QGridLayout*)arg0)->addItem_pub_parent(arg1); + else ((MuQt_QGridLayout*)arg0)->addItem_pub(arg1); +} + +int qt_QGridLayout_indexOf_int_QGridLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + const QWidget * arg1 = object(param_widget); + return isMuQtObject(arg0) ? arg0->QGridLayout::indexOf(arg1) : arg0->indexOf(arg1); +} + +Pointer qt_QGridLayout_replaceWidget_QLayoutItem_QGridLayout_QWidget_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_from, Pointer param_to, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_from); + QWidget * arg2 = object(param_to); + Qt::FindChildOptions arg3 = (Qt::FindChildOptions)(param_options); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QGridLayout::replaceWidget(arg1, arg2, arg3), "qt.QLayoutItem") : makelayoutitem(c, arg0->replaceWidget(arg1, arg2, arg3), "qt.QLayoutItem"); +} + +int qt_QGridLayout_controlTypes_int_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QGridLayout::controlTypes()) : int(arg0->controlTypes()); +} + +Pointer qt_QGridLayout_geometry_QRect_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QGridLayout::geometry(),"qt.QRect") : makeqtype(c,arg0->geometry(),"qt.QRect"); +} + +bool qt_QGridLayout_isEmpty_bool_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QGridLayout::isEmpty() : arg0->isEmpty(); +} + +Pointer qt_QGridLayout_layout_QLayout_QGridLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGridLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QGridLayout::layout(), "qt.QLayout") : makeinstance(c, arg0->layout(), "qt.QLayout"); +} + + +static NODE_IMPLEMENTATION(_n_QGridLayout0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_QGridLayout_QGridLayout_QGridLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addItem0, void) +{ + qt_QGridLayout_addItem_void_QGridLayout_QLayoutItem_int_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, int), NODE_ARG(6, int)); +} + +static NODE_IMPLEMENTATION(_n_addLayout0, void) +{ + qt_QGridLayout_addLayout_void_QGridLayout_QLayout_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_addLayout1, void) +{ + qt_QGridLayout_addLayout_void_QGridLayout_QLayout_int_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, int), NODE_ARG(6, int)); +} + +static NODE_IMPLEMENTATION(_n_addWidget0, void) +{ + qt_QGridLayout_addWidget_void_QGridLayout_QWidget_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_addWidget1, void) +{ + qt_QGridLayout_addWidget_void_QGridLayout_QWidget_int_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, int), NODE_ARG(6, int)); +} + +static NODE_IMPLEMENTATION(_n_cellRect0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_cellRect_QRect_QGridLayout_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_columnCount0, int) +{ + NODE_RETURN(qt_QGridLayout_columnCount_int_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_columnMinimumWidth0, int) +{ + NODE_RETURN(qt_QGridLayout_columnMinimumWidth_int_QGridLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_columnStretch0, int) +{ + NODE_RETURN(qt_QGridLayout_columnStretch_int_QGridLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_itemAtPosition0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_itemAtPosition_QLayoutItem_QGridLayout_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_originCorner0, int) +{ + NODE_RETURN(qt_QGridLayout_originCorner_int_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rowCount0, int) +{ + NODE_RETURN(qt_QGridLayout_rowCount_int_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rowMinimumHeight0, int) +{ + NODE_RETURN(qt_QGridLayout_rowMinimumHeight_int_QGridLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_rowStretch0, int) +{ + NODE_RETURN(qt_QGridLayout_rowStretch_int_QGridLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setColumnMinimumWidth0, void) +{ + qt_QGridLayout_setColumnMinimumWidth_void_QGridLayout_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setColumnStretch0, void) +{ + qt_QGridLayout_setColumnStretch_void_QGridLayout_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setOriginCorner0, void) +{ + qt_QGridLayout_setOriginCorner_void_QGridLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setRowMinimumHeight0, void) +{ + qt_QGridLayout_setRowMinimumHeight_void_QGridLayout_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setRowStretch0, void) +{ + qt_QGridLayout_setRowStretch_void_QGridLayout_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QGridLayout_count_int_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expandingDirections0, int) +{ + NODE_RETURN(qt_QGridLayout_expandingDirections_int_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QGridLayout_hasHeightForWidth_bool_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QGridLayout_heightForWidth_int_QGridLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_invalidate0, void) +{ + qt_QGridLayout_invalidate_void_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_itemAt0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_itemAt_QLayoutItem_QGridLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_maximumSize0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_maximumSize_QSize_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumHeightForWidth0, int) +{ + NODE_RETURN(qt_QGridLayout_minimumHeightForWidth_int_QGridLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSize0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_minimumSize_QSize_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setGeometry0, void) +{ + qt_QGridLayout_setGeometry_void_QGridLayout_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSpacing0, void) +{ + qt_QGridLayout_setSpacing_void_QGridLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_sizeHint_QSize_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_spacing0, int) +{ + NODE_RETURN(qt_QGridLayout_spacing_int_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_takeAt0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_takeAt_QLayoutItem_QGridLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_addItem1, void) +{ + qt_QGridLayout_addItem_void_QGridLayout_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_indexOf0, int) +{ + NODE_RETURN(qt_QGridLayout_indexOf_int_QGridLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_replaceWidget0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_replaceWidget_QLayoutItem_QGridLayout_QWidget_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_controlTypes0, int) +{ + NODE_RETURN(qt_QGridLayout_controlTypes_int_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_geometry0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_geometry_QRect_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QGridLayout_isEmpty_bool_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_layout0, Pointer) +{ + NODE_RETURN(qt_QGridLayout_layout_QLayout_QGridLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QGridLayoutType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QGridLayout_QGridLayout_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QGridLayout", _n_QGridLayout0, None, Compiled, qt_QGridLayout_QGridLayout_QGridLayout_QGridLayout_QWidget, Return, "qt.QGridLayout", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addItem", _n_addItem0, None, Compiled, qt_QGridLayout_addItem_void_QGridLayout_QLayoutItem_int_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "item", "qt.QLayoutItem"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "rowSpan", "int", Value((int)1)), new Param(c, "columnSpan", "int", Value((int)1)), new Param(c, "alignment", "int", Value((int)Qt::Alignment())), End), + new Function(c, "addLayout", _n_addLayout0, None, Compiled, qt_QGridLayout_addLayout_void_QGridLayout_QLayout_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "layout", "qt.QLayout"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "alignment", "int", Value((int)Qt::Alignment())), End), + new Function(c, "addLayout", _n_addLayout1, None, Compiled, qt_QGridLayout_addLayout_void_QGridLayout_QLayout_int_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "layout", "qt.QLayout"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "rowSpan", "int"), new Param(c, "columnSpan", "int"), new Param(c, "alignment", "int", Value((int)Qt::Alignment())), End), + new Function(c, "addWidget", _n_addWidget0, None, Compiled, qt_QGridLayout_addWidget_void_QGridLayout_QWidget_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "widget", "qt.QWidget"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "alignment", "int", Value((int)Qt::Alignment())), End), + new Function(c, "addWidget", _n_addWidget1, None, Compiled, qt_QGridLayout_addWidget_void_QGridLayout_QWidget_int_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "widget", "qt.QWidget"), new Param(c, "fromRow", "int"), new Param(c, "fromColumn", "int"), new Param(c, "rowSpan", "int"), new Param(c, "columnSpan", "int"), new Param(c, "alignment", "int", Value((int)Qt::Alignment())), End), + new Function(c, "cellRect", _n_cellRect0, None, Compiled, qt_QGridLayout_cellRect_QRect_QGridLayout_int_int, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "row", "int"), new Param(c, "column", "int"), End), + new Function(c, "columnCount", _n_columnCount0, None, Compiled, qt_QGridLayout_columnCount_int_QGridLayout, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + new Function(c, "columnMinimumWidth", _n_columnMinimumWidth0, None, Compiled, qt_QGridLayout_columnMinimumWidth_int_QGridLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "column", "int"), End), + new Function(c, "columnStretch", _n_columnStretch0, None, Compiled, qt_QGridLayout_columnStretch_int_QGridLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "column", "int"), End), + // MISSING: getItemPosition (void; QGridLayout this, int index, "int *" row, "int *" column, "int *" rowSpan, "int *" columnSpan) + // PROP: horizontalSpacing (int; QGridLayout this) + new Function(c, "itemAtPosition", _n_itemAtPosition0, None, Compiled, qt_QGridLayout_itemAtPosition_QLayoutItem_QGridLayout_int_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "row", "int"), new Param(c, "column", "int"), End), + new Function(c, "originCorner", _n_originCorner0, None, Compiled, qt_QGridLayout_originCorner_int_QGridLayout, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + new Function(c, "rowCount", _n_rowCount0, None, Compiled, qt_QGridLayout_rowCount_int_QGridLayout, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + new Function(c, "rowMinimumHeight", _n_rowMinimumHeight0, None, Compiled, qt_QGridLayout_rowMinimumHeight_int_QGridLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "row", "int"), End), + new Function(c, "rowStretch", _n_rowStretch0, None, Compiled, qt_QGridLayout_rowStretch_int_QGridLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "row", "int"), End), + new Function(c, "setColumnMinimumWidth", _n_setColumnMinimumWidth0, None, Compiled, qt_QGridLayout_setColumnMinimumWidth_void_QGridLayout_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "column", "int"), new Param(c, "minSize", "int"), End), + new Function(c, "setColumnStretch", _n_setColumnStretch0, None, Compiled, qt_QGridLayout_setColumnStretch_void_QGridLayout_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "column", "int"), new Param(c, "stretch", "int"), End), + // PROP: setHorizontalSpacing (void; QGridLayout this, int spacing) + new Function(c, "setOriginCorner", _n_setOriginCorner0, None, Compiled, qt_QGridLayout_setOriginCorner_void_QGridLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "corner", "int"), End), + new Function(c, "setRowMinimumHeight", _n_setRowMinimumHeight0, None, Compiled, qt_QGridLayout_setRowMinimumHeight_void_QGridLayout_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "row", "int"), new Param(c, "minSize", "int"), End), + new Function(c, "setRowStretch", _n_setRowStretch0, None, Compiled, qt_QGridLayout_setRowStretch_void_QGridLayout_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "row", "int"), new Param(c, "stretch", "int"), End), + // PROP: setVerticalSpacing (void; QGridLayout this, int spacing) + // PROP: verticalSpacing (int; QGridLayout this) + _func[0] = new MemberFunction(c, "count", _n_count0, None, Compiled, qt_QGridLayout_count_int_QGridLayout, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[1] = new MemberFunction(c, "expandingDirections", _n_expandingDirections0, None, Compiled, qt_QGridLayout_expandingDirections_int_QGridLayout, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[2] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QGridLayout_hasHeightForWidth_bool_QGridLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[3] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QGridLayout_heightForWidth_int_QGridLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "w", "int"), End), + _func[4] = new MemberFunction(c, "invalidate", _n_invalidate0, None, Compiled, qt_QGridLayout_invalidate_void_QGridLayout, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[5] = new MemberFunction(c, "itemAt", _n_itemAt0, None, Compiled, qt_QGridLayout_itemAt_QLayoutItem_QGridLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "index", "int"), End), + _func[6] = new MemberFunction(c, "maximumSize", _n_maximumSize0, None, Compiled, qt_QGridLayout_maximumSize_QSize_QGridLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[7] = new MemberFunction(c, "minimumHeightForWidth", _n_minimumHeightForWidth0, None, Compiled, qt_QGridLayout_minimumHeightForWidth_int_QGridLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "w", "int"), End), + _func[8] = new MemberFunction(c, "minimumSize", _n_minimumSize0, None, Compiled, qt_QGridLayout_minimumSize_QSize_QGridLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[9] = new MemberFunction(c, "setGeometry", _n_setGeometry0, None, Compiled, qt_QGridLayout_setGeometry_void_QGridLayout_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "rect", "qt.QRect"), End), + _func[10] = new MemberFunction(c, "setSpacing", _n_setSpacing0, None, Compiled, qt_QGridLayout_setSpacing_void_QGridLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "spacing", "int"), End), + _func[11] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QGridLayout_sizeHint_QSize_QGridLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[12] = new MemberFunction(c, "spacing", _n_spacing0, None, Compiled, qt_QGridLayout_spacing_int_QGridLayout, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[13] = new MemberFunction(c, "takeAt", _n_takeAt0, None, Compiled, qt_QGridLayout_takeAt_QLayoutItem_QGridLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "index", "int"), End), + _func[14] = new MemberFunction(c, "addItem", _n_addItem1, None, Compiled, qt_QGridLayout_addItem_void_QGridLayout_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "item", "qt.QLayoutItem"), End), + _func[15] = new MemberFunction(c, "indexOf", _n_indexOf0, None, Compiled, qt_QGridLayout_indexOf_int_QGridLayout_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "widget", "qt.QWidget"), End), + _func[16] = new MemberFunction(c, "replaceWidget", _n_replaceWidget0, None, Compiled, qt_QGridLayout_replaceWidget_QLayoutItem_QGridLayout_QWidget_QWidget_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QGridLayout"), new Param(c, "from", "qt.QWidget"), new Param(c, "to", "qt.QWidget"), new Param(c, "options", "int", Value((int)Qt::FindChildrenRecursively)), End), + _func[17] = new MemberFunction(c, "controlTypes", _n_controlTypes0, None, Compiled, qt_QGridLayout_controlTypes_int_QGridLayout, Return, "int", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[18] = new MemberFunction(c, "geometry", _n_geometry0, None, Compiled, qt_QGridLayout_geometry_QRect_QGridLayout, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[19] = new MemberFunction(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QGridLayout_isEmpty_bool_QGridLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + _func[20] = new MemberFunction(c, "layout", _n_layout0, None, Compiled, qt_QGridLayout_layout_QLayout_QGridLayout, Return, "qt.QLayout", Parameters, new Param(c, "this", "qt.QGridLayout"), End), + // MISSING: childEvent (void; QGridLayout this, "QChildEvent *" e) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QGridLayout::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QGroupBoxType.cpp b/src/lib/mu/MuQt6/QGroupBoxType.cpp new file mode 100644 index 000000000..f070a9076 --- /dev/null +++ b/src/lib/mu/MuQt6/QGroupBoxType.cpp @@ -0,0 +1,1294 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QGroupBox::~MuQt_QGroupBox() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QGroupBox::MuQt_QGroupBox(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QGroupBox(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QGroupBox")); +} + +MuQt_QGroupBox::MuQt_QGroupBox(Pointer muobj, const CallEnvironment* ce, const QString & title, QWidget * parent) + : QGroupBox(title, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QGroupBox")); +} + +QSize MuQt_QGroupBox::minimumSizeHint() const +{ + if (!_env) return QGroupBox::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QGroupBox::minimumSizeHint(); + } +} + +void MuQt_QGroupBox::changeEvent(QEvent * ev) +{ + if (!_env) { QGroupBox::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::changeEvent(ev); + } +} + +bool MuQt_QGroupBox::event(QEvent * e) +{ + if (!_env) return QGroupBox::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QGroupBox::event(e); + } +} + +void MuQt_QGroupBox::focusInEvent(QFocusEvent * fe) +{ + if (!_env) { QGroupBox::focusInEvent(fe); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,fe,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::focusInEvent(fe); + } +} + +void MuQt_QGroupBox::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QGroupBox::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::mouseMoveEvent(event); + } +} + +void MuQt_QGroupBox::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QGroupBox::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::mousePressEvent(event); + } +} + +void MuQt_QGroupBox::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QGroupBox::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::mouseReleaseEvent(event); + } +} + +void MuQt_QGroupBox::paintEvent(QPaintEvent * event) +{ + if (!_env) { QGroupBox::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::paintEvent(event); + } +} + +void MuQt_QGroupBox::resizeEvent(QResizeEvent * e) +{ + if (!_env) { QGroupBox::resizeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::resizeEvent(e); + } +} + +bool MuQt_QGroupBox::hasHeightForWidth() const +{ + if (!_env) return QGroupBox::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QGroupBox::hasHeightForWidth(); + } +} + +int MuQt_QGroupBox::heightForWidth(int w) const +{ + if (!_env) return QGroupBox::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QGroupBox::heightForWidth(w); + } +} + +QVariant MuQt_QGroupBox::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QGroupBox::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QGroupBox::inputMethodQuery(query); + } +} + +QSize MuQt_QGroupBox::sizeHint() const +{ + if (!_env) return QGroupBox::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QGroupBox::sizeHint(); + } +} + +void MuQt_QGroupBox::closeEvent(QCloseEvent * event) +{ + if (!_env) { QGroupBox::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::closeEvent(event); + } +} + +void MuQt_QGroupBox::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QGroupBox::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::contextMenuEvent(event); + } +} + +void MuQt_QGroupBox::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QGroupBox::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::dragEnterEvent(event); + } +} + +void MuQt_QGroupBox::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QGroupBox::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::dragLeaveEvent(event); + } +} + +void MuQt_QGroupBox::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QGroupBox::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::dragMoveEvent(event); + } +} + +void MuQt_QGroupBox::dropEvent(QDropEvent * event) +{ + if (!_env) { QGroupBox::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::dropEvent(event); + } +} + +bool MuQt_QGroupBox::focusNextPrevChild(bool next) +{ + if (!_env) return QGroupBox::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QGroupBox::focusNextPrevChild(next); + } +} + +void MuQt_QGroupBox::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QGroupBox::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::focusOutEvent(event); + } +} + +void MuQt_QGroupBox::hideEvent(QHideEvent * event) +{ + if (!_env) { QGroupBox::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::hideEvent(event); + } +} + +void MuQt_QGroupBox::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QGroupBox::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::keyPressEvent(event); + } +} + +void MuQt_QGroupBox::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QGroupBox::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::keyReleaseEvent(event); + } +} + +void MuQt_QGroupBox::leaveEvent(QEvent * event) +{ + if (!_env) { QGroupBox::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::leaveEvent(event); + } +} + +void MuQt_QGroupBox::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QGroupBox::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::mouseDoubleClickEvent(event); + } +} + +void MuQt_QGroupBox::moveEvent(QMoveEvent * event) +{ + if (!_env) { QGroupBox::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::moveEvent(event); + } +} + +void MuQt_QGroupBox::showEvent(QShowEvent * event) +{ + if (!_env) { QGroupBox::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::showEvent(event); + } +} + +void MuQt_QGroupBox::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QGroupBox::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::tabletEvent(event); + } +} + +void MuQt_QGroupBox::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QGroupBox::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QGroupBox::wheelEvent(event); + } +} + +int MuQt_QGroupBox::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QGroupBox::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QGroupBox::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QGroupBoxType::QGroupBoxType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QGroupBoxType::~QGroupBoxType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QGroupBox_QGroupBox_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QGroupBox* w = object(widget)) + { + QGroupBoxType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QGroupBox"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QGroupBox_QGroupBox_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QGroupBox_QGroupBox_QGroupBox_QGroupBox_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QGroupBox(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QGroupBox_QGroupBox_QGroupBox_QGroupBox_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_title, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_title); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QGroupBox(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QGroupBox_minimumSizeHint_QSize_QGroupBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QGroupBox::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +void qt_QGroupBox_changeEvent_void_QGroupBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QGroupBox_event_bool_QGroupBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QGroupBox*)arg0)->event_pub_parent(arg1) : ((MuQt_QGroupBox*)arg0)->event_pub(arg1); +} + +void qt_QGroupBox_focusInEvent_void_QGroupBox_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fe) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_fe); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QGroupBox_mouseMoveEvent_void_QGroupBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QGroupBox_mousePressEvent_void_QGroupBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QGroupBox_mouseReleaseEvent_void_QGroupBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QGroupBox_paintEvent_void_QGroupBox_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->paintEvent_pub(arg1); +} + +void qt_QGroupBox_resizeEvent_void_QGroupBox_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->resizeEvent_pub(arg1); +} + +bool qt_QGroupBox_hasHeightForWidth_bool_QGroupBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QGroupBox::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QGroupBox_heightForWidth_int_QGroupBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QGroupBox::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QGroupBox_inputMethodQuery_QVariant_QGroupBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QGroupBox::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QGroupBox_sizeHint_QSize_QGroupBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QGroupBox::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QGroupBox_closeEvent_void_QGroupBox_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->closeEvent_pub(arg1); +} + +void qt_QGroupBox_contextMenuEvent_void_QGroupBox_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QGroupBox_dragEnterEvent_void_QGroupBox_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QGroupBox_dragLeaveEvent_void_QGroupBox_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QGroupBox_dragMoveEvent_void_QGroupBox_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QGroupBox_dropEvent_void_QGroupBox_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QGroupBox_focusNextPrevChild_bool_QGroupBox_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QGroupBox*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QGroupBox*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QGroupBox_focusOutEvent_void_QGroupBox_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QGroupBox_hideEvent_void_QGroupBox_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->hideEvent_pub(arg1); +} + +void qt_QGroupBox_keyPressEvent_void_QGroupBox_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QGroupBox_keyReleaseEvent_void_QGroupBox_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QGroupBox_leaveEvent_void_QGroupBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QGroupBox_mouseDoubleClickEvent_void_QGroupBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QGroupBox_moveEvent_void_QGroupBox_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->moveEvent_pub(arg1); +} + +void qt_QGroupBox_showEvent_void_QGroupBox_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->showEvent_pub(arg1); +} + +void qt_QGroupBox_tabletEvent_void_QGroupBox_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QGroupBox_wheelEvent_void_QGroupBox_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QGroupBox*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QGroupBox*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QGroupBox_metric_int_QGroupBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGroupBox* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QGroupBox*)arg0)->metric_pub_parent(arg1) : ((MuQt_QGroupBox*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QGroupBox0, Pointer) +{ + NODE_RETURN(qt_QGroupBox_QGroupBox_QGroupBox_QGroupBox_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QGroupBox1, Pointer) +{ + NODE_RETURN(qt_QGroupBox_QGroupBox_QGroupBox_QGroupBox_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QGroupBox_minimumSizeHint_QSize_QGroupBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QGroupBox_changeEvent_void_QGroupBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QGroupBox_event_bool_QGroupBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QGroupBox_focusInEvent_void_QGroupBox_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QGroupBox_mouseMoveEvent_void_QGroupBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QGroupBox_mousePressEvent_void_QGroupBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QGroupBox_mouseReleaseEvent_void_QGroupBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QGroupBox_paintEvent_void_QGroupBox_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QGroupBox_resizeEvent_void_QGroupBox_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QGroupBox_hasHeightForWidth_bool_QGroupBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QGroupBox_heightForWidth_int_QGroupBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QGroupBox_inputMethodQuery_QVariant_QGroupBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QGroupBox_sizeHint_QSize_QGroupBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QGroupBox_closeEvent_void_QGroupBox_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QGroupBox_contextMenuEvent_void_QGroupBox_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QGroupBox_dragEnterEvent_void_QGroupBox_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QGroupBox_dragLeaveEvent_void_QGroupBox_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QGroupBox_dragMoveEvent_void_QGroupBox_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QGroupBox_dropEvent_void_QGroupBox_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QGroupBox_focusNextPrevChild_bool_QGroupBox_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QGroupBox_focusOutEvent_void_QGroupBox_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QGroupBox_hideEvent_void_QGroupBox_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QGroupBox_keyPressEvent_void_QGroupBox_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QGroupBox_keyReleaseEvent_void_QGroupBox_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QGroupBox_leaveEvent_void_QGroupBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QGroupBox_mouseDoubleClickEvent_void_QGroupBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QGroupBox_moveEvent_void_QGroupBox_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QGroupBox_showEvent_void_QGroupBox_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QGroupBox_tabletEvent_void_QGroupBox_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QGroupBox_wheelEvent_void_QGroupBox_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QGroupBox_metric_int_QGroupBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QGroupBoxType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QGroupBox_QGroupBox_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QGroupBox", _n_QGroupBox0, None, Compiled, qt_QGroupBox_QGroupBox_QGroupBox_QGroupBox_QWidget, Return, "qt.QGroupBox", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QGroupBox", _n_QGroupBox1, None, Compiled, qt_QGroupBox_QGroupBox_QGroupBox_QGroupBox_string_QWidget, Return, "qt.QGroupBox", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "title", "string"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: alignment (flags Qt::Alignment; QGroupBox this) + // PROP: isCheckable (bool; QGroupBox this) + // PROP: isChecked (bool; QGroupBox this) + // PROP: isFlat (bool; QGroupBox this) + // PROP: setAlignment (void; QGroupBox this, int alignment) + // PROP: setCheckable (void; QGroupBox this, bool checkable) + // PROP: setFlat (void; QGroupBox this, bool flat) + // PROP: setTitle (void; QGroupBox this, string title) + // PROP: title (string; QGroupBox this) + _func[0] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QGroupBox_minimumSizeHint_QSize_QGroupBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QGroupBox"), End), + // MISSING: initStyleOption (void; QGroupBox this, "QStyleOptionGroupBox *" option) // protected + _func[1] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QGroupBox_changeEvent_void_QGroupBox_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "ev", "qt.QEvent"), End), + // MISSING: childEvent (void; QGroupBox this, "QChildEvent *" c) // protected + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QGroupBox_event_bool_QGroupBox_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QGroupBox_focusInEvent_void_QGroupBox_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "fe", "qt.QFocusEvent"), End), + _func[4] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QGroupBox_mouseMoveEvent_void_QGroupBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[5] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QGroupBox_mousePressEvent_void_QGroupBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[6] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QGroupBox_mouseReleaseEvent_void_QGroupBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[7] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QGroupBox_paintEvent_void_QGroupBox_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[8] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QGroupBox_resizeEvent_void_QGroupBox_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "e", "qt.QResizeEvent"), End), + _func[9] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QGroupBox_hasHeightForWidth_bool_QGroupBox, Return, "bool", Parameters, new Param(c, "this", "qt.QGroupBox"), End), + _func[10] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QGroupBox_heightForWidth_int_QGroupBox_int, Return, "int", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "w", "int"), End), + _func[11] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QGroupBox_inputMethodQuery_QVariant_QGroupBox_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "query", "int"), End), + _func[12] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QGroupBox_sizeHint_QSize_QGroupBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QGroupBox"), End), + // MISSING: paintEngine ("QPaintEngine *"; QGroupBox this) + // MISSING: actionEvent (void; QGroupBox this, "QActionEvent *" event) // protected + _func[13] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QGroupBox_closeEvent_void_QGroupBox_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[14] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QGroupBox_contextMenuEvent_void_QGroupBox_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[15] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QGroupBox_dragEnterEvent_void_QGroupBox_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[16] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QGroupBox_dragLeaveEvent_void_QGroupBox_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[17] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QGroupBox_dragMoveEvent_void_QGroupBox_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[18] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QGroupBox_dropEvent_void_QGroupBox_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QGroupBox this, "QEnterEvent *" event) // protected + _func[19] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QGroupBox_focusNextPrevChild_bool_QGroupBox_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "next", "bool"), End), + _func[20] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QGroupBox_focusOutEvent_void_QGroupBox_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[21] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QGroupBox_hideEvent_void_QGroupBox_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QGroupBox this, "QInputMethodEvent *" event) // protected + _func[22] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QGroupBox_keyPressEvent_void_QGroupBox_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[23] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QGroupBox_keyReleaseEvent_void_QGroupBox_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[24] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QGroupBox_leaveEvent_void_QGroupBox_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QEvent"), End), + _func[25] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QGroupBox_mouseDoubleClickEvent_void_QGroupBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[26] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QGroupBox_moveEvent_void_QGroupBox_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QGroupBox this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[27] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QGroupBox_showEvent_void_QGroupBox_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QShowEvent"), End), + _func[28] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QGroupBox_tabletEvent_void_QGroupBox_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[29] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QGroupBox_wheelEvent_void_QGroupBox_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QGroupBox this, "QPainter *" painter) // protected + _func[30] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QGroupBox_metric_int_QGroupBox_int, Return, "int", Parameters, new Param(c, "this", "qt.QGroupBox"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QGroupBox::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QGuiApplicationType.cpp b/src/lib/mu/MuQt6/QGuiApplicationType.cpp new file mode 100644 index 000000000..ad3f37581 --- /dev/null +++ b/src/lib/mu/MuQt6/QGuiApplicationType.cpp @@ -0,0 +1,597 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QGuiApplication::~MuQt_QGuiApplication() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +bool MuQt_QGuiApplication::notify(QObject * object, QEvent * event) +{ + if (!_env) return QGuiApplication::notify(object, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,object,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QGuiApplication::notify(object, event); + } +} + +bool MuQt_QGuiApplication::event(QEvent * e) +{ + if (!_env) return QGuiApplication::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QGuiApplication::event(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QGuiApplicationType::QGuiApplicationType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QGuiApplicationType::~QGuiApplicationType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QGuiApplication_QGuiApplication_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QGuiApplication* w = object(widget)) + { + QGuiApplicationType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QGuiApplication"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QGuiApplication_QGuiApplication_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +double qt_QGuiApplication_devicePixelRatio_double_QGuiApplication(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGuiApplication* arg0 = object(param_this); + return arg0->devicePixelRatio(); +} + +bool qt_QGuiApplication_isSavingSession_bool_QGuiApplication(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGuiApplication* arg0 = object(param_this); + return arg0->isSavingSession(); +} + +bool qt_QGuiApplication_isSessionRestored_bool_QGuiApplication(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGuiApplication* arg0 = object(param_this); + return arg0->isSessionRestored(); +} + +Pointer qt_QGuiApplication_sessionId_string_QGuiApplication(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGuiApplication* arg0 = object(param_this); + return makestring(c,arg0->sessionId()); +} + +Pointer qt_QGuiApplication_sessionKey_string_QGuiApplication(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGuiApplication* arg0 = object(param_this); + return makestring(c,arg0->sessionKey()); +} + +bool qt_QGuiApplication_notify_bool_QGuiApplication_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGuiApplication* arg0 = object(param_this); + QObject * arg1 = object(param_object); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QGuiApplication::notify(arg1, arg2) : arg0->notify(arg1, arg2); +} + +bool qt_QGuiApplication_event_bool_QGuiApplication_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGuiApplication* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QGuiApplication*)arg0)->event_pub_parent(arg1) : ((MuQt_QGuiApplication*)arg0)->event_pub(arg1); +} + +int qt_QGuiApplication_applicationState_int(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return int(QGuiApplication::applicationState()); +} + +void qt_QGuiApplication_changeOverrideCursor_void_QCursor(Mu::Thread& NODE_THREAD, Pointer param_cursor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QCursor arg0 = getqtype(param_cursor); + QGuiApplication::changeOverrideCursor(arg0); +} + +Pointer qt_QGuiApplication_clipboard_QClipboard(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QGuiApplication::clipboard(), "qt.QClipboard"); +} + +bool qt_QGuiApplication_desktopSettingsAware_bool(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QGuiApplication::desktopSettingsAware(); +} + +int qt_QGuiApplication_exec_int(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QGuiApplication::exec(); +} + +Pointer qt_QGuiApplication_focusObject_QObject(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QGuiApplication::focusObject(), "qt.QObject"); +} + +Pointer qt_QGuiApplication_font_QFont(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QGuiApplication::font(),"qt.QFont"); +} + +int qt_QGuiApplication_highDpiScaleFactorRoundingPolicy_int(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return int(QGuiApplication::highDpiScaleFactorRoundingPolicy()); +} + +bool qt_QGuiApplication_isLeftToRight_bool(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QGuiApplication::isLeftToRight(); +} + +bool qt_QGuiApplication_isRightToLeft_bool(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QGuiApplication::isRightToLeft(); +} + +int qt_QGuiApplication_keyboardModifiers_int(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return int(QGuiApplication::keyboardModifiers()); +} + +int qt_QGuiApplication_mouseButtons_int(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return int(QGuiApplication::mouseButtons()); +} + +Pointer qt_QGuiApplication_palette_QPalette(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QGuiApplication::palette(),"qt.QPalette"); +} + +Pointer qt_QGuiApplication_primaryScreen_QScreen(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QGuiApplication::primaryScreen(), "qt.QScreen"); +} + +int qt_QGuiApplication_queryKeyboardModifiers_int(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return int(QGuiApplication::queryKeyboardModifiers()); +} + +void qt_QGuiApplication_restoreOverrideCursor_void(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGuiApplication::restoreOverrideCursor(); +} + +Pointer qt_QGuiApplication_screenAt_QScreen_QPoint(Mu::Thread& NODE_THREAD, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg0 = getqtype(param_point); + return makeinstance(c, QGuiApplication::screenAt(arg0), "qt.QScreen"); +} + +void qt_QGuiApplication_setDesktopSettingsAware_void_bool(Mu::Thread& NODE_THREAD, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + bool arg0 = (bool)(param_on); + QGuiApplication::setDesktopSettingsAware(arg0); +} + +void qt_QGuiApplication_setFont_void_QFont(Mu::Thread& NODE_THREAD, Pointer param_font) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QFont arg0 = getqtype(param_font); + QGuiApplication::setFont(arg0); +} + +void qt_QGuiApplication_setHighDpiScaleFactorRoundingPolicy_void_int(Mu::Thread& NODE_THREAD, int param_policy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::HighDpiScaleFactorRoundingPolicy arg0 = (Qt::HighDpiScaleFactorRoundingPolicy)(param_policy); + QGuiApplication::setHighDpiScaleFactorRoundingPolicy(arg0); +} + +void qt_QGuiApplication_setOverrideCursor_void_QCursor(Mu::Thread& NODE_THREAD, Pointer param_cursor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QCursor arg0 = getqtype(param_cursor); + QGuiApplication::setOverrideCursor(arg0); +} + +void qt_QGuiApplication_setPalette_void_QPalette(Mu::Thread& NODE_THREAD, Pointer param_pal) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette arg0 = getqtype(param_pal); + QGuiApplication::setPalette(arg0); +} + +void qt_QGuiApplication_sync_void(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QGuiApplication::sync(); +} + + +static NODE_IMPLEMENTATION(_n_devicePixelRatio0, double) +{ + NODE_RETURN(qt_QGuiApplication_devicePixelRatio_double_QGuiApplication(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSavingSession0, bool) +{ + NODE_RETURN(qt_QGuiApplication_isSavingSession_bool_QGuiApplication(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSessionRestored0, bool) +{ + NODE_RETURN(qt_QGuiApplication_isSessionRestored_bool_QGuiApplication(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sessionId0, Pointer) +{ + NODE_RETURN(qt_QGuiApplication_sessionId_string_QGuiApplication(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sessionKey0, Pointer) +{ + NODE_RETURN(qt_QGuiApplication_sessionKey_string_QGuiApplication(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_notify0, bool) +{ + NODE_RETURN(qt_QGuiApplication_notify_bool_QGuiApplication_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QGuiApplication_event_bool_QGuiApplication_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_applicationState0, int) +{ + NODE_RETURN(qt_QGuiApplication_applicationState_int(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_changeOverrideCursor0, void) +{ + qt_QGuiApplication_changeOverrideCursor_void_QCursor(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_clipboard0, Pointer) +{ + NODE_RETURN(qt_QGuiApplication_clipboard_QClipboard(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_desktopSettingsAware0, bool) +{ + NODE_RETURN(qt_QGuiApplication_desktopSettingsAware_bool(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_exec0, int) +{ + NODE_RETURN(qt_QGuiApplication_exec_int(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_focusObject0, Pointer) +{ + NODE_RETURN(qt_QGuiApplication_focusObject_QObject(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_font0, Pointer) +{ + NODE_RETURN(qt_QGuiApplication_font_QFont(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_highDpiScaleFactorRoundingPolicy0, int) +{ + NODE_RETURN(qt_QGuiApplication_highDpiScaleFactorRoundingPolicy_int(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_isLeftToRight0, bool) +{ + NODE_RETURN(qt_QGuiApplication_isLeftToRight_bool(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_isRightToLeft0, bool) +{ + NODE_RETURN(qt_QGuiApplication_isRightToLeft_bool(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_keyboardModifiers0, int) +{ + NODE_RETURN(qt_QGuiApplication_keyboardModifiers_int(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_mouseButtons0, int) +{ + NODE_RETURN(qt_QGuiApplication_mouseButtons_int(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_palette0, Pointer) +{ + NODE_RETURN(qt_QGuiApplication_palette_QPalette(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_primaryScreen0, Pointer) +{ + NODE_RETURN(qt_QGuiApplication_primaryScreen_QScreen(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_queryKeyboardModifiers0, int) +{ + NODE_RETURN(qt_QGuiApplication_queryKeyboardModifiers_int(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_restoreOverrideCursor0, void) +{ + qt_QGuiApplication_restoreOverrideCursor_void(NODE_THREAD); +} + +static NODE_IMPLEMENTATION(_n_screenAt0, Pointer) +{ + NODE_RETURN(qt_QGuiApplication_screenAt_QScreen_QPoint(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setDesktopSettingsAware0, void) +{ + qt_QGuiApplication_setDesktopSettingsAware_void_bool(NODE_THREAD, NODE_ARG(0, bool)); +} + +static NODE_IMPLEMENTATION(_n_setFont0, void) +{ + qt_QGuiApplication_setFont_void_QFont(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHighDpiScaleFactorRoundingPolicy0, void) +{ + qt_QGuiApplication_setHighDpiScaleFactorRoundingPolicy_void_int(NODE_THREAD, NODE_ARG(0, int)); +} + +static NODE_IMPLEMENTATION(_n_setOverrideCursor0, void) +{ + qt_QGuiApplication_setOverrideCursor_void_QCursor(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPalette0, void) +{ + qt_QGuiApplication_setPalette_void_QPalette(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sync0, void) +{ + qt_QGuiApplication_sync_void(NODE_THREAD); +} + + + +void +QGuiApplicationType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QGuiApplication_QGuiApplication_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + // MISSING: QGuiApplication (QGuiApplication; QGuiApplication this, "int &" argc, "char * *" argv) + new Function(c, "devicePixelRatio", _n_devicePixelRatio0, None, Compiled, qt_QGuiApplication_devicePixelRatio_double_QGuiApplication, Return, "double", Parameters, new Param(c, "this", "qt.QGuiApplication"), End), + new Function(c, "isSavingSession", _n_isSavingSession0, None, Compiled, qt_QGuiApplication_isSavingSession_bool_QGuiApplication, Return, "bool", Parameters, new Param(c, "this", "qt.QGuiApplication"), End), + new Function(c, "isSessionRestored", _n_isSessionRestored0, None, Compiled, qt_QGuiApplication_isSessionRestored_bool_QGuiApplication, Return, "bool", Parameters, new Param(c, "this", "qt.QGuiApplication"), End), + // MISSING: nativeInterface ("QNativeInterface *"; QGuiApplication this) + new Function(c, "sessionId", _n_sessionId0, None, Compiled, qt_QGuiApplication_sessionId_string_QGuiApplication, Return, "string", Parameters, new Param(c, "this", "qt.QGuiApplication"), End), + new Function(c, "sessionKey", _n_sessionKey0, None, Compiled, qt_QGuiApplication_sessionKey_string_QGuiApplication, Return, "string", Parameters, new Param(c, "this", "qt.QGuiApplication"), End), + _func[0] = new MemberFunction(c, "notify", _n_notify0, None, Compiled, qt_QGuiApplication_notify_bool_QGuiApplication_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QGuiApplication"), new Param(c, "object", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QGuiApplication_event_bool_QGuiApplication_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QGuiApplication"), new Param(c, "e", "qt.QEvent"), End), + // static functions + // MISSING: allWindows ("QWindowList"; ) + new Function(c, "applicationState", _n_applicationState0, None, Compiled, qt_QGuiApplication_applicationState_int, Return, "int", End), + new Function(c, "changeOverrideCursor", _n_changeOverrideCursor0, None, Compiled, qt_QGuiApplication_changeOverrideCursor_void_QCursor, Return, "void", Parameters, new Param(c, "cursor", "qt.QCursor"), End), + new Function(c, "clipboard", _n_clipboard0, None, Compiled, qt_QGuiApplication_clipboard_QClipboard, Return, "qt.QClipboard", End), + new Function(c, "desktopSettingsAware", _n_desktopSettingsAware0, None, Compiled, qt_QGuiApplication_desktopSettingsAware_bool, Return, "bool", End), + new Function(c, "exec", _n_exec0, None, Compiled, qt_QGuiApplication_exec_int, Return, "int", End), + new Function(c, "focusObject", _n_focusObject0, None, Compiled, qt_QGuiApplication_focusObject_QObject, Return, "qt.QObject", End), + // MISSING: focusWindow ("QWindow *"; ) + new Function(c, "font", _n_font0, None, Compiled, qt_QGuiApplication_font_QFont, Return, "qt.QFont", End), + new Function(c, "highDpiScaleFactorRoundingPolicy", _n_highDpiScaleFactorRoundingPolicy0, None, Compiled, qt_QGuiApplication_highDpiScaleFactorRoundingPolicy_int, Return, "int", End), + // MISSING: inputMethod ("QInputMethod *"; ) + new Function(c, "isLeftToRight", _n_isLeftToRight0, None, Compiled, qt_QGuiApplication_isLeftToRight_bool, Return, "bool", End), + new Function(c, "isRightToLeft", _n_isRightToLeft0, None, Compiled, qt_QGuiApplication_isRightToLeft_bool, Return, "bool", End), + new Function(c, "keyboardModifiers", _n_keyboardModifiers0, None, Compiled, qt_QGuiApplication_keyboardModifiers_int, Return, "int", End), + // MISSING: modalWindow ("QWindow *"; ) + new Function(c, "mouseButtons", _n_mouseButtons0, None, Compiled, qt_QGuiApplication_mouseButtons_int, Return, "int", End), + new Function(c, "palette", _n_palette0, None, Compiled, qt_QGuiApplication_palette_QPalette, Return, "qt.QPalette", End), + new Function(c, "primaryScreen", _n_primaryScreen0, None, Compiled, qt_QGuiApplication_primaryScreen_QScreen, Return, "qt.QScreen", End), + new Function(c, "queryKeyboardModifiers", _n_queryKeyboardModifiers0, None, Compiled, qt_QGuiApplication_queryKeyboardModifiers_int, Return, "int", End), + new Function(c, "restoreOverrideCursor", _n_restoreOverrideCursor0, None, Compiled, qt_QGuiApplication_restoreOverrideCursor_void, Return, "void", End), + new Function(c, "screenAt", _n_screenAt0, None, Compiled, qt_QGuiApplication_screenAt_QScreen_QPoint, Return, "qt.QScreen", Parameters, new Param(c, "point", "qt.QPoint"), End), + // MISSING: screens ("QList"; ) + new Function(c, "setDesktopSettingsAware", _n_setDesktopSettingsAware0, None, Compiled, qt_QGuiApplication_setDesktopSettingsAware_void_bool, Return, "void", Parameters, new Param(c, "on", "bool"), End), + new Function(c, "setFont", _n_setFont0, None, Compiled, qt_QGuiApplication_setFont_void_QFont, Return, "void", Parameters, new Param(c, "font", "qt.QFont"), End), + new Function(c, "setHighDpiScaleFactorRoundingPolicy", _n_setHighDpiScaleFactorRoundingPolicy0, None, Compiled, qt_QGuiApplication_setHighDpiScaleFactorRoundingPolicy_void_int, Return, "void", Parameters, new Param(c, "policy", "int"), End), + new Function(c, "setOverrideCursor", _n_setOverrideCursor0, None, Compiled, qt_QGuiApplication_setOverrideCursor_void_QCursor, Return, "void", Parameters, new Param(c, "cursor", "qt.QCursor"), End), + new Function(c, "setPalette", _n_setPalette0, None, Compiled, qt_QGuiApplication_setPalette_void_QPalette, Return, "void", Parameters, new Param(c, "pal", "qt.QPalette"), End), + // MISSING: styleHints ("QStyleHints *"; ) + new Function(c, "sync", _n_sync0, None, Compiled, qt_QGuiApplication_sync_void, Return, "void", End), + // MISSING: topLevelAt ("QWindow *"; QPoint pos) + // MISSING: topLevelWindows ("QWindowList"; ) + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QGuiApplication::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QHBoxLayoutType.cpp b/src/lib/mu/MuQt6/QHBoxLayoutType.cpp new file mode 100644 index 000000000..a7a63ae68 --- /dev/null +++ b/src/lib/mu/MuQt6/QHBoxLayoutType.cpp @@ -0,0 +1,705 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QHBoxLayout::~MuQt_QHBoxLayout() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QHBoxLayout::MuQt_QHBoxLayout(Pointer muobj, const CallEnvironment* ce) + : QHBoxLayout() +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QHBoxLayout")); +} + +MuQt_QHBoxLayout::MuQt_QHBoxLayout(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QHBoxLayout(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QHBoxLayout")); +} + +void MuQt_QHBoxLayout::addItem(QLayoutItem * item) +{ + if (!_env) { QHBoxLayout::addItem(item); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makelayoutitem(c,item,"qt.QLayoutItem")); + Value rval = _env->call(F, args); + } + else + { + QHBoxLayout::addItem(item); + } +} + +int MuQt_QHBoxLayout::count() const +{ + if (!_env) return QHBoxLayout::count(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QHBoxLayout::count(); + } +} + +Qt::Orientations MuQt_QHBoxLayout::expandingDirections() const +{ + if (!_env) return QHBoxLayout::expandingDirections(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::Orientations)(rval._int); + } + else + { + return QHBoxLayout::expandingDirections(); + } +} + +bool MuQt_QHBoxLayout::hasHeightForWidth() const +{ + if (!_env) return QHBoxLayout::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QHBoxLayout::hasHeightForWidth(); + } +} + +int MuQt_QHBoxLayout::heightForWidth(int w) const +{ + if (!_env) return QHBoxLayout::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QHBoxLayout::heightForWidth(w); + } +} + +void MuQt_QHBoxLayout::invalidate() +{ + if (!_env) { QHBoxLayout::invalidate(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QHBoxLayout::invalidate(); + } +} + +QLayoutItem * MuQt_QHBoxLayout::itemAt(int index) const +{ + if (!_env) return QHBoxLayout::itemAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QHBoxLayout::itemAt(index); + } +} + +QSize MuQt_QHBoxLayout::maximumSize() const +{ + if (!_env) return QHBoxLayout::maximumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QHBoxLayout::maximumSize(); + } +} + +int MuQt_QHBoxLayout::minimumHeightForWidth(int w) const +{ + if (!_env) return QHBoxLayout::minimumHeightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QHBoxLayout::minimumHeightForWidth(w); + } +} + +QSize MuQt_QHBoxLayout::minimumSize() const +{ + if (!_env) return QHBoxLayout::minimumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QHBoxLayout::minimumSize(); + } +} + +void MuQt_QHBoxLayout::setGeometry(const QRect & r) +{ + if (!_env) { QHBoxLayout::setGeometry(r); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,r,"qt.QRect")); + Value rval = _env->call(F, args); + } + else + { + QHBoxLayout::setGeometry(r); + } +} + +void MuQt_QHBoxLayout::setSpacing(int spacing) +{ + if (!_env) { QHBoxLayout::setSpacing(spacing); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(spacing); + Value rval = _env->call(F, args); + } + else + { + QHBoxLayout::setSpacing(spacing); + } +} + +QSize MuQt_QHBoxLayout::sizeHint() const +{ + if (!_env) return QHBoxLayout::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QHBoxLayout::sizeHint(); + } +} + +int MuQt_QHBoxLayout::spacing() const +{ + if (!_env) return QHBoxLayout::spacing(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QHBoxLayout::spacing(); + } +} + +QLayoutItem * MuQt_QHBoxLayout::takeAt(int index) +{ + if (!_env) return QHBoxLayout::takeAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QHBoxLayout::takeAt(index); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QHBoxLayoutType::QHBoxLayoutType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QHBoxLayoutType::~QHBoxLayoutType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QHBoxLayout_QHBoxLayout_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QHBoxLayout* w = object(widget)) + { + QHBoxLayoutType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QHBoxLayout"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QHBoxLayout_QHBoxLayout_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QHBoxLayout_QHBoxLayout_QHBoxLayout_QHBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setobject(param_this, new MuQt_QHBoxLayout(param_this, NODE_THREAD.process()->callEnv())); + return param_this; +} + +Pointer qt_QHBoxLayout_QHBoxLayout_QHBoxLayout_QHBoxLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QHBoxLayout(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QHBoxLayout_addItem_void_QHBoxLayout_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + QLayoutItem * arg1 = layoutitem(param_item); + if (isMuQtObject(arg0)) arg0->QHBoxLayout::addItem(arg1); + else arg0->addItem(arg1); +} + +int qt_QHBoxLayout_count_int_QHBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QHBoxLayout::count() : arg0->count(); +} + +int qt_QHBoxLayout_expandingDirections_int_QHBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QHBoxLayout::expandingDirections()) : int(arg0->expandingDirections()); +} + +bool qt_QHBoxLayout_hasHeightForWidth_bool_QHBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QHBoxLayout::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QHBoxLayout_heightForWidth_int_QHBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QHBoxLayout::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +void qt_QHBoxLayout_invalidate_void_QHBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QHBoxLayout::invalidate(); + else arg0->invalidate(); +} + +Pointer qt_QHBoxLayout_itemAt_QLayoutItem_QHBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QHBoxLayout::itemAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->itemAt(arg1), "qt.QLayoutItem"); +} + +Pointer qt_QHBoxLayout_maximumSize_QSize_QHBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QHBoxLayout::maximumSize(),"qt.QSize") : makeqtype(c,arg0->maximumSize(),"qt.QSize"); +} + +int qt_QHBoxLayout_minimumHeightForWidth_int_QHBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QHBoxLayout::minimumHeightForWidth(arg1) : arg0->minimumHeightForWidth(arg1); +} + +Pointer qt_QHBoxLayout_minimumSize_QSize_QHBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QHBoxLayout::minimumSize(),"qt.QSize") : makeqtype(c,arg0->minimumSize(),"qt.QSize"); +} + +void qt_QHBoxLayout_setGeometry_void_QHBoxLayout_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + const QRect arg1 = getqtype(param_r); + if (isMuQtObject(arg0)) arg0->QHBoxLayout::setGeometry(arg1); + else arg0->setGeometry(arg1); +} + +void qt_QHBoxLayout_setSpacing_void_QHBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_spacing) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_spacing); + if (isMuQtObject(arg0)) arg0->QHBoxLayout::setSpacing(arg1); + else arg0->setSpacing(arg1); +} + +Pointer qt_QHBoxLayout_sizeHint_QSize_QHBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QHBoxLayout::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +int qt_QHBoxLayout_spacing_int_QHBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QHBoxLayout::spacing() : arg0->spacing(); +} + +Pointer qt_QHBoxLayout_takeAt_QLayoutItem_QHBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QHBoxLayout::takeAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->takeAt(arg1), "qt.QLayoutItem"); +} + + +static NODE_IMPLEMENTATION(_n_QHBoxLayout0, Pointer) +{ + NODE_RETURN(qt_QHBoxLayout_QHBoxLayout_QHBoxLayout_QHBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QHBoxLayout1, Pointer) +{ + NODE_RETURN(qt_QHBoxLayout_QHBoxLayout_QHBoxLayout_QHBoxLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addItem0, void) +{ + qt_QHBoxLayout_addItem_void_QHBoxLayout_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QHBoxLayout_count_int_QHBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expandingDirections0, int) +{ + NODE_RETURN(qt_QHBoxLayout_expandingDirections_int_QHBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QHBoxLayout_hasHeightForWidth_bool_QHBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QHBoxLayout_heightForWidth_int_QHBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_invalidate0, void) +{ + qt_QHBoxLayout_invalidate_void_QHBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_itemAt0, Pointer) +{ + NODE_RETURN(qt_QHBoxLayout_itemAt_QLayoutItem_QHBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_maximumSize0, Pointer) +{ + NODE_RETURN(qt_QHBoxLayout_maximumSize_QSize_QHBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumHeightForWidth0, int) +{ + NODE_RETURN(qt_QHBoxLayout_minimumHeightForWidth_int_QHBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSize0, Pointer) +{ + NODE_RETURN(qt_QHBoxLayout_minimumSize_QSize_QHBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setGeometry0, void) +{ + qt_QHBoxLayout_setGeometry_void_QHBoxLayout_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSpacing0, void) +{ + qt_QHBoxLayout_setSpacing_void_QHBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QHBoxLayout_sizeHint_QSize_QHBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_spacing0, int) +{ + NODE_RETURN(qt_QHBoxLayout_spacing_int_QHBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_takeAt0, Pointer) +{ + NODE_RETURN(qt_QHBoxLayout_takeAt_QLayoutItem_QHBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QHBoxLayoutType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QHBoxLayout_QHBoxLayout_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QHBoxLayout", _n_QHBoxLayout0, None, Compiled, qt_QHBoxLayout_QHBoxLayout_QHBoxLayout_QHBoxLayout, Return, "qt.QHBoxLayout", Parameters, new Param(c, "this", "qt.QHBoxLayout"), End), + new Function(c, "QHBoxLayout", _n_QHBoxLayout1, None, Compiled, qt_QHBoxLayout_QHBoxLayout_QHBoxLayout_QHBoxLayout_QWidget, Return, "qt.QHBoxLayout", Parameters, new Param(c, "this", "qt.QHBoxLayout"), new Param(c, "parent", "qt.QWidget"), End), + _func[0] = new MemberFunction(c, "addItem", _n_addItem0, None, Compiled, qt_QHBoxLayout_addItem_void_QHBoxLayout_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QHBoxLayout"), new Param(c, "item", "qt.QLayoutItem"), End), + _func[1] = new MemberFunction(c, "count", _n_count0, None, Compiled, qt_QHBoxLayout_count_int_QHBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QHBoxLayout"), End), + _func[2] = new MemberFunction(c, "expandingDirections", _n_expandingDirections0, None, Compiled, qt_QHBoxLayout_expandingDirections_int_QHBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QHBoxLayout"), End), + _func[3] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QHBoxLayout_hasHeightForWidth_bool_QHBoxLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QHBoxLayout"), End), + _func[4] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QHBoxLayout_heightForWidth_int_QHBoxLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QHBoxLayout"), new Param(c, "w", "int"), End), + _func[5] = new MemberFunction(c, "invalidate", _n_invalidate0, None, Compiled, qt_QHBoxLayout_invalidate_void_QHBoxLayout, Return, "void", Parameters, new Param(c, "this", "qt.QHBoxLayout"), End), + _func[6] = new MemberFunction(c, "itemAt", _n_itemAt0, None, Compiled, qt_QHBoxLayout_itemAt_QLayoutItem_QHBoxLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QHBoxLayout"), new Param(c, "index", "int"), End), + _func[7] = new MemberFunction(c, "maximumSize", _n_maximumSize0, None, Compiled, qt_QHBoxLayout_maximumSize_QSize_QHBoxLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QHBoxLayout"), End), + _func[8] = new MemberFunction(c, "minimumHeightForWidth", _n_minimumHeightForWidth0, None, Compiled, qt_QHBoxLayout_minimumHeightForWidth_int_QHBoxLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QHBoxLayout"), new Param(c, "w", "int"), End), + _func[9] = new MemberFunction(c, "minimumSize", _n_minimumSize0, None, Compiled, qt_QHBoxLayout_minimumSize_QSize_QHBoxLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QHBoxLayout"), End), + _func[10] = new MemberFunction(c, "setGeometry", _n_setGeometry0, None, Compiled, qt_QHBoxLayout_setGeometry_void_QHBoxLayout_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QHBoxLayout"), new Param(c, "r", "qt.QRect"), End), + _func[11] = new MemberFunction(c, "setSpacing", _n_setSpacing0, None, Compiled, qt_QHBoxLayout_setSpacing_void_QHBoxLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QHBoxLayout"), new Param(c, "spacing", "int"), End), + _func[12] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QHBoxLayout_sizeHint_QSize_QHBoxLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QHBoxLayout"), End), + _func[13] = new MemberFunction(c, "spacing", _n_spacing0, None, Compiled, qt_QHBoxLayout_spacing_int_QHBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QHBoxLayout"), End), + _func[14] = new MemberFunction(c, "takeAt", _n_takeAt0, None, Compiled, qt_QHBoxLayout_takeAt_QLayoutItem_QHBoxLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QHBoxLayout"), new Param(c, "index", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QHBoxLayout::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QHeaderViewType.cpp b/src/lib/mu/MuQt6/QHeaderViewType.cpp new file mode 100644 index 000000000..fed77e8a0 --- /dev/null +++ b/src/lib/mu/MuQt6/QHeaderViewType.cpp @@ -0,0 +1,2114 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QHeaderView::~MuQt_QHeaderView() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QHeaderView::MuQt_QHeaderView(Pointer muobj, const CallEnvironment* ce, Qt::Orientation orientation, QWidget * parent) + : QHeaderView(orientation, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QHeaderView")); +} + +void MuQt_QHeaderView::reset() +{ + if (!_env) { QHeaderView::reset(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::reset(); + } +} + +void MuQt_QHeaderView::setModel(QAbstractItemModel * model) +{ + if (!_env) { QHeaderView::setModel(model); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,model,"qt.QAbstractItemModel")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::setModel(model); + } +} + +void MuQt_QHeaderView::setVisible(bool v) +{ + if (!_env) { QHeaderView::setVisible(v); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(v); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::setVisible(v); + } +} + +QSize MuQt_QHeaderView::sizeHint() const +{ + if (!_env) return QHeaderView::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QHeaderView::sizeHint(); + } +} + +QSize MuQt_QHeaderView::sectionSizeFromContents(int logicalIndex) const +{ + if (!_env) return QHeaderView::sectionSizeFromContents(logicalIndex); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(logicalIndex); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QHeaderView::sectionSizeFromContents(logicalIndex); + } +} + +void MuQt_QHeaderView::currentChanged(const QModelIndex & current, const QModelIndex & old) +{ + if (!_env) { QHeaderView::currentChanged(current, old); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,current,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,old,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::currentChanged(current, old); + } +} + +bool MuQt_QHeaderView::event(QEvent * e) +{ + if (!_env) return QHeaderView::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QHeaderView::event(e); + } +} + +int MuQt_QHeaderView::horizontalOffset() const +{ + if (!_env) return QHeaderView::horizontalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QHeaderView::horizontalOffset(); + } +} + +void MuQt_QHeaderView::mouseDoubleClickEvent(QMouseEvent * e) +{ + if (!_env) { QHeaderView::mouseDoubleClickEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::mouseDoubleClickEvent(e); + } +} + +void MuQt_QHeaderView::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QHeaderView::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::mouseMoveEvent(e); + } +} + +void MuQt_QHeaderView::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QHeaderView::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::mousePressEvent(e); + } +} + +void MuQt_QHeaderView::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QHeaderView::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::mouseReleaseEvent(e); + } +} + +void MuQt_QHeaderView::paintEvent(QPaintEvent * e) +{ + if (!_env) { QHeaderView::paintEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::paintEvent(e); + } +} + +void MuQt_QHeaderView::setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags flags) +{ + if (!_env) { QHeaderView::setSelection(rect, flags); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + args[2] = Value(int(flags)); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::setSelection(rect, flags); + } +} + +int MuQt_QHeaderView::verticalOffset() const +{ + if (!_env) return QHeaderView::verticalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QHeaderView::verticalOffset(); + } +} + +bool MuQt_QHeaderView::viewportEvent(QEvent * e) +{ + if (!_env) return QHeaderView::viewportEvent(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QHeaderView::viewportEvent(e); + } +} + +void MuQt_QHeaderView::keyboardSearch(const QString & search) +{ + if (!_env) { QHeaderView::keyboardSearch(search); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makestring(c,search)); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::keyboardSearch(search); + } +} + +void MuQt_QHeaderView::setSelectionModel(QItemSelectionModel * selectionModel) +{ + if (!_env) { QHeaderView::setSelectionModel(selectionModel); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,selectionModel,"qt.QItemSelectionModel")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::setSelectionModel(selectionModel); + } +} + +int MuQt_QHeaderView::sizeHintForColumn(int column) const +{ + if (!_env) return QHeaderView::sizeHintForColumn(column); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QHeaderView::sizeHintForColumn(column); + } +} + +int MuQt_QHeaderView::sizeHintForRow(int row) const +{ + if (!_env) return QHeaderView::sizeHintForRow(row); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QHeaderView::sizeHintForRow(row); + } +} + +QVariant MuQt_QHeaderView::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QHeaderView::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QHeaderView::inputMethodQuery(query); + } +} + +bool MuQt_QHeaderView::edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) +{ + if (!_env) return QHeaderView::edit(index, trigger, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(trigger)); + args[3] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QHeaderView::edit(index, trigger, event); + } +} + +bool MuQt_QHeaderView::isIndexHidden(const QModelIndex & index) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return defaultValue(); + } +} + +QModelIndexList MuQt_QHeaderView::selectedIndexes() const +{ + if (!_env) return QHeaderView::selectedIndexes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QHeaderView::selectedIndexes(); + } +} + +QItemSelectionModel::SelectionFlags MuQt_QHeaderView::selectionCommand(const QModelIndex & index, const QEvent * event) const +{ + if (!_env) return QHeaderView::selectionCommand(index, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (QItemSelectionModel::SelectionFlags)(rval._int); + } + else + { + return QHeaderView::selectionCommand(index, event); + } +} + +void MuQt_QHeaderView::startDrag(Qt::DropActions supportedActions) +{ + if (!_env) { QHeaderView::startDrag(supportedActions); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(supportedActions)); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::startDrag(supportedActions); + } +} + +QRegion MuQt_QHeaderView::visualRegionForSelection(const QItemSelection & selection) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selection,"qt.QItemSelection")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +void MuQt_QHeaderView::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QHeaderView::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::dragEnterEvent(event); + } +} + +void MuQt_QHeaderView::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QHeaderView::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::dragLeaveEvent(event); + } +} + +void MuQt_QHeaderView::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QHeaderView::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::dragMoveEvent(event); + } +} + +void MuQt_QHeaderView::dropEvent(QDropEvent * event) +{ + if (!_env) { QHeaderView::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::dropEvent(event); + } +} + +bool MuQt_QHeaderView::eventFilter(QObject * object, QEvent * event) +{ + if (!_env) return QHeaderView::eventFilter(object, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,object,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QHeaderView::eventFilter(object, event); + } +} + +void MuQt_QHeaderView::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QHeaderView::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::focusInEvent(event); + } +} + +bool MuQt_QHeaderView::focusNextPrevChild(bool next) +{ + if (!_env) return QHeaderView::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QHeaderView::focusNextPrevChild(next); + } +} + +void MuQt_QHeaderView::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QHeaderView::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[34]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::focusOutEvent(event); + } +} + +void MuQt_QHeaderView::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QHeaderView::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[35]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::keyPressEvent(event); + } +} + +void MuQt_QHeaderView::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QHeaderView::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[36]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::resizeEvent(event); + } +} + +void MuQt_QHeaderView::timerEvent(QTimerEvent * event) +{ + if (!_env) { QHeaderView::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[37]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QHeaderView::timerEvent(event); + } +} + +QSize MuQt_QHeaderView::viewportSizeHint() const +{ + if (!_env) return QHeaderView::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[38]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QHeaderView::viewportSizeHint(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QHeaderViewType::QHeaderViewType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QHeaderViewType::~QHeaderViewType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QHeaderView_QHeaderView_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QHeaderView* w = object(widget)) + { + QHeaderViewType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QHeaderView"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QHeaderView_QHeaderView_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QHeaderView_QHeaderView_QHeaderView_QHeaderView_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_orientation, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::Orientation arg1 = (Qt::Orientation)(param_orientation); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QHeaderView(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +int qt_QHeaderView_count_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->count(); +} + +int qt_QHeaderView_hiddenSectionCount_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->hiddenSectionCount(); +} + +void qt_QHeaderView_hideSection_void_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + arg0->hideSection(arg1); +} + +bool qt_QHeaderView_isSectionHidden_bool_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + return arg0->isSectionHidden(arg1); +} + +int qt_QHeaderView_length_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->length(); +} + +int qt_QHeaderView_logicalIndex_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_visualIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_visualIndex); + return arg0->logicalIndex(arg1); +} + +int qt_QHeaderView_logicalIndexAt_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_position); + return arg0->logicalIndexAt(arg1); +} + +int qt_QHeaderView_logicalIndexAt_int_QHeaderView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + return arg0->logicalIndexAt(arg1, arg2); +} + +int qt_QHeaderView_logicalIndexAt_int_QHeaderView_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return arg0->logicalIndexAt(arg1); +} + +void qt_QHeaderView_moveSection_void_QHeaderView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_from, int param_to) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_from); + int arg2 = (int)(param_to); + arg0->moveSection(arg1, arg2); +} + +int qt_QHeaderView_offset_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->offset(); +} + +int qt_QHeaderView_orientation_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return int(arg0->orientation()); +} + +int qt_QHeaderView_resizeContentsPrecision_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->resizeContentsPrecision(); +} + +void qt_QHeaderView_resizeSection_void_QHeaderView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex, int param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + int arg2 = (int)(param_size); + arg0->resizeSection(arg1, arg2); +} + +void qt_QHeaderView_resizeSections_void_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QHeaderView::ResizeMode arg1 = (QHeaderView::ResizeMode)(param_mode); + arg0->resizeSections(arg1); +} + +bool qt_QHeaderView_restoreState_bool_QHeaderView_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_state); + return arg0->restoreState(arg1); +} + +Pointer qt_QHeaderView_saveState_QByteArray_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return makeqtype(c,arg0->saveState(),"qt.QByteArray"); +} + +int qt_QHeaderView_sectionPosition_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + return arg0->sectionPosition(arg1); +} + +int qt_QHeaderView_sectionResizeMode_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + return int(arg0->sectionResizeMode(arg1)); +} + +int qt_QHeaderView_sectionSize_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + return arg0->sectionSize(arg1); +} + +int qt_QHeaderView_sectionSizeHint_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + return arg0->sectionSizeHint(arg1); +} + +int qt_QHeaderView_sectionViewportPosition_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + return arg0->sectionViewportPosition(arg1); +} + +bool qt_QHeaderView_sectionsClickable_bool_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->sectionsClickable(); +} + +bool qt_QHeaderView_sectionsHidden_bool_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->sectionsHidden(); +} + +bool qt_QHeaderView_sectionsMovable_bool_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->sectionsMovable(); +} + +bool qt_QHeaderView_sectionsMoved_bool_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->sectionsMoved(); +} + +void qt_QHeaderView_setResizeContentsPrecision_void_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_precision) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_precision); + arg0->setResizeContentsPrecision(arg1); +} + +void qt_QHeaderView_setSectionHidden_void_QHeaderView_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex, bool param_hide) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + bool arg2 = (bool)(param_hide); + arg0->setSectionHidden(arg1, arg2); +} + +void qt_QHeaderView_setSectionResizeMode_void_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QHeaderView::ResizeMode arg1 = (QHeaderView::ResizeMode)(param_mode); + arg0->setSectionResizeMode(arg1); +} + +void qt_QHeaderView_setSectionResizeMode_void_QHeaderView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + QHeaderView::ResizeMode arg2 = (QHeaderView::ResizeMode)(param_mode); + arg0->setSectionResizeMode(arg1, arg2); +} + +void qt_QHeaderView_setSectionsClickable_void_QHeaderView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_clickable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + bool arg1 = (bool)(param_clickable); + arg0->setSectionsClickable(arg1); +} + +void qt_QHeaderView_setSectionsMovable_void_QHeaderView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_movable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + bool arg1 = (bool)(param_movable); + arg0->setSectionsMovable(arg1); +} + +void qt_QHeaderView_setSortIndicator_void_QHeaderView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex, int param_order) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + Qt::SortOrder arg2 = (Qt::SortOrder)(param_order); + arg0->setSortIndicator(arg1, arg2); +} + +void qt_QHeaderView_showSection_void_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + arg0->showSection(arg1); +} + +int qt_QHeaderView_sortIndicatorOrder_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return int(arg0->sortIndicatorOrder()); +} + +int qt_QHeaderView_sortIndicatorSection_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->sortIndicatorSection(); +} + +int qt_QHeaderView_stretchSectionCount_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return arg0->stretchSectionCount(); +} + +void qt_QHeaderView_swapSections_void_QHeaderView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_first, int param_second) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_first); + int arg2 = (int)(param_second); + arg0->swapSections(arg1, arg2); +} + +int qt_QHeaderView_visualIndex_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + return arg0->visualIndex(arg1); +} + +int qt_QHeaderView_visualIndexAt_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_position); + return arg0->visualIndexAt(arg1); +} + +void qt_QHeaderView_reset_void_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QHeaderView::reset(); + else arg0->reset(); +} + +void qt_QHeaderView_setModel_void_QHeaderView_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QAbstractItemModel * arg1 = object(param_model); + if (isMuQtObject(arg0)) arg0->QHeaderView::setModel(arg1); + else arg0->setModel(arg1); +} + +void qt_QHeaderView_setVisible_void_QHeaderView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_v) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + bool arg1 = (bool)(param_v); + if (isMuQtObject(arg0)) arg0->QHeaderView::setVisible(arg1); + else arg0->setVisible(arg1); +} + +Pointer qt_QHeaderView_sizeHint_QSize_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QHeaderView::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QHeaderView_sectionSizeFromContents_QSize_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_logicalIndex); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QHeaderView*)arg0)->sectionSizeFromContents_pub_parent(arg1),"qt.QSize") : makeqtype(c,((MuQt_QHeaderView*)arg0)->sectionSizeFromContents_pub(arg1),"qt.QSize"); +} + +void qt_QHeaderView_currentChanged_void_QHeaderView_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_current, Pointer param_old) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_current); + const QModelIndex arg2 = getqtype(param_old); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->currentChanged_pub_parent(arg1, arg2); + else ((MuQt_QHeaderView*)arg0)->currentChanged_pub(arg1, arg2); +} + +bool qt_QHeaderView_event_bool_QHeaderView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QHeaderView*)arg0)->event_pub_parent(arg1) : ((MuQt_QHeaderView*)arg0)->event_pub(arg1); +} + +int qt_QHeaderView_horizontalOffset_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QHeaderView*)arg0)->horizontalOffset_pub_parent() : ((MuQt_QHeaderView*)arg0)->horizontalOffset_pub(); +} + +void qt_QHeaderView_mouseDoubleClickEvent_void_QHeaderView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QHeaderView_mouseMoveEvent_void_QHeaderView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QHeaderView_mousePressEvent_void_QHeaderView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QHeaderView_mouseReleaseEvent_void_QHeaderView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QHeaderView_paintEvent_void_QHeaderView_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->paintEvent_pub(arg1); +} + +void qt_QHeaderView_setSelection_void_QHeaderView_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_flags); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->setSelection_pub_parent(arg1, arg2); + else ((MuQt_QHeaderView*)arg0)->setSelection_pub(arg1, arg2); +} + +int qt_QHeaderView_verticalOffset_int_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QHeaderView*)arg0)->verticalOffset_pub_parent() : ((MuQt_QHeaderView*)arg0)->verticalOffset_pub(); +} + +bool qt_QHeaderView_viewportEvent_bool_QHeaderView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QHeaderView*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QHeaderView*)arg0)->viewportEvent_pub(arg1); +} + +void qt_QHeaderView_keyboardSearch_void_QHeaderView_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_search) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + const QString arg1 = qstring(param_search); + if (isMuQtObject(arg0)) arg0->QHeaderView::keyboardSearch(arg1); + else arg0->keyboardSearch(arg1); +} + +void qt_QHeaderView_setSelectionModel_void_QHeaderView_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selectionModel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QItemSelectionModel * arg1 = object(param_selectionModel); + if (isMuQtObject(arg0)) arg0->QHeaderView::setSelectionModel(arg1); + else arg0->setSelectionModel(arg1); +} + +int qt_QHeaderView_sizeHintForColumn_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return isMuQtObject(arg0) ? arg0->QHeaderView::sizeHintForColumn(arg1) : arg0->sizeHintForColumn(arg1); +} + +int qt_QHeaderView_sizeHintForRow_int_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + int arg1 = (int)(param_row); + return isMuQtObject(arg0) ? arg0->QHeaderView::sizeHintForRow(arg1) : arg0->sizeHintForRow(arg1); +} + +Pointer qt_QHeaderView_inputMethodQuery_QVariant_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QHeaderView::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +bool qt_QHeaderView_edit_bool_QHeaderView_QModelIndex_int_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_trigger, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::EditTrigger arg2 = (QAbstractItemView::EditTrigger)(param_trigger); + QEvent * arg3 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QHeaderView*)arg0)->edit_pub_parent(arg1, arg2, arg3) : ((MuQt_QHeaderView*)arg0)->edit_pub(arg1, arg2, arg3); +} + +bool qt_QHeaderView_isIndexHidden_bool_QHeaderView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return ((MuQt_QHeaderView*)arg0)->isIndexHidden_pub(arg1); +} + +Pointer qt_QHeaderView_selectedIndexes_qt__QModelIndexBSB_ESB__QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,((MuQt_QHeaderView*)arg0)->selectedIndexes_pub_parent()) : makeqmodelindexlist(c,((MuQt_QHeaderView*)arg0)->selectedIndexes_pub()); +} + +int qt_QHeaderView_selectionCommand_int_QHeaderView_QModelIndex_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + const QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? int(((MuQt_QHeaderView*)arg0)->selectionCommand_pub_parent(arg1, arg2)) : int(((MuQt_QHeaderView*)arg0)->selectionCommand_pub(arg1, arg2)); +} + +void qt_QHeaderView_startDrag_void_QHeaderView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_supportedActions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + Qt::DropActions arg1 = (Qt::DropActions)(param_supportedActions); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->startDrag_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->startDrag_pub(arg1); +} + +Pointer qt_QHeaderView_visualRegionForSelection_QRegion_QHeaderView_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selection); + return makeqtype(c,((MuQt_QHeaderView*)arg0)->visualRegionForSelection_pub(arg1),"qt.QRegion"); +} + +void qt_QHeaderView_dragEnterEvent_void_QHeaderView_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QHeaderView_dragLeaveEvent_void_QHeaderView_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QHeaderView_dragMoveEvent_void_QHeaderView_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QHeaderView_dropEvent_void_QHeaderView_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QHeaderView_eventFilter_bool_QHeaderView_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QObject * arg1 = object(param_object); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QHeaderView*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QHeaderView*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QHeaderView_focusInEvent_void_QHeaderView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QHeaderView_focusNextPrevChild_bool_QHeaderView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QHeaderView*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QHeaderView*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QHeaderView_focusOutEvent_void_QHeaderView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QHeaderView_keyPressEvent_void_QHeaderView_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QHeaderView_resizeEvent_void_QHeaderView_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QHeaderView_timerEvent_void_QHeaderView_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QHeaderView*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QHeaderView*)arg0)->timerEvent_pub(arg1); +} + +Pointer qt_QHeaderView_viewportSizeHint_QSize_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHeaderView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QHeaderView*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QHeaderView*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + + +static NODE_IMPLEMENTATION(_n_QHeaderView0, Pointer) +{ + NODE_RETURN(qt_QHeaderView_QHeaderView_QHeaderView_QHeaderView_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QHeaderView_count_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hiddenSectionCount0, int) +{ + NODE_RETURN(qt_QHeaderView_hiddenSectionCount_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hideSection0, void) +{ + qt_QHeaderView_hideSection_void_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_isSectionHidden0, bool) +{ + NODE_RETURN(qt_QHeaderView_isSectionHidden_bool_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_length0, int) +{ + NODE_RETURN(qt_QHeaderView_length_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_logicalIndex0, int) +{ + NODE_RETURN(qt_QHeaderView_logicalIndex_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_logicalIndexAt0, int) +{ + NODE_RETURN(qt_QHeaderView_logicalIndexAt_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_logicalIndexAt1, int) +{ + NODE_RETURN(qt_QHeaderView_logicalIndexAt_int_QHeaderView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_logicalIndexAt2, int) +{ + NODE_RETURN(qt_QHeaderView_logicalIndexAt_int_QHeaderView_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_moveSection0, void) +{ + qt_QHeaderView_moveSection_void_QHeaderView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_offset0, int) +{ + NODE_RETURN(qt_QHeaderView_offset_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_orientation0, int) +{ + NODE_RETURN(qt_QHeaderView_orientation_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resizeContentsPrecision0, int) +{ + NODE_RETURN(qt_QHeaderView_resizeContentsPrecision_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resizeSection0, void) +{ + qt_QHeaderView_resizeSection_void_QHeaderView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_resizeSections0, void) +{ + qt_QHeaderView_resizeSections_void_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_restoreState0, bool) +{ + NODE_RETURN(qt_QHeaderView_restoreState_bool_QHeaderView_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_saveState0, Pointer) +{ + NODE_RETURN(qt_QHeaderView_saveState_QByteArray_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sectionPosition0, int) +{ + NODE_RETURN(qt_QHeaderView_sectionPosition_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sectionResizeMode0, int) +{ + NODE_RETURN(qt_QHeaderView_sectionResizeMode_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sectionSize0, int) +{ + NODE_RETURN(qt_QHeaderView_sectionSize_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sectionSizeHint0, int) +{ + NODE_RETURN(qt_QHeaderView_sectionSizeHint_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sectionViewportPosition0, int) +{ + NODE_RETURN(qt_QHeaderView_sectionViewportPosition_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sectionsClickable0, bool) +{ + NODE_RETURN(qt_QHeaderView_sectionsClickable_bool_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sectionsHidden0, bool) +{ + NODE_RETURN(qt_QHeaderView_sectionsHidden_bool_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sectionsMovable0, bool) +{ + NODE_RETURN(qt_QHeaderView_sectionsMovable_bool_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sectionsMoved0, bool) +{ + NODE_RETURN(qt_QHeaderView_sectionsMoved_bool_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setResizeContentsPrecision0, void) +{ + qt_QHeaderView_setResizeContentsPrecision_void_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setSectionHidden0, void) +{ + qt_QHeaderView_setSectionHidden_void_QHeaderView_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSectionResizeMode0, void) +{ + qt_QHeaderView_setSectionResizeMode_void_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setSectionResizeMode1, void) +{ + qt_QHeaderView_setSectionResizeMode_void_QHeaderView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setSectionsClickable0, void) +{ + qt_QHeaderView_setSectionsClickable_void_QHeaderView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSectionsMovable0, void) +{ + qt_QHeaderView_setSectionsMovable_void_QHeaderView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSortIndicator0, void) +{ + qt_QHeaderView_setSortIndicator_void_QHeaderView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_showSection0, void) +{ + qt_QHeaderView_showSection_void_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_sortIndicatorOrder0, int) +{ + NODE_RETURN(qt_QHeaderView_sortIndicatorOrder_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sortIndicatorSection0, int) +{ + NODE_RETURN(qt_QHeaderView_sortIndicatorSection_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_stretchSectionCount0, int) +{ + NODE_RETURN(qt_QHeaderView_stretchSectionCount_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swapSections0, void) +{ + qt_QHeaderView_swapSections_void_QHeaderView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_visualIndex0, int) +{ + NODE_RETURN(qt_QHeaderView_visualIndex_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_visualIndexAt0, int) +{ + NODE_RETURN(qt_QHeaderView_visualIndexAt_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_reset0, void) +{ + qt_QHeaderView_reset_void_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setModel0, void) +{ + qt_QHeaderView_setModel_void_QHeaderView_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setVisible0, void) +{ + qt_QHeaderView_setVisible_void_QHeaderView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QHeaderView_sizeHint_QSize_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sectionSizeFromContents0, Pointer) +{ + NODE_RETURN(qt_QHeaderView_sectionSizeFromContents_QSize_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_currentChanged0, void) +{ + qt_QHeaderView_currentChanged_void_QHeaderView_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QHeaderView_event_bool_QHeaderView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_horizontalOffset0, int) +{ + NODE_RETURN(qt_QHeaderView_horizontalOffset_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QHeaderView_mouseDoubleClickEvent_void_QHeaderView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QHeaderView_mouseMoveEvent_void_QHeaderView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QHeaderView_mousePressEvent_void_QHeaderView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QHeaderView_mouseReleaseEvent_void_QHeaderView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QHeaderView_paintEvent_void_QHeaderView_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QHeaderView_setSelection_void_QHeaderView_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_verticalOffset0, int) +{ + NODE_RETURN(qt_QHeaderView_verticalOffset_int_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QHeaderView_viewportEvent_bool_QHeaderView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyboardSearch0, void) +{ + qt_QHeaderView_keyboardSearch_void_QHeaderView_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelectionModel0, void) +{ + qt_QHeaderView_setSelectionModel_void_QHeaderView_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForColumn0, int) +{ + NODE_RETURN(qt_QHeaderView_sizeHintForColumn_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForRow0, int) +{ + NODE_RETURN(qt_QHeaderView_sizeHintForRow_int_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QHeaderView_inputMethodQuery_QVariant_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_edit0, bool) +{ + NODE_RETURN(qt_QHeaderView_edit_bool_QHeaderView_QModelIndex_int_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIndexHidden0, bool) +{ + NODE_RETURN(qt_QHeaderView_isIndexHidden_bool_QHeaderView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectedIndexes0, Pointer) +{ + NODE_RETURN(qt_QHeaderView_selectedIndexes_qt__QModelIndexBSB_ESB__QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionCommand0, int) +{ + NODE_RETURN(qt_QHeaderView_selectionCommand_int_QHeaderView_QModelIndex_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_startDrag0, void) +{ + qt_QHeaderView_startDrag_void_QHeaderView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_visualRegionForSelection0, Pointer) +{ + NODE_RETURN(qt_QHeaderView_visualRegionForSelection_QRegion_QHeaderView_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QHeaderView_dragEnterEvent_void_QHeaderView_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QHeaderView_dragLeaveEvent_void_QHeaderView_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QHeaderView_dragMoveEvent_void_QHeaderView_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QHeaderView_dropEvent_void_QHeaderView_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QHeaderView_eventFilter_bool_QHeaderView_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QHeaderView_focusInEvent_void_QHeaderView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QHeaderView_focusNextPrevChild_bool_QHeaderView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QHeaderView_focusOutEvent_void_QHeaderView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QHeaderView_keyPressEvent_void_QHeaderView_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QHeaderView_resizeEvent_void_QHeaderView_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QHeaderView_timerEvent_void_QHeaderView_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QHeaderView_viewportSizeHint_QSize_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QHeaderViewType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QHeaderView_QHeaderView_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QHeaderView", _n_QHeaderView0, None, Compiled, qt_QHeaderView_QHeaderView_QHeaderView_QHeaderView_int_QWidget, Return, "qt.QHeaderView", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "orientation", "int"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: cascadingSectionResizes (bool; QHeaderView this) + new Function(c, "count", _n_count0, None, Compiled, qt_QHeaderView_count_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + // PROP: defaultAlignment (flags Qt::Alignment; QHeaderView this) + // PROP: defaultSectionSize (int; QHeaderView this) + new Function(c, "hiddenSectionCount", _n_hiddenSectionCount0, None, Compiled, qt_QHeaderView_hiddenSectionCount_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + new Function(c, "hideSection", _n_hideSection0, None, Compiled, qt_QHeaderView_hideSection_void_QHeaderView_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), End), + // PROP: highlightSections (bool; QHeaderView this) + // PROP: isFirstSectionMovable (bool; QHeaderView this) + new Function(c, "isSectionHidden", _n_isSectionHidden0, None, Compiled, qt_QHeaderView_isSectionHidden_bool_QHeaderView_int, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), End), + // PROP: isSortIndicatorClearable (bool; QHeaderView this) + // PROP: isSortIndicatorShown (bool; QHeaderView this) + new Function(c, "length", _n_length0, None, Compiled, qt_QHeaderView_length_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + new Function(c, "logicalIndex", _n_logicalIndex0, None, Compiled, qt_QHeaderView_logicalIndex_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "visualIndex", "int"), End), + new Function(c, "logicalIndexAt", _n_logicalIndexAt0, None, Compiled, qt_QHeaderView_logicalIndexAt_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "position", "int"), End), + new Function(c, "logicalIndexAt", _n_logicalIndexAt1, None, Compiled, qt_QHeaderView_logicalIndexAt_int_QHeaderView_int_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "logicalIndexAt", _n_logicalIndexAt2, None, Compiled, qt_QHeaderView_logicalIndexAt_int_QHeaderView_QPoint, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "pos", "qt.QPoint"), End), + // PROP: maximumSectionSize (int; QHeaderView this) + // PROP: minimumSectionSize (int; QHeaderView this) + new Function(c, "moveSection", _n_moveSection0, None, Compiled, qt_QHeaderView_moveSection_void_QHeaderView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "from", "int"), new Param(c, "to", "int"), End), + new Function(c, "offset", _n_offset0, None, Compiled, qt_QHeaderView_offset_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + new Function(c, "orientation", _n_orientation0, None, Compiled, qt_QHeaderView_orientation_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + // PROP: resetDefaultSectionSize (void; QHeaderView this) + new Function(c, "resizeContentsPrecision", _n_resizeContentsPrecision0, None, Compiled, qt_QHeaderView_resizeContentsPrecision_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + new Function(c, "resizeSection", _n_resizeSection0, None, Compiled, qt_QHeaderView_resizeSection_void_QHeaderView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), new Param(c, "size", "int"), End), + new Function(c, "resizeSections", _n_resizeSections0, None, Compiled, qt_QHeaderView_resizeSections_void_QHeaderView_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "mode", "int"), End), + new Function(c, "restoreState", _n_restoreState0, None, Compiled, qt_QHeaderView_restoreState_bool_QHeaderView_QByteArray, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "state", "qt.QByteArray"), End), + new Function(c, "saveState", _n_saveState0, None, Compiled, qt_QHeaderView_saveState_QByteArray_QHeaderView, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + new Function(c, "sectionPosition", _n_sectionPosition0, None, Compiled, qt_QHeaderView_sectionPosition_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), End), + new Function(c, "sectionResizeMode", _n_sectionResizeMode0, None, Compiled, qt_QHeaderView_sectionResizeMode_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), End), + new Function(c, "sectionSize", _n_sectionSize0, None, Compiled, qt_QHeaderView_sectionSize_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), End), + new Function(c, "sectionSizeHint", _n_sectionSizeHint0, None, Compiled, qt_QHeaderView_sectionSizeHint_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), End), + new Function(c, "sectionViewportPosition", _n_sectionViewportPosition0, None, Compiled, qt_QHeaderView_sectionViewportPosition_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), End), + new Function(c, "sectionsClickable", _n_sectionsClickable0, None, Compiled, qt_QHeaderView_sectionsClickable_bool_QHeaderView, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + new Function(c, "sectionsHidden", _n_sectionsHidden0, None, Compiled, qt_QHeaderView_sectionsHidden_bool_QHeaderView, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + new Function(c, "sectionsMovable", _n_sectionsMovable0, None, Compiled, qt_QHeaderView_sectionsMovable_bool_QHeaderView, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + new Function(c, "sectionsMoved", _n_sectionsMoved0, None, Compiled, qt_QHeaderView_sectionsMoved_bool_QHeaderView, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + // PROP: setCascadingSectionResizes (void; QHeaderView this, bool enable) + // PROP: setDefaultAlignment (void; QHeaderView this, flags Qt::Alignment alignment) + // PROP: setDefaultSectionSize (void; QHeaderView this, int size) + // PROP: setFirstSectionMovable (void; QHeaderView this, bool movable) + // PROP: setHighlightSections (void; QHeaderView this, bool highlight) + // PROP: setMaximumSectionSize (void; QHeaderView this, int size) + // PROP: setMinimumSectionSize (void; QHeaderView this, int size) + new Function(c, "setResizeContentsPrecision", _n_setResizeContentsPrecision0, None, Compiled, qt_QHeaderView_setResizeContentsPrecision_void_QHeaderView_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "precision", "int"), End), + new Function(c, "setSectionHidden", _n_setSectionHidden0, None, Compiled, qt_QHeaderView_setSectionHidden_void_QHeaderView_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), new Param(c, "hide", "bool"), End), + new Function(c, "setSectionResizeMode", _n_setSectionResizeMode0, None, Compiled, qt_QHeaderView_setSectionResizeMode_void_QHeaderView_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "mode", "int"), End), + new Function(c, "setSectionResizeMode", _n_setSectionResizeMode1, None, Compiled, qt_QHeaderView_setSectionResizeMode_void_QHeaderView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), new Param(c, "mode", "int"), End), + new Function(c, "setSectionsClickable", _n_setSectionsClickable0, None, Compiled, qt_QHeaderView_setSectionsClickable_void_QHeaderView_bool, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "clickable", "bool"), End), + new Function(c, "setSectionsMovable", _n_setSectionsMovable0, None, Compiled, qt_QHeaderView_setSectionsMovable_void_QHeaderView_bool, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "movable", "bool"), End), + new Function(c, "setSortIndicator", _n_setSortIndicator0, None, Compiled, qt_QHeaderView_setSortIndicator_void_QHeaderView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), new Param(c, "order", "int"), End), + // PROP: setSortIndicatorClearable (void; QHeaderView this, bool clearable) + // PROP: setSortIndicatorShown (void; QHeaderView this, bool show) + // PROP: setStretchLastSection (void; QHeaderView this, bool stretch) + new Function(c, "showSection", _n_showSection0, None, Compiled, qt_QHeaderView_showSection_void_QHeaderView_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), End), + new Function(c, "sortIndicatorOrder", _n_sortIndicatorOrder0, None, Compiled, qt_QHeaderView_sortIndicatorOrder_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + new Function(c, "sortIndicatorSection", _n_sortIndicatorSection0, None, Compiled, qt_QHeaderView_sortIndicatorSection_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + // PROP: stretchLastSection (bool; QHeaderView this) + new Function(c, "stretchSectionCount", _n_stretchSectionCount0, None, Compiled, qt_QHeaderView_stretchSectionCount_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + new Function(c, "swapSections", _n_swapSections0, None, Compiled, qt_QHeaderView_swapSections_void_QHeaderView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "first", "int"), new Param(c, "second", "int"), End), + new Function(c, "visualIndex", _n_visualIndex0, None, Compiled, qt_QHeaderView_visualIndex_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), End), + new Function(c, "visualIndexAt", _n_visualIndexAt0, None, Compiled, qt_QHeaderView_visualIndexAt_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "position", "int"), End), + _func[0] = new MemberFunction(c, "reset", _n_reset0, None, Compiled, qt_QHeaderView_reset_void_QHeaderView, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + _func[1] = new MemberFunction(c, "setModel", _n_setModel0, None, Compiled, qt_QHeaderView_setModel_void_QHeaderView_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "model", "qt.QAbstractItemModel"), End), + _func[2] = new MemberFunction(c, "setVisible", _n_setVisible0, None, Compiled, qt_QHeaderView_setVisible_void_QHeaderView_bool, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "v", "bool"), End), + _func[3] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QHeaderView_sizeHint_QSize_QHeaderView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + // MISSING: initStyleOption (void; QHeaderView this, "QStyleOptionHeader *" option) // protected + // MISSING: initStyleOptionForIndex (void; QHeaderView this, "QStyleOptionHeader *" option, int logicalIndex) // protected + // MISSING: paintSection (void; QHeaderView this, "QPainter *" painter, QRect rect, int logicalIndex) // protected + _func[4] = new MemberFunction(c, "sectionSizeFromContents", _n_sectionSizeFromContents0, None, Compiled, qt_QHeaderView_sectionSizeFromContents_QSize_QHeaderView_int, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "logicalIndex", "int"), End), + _func[5] = new MemberFunction(c, "currentChanged", _n_currentChanged0, None, Compiled, qt_QHeaderView_currentChanged_void_QHeaderView_QModelIndex_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "current", "qt.QModelIndex"), new Param(c, "old", "qt.QModelIndex"), End), + _func[6] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QHeaderView_event_bool_QHeaderView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "e", "qt.QEvent"), End), + _func[7] = new MemberFunction(c, "horizontalOffset", _n_horizontalOffset0, None, Compiled, qt_QHeaderView_horizontalOffset_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + _func[8] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QHeaderView_mouseDoubleClickEvent_void_QHeaderView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[9] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QHeaderView_mouseMoveEvent_void_QHeaderView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[10] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QHeaderView_mousePressEvent_void_QHeaderView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[11] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QHeaderView_mouseReleaseEvent_void_QHeaderView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[12] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QHeaderView_paintEvent_void_QHeaderView_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "e", "qt.QPaintEvent"), End), + _func[13] = new MemberFunction(c, "setSelection", _n_setSelection0, None, Compiled, qt_QHeaderView_setSelection_void_QHeaderView_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "rect", "qt.QRect"), new Param(c, "flags", "int"), End), + _func[14] = new MemberFunction(c, "verticalOffset", _n_verticalOffset0, None, Compiled, qt_QHeaderView_verticalOffset_int_QHeaderView, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + _func[15] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QHeaderView_viewportEvent_bool_QHeaderView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "e", "qt.QEvent"), End), + // MISSING: itemDelegateForIndex ("QAbstractItemDelegate *"; QHeaderView this, QModelIndex index) + _func[16] = new MemberFunction(c, "keyboardSearch", _n_keyboardSearch0, None, Compiled, qt_QHeaderView_keyboardSearch_void_QHeaderView_string, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "search", "string"), End), + _func[17] = new MemberFunction(c, "setSelectionModel", _n_setSelectionModel0, None, Compiled, qt_QHeaderView_setSelectionModel_void_QHeaderView_QItemSelectionModel, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "selectionModel", "qt.QItemSelectionModel"), End), + _func[18] = new MemberFunction(c, "sizeHintForColumn", _n_sizeHintForColumn0, None, Compiled, qt_QHeaderView_sizeHintForColumn_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "column", "int"), End), + _func[19] = new MemberFunction(c, "sizeHintForRow", _n_sizeHintForRow0, None, Compiled, qt_QHeaderView_sizeHintForRow_int_QHeaderView_int, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "row", "int"), End), + _func[20] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QHeaderView_inputMethodQuery_QVariant_QHeaderView_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "query", "int"), End), + _func[21] = new MemberFunction(c, "edit", _n_edit0, None, Compiled, qt_QHeaderView_edit_bool_QHeaderView_QModelIndex_int_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "trigger", "int"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: initViewItemOption (void; QHeaderView this, "QStyleOptionViewItem *" option) // protected + _func[22] = new MemberFunction(c, "isIndexHidden", _n_isIndexHidden0, None, Compiled, qt_QHeaderView_isIndexHidden_bool_QHeaderView_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[23] = new MemberFunction(c, "selectedIndexes", _n_selectedIndexes0, None, Compiled, qt_QHeaderView_selectedIndexes_qt__QModelIndexBSB_ESB__QHeaderView, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + _func[24] = new MemberFunction(c, "selectionCommand", _n_selectionCommand0, None, Compiled, qt_QHeaderView_selectionCommand_int_QHeaderView_QModelIndex_QEvent, Return, "int", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "event", "qt.QEvent"), End), + _func[25] = new MemberFunction(c, "startDrag", _n_startDrag0, None, Compiled, qt_QHeaderView_startDrag_void_QHeaderView_int, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "supportedActions", "int"), End), + _func[26] = new MemberFunction(c, "visualRegionForSelection", _n_visualRegionForSelection0, None, Compiled, qt_QHeaderView_visualRegionForSelection_QRegion_QHeaderView_QItemSelection, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "selection", "qt.QItemSelection"), End), + _func[27] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QHeaderView_dragEnterEvent_void_QHeaderView_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[28] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QHeaderView_dragLeaveEvent_void_QHeaderView_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[29] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QHeaderView_dragMoveEvent_void_QHeaderView_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[30] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QHeaderView_dropEvent_void_QHeaderView_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "event", "qt.QDropEvent"), End), + _func[31] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QHeaderView_eventFilter_bool_QHeaderView_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "object", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + _func[32] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QHeaderView_focusInEvent_void_QHeaderView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[33] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QHeaderView_focusNextPrevChild_bool_QHeaderView_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "next", "bool"), End), + _func[34] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QHeaderView_focusOutEvent_void_QHeaderView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "event", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QHeaderView this, "QInputMethodEvent *" event) // protected + _func[35] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QHeaderView_keyPressEvent_void_QHeaderView_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[36] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QHeaderView_resizeEvent_void_QHeaderView_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[37] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QHeaderView_timerEvent_void_QHeaderView_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QHeaderView"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[38] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QHeaderView_viewportSizeHint_QSize_QHeaderView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QHeaderView"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QHeaderView::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QHelpEventType.cpp b/src/lib/mu/MuQt6/QHelpEventType.cpp new file mode 100644 index 000000000..c4affccc9 --- /dev/null +++ b/src/lib/mu/MuQt6/QHelpEventType.cpp @@ -0,0 +1,200 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QHelpEventType::QHelpEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QHelpEventType::~QHelpEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QHelpEvent_QHelpEvent_QHelpEvent_QHelpEvent_int_QPoint_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type, Pointer param_pos, Pointer param_globalPos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QEvent::Type arg1 = (QEvent::Type)(param_type); + const QPoint arg2 = getqtype(param_pos); + const QPoint arg3 = getqtype(param_globalPos); + setqpointer(param_this,new QHelpEvent(arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QHelpEvent_globalPos_QPoint_QHelpEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHelpEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->globalPos(),"qt.QPoint"); +} + +int qt_QHelpEvent_globalX_int_QHelpEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHelpEvent * arg0 = getqpointer(param_this); + return arg0->globalX(); +} + +int qt_QHelpEvent_globalY_int_QHelpEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHelpEvent * arg0 = getqpointer(param_this); + return arg0->globalY(); +} + +Pointer qt_QHelpEvent_pos_QPoint_QHelpEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHelpEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->pos(),"qt.QPoint"); +} + +int qt_QHelpEvent_x_int_QHelpEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHelpEvent * arg0 = getqpointer(param_this); + return arg0->x(); +} + +int qt_QHelpEvent_y_int_QHelpEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHelpEvent * arg0 = getqpointer(param_this); + return arg0->y(); +} + + +static NODE_IMPLEMENTATION(_n_QHelpEvent0, Pointer) +{ + NODE_RETURN(qt_QHelpEvent_QHelpEvent_QHelpEvent_QHelpEvent_int_QPoint_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_globalPos0, Pointer) +{ + NODE_RETURN(qt_QHelpEvent_globalPos_QPoint_QHelpEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_globalX0, int) +{ + NODE_RETURN(qt_QHelpEvent_globalX_int_QHelpEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_globalY0, int) +{ + NODE_RETURN(qt_QHelpEvent_globalY_int_QHelpEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pos0, Pointer) +{ + NODE_RETURN(qt_QHelpEvent_pos_QPoint_QHelpEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_x0, int) +{ + NODE_RETURN(qt_QHelpEvent_x_int_QHelpEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_y0, int) +{ + NODE_RETURN(qt_QHelpEvent_y_int_QHelpEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QHelpEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QHelpEvent", _n_QHelpEvent0, None, Compiled, qt_QHelpEvent_QHelpEvent_QHelpEvent_QHelpEvent_int_QPoint_QPoint, Return, "qt.QHelpEvent", Parameters, new Param(c, "this", "qt.QHelpEvent"), new Param(c, "type", "int"), new Param(c, "pos", "qt.QPoint"), new Param(c, "globalPos", "qt.QPoint"), End), + new Function(c, "globalPos", _n_globalPos0, None, Compiled, qt_QHelpEvent_globalPos_QPoint_QHelpEvent, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QHelpEvent"), End), + new Function(c, "globalX", _n_globalX0, None, Compiled, qt_QHelpEvent_globalX_int_QHelpEvent, Return, "int", Parameters, new Param(c, "this", "qt.QHelpEvent"), End), + new Function(c, "globalY", _n_globalY0, None, Compiled, qt_QHelpEvent_globalY_int_QHelpEvent, Return, "int", Parameters, new Param(c, "this", "qt.QHelpEvent"), End), + new Function(c, "pos", _n_pos0, None, Compiled, qt_QHelpEvent_pos_QPoint_QHelpEvent, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QHelpEvent"), End), + new Function(c, "x", _n_x0, None, Compiled, qt_QHelpEvent_x_int_QHelpEvent, Return, "int", Parameters, new Param(c, "this", "qt.QHelpEvent"), End), + new Function(c, "y", _n_y0, None, Compiled, qt_QHelpEvent_y_int_QHelpEvent, Return, "int", Parameters, new Param(c, "this", "qt.QHelpEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QHideEventType.cpp b/src/lib/mu/MuQt6/QHideEventType.cpp new file mode 100644 index 000000000..307ac9e01 --- /dev/null +++ b/src/lib/mu/MuQt6/QHideEventType.cpp @@ -0,0 +1,118 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QHideEventType::QHideEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QHideEventType::~QHideEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QHideEvent_QHideEvent_QHideEvent_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqpointer(param_this,new QHideEvent()); + return param_this; +} + + +static NODE_IMPLEMENTATION(_n_QHideEvent0, Pointer) +{ + NODE_RETURN(qt_QHideEvent_QHideEvent_QHideEvent_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QHideEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QHideEvent", _n_QHideEvent0, None, Compiled, qt_QHideEvent_QHideEvent_QHideEvent_QHideEvent, Return, "qt.QHideEvent", Parameters, new Param(c, "this", "qt.QHideEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QHostAddressType.cpp b/src/lib/mu/MuQt6/QHostAddressType.cpp new file mode 100644 index 000000000..f58a7d02d --- /dev/null +++ b/src/lib/mu/MuQt6/QHostAddressType.cpp @@ -0,0 +1,499 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QHostAddressType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QHostAddressType::QHostAddressType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QHostAddressType::~QHostAddressType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QHostAddressType::Instance* i = new QHostAddressType::Instance((Class*)NODE_THIS.type()); + QHostAddressType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QHostAddressType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QHostAddressType::finalizer, 0, 0, 0); +} + +void +QHostAddressType::finalizer (void* obj, void* data) +{ + QHostAddressType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QHostAddress_QHostAddress_QHostAddress_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QHostAddress()); + return param_this; +} + +Pointer qt_QHostAddress_QHostAddress_QHostAddress_QHostAddress_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_ip4Addr) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + quint32 arg1 = (int)(param_ip4Addr); + setqtype(param_this,QHostAddress(arg1)); + return param_this; +} + +Pointer qt_QHostAddress_QHostAddress_QHostAddress_QHostAddress_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_address) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_address); + setqtype(param_this,QHostAddress(arg1)); + return param_this; +} + +void qt_QHostAddress_clear_void_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + arg0.clear(); + setqtype(param_this,arg0); +} + +bool qt_QHostAddress_isBroadcast_bool_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return arg0.isBroadcast(); +} + +bool qt_QHostAddress_isEqual_bool_QHostAddress_QHostAddress_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + const QHostAddress arg1 = getqtype(param_other); + QHostAddress::ConversionMode arg2 = (QHostAddress::ConversionMode)(param_mode); + return arg0.isEqual(arg1, arg2); +} + +bool qt_QHostAddress_isGlobal_bool_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return arg0.isGlobal(); +} + +bool qt_QHostAddress_isInSubnet_bool_QHostAddress_QHostAddress_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_subnet, int param_netmask) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + const QHostAddress arg1 = getqtype(param_subnet); + int arg2 = (int)(param_netmask); + return arg0.isInSubnet(arg1, arg2); +} + +bool qt_QHostAddress_isLinkLocal_bool_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return arg0.isLinkLocal(); +} + +bool qt_QHostAddress_isLoopback_bool_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return arg0.isLoopback(); +} + +bool qt_QHostAddress_isMulticast_bool_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return arg0.isMulticast(); +} + +bool qt_QHostAddress_isNull_bool_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return arg0.isNull(); +} + +bool qt_QHostAddress_isSiteLocal_bool_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return arg0.isSiteLocal(); +} + +bool qt_QHostAddress_isUniqueLocalUnicast_bool_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return arg0.isUniqueLocalUnicast(); +} + +int qt_QHostAddress_protocol_int_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return arg0.protocol(); +} + +Pointer qt_QHostAddress_scopeId_string_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return makestring(c,arg0.scopeId()); +} + +void qt_QHostAddress_setAddress_void_QHostAddress_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_ip4Addr) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + quint32 arg1 = (int)(param_ip4Addr); + arg0.setAddress(arg1); + setqtype(param_this,arg0); +} + +bool qt_QHostAddress_setAddress_bool_QHostAddress_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_address) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + const QString arg1 = qstring(param_address); + return arg0.setAddress(arg1); +} + +void qt_QHostAddress_setScopeId_void_QHostAddress_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_id) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + const QString arg1 = qstring(param_id); + arg0.setScopeId(arg1); + setqtype(param_this,arg0); +} + +void qt_QHostAddress_swap_void_QHostAddress_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + QHostAddress arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QHostAddress_toString_string_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + return makestring(c,arg0.toString()); +} + +bool qt_QHostAddress_operatorBang_EQ__bool_QHostAddress_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + const QHostAddress arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +bool qt_QHostAddress_operatorBang_EQ__bool_QHostAddress_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + QHostAddress::SpecialAddress arg1 = (QHostAddress::SpecialAddress)(param_other); + return arg0.operator!=(arg1); +} + +bool qt_QHostAddress_operatorEQ_EQ__bool_QHostAddress_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + const QHostAddress arg1 = getqtype(param_other); + return arg0.operator==(arg1); +} + +bool qt_QHostAddress_operatorEQ_EQ__bool_QHostAddress_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostAddress arg0 = getqtype(param_this); + QHostAddress::SpecialAddress arg1 = (QHostAddress::SpecialAddress)(param_other); + return arg0.operator==(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QHostAddress0, Pointer) +{ + NODE_RETURN(qt_QHostAddress_QHostAddress_QHostAddress_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QHostAddress1, Pointer) +{ + NODE_RETURN(qt_QHostAddress_QHostAddress_QHostAddress_QHostAddress_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_QHostAddress5, Pointer) +{ + NODE_RETURN(qt_QHostAddress_QHostAddress_QHostAddress_QHostAddress_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QHostAddress_clear_void_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isBroadcast0, bool) +{ + NODE_RETURN(qt_QHostAddress_isBroadcast_bool_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEqual0, bool) +{ + NODE_RETURN(qt_QHostAddress_isEqual_bool_QHostAddress_QHostAddress_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_isGlobal0, bool) +{ + NODE_RETURN(qt_QHostAddress_isGlobal_bool_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isInSubnet0, bool) +{ + NODE_RETURN(qt_QHostAddress_isInSubnet_bool_QHostAddress_QHostAddress_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_isLinkLocal0, bool) +{ + NODE_RETURN(qt_QHostAddress_isLinkLocal_bool_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isLoopback0, bool) +{ + NODE_RETURN(qt_QHostAddress_isLoopback_bool_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isMulticast0, bool) +{ + NODE_RETURN(qt_QHostAddress_isMulticast_bool_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QHostAddress_isNull_bool_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSiteLocal0, bool) +{ + NODE_RETURN(qt_QHostAddress_isSiteLocal_bool_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isUniqueLocalUnicast0, bool) +{ + NODE_RETURN(qt_QHostAddress_isUniqueLocalUnicast_bool_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_protocol0, int) +{ + NODE_RETURN(qt_QHostAddress_protocol_int_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scopeId0, Pointer) +{ + NODE_RETURN(qt_QHostAddress_scopeId_string_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAddress0, void) +{ + qt_QHostAddress_setAddress_void_QHostAddress_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setAddress4, bool) +{ + NODE_RETURN(qt_QHostAddress_setAddress_bool_QHostAddress_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setScopeId0, void) +{ + qt_QHostAddress_setScopeId_void_QHostAddress_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QHostAddress_swap_void_QHostAddress_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toString0, Pointer) +{ + NODE_RETURN(qt_QHostAddress_toString_string_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QHostAddress_operatorBang_EQ__bool_QHostAddress_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_1, bool) +{ + NODE_RETURN(qt_QHostAddress_operatorBang_EQ__bool_QHostAddress_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QHostAddress_operatorEQ_EQ__bool_QHostAddress_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_1, bool) +{ + NODE_RETURN(qt_QHostAddress_operatorEQ_EQ__bool_QHostAddress_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QHostAddressType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "ConversionModeFlag", "int"), + new Alias(c, "ConversionMode", "int"), + new SymbolicConstant(c, "StrictConversion", "int", Value(int(QHostAddress::StrictConversion))), + new SymbolicConstant(c, "ConvertV4MappedToIPv4", "int", Value(int(QHostAddress::ConvertV4MappedToIPv4))), + new SymbolicConstant(c, "ConvertV4CompatToIPv4", "int", Value(int(QHostAddress::ConvertV4CompatToIPv4))), + new SymbolicConstant(c, "ConvertLocalHost", "int", Value(int(QHostAddress::ConvertLocalHost))), + new SymbolicConstant(c, "ConvertUnspecifiedAddress", "int", Value(int(QHostAddress::ConvertUnspecifiedAddress))), + new SymbolicConstant(c, "TolerantConversion", "int", Value(int(QHostAddress::TolerantConversion))), + new Alias(c, "SpecialAddress", "int"), + new SymbolicConstant(c, "Null", "int", Value(int(QHostAddress::Null))), + new SymbolicConstant(c, "LocalHost", "int", Value(int(QHostAddress::LocalHost))), + new SymbolicConstant(c, "LocalHostIPv6", "int", Value(int(QHostAddress::LocalHostIPv6))), + new SymbolicConstant(c, "Broadcast", "int", Value(int(QHostAddress::Broadcast))), + new SymbolicConstant(c, "AnyIPv4", "int", Value(int(QHostAddress::AnyIPv4))), + new SymbolicConstant(c, "AnyIPv6", "int", Value(int(QHostAddress::AnyIPv6))), + new SymbolicConstant(c, "Any", "int", Value(int(QHostAddress::Any))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QHostAddress", _n_QHostAddress0, None, Compiled, qt_QHostAddress_QHostAddress_QHostAddress_QHostAddress, Return, "qt.QHostAddress", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "QHostAddress", _n_QHostAddress1, None, Compiled, qt_QHostAddress_QHostAddress_QHostAddress_QHostAddress_int, Return, "qt.QHostAddress", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "ip4Addr", "int"), End), + // MISSING: QHostAddress (QHostAddress; QHostAddress this, "const quint8 *" ip6Addr) + // MISSING: QHostAddress (QHostAddress; QHostAddress this, "const Q_IPV6ADDR &" ip6Addr) + // MISSING: QHostAddress (QHostAddress; QHostAddress this, "const sockaddr *" sockaddr) + new Function(c, "QHostAddress", _n_QHostAddress5, None, Compiled, qt_QHostAddress_QHostAddress_QHostAddress_QHostAddress_string, Return, "qt.QHostAddress", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "address", "string"), End), + // MISSING: QHostAddress (QHostAddress; QHostAddress this, flags QHostAddress::SpecialAddress address) + // MISSING: QHostAddress (QHostAddress; QHostAddress this, QHostAddress address) + new Function(c, "clear", _n_clear0, None, Compiled, qt_QHostAddress_clear_void_QHostAddress, Return, "void", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "isBroadcast", _n_isBroadcast0, None, Compiled, qt_QHostAddress_isBroadcast_bool_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "isEqual", _n_isEqual0, None, Compiled, qt_QHostAddress_isEqual_bool_QHostAddress_QHostAddress_int, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "other", "qt.QHostAddress"), new Param(c, "mode", "int", Value((int)QHostAddress::TolerantConversion)), End), + new Function(c, "isGlobal", _n_isGlobal0, None, Compiled, qt_QHostAddress_isGlobal_bool_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "isInSubnet", _n_isInSubnet0, None, Compiled, qt_QHostAddress_isInSubnet_bool_QHostAddress_QHostAddress_int, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "subnet", "qt.QHostAddress"), new Param(c, "netmask", "int"), End), + // MISSING: isInSubnet (bool; QHostAddress this, "const QPair &" subnet) + new Function(c, "isLinkLocal", _n_isLinkLocal0, None, Compiled, qt_QHostAddress_isLinkLocal_bool_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "isLoopback", _n_isLoopback0, None, Compiled, qt_QHostAddress_isLoopback_bool_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "isMulticast", _n_isMulticast0, None, Compiled, qt_QHostAddress_isMulticast_bool_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QHostAddress_isNull_bool_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "isSiteLocal", _n_isSiteLocal0, None, Compiled, qt_QHostAddress_isSiteLocal_bool_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "isUniqueLocalUnicast", _n_isUniqueLocalUnicast0, None, Compiled, qt_QHostAddress_isUniqueLocalUnicast_bool_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "protocol", _n_protocol0, None, Compiled, qt_QHostAddress_protocol_int_QHostAddress, Return, "int", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "scopeId", _n_scopeId0, None, Compiled, qt_QHostAddress_scopeId_string_QHostAddress, Return, "string", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + new Function(c, "setAddress", _n_setAddress0, None, Compiled, qt_QHostAddress_setAddress_void_QHostAddress_int, Return, "void", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "ip4Addr", "int"), End), + // MISSING: setAddress (void; QHostAddress this, "const quint8 *" ip6Addr) + // MISSING: setAddress (void; QHostAddress this, "const Q_IPV6ADDR &" ip6Addr) + // MISSING: setAddress (void; QHostAddress this, "const sockaddr *" sockaddr) + new Function(c, "setAddress", _n_setAddress4, None, Compiled, qt_QHostAddress_setAddress_bool_QHostAddress_string, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "address", "string"), End), + // MISSING: setAddress (void; QHostAddress this, flags QHostAddress::SpecialAddress address) + new Function(c, "setScopeId", _n_setScopeId0, None, Compiled, qt_QHostAddress_setScopeId_void_QHostAddress_string, Return, "void", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "id", "string"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QHostAddress_swap_void_QHostAddress_QHostAddress, Return, "void", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "other", "qt.QHostAddress"), End), + // MISSING: toIPv4Address (int; QHostAddress this, "bool *" ok) + // MISSING: toIPv6Address ("Q_IPV6ADDR"; QHostAddress this) + new Function(c, "toString", _n_toString0, None, Compiled, qt_QHostAddress_toString_string_QHostAddress, Return, "string", Parameters, new Param(c, "this", "qt.QHostAddress"), End), + // static functions + // MISSING: parseSubnet ("QPair"; string subnet) + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QHostAddress_operatorBang_EQ__bool_QHostAddress_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "other", "qt.QHostAddress"), End), + new Function(c, "!=", _n_operatorBang_EQ_1, Op, Compiled, qt_QHostAddress_operatorBang_EQ__bool_QHostAddress_int, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "other", "int"), End), + // MISSING: = (QHostAddress; QHostAddress this, QHostAddress address) + // MISSING: = (QHostAddress; QHostAddress this, flags QHostAddress::SpecialAddress address) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QHostAddress_operatorEQ_EQ__bool_QHostAddress_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "other", "qt.QHostAddress"), End), + new Function(c, "==", _n_operatorEQ_EQ_1, Op, Compiled, qt_QHostAddress_operatorEQ_EQ__bool_QHostAddress_int, Return, "bool", Parameters, new Param(c, "this", "qt.QHostAddress"), new Param(c, "other", "int"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QHostInfoType.cpp b/src/lib/mu/MuQt6/QHostInfoType.cpp new file mode 100644 index 000000000..8120b8a86 --- /dev/null +++ b/src/lib/mu/MuQt6/QHostInfoType.cpp @@ -0,0 +1,328 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QHostInfoType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QHostInfoType::QHostInfoType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QHostInfoType::~QHostInfoType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QHostInfoType::Instance* i = new QHostInfoType::Instance((Class*)NODE_THIS.type()); + QHostInfoType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QHostInfoType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QHostInfoType::finalizer, 0, 0, 0); +} + +void +QHostInfoType::finalizer (void* obj, void* data) +{ + QHostInfoType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QHostInfo_QHostInfo_QHostInfo_QHostInfo_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_id) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_id); + setqtype(param_this,QHostInfo(arg1)); + return param_this; +} + +int qt_QHostInfo_error_int_QHostInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostInfo arg0 = getqtype(param_this); + return int(arg0.error()); +} + +Pointer qt_QHostInfo_errorString_string_QHostInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostInfo arg0 = getqtype(param_this); + return makestring(c,arg0.errorString()); +} + +Pointer qt_QHostInfo_hostName_string_QHostInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostInfo arg0 = getqtype(param_this); + return makestring(c,arg0.hostName()); +} + +int qt_QHostInfo_lookupId_int_QHostInfo(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostInfo arg0 = getqtype(param_this); + return arg0.lookupId(); +} + +void qt_QHostInfo_setError_void_QHostInfo_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_error) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostInfo arg0 = getqtype(param_this); + QHostInfo::HostInfoError arg1 = (QHostInfo::HostInfoError)(param_error); + arg0.setError(arg1); + setqtype(param_this,arg0); +} + +void qt_QHostInfo_setErrorString_void_QHostInfo_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_str) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostInfo arg0 = getqtype(param_this); + const QString arg1 = qstring(param_str); + arg0.setErrorString(arg1); + setqtype(param_this,arg0); +} + +void qt_QHostInfo_setHostName_void_QHostInfo_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_hostName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostInfo arg0 = getqtype(param_this); + const QString arg1 = qstring(param_hostName); + arg0.setHostName(arg1); + setqtype(param_this,arg0); +} + +void qt_QHostInfo_setLookupId_void_QHostInfo_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_id) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostInfo arg0 = getqtype(param_this); + int arg1 = (int)(param_id); + arg0.setLookupId(arg1); + setqtype(param_this,arg0); +} + +void qt_QHostInfo_swap_void_QHostInfo_QHostInfo(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHostInfo arg0 = getqtype(param_this); + QHostInfo arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +void qt_QHostInfo_abortHostLookup_void_int(Mu::Thread& NODE_THREAD, int param_id) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_id); + QHostInfo::abortHostLookup(arg0); +} + +Pointer qt_QHostInfo_fromName_QHostInfo_string(Mu::Thread& NODE_THREAD, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_name); + return makeqtype(c,QHostInfo::fromName(arg0),"qt.QHostInfo"); +} + +Pointer qt_QHostInfo_localDomainName_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QHostInfo::localDomainName()); +} + +Pointer qt_QHostInfo_localHostName_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QHostInfo::localHostName()); +} + + +static NODE_IMPLEMENTATION(_n_QHostInfo0, Pointer) +{ + NODE_RETURN(qt_QHostInfo_QHostInfo_QHostInfo_QHostInfo_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_error0, int) +{ + NODE_RETURN(qt_QHostInfo_error_int_QHostInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_errorString0, Pointer) +{ + NODE_RETURN(qt_QHostInfo_errorString_string_QHostInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hostName0, Pointer) +{ + NODE_RETURN(qt_QHostInfo_hostName_string_QHostInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_lookupId0, int) +{ + NODE_RETURN(qt_QHostInfo_lookupId_int_QHostInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setError0, void) +{ + qt_QHostInfo_setError_void_QHostInfo_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setErrorString0, void) +{ + qt_QHostInfo_setErrorString_void_QHostInfo_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHostName0, void) +{ + qt_QHostInfo_setHostName_void_QHostInfo_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setLookupId0, void) +{ + qt_QHostInfo_setLookupId_void_QHostInfo_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QHostInfo_swap_void_QHostInfo_QHostInfo(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_abortHostLookup0, void) +{ + qt_QHostInfo_abortHostLookup_void_int(NODE_THREAD, NODE_ARG(0, int)); +} + +static NODE_IMPLEMENTATION(_n_fromName0, Pointer) +{ + NODE_RETURN(qt_QHostInfo_fromName_QHostInfo_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_localDomainName0, Pointer) +{ + NODE_RETURN(qt_QHostInfo_localDomainName_string(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_localHostName0, Pointer) +{ + NODE_RETURN(qt_QHostInfo_localHostName_string(NODE_THREAD)); +} + + + +void +QHostInfoType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "HostInfoError", "int"), + new SymbolicConstant(c, "NoError", "int", Value(int(QHostInfo::NoError))), + new SymbolicConstant(c, "HostNotFound", "int", Value(int(QHostInfo::HostNotFound))), + new SymbolicConstant(c, "UnknownError", "int", Value(int(QHostInfo::UnknownError))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QHostInfo", _n_QHostInfo0, None, Compiled, qt_QHostInfo_QHostInfo_QHostInfo_QHostInfo_int, Return, "qt.QHostInfo", Parameters, new Param(c, "this", "qt.QHostInfo"), new Param(c, "id", "int", Value((int)-1)), End), + // MISSING: QHostInfo (QHostInfo; QHostInfo this, QHostInfo other) + // MISSING: QHostInfo (QHostInfo; QHostInfo this, "QHostInfo & &" other) + // MISSING: addresses ("QList"; QHostInfo this) + new Function(c, "error", _n_error0, None, Compiled, qt_QHostInfo_error_int_QHostInfo, Return, "int", Parameters, new Param(c, "this", "qt.QHostInfo"), End), + new Function(c, "errorString", _n_errorString0, None, Compiled, qt_QHostInfo_errorString_string_QHostInfo, Return, "string", Parameters, new Param(c, "this", "qt.QHostInfo"), End), + new Function(c, "hostName", _n_hostName0, None, Compiled, qt_QHostInfo_hostName_string_QHostInfo, Return, "string", Parameters, new Param(c, "this", "qt.QHostInfo"), End), + new Function(c, "lookupId", _n_lookupId0, None, Compiled, qt_QHostInfo_lookupId_int_QHostInfo, Return, "int", Parameters, new Param(c, "this", "qt.QHostInfo"), End), + // MISSING: setAddresses (void; QHostInfo this, "const QList &" addresses) + new Function(c, "setError", _n_setError0, None, Compiled, qt_QHostInfo_setError_void_QHostInfo_int, Return, "void", Parameters, new Param(c, "this", "qt.QHostInfo"), new Param(c, "error", "int"), End), + new Function(c, "setErrorString", _n_setErrorString0, None, Compiled, qt_QHostInfo_setErrorString_void_QHostInfo_string, Return, "void", Parameters, new Param(c, "this", "qt.QHostInfo"), new Param(c, "str", "string"), End), + new Function(c, "setHostName", _n_setHostName0, None, Compiled, qt_QHostInfo_setHostName_void_QHostInfo_string, Return, "void", Parameters, new Param(c, "this", "qt.QHostInfo"), new Param(c, "hostName", "string"), End), + new Function(c, "setLookupId", _n_setLookupId0, None, Compiled, qt_QHostInfo_setLookupId_void_QHostInfo_int, Return, "void", Parameters, new Param(c, "this", "qt.QHostInfo"), new Param(c, "id", "int"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QHostInfo_swap_void_QHostInfo_QHostInfo, Return, "void", Parameters, new Param(c, "this", "qt.QHostInfo"), new Param(c, "other", "qt.QHostInfo"), End), + // static functions + new Function(c, "abortHostLookup", _n_abortHostLookup0, None, Compiled, qt_QHostInfo_abortHostLookup_void_int, Return, "void", Parameters, new Param(c, "id", "int"), End), + new Function(c, "fromName", _n_fromName0, None, Compiled, qt_QHostInfo_fromName_QHostInfo_string, Return, "qt.QHostInfo", Parameters, new Param(c, "name", "string"), End), + new Function(c, "localDomainName", _n_localDomainName0, None, Compiled, qt_QHostInfo_localDomainName_string, Return, "string", End), + new Function(c, "localHostName", _n_localHostName0, None, Compiled, qt_QHostInfo_localHostName_string, Return, "string", End), + // MISSING: lookupHost (int; string name, QObject receiver, "const char *" member) + // MISSING: lookupHost (int; string name, QObject context, "Functor" functor) + EndArguments); +globalScope()->addSymbols( + // MISSING: = (QHostInfo; QHostInfo this, QHostInfo other) + // MISSING: = (QHostInfo; QHostInfo this, "QHostInfo & &" other) + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QHoverEventType.cpp b/src/lib/mu/MuQt6/QHoverEventType.cpp new file mode 100644 index 000000000..6eafc1ed7 --- /dev/null +++ b/src/lib/mu/MuQt6/QHoverEventType.cpp @@ -0,0 +1,134 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QHoverEventType::QHoverEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QHoverEventType::~QHoverEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QHoverEvent_oldPos_QPoint_QHoverEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHoverEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->oldPos(),"qt.QPoint"); +} + +Pointer qt_QHoverEvent_oldPosF_QPointF_QHoverEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QHoverEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->oldPosF(),"qt.QPointF"); +} + + +static NODE_IMPLEMENTATION(_n_oldPos0, Pointer) +{ + NODE_RETURN(qt_QHoverEvent_oldPos_QPoint_QHoverEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_oldPosF0, Pointer) +{ + NODE_RETURN(qt_QHoverEvent_oldPosF_QPointF_QHoverEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QHoverEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + // MISSING: QHoverEvent (QHoverEvent; QHoverEvent this, flags QEvent::Type type, QPointF scenePos, QPointF globalPos, QPointF oldPos, flags Qt::KeyboardModifiers modifiers, "const QPointingDevice *" device) + new Function(c, "oldPos", _n_oldPos0, None, Compiled, qt_QHoverEvent_oldPos_QPoint_QHoverEvent, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QHoverEvent"), End), + new Function(c, "oldPosF", _n_oldPosF0, None, Compiled, qt_QHoverEvent_oldPosF_QPointF_QHoverEvent, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QHoverEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QIODeviceBaseType.cpp b/src/lib/mu/MuQt6/QIODeviceBaseType.cpp new file mode 100644 index 000000000..5f136ced0 --- /dev/null +++ b/src/lib/mu/MuQt6/QIODeviceBaseType.cpp @@ -0,0 +1,149 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION POTATO + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QIODeviceBaseType::QIODeviceBaseType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QIODeviceBaseType::~QIODeviceBaseType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +// static Pointer +// QIODeviceBase_QIODeviceBase_QIODeviceBase(Thread& NODE_THREAD, Pointer obj) +// { +// MuLangContext* c = static_cast(NODE_THREAD.context()); +// ClassInstance* item = reinterpret_cast(obj); + +// if (!item) +// { +// return 0; +// } +// else if (QIODeviceBase* i = iodevicebase(item)) +// { +// QIODeviceBaseType* type = +// c->findSymbolOfTypeByQualifiedName(c->internName("qt.QIODeviceBase"), false); +// ClassInstance* o = ClassInstance::allocate(type); +// setiodevicebase(o, i); +// return o; +// } +// else +// { +// throw BadCastException(); +// } +// } + +// static NODE_IMPLEMENTATION(castFromLayoutItem, Pointer) +// { +// NODE_RETURN( QIODeviceBase_QIODeviceBase_QIODeviceBase(NODE_THREAD, NODE_ARG(0, Pointer)) ); +// } + + + + +void +QIODeviceBaseType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + EndArguments ); + +addSymbols( + // enums + new Alias(c, "OpenModeFlag", "int"), + new Alias(c, "OpenMode", "int"), + new SymbolicConstant(c, "NotOpen", "int", Value(int(QIODeviceBase::NotOpen))), + new SymbolicConstant(c, "ReadOnly", "int", Value(int(QIODeviceBase::ReadOnly))), + new SymbolicConstant(c, "WriteOnly", "int", Value(int(QIODeviceBase::WriteOnly))), + new SymbolicConstant(c, "ReadWrite", "int", Value(int(QIODeviceBase::ReadWrite))), + new SymbolicConstant(c, "Append", "int", Value(int(QIODeviceBase::Append))), + new SymbolicConstant(c, "Truncate", "int", Value(int(QIODeviceBase::Truncate))), + new SymbolicConstant(c, "Text", "int", Value(int(QIODeviceBase::Text))), + new SymbolicConstant(c, "Unbuffered", "int", Value(int(QIODeviceBase::Unbuffered))), + new SymbolicConstant(c, "NewOnly", "int", Value(int(QIODeviceBase::NewOnly))), + new SymbolicConstant(c, "ExistingOnly", "int", Value(int(QIODeviceBase::ExistingOnly))), + // member functions + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QIODeviceType.cpp b/src/lib/mu/MuQt6/QIODeviceType.cpp new file mode 100644 index 000000000..e961d82ee --- /dev/null +++ b/src/lib/mu/MuQt6/QIODeviceType.cpp @@ -0,0 +1,685 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QIODeviceType::QIODeviceType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QIODeviceType::~QIODeviceType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QIODevice_QIODevice_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QIODevice* w = object(widget)) + { + QIODeviceType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QIODevice"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QIODevice_QIODevice_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +// NO FUNC: CLASS IS ABSTRACT: QIODevice (QIODevice; QIODevice this) +// NO FUNC: CLASS IS ABSTRACT: QIODevice (QIODevice; QIODevice this, QObject parent) +bool qt_QIODevice_atEnd_bool_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->atEnd(); +} + +int64 qt_QIODevice_bytesAvailable_int64_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->bytesAvailable(); +} + +int64 qt_QIODevice_bytesToWrite_int64_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->bytesToWrite(); +} + +bool qt_QIODevice_canReadLine_bool_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->canReadLine(); +} + +void qt_QIODevice_close_void_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + arg0->close(); +} + +void qt_QIODevice_commitTransaction_void_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + arg0->commitTransaction(); +} + +int qt_QIODevice_currentReadChannel_int_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->currentReadChannel(); +} + +int qt_QIODevice_currentWriteChannel_int_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->currentWriteChannel(); +} + +Pointer qt_QIODevice_errorString_string_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return makestring(c,arg0->errorString()); +} + +bool qt_QIODevice_isOpen_bool_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->isOpen(); +} + +bool qt_QIODevice_isReadable_bool_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->isReadable(); +} + +bool qt_QIODevice_isSequential_bool_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->isSequential(); +} + +bool qt_QIODevice_isTextModeEnabled_bool_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->isTextModeEnabled(); +} + +bool qt_QIODevice_isTransactionStarted_bool_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->isTransactionStarted(); +} + +bool qt_QIODevice_isWritable_bool_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->isWritable(); +} + +bool qt_QIODevice_open_bool_QIODevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + QIODeviceBase::OpenMode arg1 = (QIODeviceBase::OpenMode)(param_mode); + return arg0->open(arg1); +} + +int qt_QIODevice_openMode_int_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return int(arg0->openMode()); +} + +Pointer qt_QIODevice_peek_QByteArray_QIODevice_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + qint64 arg1 = (int64)(param_maxSize); + return makeqtype(c,arg0->peek(arg1),"qt.QByteArray"); +} + +int64 qt_QIODevice_pos_int64_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->pos(); +} + +Pointer qt_QIODevice_read_QByteArray_QIODevice_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + qint64 arg1 = (int64)(param_maxSize); + return makeqtype(c,arg0->read(arg1),"qt.QByteArray"); +} + +Pointer qt_QIODevice_readAll_QByteArray_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return makeqtype(c,arg0->readAll(),"qt.QByteArray"); +} + +int qt_QIODevice_readChannelCount_int_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->readChannelCount(); +} + +Pointer qt_QIODevice_readLine_QByteArray_QIODevice_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + qint64 arg1 = (int64)(param_maxSize); + return makeqtype(c,arg0->readLine(arg1),"qt.QByteArray"); +} + +bool qt_QIODevice_reset_bool_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->reset(); +} + +void qt_QIODevice_rollbackTransaction_void_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + arg0->rollbackTransaction(); +} + +bool qt_QIODevice_seek_bool_QIODevice_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + qint64 arg1 = (int64)(param_pos); + return arg0->seek(arg1); +} + +void qt_QIODevice_setCurrentReadChannel_void_QIODevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_channel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + int arg1 = (int)(param_channel); + arg0->setCurrentReadChannel(arg1); +} + +void qt_QIODevice_setCurrentWriteChannel_void_QIODevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_channel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + int arg1 = (int)(param_channel); + arg0->setCurrentWriteChannel(arg1); +} + +void qt_QIODevice_setTextModeEnabled_void_QIODevice_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + bool arg1 = (bool)(param_enabled); + arg0->setTextModeEnabled(arg1); +} + +int64 qt_QIODevice_size_int64_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->size(); +} + +int64 qt_QIODevice_skip_int64_QIODevice_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + qint64 arg1 = (int64)(param_maxSize); + return arg0->skip(arg1); +} + +void qt_QIODevice_startTransaction_void_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + arg0->startTransaction(); +} + +bool qt_QIODevice_waitForBytesWritten_bool_QIODevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return arg0->waitForBytesWritten(arg1); +} + +bool qt_QIODevice_waitForReadyRead_bool_QIODevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return arg0->waitForReadyRead(arg1); +} + +int64 qt_QIODevice_write_int64_QIODevice_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_data); + return arg0->write(arg1); +} + +int qt_QIODevice_writeChannelCount_int_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + return arg0->writeChannelCount(); +} + +bool qt_QIODevice_event_bool_QIODevice_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return arg0->event(arg1); +} + +bool qt_QIODevice_eventFilter_bool_QIODevice_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return arg0->eventFilter(arg1, arg2); +} + + +// NO NODE: CLASS IS ABSTRACT: QIODevice (QIODevice; QIODevice this) +// NO NODE: CLASS IS ABSTRACT: QIODevice (QIODevice; QIODevice this, QObject parent) +static NODE_IMPLEMENTATION(_n_atEnd0, bool) +{ + NODE_RETURN(qt_QIODevice_atEnd_bool_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesAvailable0, int64) +{ + NODE_RETURN(qt_QIODevice_bytesAvailable_int64_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesToWrite0, int64) +{ + NODE_RETURN(qt_QIODevice_bytesToWrite_int64_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canReadLine0, bool) +{ + NODE_RETURN(qt_QIODevice_canReadLine_bool_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_close0, void) +{ + qt_QIODevice_close_void_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_commitTransaction0, void) +{ + qt_QIODevice_commitTransaction_void_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_currentReadChannel0, int) +{ + NODE_RETURN(qt_QIODevice_currentReadChannel_int_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentWriteChannel0, int) +{ + NODE_RETURN(qt_QIODevice_currentWriteChannel_int_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_errorString0, Pointer) +{ + NODE_RETURN(qt_QIODevice_errorString_string_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isOpen0, bool) +{ + NODE_RETURN(qt_QIODevice_isOpen_bool_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isReadable0, bool) +{ + NODE_RETURN(qt_QIODevice_isReadable_bool_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSequential0, bool) +{ + NODE_RETURN(qt_QIODevice_isSequential_bool_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isTextModeEnabled0, bool) +{ + NODE_RETURN(qt_QIODevice_isTextModeEnabled_bool_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isTransactionStarted0, bool) +{ + NODE_RETURN(qt_QIODevice_isTransactionStarted_bool_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isWritable0, bool) +{ + NODE_RETURN(qt_QIODevice_isWritable_bool_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_open0, bool) +{ + NODE_RETURN(qt_QIODevice_open_bool_QIODevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_openMode0, int) +{ + NODE_RETURN(qt_QIODevice_openMode_int_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_peek1, Pointer) +{ + NODE_RETURN(qt_QIODevice_peek_QByteArray_QIODevice_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_pos0, int64) +{ + NODE_RETURN(qt_QIODevice_pos_int64_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_read1, Pointer) +{ + NODE_RETURN(qt_QIODevice_read_QByteArray_QIODevice_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_readAll0, Pointer) +{ + NODE_RETURN(qt_QIODevice_readAll_QByteArray_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_readChannelCount0, int) +{ + NODE_RETURN(qt_QIODevice_readChannelCount_int_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_readLine1, Pointer) +{ + NODE_RETURN(qt_QIODevice_readLine_QByteArray_QIODevice_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_reset0, bool) +{ + NODE_RETURN(qt_QIODevice_reset_bool_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rollbackTransaction0, void) +{ + qt_QIODevice_rollbackTransaction_void_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_seek0, bool) +{ + NODE_RETURN(qt_QIODevice_seek_bool_QIODevice_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_setCurrentReadChannel0, void) +{ + qt_QIODevice_setCurrentReadChannel_void_QIODevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setCurrentWriteChannel0, void) +{ + qt_QIODevice_setCurrentWriteChannel_void_QIODevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setTextModeEnabled0, void) +{ + qt_QIODevice_setTextModeEnabled_void_QIODevice_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_size0, int64) +{ + NODE_RETURN(qt_QIODevice_size_int64_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_skip0, int64) +{ + NODE_RETURN(qt_QIODevice_skip_int64_QIODevice_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_startTransaction0, void) +{ + qt_QIODevice_startTransaction_void_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_waitForBytesWritten0, bool) +{ + NODE_RETURN(qt_QIODevice_waitForBytesWritten_bool_QIODevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForReadyRead0, bool) +{ + NODE_RETURN(qt_QIODevice_waitForReadyRead_bool_QIODevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_write2, int64) +{ + NODE_RETURN(qt_QIODevice_write_int64_QIODevice_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_writeChannelCount0, int) +{ + NODE_RETURN(qt_QIODevice_writeChannelCount_int_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QIODevice_event_bool_QIODevice_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QIODevice_eventFilter_bool_QIODevice_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + + + +void +QIODeviceType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QIODevice_QIODevice_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + // ABSTRACT CONSTRUCTOR: QIODevice (QIODevice; QIODevice this) + // ABSTRACT CONSTRUCTOR: QIODevice (QIODevice; QIODevice this, QObject parent) + new MemberFunction(c, "atEnd", _n_atEnd0, None, Compiled, qt_QIODevice_atEnd_bool_QIODevice, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new MemberFunction(c, "bytesAvailable", _n_bytesAvailable0, None, Compiled, qt_QIODevice_bytesAvailable_int64_QIODevice, Return, "int64", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new MemberFunction(c, "bytesToWrite", _n_bytesToWrite0, None, Compiled, qt_QIODevice_bytesToWrite_int64_QIODevice, Return, "int64", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new MemberFunction(c, "canReadLine", _n_canReadLine0, None, Compiled, qt_QIODevice_canReadLine_bool_QIODevice, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new MemberFunction(c, "close", _n_close0, None, Compiled, qt_QIODevice_close_void_QIODevice, Return, "void", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "commitTransaction", _n_commitTransaction0, None, Compiled, qt_QIODevice_commitTransaction_void_QIODevice, Return, "void", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "currentReadChannel", _n_currentReadChannel0, None, Compiled, qt_QIODevice_currentReadChannel_int_QIODevice, Return, "int", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "currentWriteChannel", _n_currentWriteChannel0, None, Compiled, qt_QIODevice_currentWriteChannel_int_QIODevice, Return, "int", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "errorString", _n_errorString0, None, Compiled, qt_QIODevice_errorString_string_QIODevice, Return, "string", Parameters, new Param(c, "this", "qt.QIODevice"), End), + // MISSING: getChar (bool; QIODevice this, "char *" c) + new Function(c, "isOpen", _n_isOpen0, None, Compiled, qt_QIODevice_isOpen_bool_QIODevice, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "isReadable", _n_isReadable0, None, Compiled, qt_QIODevice_isReadable_bool_QIODevice, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new MemberFunction(c, "isSequential", _n_isSequential0, None, Compiled, qt_QIODevice_isSequential_bool_QIODevice, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "isTextModeEnabled", _n_isTextModeEnabled0, None, Compiled, qt_QIODevice_isTextModeEnabled_bool_QIODevice, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "isTransactionStarted", _n_isTransactionStarted0, None, Compiled, qt_QIODevice_isTransactionStarted_bool_QIODevice, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "isWritable", _n_isWritable0, None, Compiled, qt_QIODevice_isWritable_bool_QIODevice, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new MemberFunction(c, "open", _n_open0, None, Compiled, qt_QIODevice_open_bool_QIODevice_int, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "mode", "int"), End), + new Function(c, "openMode", _n_openMode0, None, Compiled, qt_QIODevice_openMode_int_QIODevice, Return, "int", Parameters, new Param(c, "this", "qt.QIODevice"), End), + // MISSING: peek (int64; QIODevice this, "char *" data, int64 maxSize) + new Function(c, "peek", _n_peek1, None, Compiled, qt_QIODevice_peek_QByteArray_QIODevice_int64, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "maxSize", "int64"), End), + new MemberFunction(c, "pos", _n_pos0, None, Compiled, qt_QIODevice_pos_int64_QIODevice, Return, "int64", Parameters, new Param(c, "this", "qt.QIODevice"), End), + // MISSING: putChar (bool; QIODevice this, "char" c) + // MISSING: read (int64; QIODevice this, "char *" data, int64 maxSize) + new Function(c, "read", _n_read1, None, Compiled, qt_QIODevice_read_QByteArray_QIODevice_int64, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "maxSize", "int64"), End), + new Function(c, "readAll", _n_readAll0, None, Compiled, qt_QIODevice_readAll_QByteArray_QIODevice, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "readChannelCount", _n_readChannelCount0, None, Compiled, qt_QIODevice_readChannelCount_int_QIODevice, Return, "int", Parameters, new Param(c, "this", "qt.QIODevice"), End), + // MISSING: readLine (int64; QIODevice this, "char *" data, int64 maxSize) + new Function(c, "readLine", _n_readLine1, None, Compiled, qt_QIODevice_readLine_QByteArray_QIODevice_int64, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "maxSize", "int64"), End), + new MemberFunction(c, "reset", _n_reset0, None, Compiled, qt_QIODevice_reset_bool_QIODevice, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "rollbackTransaction", _n_rollbackTransaction0, None, Compiled, qt_QIODevice_rollbackTransaction_void_QIODevice, Return, "void", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new MemberFunction(c, "seek", _n_seek0, None, Compiled, qt_QIODevice_seek_bool_QIODevice_int64, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "pos", "int64"), End), + new Function(c, "setCurrentReadChannel", _n_setCurrentReadChannel0, None, Compiled, qt_QIODevice_setCurrentReadChannel_void_QIODevice_int, Return, "void", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "channel", "int"), End), + new Function(c, "setCurrentWriteChannel", _n_setCurrentWriteChannel0, None, Compiled, qt_QIODevice_setCurrentWriteChannel_void_QIODevice_int, Return, "void", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "channel", "int"), End), + new Function(c, "setTextModeEnabled", _n_setTextModeEnabled0, None, Compiled, qt_QIODevice_setTextModeEnabled_void_QIODevice_bool, Return, "void", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "enabled", "bool"), End), + new MemberFunction(c, "size", _n_size0, None, Compiled, qt_QIODevice_size_int64_QIODevice, Return, "int64", Parameters, new Param(c, "this", "qt.QIODevice"), End), + new Function(c, "skip", _n_skip0, None, Compiled, qt_QIODevice_skip_int64_QIODevice_int64, Return, "int64", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "maxSize", "int64"), End), + new Function(c, "startTransaction", _n_startTransaction0, None, Compiled, qt_QIODevice_startTransaction_void_QIODevice, Return, "void", Parameters, new Param(c, "this", "qt.QIODevice"), End), + // MISSING: ungetChar (void; QIODevice this, "char" c) + new MemberFunction(c, "waitForBytesWritten", _n_waitForBytesWritten0, None, Compiled, qt_QIODevice_waitForBytesWritten_bool_QIODevice_int, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "msecs", "int"), End), + new MemberFunction(c, "waitForReadyRead", _n_waitForReadyRead0, None, Compiled, qt_QIODevice_waitForReadyRead_bool_QIODevice_int, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "msecs", "int"), End), + // MISSING: write (int64; QIODevice this, "const char *" data, int64 maxSize) + // MISSING: write (int64; QIODevice this, "const char *" data) + new Function(c, "write", _n_write2, None, Compiled, qt_QIODevice_write_int64_QIODevice_QByteArray, Return, "int64", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "data", "qt.QByteArray"), End), + new Function(c, "writeChannelCount", _n_writeChannelCount0, None, Compiled, qt_QIODevice_writeChannelCount_int_QIODevice, Return, "int", Parameters, new Param(c, "this", "qt.QIODevice"), End), + // MISSING: readData (int64; QIODevice this, "char *" data, int64 maxSize) // protected + // MISSING: readLineData (int64; QIODevice this, "char *" data, int64 maxSize) // protected + // NOT INHERITABLE PROTECTED: setErrorString (void; QIODevice this, string str) // protected + // NOT INHERITABLE PROTECTED: setOpenMode (void; QIODevice this, flags QIODeviceBase::OpenMode openMode) // protected + // NOT INHERITABLE PROTECTED: skipData (int64; QIODevice this, int64 maxSize) // protected + // MISSING: writeData (int64; QIODevice this, "const char *" data, int64 maxSize) // protected + new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QIODevice_event_bool_QIODevice_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "e", "qt.QEvent"), End), + new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QIODevice_eventFilter_bool_QIODevice_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QIODevice"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QIODevice this) + // MISSING: childEvent (void; QIODevice this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QIODevice this, "const QMetaMethod &" signal) // protected + // NOT INHERITABLE PROTECTED: customEvent (void; QIODevice this, QEvent event) // protected + // MISSING: disconnectNotify (void; QIODevice this, "const QMetaMethod &" signal) // protected + // NOT INHERITABLE PROTECTED: timerEvent (void; QIODevice this, QTimerEvent event) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QIODevice::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QIconType.cpp b/src/lib/mu/MuQt6/QIconType.cpp new file mode 100644 index 000000000..e7789558b --- /dev/null +++ b/src/lib/mu/MuQt6/QIconType.cpp @@ -0,0 +1,522 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QIconType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QIconType::QIconType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QIconType::~QIconType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QIconType::Instance* i = new QIconType::Instance((Class*)NODE_THIS.type()); + QIconType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QIconType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QIconType::finalizer, 0, 0, 0); +} + +void +QIconType::finalizer (void* obj, void* data) +{ + QIconType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QIcon_QIcon_QIcon_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QIcon()); + return param_this; +} + +Pointer qt_QIcon_QIcon_QIcon_QIcon_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pixmap) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap arg1 = getqtype(param_pixmap); + setqtype(param_this,QIcon(arg1)); + return param_this; +} + +Pointer qt_QIcon_QIcon_QIcon_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_fileName); + setqtype(param_this,QIcon(arg1)); + return param_this; +} + +Pointer qt_QIcon_actualSize_QSize_QIcon_QSize_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size, int param_mode, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon& arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_size); + QIcon::Mode arg2 = (QIcon::Mode)(param_mode); + QIcon::State arg3 = (QIcon::State)(param_state); + return makeqtype(c,arg0.actualSize(arg1, arg2, arg3),"qt.QSize"); +} + +void qt_QIcon_addFile_void_QIcon_string_QSize_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName, Pointer param_size, int param_mode, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIcon& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_fileName); + const QSize arg2 = getqtype(param_size); + QIcon::Mode arg3 = (QIcon::Mode)(param_mode); + QIcon::State arg4 = (QIcon::State)(param_state); + arg0.addFile(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QIcon_addPixmap_void_QIcon_QPixmap_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pixmap, int param_mode, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIcon& arg0 = getqtype(param_this); + const QPixmap arg1 = getqtype(param_pixmap); + QIcon::Mode arg2 = (QIcon::Mode)(param_mode); + QIcon::State arg3 = (QIcon::State)(param_state); + arg0.addPixmap(arg1, arg2, arg3); + setqtype(param_this,arg0); +} + +int64 qt_QIcon_cacheKey_int64_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon& arg0 = getqtype(param_this); + return arg0.cacheKey(); +} + +bool qt_QIcon_isMask_bool_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon& arg0 = getqtype(param_this); + return arg0.isMask(); +} + +bool qt_QIcon_isNull_bool_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon& arg0 = getqtype(param_this); + return arg0.isNull(); +} + +Pointer qt_QIcon_name_string_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon& arg0 = getqtype(param_this); + return makestring(c,arg0.name()); +} + +Pointer qt_QIcon_pixmap_QPixmap_QIcon_QSize_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size, int param_mode, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon& arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_size); + QIcon::Mode arg2 = (QIcon::Mode)(param_mode); + QIcon::State arg3 = (QIcon::State)(param_state); + return makeqtype(c,arg0.pixmap(arg1, arg2, arg3),"qt.QPixmap"); +} + +Pointer qt_QIcon_pixmap_QPixmap_QIcon_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w, int param_h, int param_mode, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon& arg0 = getqtype(param_this); + int arg1 = (int)(param_w); + int arg2 = (int)(param_h); + QIcon::Mode arg3 = (QIcon::Mode)(param_mode); + QIcon::State arg4 = (QIcon::State)(param_state); + return makeqtype(c,arg0.pixmap(arg1, arg2, arg3, arg4),"qt.QPixmap"); +} + +Pointer qt_QIcon_pixmap_QPixmap_QIcon_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_extent, int param_mode, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon& arg0 = getqtype(param_this); + int arg1 = (int)(param_extent); + QIcon::Mode arg2 = (QIcon::Mode)(param_mode); + QIcon::State arg3 = (QIcon::State)(param_state); + return makeqtype(c,arg0.pixmap(arg1, arg2, arg3),"qt.QPixmap"); +} + +Pointer qt_QIcon_pixmap_QPixmap_QIcon_QSize_double_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size, double param_devicePixelRatio, int param_mode, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon& arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_size); + qreal arg2 = (double)(param_devicePixelRatio); + QIcon::Mode arg3 = (QIcon::Mode)(param_mode); + QIcon::State arg4 = (QIcon::State)(param_state); + return makeqtype(c,arg0.pixmap(arg1, arg2, arg3, arg4),"qt.QPixmap"); +} + +void qt_QIcon_setIsMask_void_QIcon_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_isMask) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIcon& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_isMask); + arg0.setIsMask(arg1); + setqtype(param_this,arg0); +} + +void qt_QIcon_swap_void_QIcon_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIcon& arg0 = getqtype(param_this); + QIcon arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QIcon_fallbackSearchPaths_stringBSB_ESB_(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestringlist(c,QIcon::fallbackSearchPaths()); +} + +Pointer qt_QIcon_fallbackThemeName_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QIcon::fallbackThemeName()); +} + +Pointer qt_QIcon_fromTheme_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_name); + return makeqtype(c,QIcon::fromTheme(arg0),"qt.QIcon"); +} + +Pointer qt_QIcon_fromTheme_QIcon_string_QIcon(Mu::Thread& NODE_THREAD, Pointer param_name, Pointer param_fallback) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_name); + const QIcon arg1 = getqtype(param_fallback); + return makeqtype(c,QIcon::fromTheme(arg0, arg1),"qt.QIcon"); +} + +bool qt_QIcon_hasThemeIcon_bool_string(Mu::Thread& NODE_THREAD, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_name); + return QIcon::hasThemeIcon(arg0); +} + +void qt_QIcon_setFallbackSearchPaths_void_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_paths) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QStringList arg0 = qstringlist(param_paths); + QIcon::setFallbackSearchPaths(arg0); +} + +void qt_QIcon_setFallbackThemeName_void_string(Mu::Thread& NODE_THREAD, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_name); + QIcon::setFallbackThemeName(arg0); +} + +void qt_QIcon_setThemeName_void_string(Mu::Thread& NODE_THREAD, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_name); + QIcon::setThemeName(arg0); +} + +void qt_QIcon_setThemeSearchPaths_void_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_paths) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QStringList arg0 = qstringlist(param_paths); + QIcon::setThemeSearchPaths(arg0); +} + +Pointer qt_QIcon_themeName_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QIcon::themeName()); +} + +Pointer qt_QIcon_themeSearchPaths_stringBSB_ESB_(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestringlist(c,QIcon::themeSearchPaths()); +} + + +static NODE_IMPLEMENTATION(_n_QIcon0, Pointer) +{ + NODE_RETURN(qt_QIcon_QIcon_QIcon_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QIcon1, Pointer) +{ + NODE_RETURN(qt_QIcon_QIcon_QIcon_QIcon_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QIcon2, Pointer) +{ + NODE_RETURN(qt_QIcon_QIcon_QIcon_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_actualSize0, Pointer) +{ + NODE_RETURN(qt_QIcon_actualSize_QSize_QIcon_QSize_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_addFile0, void) +{ + qt_QIcon_addFile_void_QIcon_string_QSize_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_addPixmap0, void) +{ + qt_QIcon_addPixmap_void_QIcon_QPixmap_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_cacheKey0, int64) +{ + NODE_RETURN(qt_QIcon_cacheKey_int64_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isMask0, bool) +{ + NODE_RETURN(qt_QIcon_isMask_bool_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QIcon_isNull_bool_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_name0, Pointer) +{ + NODE_RETURN(qt_QIcon_name_string_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pixmap0, Pointer) +{ + NODE_RETURN(qt_QIcon_pixmap_QPixmap_QIcon_QSize_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_pixmap1, Pointer) +{ + NODE_RETURN(qt_QIcon_pixmap_QPixmap_QIcon_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_pixmap2, Pointer) +{ + NODE_RETURN(qt_QIcon_pixmap_QPixmap_QIcon_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_pixmap3, Pointer) +{ + NODE_RETURN(qt_QIcon_pixmap_QPixmap_QIcon_QSize_double_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, double), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_setIsMask0, void) +{ + qt_QIcon_setIsMask_void_QIcon_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QIcon_swap_void_QIcon_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_fallbackSearchPaths0, Pointer) +{ + NODE_RETURN(qt_QIcon_fallbackSearchPaths_stringBSB_ESB_(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_fallbackThemeName0, Pointer) +{ + NODE_RETURN(qt_QIcon_fallbackThemeName_string(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_fromTheme0, Pointer) +{ + NODE_RETURN(qt_QIcon_fromTheme_QIcon_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fromTheme1, Pointer) +{ + NODE_RETURN(qt_QIcon_fromTheme_QIcon_string_QIcon(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasThemeIcon0, bool) +{ + NODE_RETURN(qt_QIcon_hasThemeIcon_bool_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setFallbackSearchPaths0, void) +{ + qt_QIcon_setFallbackSearchPaths_void_stringBSB_ESB_(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFallbackThemeName0, void) +{ + qt_QIcon_setFallbackThemeName_void_string(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setThemeName0, void) +{ + qt_QIcon_setThemeName_void_string(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setThemeSearchPaths0, void) +{ + qt_QIcon_setThemeSearchPaths_void_stringBSB_ESB_(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_themeName0, Pointer) +{ + NODE_RETURN(qt_QIcon_themeName_string(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_themeSearchPaths0, Pointer) +{ + NODE_RETURN(qt_QIcon_themeSearchPaths_stringBSB_ESB_(NODE_THREAD)); +} + + + +void +QIconType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "Mode", "int"), + new SymbolicConstant(c, "Normal", "int", Value(int(QIcon::Normal))), + new SymbolicConstant(c, "Disabled", "int", Value(int(QIcon::Disabled))), + new SymbolicConstant(c, "Active", "int", Value(int(QIcon::Active))), + new SymbolicConstant(c, "Selected", "int", Value(int(QIcon::Selected))), + new Alias(c, "State", "int"), + new SymbolicConstant(c, "Off", "int", Value(int(QIcon::Off))), + new SymbolicConstant(c, "On", "int", Value(int(QIcon::On))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QIcon", _n_QIcon0, None, Compiled, qt_QIcon_QIcon_QIcon_QIcon, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QIcon"), End), + new Function(c, "QIcon", _n_QIcon1, None, Compiled, qt_QIcon_QIcon_QIcon_QIcon_QPixmap, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "pixmap", "qt.QPixmap"), End), + new Function(c, "QIcon", _n_QIcon2, None, Compiled, qt_QIcon_QIcon_QIcon_QIcon_string, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "fileName", "string"), End), + // MISSING: QIcon (QIcon; QIcon this, "QIconEngine *" engine) + // MISSING: QIcon (QIcon; QIcon this, QIcon other) + // MISSING: QIcon (QIcon; QIcon this, "QIcon & &" other) + new Function(c, "actualSize", _n_actualSize0, None, Compiled, qt_QIcon_actualSize_QSize_QIcon_QSize_int_int, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "size", "qt.QSize"), new Param(c, "mode", "int", Value((int)QIcon::Normal)), new Param(c, "state", "int", Value((int)QIcon::Off)), End), + new Function(c, "addFile", _n_addFile0, None, Compiled, qt_QIcon_addFile_void_QIcon_string_QSize_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "fileName", "string"), new Param(c, "size", "qt.QSize"), new Param(c, "mode", "int", Value((int)QIcon::Normal)), new Param(c, "state", "int", Value((int)QIcon::Off)), End), + new Function(c, "addPixmap", _n_addPixmap0, None, Compiled, qt_QIcon_addPixmap_void_QIcon_QPixmap_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "pixmap", "qt.QPixmap"), new Param(c, "mode", "int", Value((int)QIcon::Normal)), new Param(c, "state", "int", Value((int)QIcon::Off)), End), + // MISSING: availableSizes ("QList"; QIcon this, flags QIcon::Mode mode, flags QIcon::State state) + new Function(c, "cacheKey", _n_cacheKey0, None, Compiled, qt_QIcon_cacheKey_int64_QIcon, Return, "int64", Parameters, new Param(c, "this", "qt.QIcon"), End), + new Function(c, "isMask", _n_isMask0, None, Compiled, qt_QIcon_isMask_bool_QIcon, Return, "bool", Parameters, new Param(c, "this", "qt.QIcon"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QIcon_isNull_bool_QIcon, Return, "bool", Parameters, new Param(c, "this", "qt.QIcon"), End), + new Function(c, "name", _n_name0, None, Compiled, qt_QIcon_name_string_QIcon, Return, "string", Parameters, new Param(c, "this", "qt.QIcon"), End), + new Function(c, "pixmap", _n_pixmap0, None, Compiled, qt_QIcon_pixmap_QPixmap_QIcon_QSize_int_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "size", "qt.QSize"), new Param(c, "mode", "int", Value((int)QIcon::Normal)), new Param(c, "state", "int", Value((int)QIcon::Off)), End), + new Function(c, "pixmap", _n_pixmap1, None, Compiled, qt_QIcon_pixmap_QPixmap_QIcon_int_int_int_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "w", "int"), new Param(c, "h", "int"), new Param(c, "mode", "int", Value((int)QIcon::Normal)), new Param(c, "state", "int", Value((int)QIcon::Off)), End), + new Function(c, "pixmap", _n_pixmap2, None, Compiled, qt_QIcon_pixmap_QPixmap_QIcon_int_int_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "extent", "int"), new Param(c, "mode", "int", Value((int)QIcon::Normal)), new Param(c, "state", "int", Value((int)QIcon::Off)), End), + new Function(c, "pixmap", _n_pixmap3, None, Compiled, qt_QIcon_pixmap_QPixmap_QIcon_QSize_double_int_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "size", "qt.QSize"), new Param(c, "devicePixelRatio", "double"), new Param(c, "mode", "int", Value((int)QIcon::Normal)), new Param(c, "state", "int", Value((int)QIcon::Off)), End), + new Function(c, "setIsMask", _n_setIsMask0, None, Compiled, qt_QIcon_setIsMask_void_QIcon_bool, Return, "void", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "isMask", "bool"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QIcon_swap_void_QIcon_QIcon, Return, "void", Parameters, new Param(c, "this", "qt.QIcon"), new Param(c, "other", "qt.QIcon"), End), + // MISSING: QVariant ("QVariant operator"; QIcon this) + // static functions + new Function(c, "fallbackSearchPaths", _n_fallbackSearchPaths0, None, Compiled, qt_QIcon_fallbackSearchPaths_stringBSB_ESB_, Return, "string[]", End), + new Function(c, "fallbackThemeName", _n_fallbackThemeName0, None, Compiled, qt_QIcon_fallbackThemeName_string, Return, "string", End), + new Function(c, "fromTheme", _n_fromTheme0, None, Compiled, qt_QIcon_fromTheme_QIcon_string, Return, "qt.QIcon", Parameters, new Param(c, "name", "string"), End), + new Function(c, "fromTheme", _n_fromTheme1, None, Compiled, qt_QIcon_fromTheme_QIcon_string_QIcon, Return, "qt.QIcon", Parameters, new Param(c, "name", "string"), new Param(c, "fallback", "qt.QIcon"), End), + new Function(c, "hasThemeIcon", _n_hasThemeIcon0, None, Compiled, qt_QIcon_hasThemeIcon_bool_string, Return, "bool", Parameters, new Param(c, "name", "string"), End), + new Function(c, "setFallbackSearchPaths", _n_setFallbackSearchPaths0, None, Compiled, qt_QIcon_setFallbackSearchPaths_void_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "paths", "string[]"), End), + new Function(c, "setFallbackThemeName", _n_setFallbackThemeName0, None, Compiled, qt_QIcon_setFallbackThemeName_void_string, Return, "void", Parameters, new Param(c, "name", "string"), End), + new Function(c, "setThemeName", _n_setThemeName0, None, Compiled, qt_QIcon_setThemeName_void_string, Return, "void", Parameters, new Param(c, "name", "string"), End), + new Function(c, "setThemeSearchPaths", _n_setThemeSearchPaths0, None, Compiled, qt_QIcon_setThemeSearchPaths_void_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "paths", "string[]"), End), + new Function(c, "themeName", _n_themeName0, None, Compiled, qt_QIcon_themeName_string, Return, "string", End), + new Function(c, "themeSearchPaths", _n_themeSearchPaths0, None, Compiled, qt_QIcon_themeSearchPaths_stringBSB_ESB_, Return, "string[]", End), + EndArguments); +globalScope()->addSymbols( + // MISSING: = (QIcon; QIcon this, QIcon other) + // MISSING: = (QIcon; QIcon this, "QIcon & &" other) + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QImageType.cpp b/src/lib/mu/MuQt6/QImageType.cpp new file mode 100644 index 000000000..e20a7ed4c --- /dev/null +++ b/src/lib/mu/MuQt6/QImageType.cpp @@ -0,0 +1,1227 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QImageType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QImageType::QImageType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QImageType::~QImageType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QImageType::Instance* i = new QImageType::Instance((Class*)NODE_THIS.type()); + QImageType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QImageType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QImageType::finalizer, 0, 0, 0); +} + +void +QImageType::finalizer (void* obj, void* data) +{ + QImageType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QImage_QImage_QImage_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setpaintdevice(param_this, QImage()); + return param_this; +} + +Pointer qt_QImage_QImage_QImage_QImage_QSize_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QSize arg1 = getqtype(param_size); + QImage::Format arg2 = (QImage::Format)(param_format); + setpaintdevice(param_this, QImage(arg1, arg2)); + return param_this; +} + +Pointer qt_QImage_QImage_QImage_QImage_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width, int param_height, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_width); + int arg2 = (int)(param_height); + QImage::Format arg3 = (QImage::Format)(param_format); + setpaintdevice(param_this, QImage(arg1, arg2, arg3)); + return param_this; +} + +bool qt_QImage_allGray_bool_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.allGray(); +} + +int qt_QImage_bitPlaneCount_int_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.bitPlaneCount(); +} + +int64 qt_QImage_cacheKey_int64_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.cacheKey(); +} + +int qt_QImage_color_int_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_i) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_i); + return arg0.color(arg1); +} + +int qt_QImage_colorCount_int_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.colorCount(); +} + +void qt_QImage_convertTo_void_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_format, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + QImage::Format arg1 = (QImage::Format)(param_format); + Qt::ImageConversionFlags arg2 = (Qt::ImageConversionFlags)(param_flags); + arg0.convertTo(arg1, arg2); +} + +Pointer qt_QImage_convertToFormat_QImage_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_format, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + QImage::Format arg1 = (QImage::Format)(param_format); + Qt::ImageConversionFlags arg2 = (Qt::ImageConversionFlags)(param_flags); + return makeqtype(c,arg0.convertToFormat(arg1, arg2),"qt.QImage"); +} + +Pointer qt_QImage_convertedTo_QImage_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_format, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + QImage::Format arg1 = (QImage::Format)(param_format); + Qt::ImageConversionFlags arg2 = (Qt::ImageConversionFlags)(param_flags); + return makeqtype(c,arg0.convertedTo(arg1, arg2),"qt.QImage"); +} + +Pointer qt_QImage_copy_QImage_QImage_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.copy(arg1),"qt.QImage"); +} + +Pointer qt_QImage_copy_QImage_QImage_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, int param_width, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + int arg3 = (int)(param_width); + int arg4 = (int)(param_height); + return makeqtype(c,arg0.copy(arg1, arg2, arg3, arg4),"qt.QImage"); +} + +Pointer qt_QImage_createAlphaMask_QImage_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + Qt::ImageConversionFlags arg1 = (Qt::ImageConversionFlags)(param_flags); + return makeqtype(c,arg0.createAlphaMask(arg1),"qt.QImage"); +} + +Pointer qt_QImage_createHeuristicMask_QImage_QImage_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_clipTight) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_clipTight); + return makeqtype(c,arg0.createHeuristicMask(arg1),"qt.QImage"); +} + +Pointer qt_QImage_createMaskFromColor_QImage_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_color, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + QRgb arg1 = (int)(param_color); + Qt::MaskMode arg2 = (Qt::MaskMode)(param_mode); + return makeqtype(c,arg0.createMaskFromColor(arg1, arg2),"qt.QImage"); +} + +int qt_QImage_depth_int_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.depth(); +} + +double qt_QImage_devicePixelRatio_double_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.devicePixelRatio(); +} + +int qt_QImage_dotsPerMeterX_int_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.dotsPerMeterX(); +} + +int qt_QImage_dotsPerMeterY_int_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.dotsPerMeterY(); +} + +void qt_QImage_fill_void_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_pixelValue) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + uint arg1 = (int)(param_pixelValue); + arg0.fill(arg1); +} + +void qt_QImage_fill_void_QImage_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + const QColor arg1 = getqtype(param_color); + arg0.fill(arg1); +} + +int qt_QImage_format_int_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return int(arg0.format()); +} + +bool qt_QImage_hasAlphaChannel_bool_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.hasAlphaChannel(); +} + +int qt_QImage_height_int_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.height(); +} + +void qt_QImage_invertPixels_void_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + QImage::InvertMode arg1 = (QImage::InvertMode)(param_mode); + arg0.invertPixels(arg1); +} + +bool qt_QImage_isGrayscale_bool_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.isGrayscale(); +} + +bool qt_QImage_isNull_bool_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.isNull(); +} + +void qt_QImage_mirror_void_QImage_bool_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_horizontal, bool param_vertical) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_horizontal); + bool arg2 = (bool)(param_vertical); + arg0.mirror(arg1, arg2); +} + +Pointer qt_QImage_mirrored_QImage_QImage_bool_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_horizontal, bool param_vertical) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_horizontal); + bool arg2 = (bool)(param_vertical); + return makeqtype(c,arg0.mirrored(arg1, arg2),"qt.QImage"); +} + +Pointer qt_QImage_offset_QPoint_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return makeqtype(c,arg0.offset(),"qt.QPoint"); +} + +int qt_QImage_pixel_int_QImage_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + return arg0.pixel(arg1); +} + +int qt_QImage_pixel_int_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + return arg0.pixel(arg1, arg2); +} + +Pointer qt_QImage_pixelColor_QColor_QImage_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + return makeqtype(c,arg0.pixelColor(arg1),"qt.QColor"); +} + +Pointer qt_QImage_pixelColor_QColor_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + return makeqtype(c,arg0.pixelColor(arg1, arg2),"qt.QColor"); +} + +int qt_QImage_pixelIndex_int_QImage_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + return arg0.pixelIndex(arg1); +} + +int qt_QImage_pixelIndex_int_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + return arg0.pixelIndex(arg1, arg2); +} + +Pointer qt_QImage_rect_QRect_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return makeqtype(c,arg0.rect(),"qt.QRect"); +} + +bool qt_QImage_reinterpretAsFormat_bool_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + QImage::Format arg1 = (QImage::Format)(param_format); + return arg0.reinterpretAsFormat(arg1); +} + +void qt_QImage_rgbSwap_void_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + arg0.rgbSwap(); +} + +Pointer qt_QImage_rgbSwapped_QImage_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return makeqtype(c,arg0.rgbSwapped(),"qt.QImage"); +} + +Pointer qt_QImage_scaled_QImage_QImage_QSize_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size, int param_aspectRatioMode, int param_transformMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_size); + Qt::AspectRatioMode arg2 = (Qt::AspectRatioMode)(param_aspectRatioMode); + Qt::TransformationMode arg3 = (Qt::TransformationMode)(param_transformMode); + return makeqtype(c,arg0.scaled(arg1, arg2, arg3),"qt.QImage"); +} + +Pointer qt_QImage_scaled_QImage_QImage_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width, int param_height, int param_aspectRatioMode, int param_transformMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_width); + int arg2 = (int)(param_height); + Qt::AspectRatioMode arg3 = (Qt::AspectRatioMode)(param_aspectRatioMode); + Qt::TransformationMode arg4 = (Qt::TransformationMode)(param_transformMode); + return makeqtype(c,arg0.scaled(arg1, arg2, arg3, arg4),"qt.QImage"); +} + +Pointer qt_QImage_scaledToHeight_QImage_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_height, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_height); + Qt::TransformationMode arg2 = (Qt::TransformationMode)(param_mode); + return makeqtype(c,arg0.scaledToHeight(arg1, arg2),"qt.QImage"); +} + +Pointer qt_QImage_scaledToWidth_QImage_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_width); + Qt::TransformationMode arg2 = (Qt::TransformationMode)(param_mode); + return makeqtype(c,arg0.scaledToWidth(arg1, arg2),"qt.QImage"); +} + +void qt_QImage_setAlphaChannel_void_QImage_QImage(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_alphaChannel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + const QImage arg1 = getqtype(param_alphaChannel); + arg0.setAlphaChannel(arg1); +} + +void qt_QImage_setColor_void_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, int param_colorValue) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_index); + QRgb arg2 = (int)(param_colorValue); + arg0.setColor(arg1, arg2); +} + +void qt_QImage_setColorCount_void_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_colorCount) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_colorCount); + arg0.setColorCount(arg1); +} + +void qt_QImage_setDevicePixelRatio_void_QImage_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_scaleFactor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + qreal arg1 = (double)(param_scaleFactor); + arg0.setDevicePixelRatio(arg1); +} + +void qt_QImage_setDotsPerMeterX_void_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + arg0.setDotsPerMeterX(arg1); +} + +void qt_QImage_setDotsPerMeterY_void_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_y); + arg0.setDotsPerMeterY(arg1); +} + +void qt_QImage_setOffset_void_QImage_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_offset) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_offset); + arg0.setOffset(arg1); +} + +void qt_QImage_setPixel_void_QImage_QPoint_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position, int param_index_or_rgb) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + uint arg2 = (int)(param_index_or_rgb); + arg0.setPixel(arg1, arg2); +} + +void qt_QImage_setPixel_void_QImage_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, int param_index_or_rgb) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + uint arg3 = (int)(param_index_or_rgb); + arg0.setPixel(arg1, arg2, arg3); +} + +void qt_QImage_setPixelColor_void_QImage_QPoint_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + const QColor arg2 = getqtype(param_color); + arg0.setPixelColor(arg1, arg2); +} + +void qt_QImage_setPixelColor_void_QImage_int_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + const QColor arg3 = getqtype(param_color); + arg0.setPixelColor(arg1, arg2, arg3); +} + +void qt_QImage_setText_void_QImage_string_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_key, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_key); + const QString arg2 = qstring(param_text); + arg0.setText(arg1, arg2); +} + +Pointer qt_QImage_size_QSize_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return makeqtype(c,arg0.size(),"qt.QSize"); +} + +void qt_QImage_swap_void_QImage_QImage(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QImage& arg0 = getqtype(param_this); + QImage arg1 = getqtype(param_other); + arg0.swap(arg1); +} + +Pointer qt_QImage_text_string_QImage_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_key) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_key); + return makestring(c,arg0.text(arg1)); +} + +Pointer qt_QImage_textKeys_stringBSB_ESB__QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return makestringlist(c,arg0.textKeys()); +} + +Pointer qt_QImage_transformed_QImage_QImage_QTransform_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_matrix, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + const QTransform arg1 = getqtype(param_matrix); + Qt::TransformationMode arg2 = (Qt::TransformationMode)(param_mode); + return makeqtype(c,arg0.transformed(arg1, arg2),"qt.QImage"); +} + +bool qt_QImage_valid_bool_QImage_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_pos); + return arg0.valid(arg1); +} + +bool qt_QImage_valid_bool_QImage_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + return arg0.valid(arg1, arg2); +} + +int qt_QImage_width_int_QImage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + return arg0.width(); +} + +bool qt_QImage_operatorBang_EQ__bool_QImage_QImage(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_image) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + const QImage arg1 = getqtype(param_image); + return arg0.operator!=(arg1); +} + +bool qt_QImage_operatorEQ_EQ__bool_QImage_QImage(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_image) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage& arg0 = getqtype(param_this); + const QImage arg1 = getqtype(param_image); + return arg0.operator==(arg1); +} + +Pointer qt_QImage_trueMatrix_QTransform_QTransform_int_int(Mu::Thread& NODE_THREAD, Pointer param_matrix, int param_width, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTransform arg0 = getqtype(param_matrix); + int arg1 = (int)(param_width); + int arg2 = (int)(param_height); + return makeqtype(c,QImage::trueMatrix(arg0, arg1, arg2),"qt.QTransform"); +} + + +static NODE_IMPLEMENTATION(_n_QImage0, Pointer) +{ + NODE_RETURN(qt_QImage_QImage_QImage_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QImage1, Pointer) +{ + NODE_RETURN(qt_QImage_QImage_QImage_QImage_QSize_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QImage2, Pointer) +{ + NODE_RETURN(qt_QImage_QImage_QImage_QImage_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_allGray0, bool) +{ + NODE_RETURN(qt_QImage_allGray_bool_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bitPlaneCount0, int) +{ + NODE_RETURN(qt_QImage_bitPlaneCount_int_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cacheKey0, int64) +{ + NODE_RETURN(qt_QImage_cacheKey_int64_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_color0, int) +{ + NODE_RETURN(qt_QImage_color_int_QImage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_colorCount0, int) +{ + NODE_RETURN(qt_QImage_colorCount_int_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_convertTo0, void) +{ + qt_QImage_convertTo_void_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_convertToFormat0, Pointer) +{ + NODE_RETURN(qt_QImage_convertToFormat_QImage_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_convertedTo0, Pointer) +{ + NODE_RETURN(qt_QImage_convertedTo_QImage_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_copy0, Pointer) +{ + NODE_RETURN(qt_QImage_copy_QImage_QImage_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_copy1, Pointer) +{ + NODE_RETURN(qt_QImage_copy_QImage_QImage_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_createAlphaMask0, Pointer) +{ + NODE_RETURN(qt_QImage_createAlphaMask_QImage_QImage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_createHeuristicMask0, Pointer) +{ + NODE_RETURN(qt_QImage_createHeuristicMask_QImage_QImage_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_createMaskFromColor0, Pointer) +{ + NODE_RETURN(qt_QImage_createMaskFromColor_QImage_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_depth0, int) +{ + NODE_RETURN(qt_QImage_depth_int_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_devicePixelRatio0, double) +{ + NODE_RETURN(qt_QImage_devicePixelRatio_double_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dotsPerMeterX0, int) +{ + NODE_RETURN(qt_QImage_dotsPerMeterX_int_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dotsPerMeterY0, int) +{ + NODE_RETURN(qt_QImage_dotsPerMeterY_int_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fill0, void) +{ + qt_QImage_fill_void_QImage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_fill1, void) +{ + qt_QImage_fill_void_QImage_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_format0, int) +{ + NODE_RETURN(qt_QImage_format_int_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasAlphaChannel0, bool) +{ + NODE_RETURN(qt_QImage_hasAlphaChannel_bool_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_height0, int) +{ + NODE_RETURN(qt_QImage_height_int_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_invertPixels0, void) +{ + qt_QImage_invertPixels_void_QImage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_isGrayscale0, bool) +{ + NODE_RETURN(qt_QImage_isGrayscale_bool_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QImage_isNull_bool_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mirror0, void) +{ + qt_QImage_mirror_void_QImage_bool_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_mirrored0, Pointer) +{ + NODE_RETURN(qt_QImage_mirrored_QImage_QImage_bool_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool), NODE_ARG(2, bool))); +} + +static NODE_IMPLEMENTATION(_n_offset0, Pointer) +{ + NODE_RETURN(qt_QImage_offset_QPoint_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pixel0, int) +{ + NODE_RETURN(qt_QImage_pixel_int_QImage_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pixel1, int) +{ + NODE_RETURN(qt_QImage_pixel_int_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_pixelColor0, Pointer) +{ + NODE_RETURN(qt_QImage_pixelColor_QColor_QImage_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pixelColor1, Pointer) +{ + NODE_RETURN(qt_QImage_pixelColor_QColor_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_pixelIndex0, int) +{ + NODE_RETURN(qt_QImage_pixelIndex_int_QImage_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pixelIndex1, int) +{ + NODE_RETURN(qt_QImage_pixelIndex_int_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_rect0, Pointer) +{ + NODE_RETURN(qt_QImage_rect_QRect_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_reinterpretAsFormat0, bool) +{ + NODE_RETURN(qt_QImage_reinterpretAsFormat_bool_QImage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_rgbSwap0, void) +{ + qt_QImage_rgbSwap_void_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_rgbSwapped0, Pointer) +{ + NODE_RETURN(qt_QImage_rgbSwapped_QImage_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scaled0, Pointer) +{ + NODE_RETURN(qt_QImage_scaled_QImage_QImage_QSize_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_scaled1, Pointer) +{ + NODE_RETURN(qt_QImage_scaled_QImage_QImage_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_scaledToHeight0, Pointer) +{ + NODE_RETURN(qt_QImage_scaledToHeight_QImage_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_scaledToWidth0, Pointer) +{ + NODE_RETURN(qt_QImage_scaledToWidth_QImage_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_setAlphaChannel0, void) +{ + qt_QImage_setAlphaChannel_void_QImage_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setColor0, void) +{ + qt_QImage_setColor_void_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setColorCount0, void) +{ + qt_QImage_setColorCount_void_QImage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setDevicePixelRatio0, void) +{ + qt_QImage_setDevicePixelRatio_void_QImage_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setDotsPerMeterX0, void) +{ + qt_QImage_setDotsPerMeterX_void_QImage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setDotsPerMeterY0, void) +{ + qt_QImage_setDotsPerMeterY_void_QImage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setOffset0, void) +{ + qt_QImage_setOffset_void_QImage_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPixel0, void) +{ + qt_QImage_setPixel_void_QImage_QPoint_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setPixel1, void) +{ + qt_QImage_setPixel_void_QImage_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_setPixelColor0, void) +{ + qt_QImage_setPixelColor_void_QImage_QPoint_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPixelColor1, void) +{ + qt_QImage_setPixelColor_void_QImage_int_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setText0, void) +{ + qt_QImage_setText_void_QImage_string_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_size0, Pointer) +{ + NODE_RETURN(qt_QImage_size_QSize_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QImage_swap_void_QImage_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QImage_text_string_QImage_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_textKeys0, Pointer) +{ + NODE_RETURN(qt_QImage_textKeys_stringBSB_ESB__QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_transformed0, Pointer) +{ + NODE_RETURN(qt_QImage_transformed_QImage_QImage_QTransform_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_valid0, bool) +{ + NODE_RETURN(qt_QImage_valid_bool_QImage_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_valid1, bool) +{ + NODE_RETURN(qt_QImage_valid_bool_QImage_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_width0, int) +{ + NODE_RETURN(qt_QImage_width_int_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QImage_operatorBang_EQ__bool_QImage_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QImage_operatorEQ_EQ__bool_QImage_QImage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_trueMatrix0, Pointer) +{ + NODE_RETURN(qt_QImage_trueMatrix_QTransform_QTransform_int_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +static Pointer +QImage_QImage_QImage_QImage_string_string(Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName, Pointer param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_fileName); + const char* arg2 = param_format ? reinterpret_cast(param_format)->c_str() : 0; + setqtype(param_this,QImage(arg1, arg2)); + return param_this; +} + +static NODE_IMPLEMENTATION(_n_QImage8, Pointer) +{ + return QImage_QImage_QImage_QImage_string_string(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer), + NODE_ARG(2, Pointer)); +} + +void +QImageType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "Format", "int"), + new SymbolicConstant(c, "Format_Invalid", "int", Value(int(QImage::Format_Invalid))), + new SymbolicConstant(c, "Format_Mono", "int", Value(int(QImage::Format_Mono))), + new SymbolicConstant(c, "Format_MonoLSB", "int", Value(int(QImage::Format_MonoLSB))), + new SymbolicConstant(c, "Format_Indexed8", "int", Value(int(QImage::Format_Indexed8))), + new SymbolicConstant(c, "Format_RGB32", "int", Value(int(QImage::Format_RGB32))), + new SymbolicConstant(c, "Format_ARGB32", "int", Value(int(QImage::Format_ARGB32))), + new SymbolicConstant(c, "Format_ARGB32_Premultiplied", "int", Value(int(QImage::Format_ARGB32_Premultiplied))), + new SymbolicConstant(c, "Format_RGB16", "int", Value(int(QImage::Format_RGB16))), + new SymbolicConstant(c, "Format_ARGB8565_Premultiplied", "int", Value(int(QImage::Format_ARGB8565_Premultiplied))), + new SymbolicConstant(c, "Format_RGB666", "int", Value(int(QImage::Format_RGB666))), + new SymbolicConstant(c, "Format_ARGB6666_Premultiplied", "int", Value(int(QImage::Format_ARGB6666_Premultiplied))), + new SymbolicConstant(c, "Format_RGB555", "int", Value(int(QImage::Format_RGB555))), + new SymbolicConstant(c, "Format_ARGB8555_Premultiplied", "int", Value(int(QImage::Format_ARGB8555_Premultiplied))), + new SymbolicConstant(c, "Format_RGB888", "int", Value(int(QImage::Format_RGB888))), + new SymbolicConstant(c, "Format_RGB444", "int", Value(int(QImage::Format_RGB444))), + new SymbolicConstant(c, "Format_ARGB4444_Premultiplied", "int", Value(int(QImage::Format_ARGB4444_Premultiplied))), + new SymbolicConstant(c, "Format_RGBX8888", "int", Value(int(QImage::Format_RGBX8888))), + new SymbolicConstant(c, "Format_RGBA8888", "int", Value(int(QImage::Format_RGBA8888))), + new SymbolicConstant(c, "Format_RGBA8888_Premultiplied", "int", Value(int(QImage::Format_RGBA8888_Premultiplied))), + new SymbolicConstant(c, "Format_BGR30", "int", Value(int(QImage::Format_BGR30))), + new SymbolicConstant(c, "Format_A2BGR30_Premultiplied", "int", Value(int(QImage::Format_A2BGR30_Premultiplied))), + new SymbolicConstant(c, "Format_RGB30", "int", Value(int(QImage::Format_RGB30))), + new SymbolicConstant(c, "Format_A2RGB30_Premultiplied", "int", Value(int(QImage::Format_A2RGB30_Premultiplied))), + new SymbolicConstant(c, "Format_Alpha8", "int", Value(int(QImage::Format_Alpha8))), + new SymbolicConstant(c, "Format_Grayscale8", "int", Value(int(QImage::Format_Grayscale8))), + new SymbolicConstant(c, "Format_Grayscale16", "int", Value(int(QImage::Format_Grayscale16))), + new SymbolicConstant(c, "Format_RGBX64", "int", Value(int(QImage::Format_RGBX64))), + new SymbolicConstant(c, "Format_RGBA64", "int", Value(int(QImage::Format_RGBA64))), + new SymbolicConstant(c, "Format_RGBA64_Premultiplied", "int", Value(int(QImage::Format_RGBA64_Premultiplied))), + new SymbolicConstant(c, "Format_BGR888", "int", Value(int(QImage::Format_BGR888))), + new SymbolicConstant(c, "Format_RGBX16FPx4", "int", Value(int(QImage::Format_RGBX16FPx4))), + new SymbolicConstant(c, "Format_RGBA16FPx4", "int", Value(int(QImage::Format_RGBA16FPx4))), + new SymbolicConstant(c, "Format_RGBA16FPx4_Premultiplied", "int", Value(int(QImage::Format_RGBA16FPx4_Premultiplied))), + new SymbolicConstant(c, "Format_RGBX32FPx4", "int", Value(int(QImage::Format_RGBX32FPx4))), + new SymbolicConstant(c, "Format_RGBA32FPx4", "int", Value(int(QImage::Format_RGBA32FPx4))), + new SymbolicConstant(c, "Format_RGBA32FPx4_Premultiplied", "int", Value(int(QImage::Format_RGBA32FPx4_Premultiplied))), + new Alias(c, "InvertMode", "int"), + new SymbolicConstant(c, "InvertRgb", "int", Value(int(QImage::InvertRgb))), + new SymbolicConstant(c, "InvertRgba", "int", Value(int(QImage::InvertRgba))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QImage", _n_QImage0, None, Compiled, qt_QImage_QImage_QImage_QImage, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "QImage", _n_QImage1, None, Compiled, qt_QImage_QImage_QImage_QImage_QSize_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "size", "qt.QSize"), new Param(c, "format", "int"), End), + new Function(c, "QImage", _n_QImage2, None, Compiled, qt_QImage_QImage_QImage_QImage_int_int_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "width", "int"), new Param(c, "height", "int"), new Param(c, "format", "int"), End), + // MISSING: QImage (QImage; QImage this, "uchar *" data, int width, int height, flags QImage::Format format, "QImageCleanupFunction" cleanupFunction, "void *" cleanupInfo) + // MISSING: QImage (QImage; QImage this, "const uchar *" data, int width, int height, flags QImage::Format format, "QImageCleanupFunction" cleanupFunction, "void *" cleanupInfo) + // MISSING: QImage (QImage; QImage this, "uchar *" data, int width, int height, "qsizetype" bytesPerLine, flags QImage::Format format, "QImageCleanupFunction" cleanupFunction, "void *" cleanupInfo) + // MISSING: QImage (QImage; QImage this, "const uchar *" data, int width, int height, "qsizetype" bytesPerLine, flags QImage::Format format, "QImageCleanupFunction" cleanupFunction, "void *" cleanupInfo) + // MISSING: QImage (QImage; QImage this, "const char * const[]" xpm) + // MISSING: QImage (QImage; QImage this, string fileName, "const char *" format) + // MISSING: QImage (QImage; QImage this, QImage image) + // MISSING: QImage (QImage; QImage this, "QImage & &" other) + new Function(c, "allGray", _n_allGray0, None, Compiled, qt_QImage_allGray_bool_QImage, Return, "bool", Parameters, new Param(c, "this", "qt.QImage"), End), + // MISSING: applyColorTransform (void; QImage this, "const QColorTransform &" transform) + new Function(c, "bitPlaneCount", _n_bitPlaneCount0, None, Compiled, qt_QImage_bitPlaneCount_int_QImage, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), End), + // MISSING: bits ("uchar *"; QImage this) + // MISSING: bits ("const uchar *"; QImage this) + // MISSING: bytesPerLine ("qsizetype"; QImage this) + new Function(c, "cacheKey", _n_cacheKey0, None, Compiled, qt_QImage_cacheKey_int64_QImage, Return, "int64", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "color", _n_color0, None, Compiled, qt_QImage_color_int_QImage_int, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "i", "int"), End), + new Function(c, "colorCount", _n_colorCount0, None, Compiled, qt_QImage_colorCount_int_QImage, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), End), + // MISSING: colorSpace ("QColorSpace"; QImage this) + // MISSING: colorTable ("QList"; QImage this) + // MISSING: colorTransformed (QImage; QImage this, "const QColorTransform &" transform) + // MISSING: colorTransformed (QImage; QImage this, "const QColorTransform &" transform) + // MISSING: constBits ("const uchar *"; QImage this) + // MISSING: constScanLine ("const uchar *"; QImage this, int i) + new Function(c, "convertTo", _n_convertTo0, None, Compiled, qt_QImage_convertTo_void_QImage_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "format", "int"), new Param(c, "flags", "int", Value((int)Qt::AutoColor)), End), + // MISSING: convertToColorSpace (void; QImage this, "const QColorSpace &" colorSpace) + new Function(c, "convertToFormat", _n_convertToFormat0, None, Compiled, qt_QImage_convertToFormat_QImage_QImage_int_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "format", "int"), new Param(c, "flags", "int", Value((int)Qt::AutoColor)), End), + // MISSING: convertToFormat (QImage; QImage this, flags QImage::Format format, flags Qt::ImageConversionFlags flags) + // MISSING: convertToFormat (QImage; QImage this, flags QImage::Format format, "const QList &" colorTable, flags Qt::ImageConversionFlags flags) + new Function(c, "convertedTo", _n_convertedTo0, None, Compiled, qt_QImage_convertedTo_QImage_QImage_int_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "format", "int"), new Param(c, "flags", "int", Value((int)Qt::AutoColor)), End), + // MISSING: convertedTo (QImage; QImage this, flags QImage::Format format, flags Qt::ImageConversionFlags flags) + // MISSING: convertedToColorSpace (QImage; QImage this, "const QColorSpace &" colorSpace) + new Function(c, "copy", _n_copy0, None, Compiled, qt_QImage_copy_QImage_QImage_QRect, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "copy", _n_copy1, None, Compiled, qt_QImage_copy_QImage_QImage_int_int_int_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "width", "int"), new Param(c, "height", "int"), End), + new Function(c, "createAlphaMask", _n_createAlphaMask0, None, Compiled, qt_QImage_createAlphaMask_QImage_QImage_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "flags", "int", Value((int)Qt::AutoColor)), End), + new Function(c, "createHeuristicMask", _n_createHeuristicMask0, None, Compiled, qt_QImage_createHeuristicMask_QImage_QImage_bool, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "clipTight", "bool"), End), + new Function(c, "createMaskFromColor", _n_createMaskFromColor0, None, Compiled, qt_QImage_createMaskFromColor_QImage_QImage_int_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "color", "int"), new Param(c, "mode", "int", Value((int)Qt::MaskInColor)), End), + new Function(c, "depth", _n_depth0, None, Compiled, qt_QImage_depth_int_QImage, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), End), + // MISSING: deviceIndependentSize ("QSizeF"; QImage this) + new Function(c, "devicePixelRatio", _n_devicePixelRatio0, None, Compiled, qt_QImage_devicePixelRatio_double_QImage, Return, "double", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "dotsPerMeterX", _n_dotsPerMeterX0, None, Compiled, qt_QImage_dotsPerMeterX_int_QImage, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "dotsPerMeterY", _n_dotsPerMeterY0, None, Compiled, qt_QImage_dotsPerMeterY_int_QImage, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "fill", _n_fill0, None, Compiled, qt_QImage_fill_void_QImage_int, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "pixelValue", "int"), End), + new Function(c, "fill", _n_fill1, None, Compiled, qt_QImage_fill_void_QImage_QColor, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "color", "qt.QColor"), End), + // MISSING: fill (void; QImage this, flags Qt::GlobalColor color) + new Function(c, "format", _n_format0, None, Compiled, qt_QImage_format_int_QImage, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "hasAlphaChannel", _n_hasAlphaChannel0, None, Compiled, qt_QImage_hasAlphaChannel_bool_QImage, Return, "bool", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "height", _n_height0, None, Compiled, qt_QImage_height_int_QImage, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "invertPixels", _n_invertPixels0, None, Compiled, qt_QImage_invertPixels_void_QImage_int, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "mode", "int", Value((int)QImage::InvertRgb)), End), + new Function(c, "isGrayscale", _n_isGrayscale0, None, Compiled, qt_QImage_isGrayscale_bool_QImage, Return, "bool", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QImage_isNull_bool_QImage, Return, "bool", Parameters, new Param(c, "this", "qt.QImage"), End), + // MISSING: load (bool; QImage this, string fileName, "const char *" format) + // MISSING: load (bool; QImage this, QIODevice device, "const char *" format) + // MISSING: loadFromData (bool; QImage this, "QByteArrayView" data, "const char *" format) + // MISSING: loadFromData (bool; QImage this, "const uchar *" data, int len, "const char *" format) + // MISSING: loadFromData (bool; QImage this, QByteArray data, "const char *" format) + new Function(c, "mirror", _n_mirror0, None, Compiled, qt_QImage_mirror_void_QImage_bool_bool, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "horizontal", "bool"), new Param(c, "vertical", "bool"), End), + new Function(c, "mirrored", _n_mirrored0, None, Compiled, qt_QImage_mirrored_QImage_QImage_bool_bool, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "horizontal", "bool"), new Param(c, "vertical", "bool"), End), + // MISSING: mirrored (QImage; QImage this, bool horizontal, bool vertical) + new Function(c, "offset", _n_offset0, None, Compiled, qt_QImage_offset_QPoint_QImage, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "pixel", _n_pixel0, None, Compiled, qt_QImage_pixel_int_QImage_QPoint, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "pixel", _n_pixel1, None, Compiled, qt_QImage_pixel_int_QImage_int_int, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "pixelColor", _n_pixelColor0, None, Compiled, qt_QImage_pixelColor_QColor_QImage_QPoint, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "pixelColor", _n_pixelColor1, None, Compiled, qt_QImage_pixelColor_QColor_QImage_int_int, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + // MISSING: pixelFormat ("QPixelFormat"; QImage this) + new Function(c, "pixelIndex", _n_pixelIndex0, None, Compiled, qt_QImage_pixelIndex_int_QImage_QPoint, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "pixelIndex", _n_pixelIndex1, None, Compiled, qt_QImage_pixelIndex_int_QImage_int_int, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "rect", _n_rect0, None, Compiled, qt_QImage_rect_QRect_QImage, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "reinterpretAsFormat", _n_reinterpretAsFormat0, None, Compiled, qt_QImage_reinterpretAsFormat_bool_QImage_int, Return, "bool", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "format", "int"), End), + new Function(c, "rgbSwap", _n_rgbSwap0, None, Compiled, qt_QImage_rgbSwap_void_QImage, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), End), + new Function(c, "rgbSwapped", _n_rgbSwapped0, None, Compiled, qt_QImage_rgbSwapped_QImage_QImage, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), End), + // MISSING: rgbSwapped (QImage; QImage this) + // MISSING: save (bool; QImage this, string fileName, "const char *" format, int quality) + // MISSING: save (bool; QImage this, QIODevice device, "const char *" format, int quality) + new Function(c, "scaled", _n_scaled0, None, Compiled, qt_QImage_scaled_QImage_QImage_QSize_int_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "size", "qt.QSize"), new Param(c, "aspectRatioMode", "int", Value((int)Qt::IgnoreAspectRatio)), new Param(c, "transformMode", "int", Value((int)Qt::FastTransformation)), End), + new Function(c, "scaled", _n_scaled1, None, Compiled, qt_QImage_scaled_QImage_QImage_int_int_int_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "width", "int"), new Param(c, "height", "int"), new Param(c, "aspectRatioMode", "int", Value((int)Qt::IgnoreAspectRatio)), new Param(c, "transformMode", "int", Value((int)Qt::FastTransformation)), End), + new Function(c, "scaledToHeight", _n_scaledToHeight0, None, Compiled, qt_QImage_scaledToHeight_QImage_QImage_int_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "height", "int"), new Param(c, "mode", "int", Value((int)Qt::FastTransformation)), End), + new Function(c, "scaledToWidth", _n_scaledToWidth0, None, Compiled, qt_QImage_scaledToWidth_QImage_QImage_int_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "width", "int"), new Param(c, "mode", "int", Value((int)Qt::FastTransformation)), End), + // MISSING: scanLine ("uchar *"; QImage this, int i) + // MISSING: scanLine ("const uchar *"; QImage this, int i) + new Function(c, "setAlphaChannel", _n_setAlphaChannel0, None, Compiled, qt_QImage_setAlphaChannel_void_QImage_QImage, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "alphaChannel", "qt.QImage"), End), + new Function(c, "setColor", _n_setColor0, None, Compiled, qt_QImage_setColor_void_QImage_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "index", "int"), new Param(c, "colorValue", "int"), End), + new Function(c, "setColorCount", _n_setColorCount0, None, Compiled, qt_QImage_setColorCount_void_QImage_int, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "colorCount", "int"), End), + // MISSING: setColorSpace (void; QImage this, "const QColorSpace &" colorSpace) + // MISSING: setColorTable (void; QImage this, "const QList &" colors) + new Function(c, "setDevicePixelRatio", _n_setDevicePixelRatio0, None, Compiled, qt_QImage_setDevicePixelRatio_void_QImage_double, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "scaleFactor", "double"), End), + new Function(c, "setDotsPerMeterX", _n_setDotsPerMeterX0, None, Compiled, qt_QImage_setDotsPerMeterX_void_QImage_int, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "x", "int"), End), + new Function(c, "setDotsPerMeterY", _n_setDotsPerMeterY0, None, Compiled, qt_QImage_setDotsPerMeterY_void_QImage_int, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "y", "int"), End), + new Function(c, "setOffset", _n_setOffset0, None, Compiled, qt_QImage_setOffset_void_QImage_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "offset", "qt.QPoint"), End), + new Function(c, "setPixel", _n_setPixel0, None, Compiled, qt_QImage_setPixel_void_QImage_QPoint_int, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "position", "qt.QPoint"), new Param(c, "index_or_rgb", "int"), End), + new Function(c, "setPixel", _n_setPixel1, None, Compiled, qt_QImage_setPixel_void_QImage_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "index_or_rgb", "int"), End), + new Function(c, "setPixelColor", _n_setPixelColor0, None, Compiled, qt_QImage_setPixelColor_void_QImage_QPoint_QColor, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "position", "qt.QPoint"), new Param(c, "color", "qt.QColor"), End), + new Function(c, "setPixelColor", _n_setPixelColor1, None, Compiled, qt_QImage_setPixelColor_void_QImage_int_int_QColor, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "color", "qt.QColor"), End), + new Function(c, "setText", _n_setText0, None, Compiled, qt_QImage_setText_void_QImage_string_string, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "key", "string"), new Param(c, "text", "string"), End), + new Function(c, "size", _n_size0, None, Compiled, qt_QImage_size_QSize_QImage, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QImage"), End), + // MISSING: sizeInBytes ("qsizetype"; QImage this) + new Function(c, "swap", _n_swap0, None, Compiled, qt_QImage_swap_void_QImage_QImage, Return, "void", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "other", "qt.QImage"), End), + new Function(c, "text", _n_text0, None, Compiled, qt_QImage_text_string_QImage_string, Return, "string", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "key", "string"), End), + new Function(c, "textKeys", _n_textKeys0, None, Compiled, qt_QImage_textKeys_stringBSB_ESB__QImage, Return, "string[]", Parameters, new Param(c, "this", "qt.QImage"), End), + // MISSING: toCGImage ("CGImageRef"; QImage this) + // MISSING: toHBITMAP ("HBITMAP"; QImage this) + // MISSING: toHICON ("HICON"; QImage this, QImage mask) + new Function(c, "transformed", _n_transformed0, None, Compiled, qt_QImage_transformed_QImage_QImage_QTransform_int, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "matrix", "qt.QTransform"), new Param(c, "mode", "int", Value((int)Qt::FastTransformation)), End), + new Function(c, "valid", _n_valid0, None, Compiled, qt_QImage_valid_bool_QImage_QPoint, Return, "bool", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "valid", _n_valid1, None, Compiled, qt_QImage_valid_bool_QImage_int_int, Return, "bool", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "width", _n_width0, None, Compiled, qt_QImage_width_int_QImage, Return, "int", Parameters, new Param(c, "this", "qt.QImage"), End), + // MISSING: QVariant ("QVariant operator"; QImage this) + // static functions + // MISSING: fromData (QImage; "QByteArrayView" data, "const char *" format) + // MISSING: fromData (QImage; "const uchar *" data, int size, "const char *" format) + // MISSING: fromData (QImage; QByteArray data, "const char *" format) + // MISSING: fromHBITMAP (QImage; "HBITMAP" hbitmap) + // MISSING: fromHICON (QImage; "HICON" icon) + // MISSING: toImageFormat (flags QImage::Format; "QPixelFormat" format) + // MISSING: toPixelFormat ("QPixelFormat"; flags QImage::Format format) + new Function(c, "trueMatrix", _n_trueMatrix0, None, Compiled, qt_QImage_trueMatrix_QTransform_QTransform_int_int, Return, "qt.QTransform", Parameters, new Param(c, "matrix", "qt.QTransform"), new Param(c, "width", "int"), new Param(c, "height", "int"), End), + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QImage_operatorBang_EQ__bool_QImage_QImage, Return, "bool", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "image", "qt.QImage"), End), + // MISSING: = (QImage; QImage this, QImage image) + // MISSING: = (QImage; QImage this, "QImage & &" other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QImage_operatorEQ_EQ__bool_QImage_QImage, Return, "bool", Parameters, new Param(c, "this", "qt.QImage"), new Param(c, "image", "qt.QImage"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// MISSING: QImage (QImage; QImage this, string fileName, "const char *" format) + +addSymbol( new Function(c, "QImage", _n_QImage8, None, + Compiled, QImage_QImage_QImage_QImage_string_string, + Return, "qt.QImage", + Parameters, + new Param(c, "this", "qt.QImage"), + new Param(c, "fileName", "string"), + new Param(c, "format", "string"), + End) ); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QInputDialogType.cpp b/src/lib/mu/MuQt6/QInputDialogType.cpp new file mode 100644 index 000000000..49a8af883 --- /dev/null +++ b/src/lib/mu/MuQt6/QInputDialogType.cpp @@ -0,0 +1,1168 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QInputDialog::~MuQt_QInputDialog() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QInputDialog::MuQt_QInputDialog(Pointer muobj, const CallEnvironment* ce, QWidget * parent, Qt::WindowFlags flags) + : QInputDialog(parent, flags) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QInputDialog")); +} + +void MuQt_QInputDialog::done(int result) +{ + if (!_env) { QInputDialog::done(result); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(result); + Value rval = _env->call(F, args); + } + else + { + QInputDialog::done(result); + } +} + +QSize MuQt_QInputDialog::minimumSizeHint() const +{ + if (!_env) return QInputDialog::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QInputDialog::minimumSizeHint(); + } +} + +void MuQt_QInputDialog::setVisible(bool visible) +{ + if (!_env) { QInputDialog::setVisible(visible); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(visible); + Value rval = _env->call(F, args); + } + else + { + QInputDialog::setVisible(visible); + } +} + +QSize MuQt_QInputDialog::sizeHint() const +{ + if (!_env) return QInputDialog::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QInputDialog::sizeHint(); + } +} + +void MuQt_QInputDialog::closeEvent(QCloseEvent * e) +{ + if (!_env) { QInputDialog::closeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QInputDialog::closeEvent(e); + } +} + +void MuQt_QInputDialog::contextMenuEvent(QContextMenuEvent * e) +{ + if (!_env) { QInputDialog::contextMenuEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QInputDialog::contextMenuEvent(e); + } +} + +bool MuQt_QInputDialog::eventFilter(QObject * o, QEvent * e) +{ + if (!_env) return QInputDialog::eventFilter(o, e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,o,"qt.QObject")); + args[2] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QInputDialog::eventFilter(o, e); + } +} + +void MuQt_QInputDialog::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QInputDialog::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QInputDialog::keyPressEvent(e); + } +} + +void MuQt_QInputDialog::resizeEvent(QResizeEvent * _p15) +{ + if (!_env) { QInputDialog::resizeEvent(_p15); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p15,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QInputDialog::resizeEvent(_p15); + } +} + +void MuQt_QInputDialog::showEvent(QShowEvent * event) +{ + if (!_env) { QInputDialog::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QInputDialog::showEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QInputDialogType::QInputDialogType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QInputDialogType::~QInputDialogType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QInputDialog_QInputDialog_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QInputDialog* w = object(widget)) + { + QInputDialogType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QInputDialog"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QInputDialog_QInputDialog_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QInputDialog_QInputDialog_QInputDialog_QInputDialog_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + Qt::WindowFlags arg2 = (Qt::WindowFlags)(param_flags); + setobject(param_this, new MuQt_QInputDialog(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QInputDialog_cancelButtonText_string_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return makestring(c,arg0->cancelButtonText()); +} + +Pointer qt_QInputDialog_comboBoxItems_stringBSB_ESB__QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return makestringlist(c,arg0->comboBoxItems()); +} + +int qt_QInputDialog_doubleDecimals_int_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return arg0->doubleDecimals(); +} + +double qt_QInputDialog_doubleMaximum_double_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return arg0->doubleMaximum(); +} + +double qt_QInputDialog_doubleMinimum_double_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return arg0->doubleMinimum(); +} + +double qt_QInputDialog_doubleStep_double_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return arg0->doubleStep(); +} + +double qt_QInputDialog_doubleValue_double_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return arg0->doubleValue(); +} + +int qt_QInputDialog_inputMode_int_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return int(arg0->inputMode()); +} + +int qt_QInputDialog_intMaximum_int_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return arg0->intMaximum(); +} + +int qt_QInputDialog_intMinimum_int_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return arg0->intMinimum(); +} + +int qt_QInputDialog_intStep_int_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return arg0->intStep(); +} + +int qt_QInputDialog_intValue_int_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return arg0->intValue(); +} + +bool qt_QInputDialog_isComboBoxEditable_bool_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return arg0->isComboBoxEditable(); +} + +Pointer qt_QInputDialog_labelText_string_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return makestring(c,arg0->labelText()); +} + +Pointer qt_QInputDialog_okButtonText_string_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return makestring(c,arg0->okButtonText()); +} + +int qt_QInputDialog_options_int_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return int(arg0->options()); +} + +void qt_QInputDialog_setCancelButtonText_void_QInputDialog_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + arg0->setCancelButtonText(arg1); +} + +void qt_QInputDialog_setComboBoxEditable_void_QInputDialog_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_editable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + bool arg1 = (bool)(param_editable); + arg0->setComboBoxEditable(arg1); +} + +void qt_QInputDialog_setComboBoxItems_void_QInputDialog_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_items); + arg0->setComboBoxItems(arg1); +} + +void qt_QInputDialog_setDoubleDecimals_void_QInputDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_decimals) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + int arg1 = (int)(param_decimals); + arg0->setDoubleDecimals(arg1); +} + +void qt_QInputDialog_setDoubleMaximum_void_QInputDialog_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_max) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + double arg1 = (double)(param_max); + arg0->setDoubleMaximum(arg1); +} + +void qt_QInputDialog_setDoubleMinimum_void_QInputDialog_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_min) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + double arg1 = (double)(param_min); + arg0->setDoubleMinimum(arg1); +} + +void qt_QInputDialog_setDoubleRange_void_QInputDialog_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_min, double param_max) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + double arg1 = (double)(param_min); + double arg2 = (double)(param_max); + arg0->setDoubleRange(arg1, arg2); +} + +void qt_QInputDialog_setDoubleStep_void_QInputDialog_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_step) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + double arg1 = (double)(param_step); + arg0->setDoubleStep(arg1); +} + +void qt_QInputDialog_setDoubleValue_void_QInputDialog_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + double arg1 = (double)(param_value); + arg0->setDoubleValue(arg1); +} + +void qt_QInputDialog_setInputMode_void_QInputDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QInputDialog::InputMode arg1 = (QInputDialog::InputMode)(param_mode); + arg0->setInputMode(arg1); +} + +void qt_QInputDialog_setIntMaximum_void_QInputDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_max) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + int arg1 = (int)(param_max); + arg0->setIntMaximum(arg1); +} + +void qt_QInputDialog_setIntMinimum_void_QInputDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_min) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + int arg1 = (int)(param_min); + arg0->setIntMinimum(arg1); +} + +void qt_QInputDialog_setIntRange_void_QInputDialog_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_min, int param_max) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + int arg1 = (int)(param_min); + int arg2 = (int)(param_max); + arg0->setIntRange(arg1, arg2); +} + +void qt_QInputDialog_setIntStep_void_QInputDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_step) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + int arg1 = (int)(param_step); + arg0->setIntStep(arg1); +} + +void qt_QInputDialog_setIntValue_void_QInputDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + int arg1 = (int)(param_value); + arg0->setIntValue(arg1); +} + +void qt_QInputDialog_setLabelText_void_QInputDialog_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + arg0->setLabelText(arg1); +} + +void qt_QInputDialog_setOkButtonText_void_QInputDialog_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + arg0->setOkButtonText(arg1); +} + +void qt_QInputDialog_setOption_void_QInputDialog_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QInputDialog::InputDialogOption arg1 = (QInputDialog::InputDialogOption)(param_option); + bool arg2 = (bool)(param_on); + arg0->setOption(arg1, arg2); +} + +void qt_QInputDialog_setOptions_void_QInputDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QInputDialog::InputDialogOptions arg1 = (QInputDialog::InputDialogOptions)(param_options); + arg0->setOptions(arg1); +} + +void qt_QInputDialog_setTextEchoMode_void_QInputDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QLineEdit::EchoMode arg1 = (QLineEdit::EchoMode)(param_mode); + arg0->setTextEchoMode(arg1); +} + +void qt_QInputDialog_setTextValue_void_QInputDialog_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + arg0->setTextValue(arg1); +} + +bool qt_QInputDialog_testOption_bool_QInputDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QInputDialog::InputDialogOption arg1 = (QInputDialog::InputDialogOption)(param_option); + return arg0->testOption(arg1); +} + +int qt_QInputDialog_textEchoMode_int_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return int(arg0->textEchoMode()); +} + +Pointer qt_QInputDialog_textValue_string_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return makestring(c,arg0->textValue()); +} + +void qt_QInputDialog_done_void_QInputDialog_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_result) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + int arg1 = (int)(param_result); + if (isMuQtObject(arg0)) arg0->QInputDialog::done(arg1); + else arg0->done(arg1); +} + +Pointer qt_QInputDialog_minimumSizeHint_QSize_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QInputDialog::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +void qt_QInputDialog_setVisible_void_QInputDialog_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_visible) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + bool arg1 = (bool)(param_visible); + if (isMuQtObject(arg0)) arg0->QInputDialog::setVisible(arg1); + else arg0->setVisible(arg1); +} + +Pointer qt_QInputDialog_sizeHint_QSize_QInputDialog(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QInputDialog::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QInputDialog_closeEvent_void_QInputDialog_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QInputDialog*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QInputDialog*)arg0)->closeEvent_pub(arg1); +} + +void qt_QInputDialog_contextMenuEvent_void_QInputDialog_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QInputDialog*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QInputDialog*)arg0)->contextMenuEvent_pub(arg1); +} + +bool qt_QInputDialog_eventFilter_bool_QInputDialog_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_o, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QObject * arg1 = object(param_o); + QEvent * arg2 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QInputDialog*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QInputDialog*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QInputDialog_keyPressEvent_void_QInputDialog_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QInputDialog*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QInputDialog*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QInputDialog_resizeEvent_void_QInputDialog_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p15) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param__p15); + if (isMuQtObject(arg0)) ((MuQt_QInputDialog*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QInputDialog*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QInputDialog_showEvent_void_QInputDialog_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputDialog* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QInputDialog*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QInputDialog*)arg0)->showEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QInputDialog0, Pointer) +{ + NODE_RETURN(qt_QInputDialog_QInputDialog_QInputDialog_QInputDialog_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_cancelButtonText0, Pointer) +{ + NODE_RETURN(qt_QInputDialog_cancelButtonText_string_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_comboBoxItems0, Pointer) +{ + NODE_RETURN(qt_QInputDialog_comboBoxItems_stringBSB_ESB__QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_doubleDecimals0, int) +{ + NODE_RETURN(qt_QInputDialog_doubleDecimals_int_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_doubleMaximum0, double) +{ + NODE_RETURN(qt_QInputDialog_doubleMaximum_double_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_doubleMinimum0, double) +{ + NODE_RETURN(qt_QInputDialog_doubleMinimum_double_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_doubleStep0, double) +{ + NODE_RETURN(qt_QInputDialog_doubleStep_double_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_doubleValue0, double) +{ + NODE_RETURN(qt_QInputDialog_doubleValue_double_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inputMode0, int) +{ + NODE_RETURN(qt_QInputDialog_inputMode_int_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intMaximum0, int) +{ + NODE_RETURN(qt_QInputDialog_intMaximum_int_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intMinimum0, int) +{ + NODE_RETURN(qt_QInputDialog_intMinimum_int_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intStep0, int) +{ + NODE_RETURN(qt_QInputDialog_intStep_int_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intValue0, int) +{ + NODE_RETURN(qt_QInputDialog_intValue_int_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isComboBoxEditable0, bool) +{ + NODE_RETURN(qt_QInputDialog_isComboBoxEditable_bool_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_labelText0, Pointer) +{ + NODE_RETURN(qt_QInputDialog_labelText_string_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_okButtonText0, Pointer) +{ + NODE_RETURN(qt_QInputDialog_okButtonText_string_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_options0, int) +{ + NODE_RETURN(qt_QInputDialog_options_int_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCancelButtonText0, void) +{ + qt_QInputDialog_setCancelButtonText_void_QInputDialog_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setComboBoxEditable0, void) +{ + qt_QInputDialog_setComboBoxEditable_void_QInputDialog_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setComboBoxItems0, void) +{ + qt_QInputDialog_setComboBoxItems_void_QInputDialog_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setDoubleDecimals0, void) +{ + qt_QInputDialog_setDoubleDecimals_void_QInputDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setDoubleMaximum0, void) +{ + qt_QInputDialog_setDoubleMaximum_void_QInputDialog_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setDoubleMinimum0, void) +{ + qt_QInputDialog_setDoubleMinimum_void_QInputDialog_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setDoubleRange0, void) +{ + qt_QInputDialog_setDoubleRange_void_QInputDialog_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double)); +} + +static NODE_IMPLEMENTATION(_n_setDoubleStep0, void) +{ + qt_QInputDialog_setDoubleStep_void_QInputDialog_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setDoubleValue0, void) +{ + qt_QInputDialog_setDoubleValue_void_QInputDialog_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setInputMode0, void) +{ + qt_QInputDialog_setInputMode_void_QInputDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setIntMaximum0, void) +{ + qt_QInputDialog_setIntMaximum_void_QInputDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setIntMinimum0, void) +{ + qt_QInputDialog_setIntMinimum_void_QInputDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setIntRange0, void) +{ + qt_QInputDialog_setIntRange_void_QInputDialog_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setIntStep0, void) +{ + qt_QInputDialog_setIntStep_void_QInputDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setIntValue0, void) +{ + qt_QInputDialog_setIntValue_void_QInputDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setLabelText0, void) +{ + qt_QInputDialog_setLabelText_void_QInputDialog_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setOkButtonText0, void) +{ + qt_QInputDialog_setOkButtonText_void_QInputDialog_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setOption0, void) +{ + qt_QInputDialog_setOption_void_QInputDialog_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setOptions0, void) +{ + qt_QInputDialog_setOptions_void_QInputDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setTextEchoMode0, void) +{ + qt_QInputDialog_setTextEchoMode_void_QInputDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setTextValue0, void) +{ + qt_QInputDialog_setTextValue_void_QInputDialog_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_testOption0, bool) +{ + NODE_RETURN(qt_QInputDialog_testOption_bool_QInputDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_textEchoMode0, int) +{ + NODE_RETURN(qt_QInputDialog_textEchoMode_int_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_textValue0, Pointer) +{ + NODE_RETURN(qt_QInputDialog_textValue_string_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_done0, void) +{ + qt_QInputDialog_done_void_QInputDialog_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QInputDialog_minimumSizeHint_QSize_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setVisible0, void) +{ + qt_QInputDialog_setVisible_void_QInputDialog_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QInputDialog_sizeHint_QSize_QInputDialog(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QInputDialog_closeEvent_void_QInputDialog_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QInputDialog_contextMenuEvent_void_QInputDialog_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QInputDialog_eventFilter_bool_QInputDialog_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QInputDialog_keyPressEvent_void_QInputDialog_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QInputDialog_resizeEvent_void_QInputDialog_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QInputDialog_showEvent_void_QInputDialog_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// +// NOT the correct mangling here +// + +struct StringBoolPair { Pointer s; bool b; }; + +static Pointer +qt_QInputDialog_getText(Thread& NODE_THREAD, + Pointer param_parent, + Pointer param_title, + Pointer param_label, + int param_echoMode, + Pointer param_text, + int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + + QWidget* parent = object(reinterpret_cast(param_parent)); + QString title = qstring(param_title); + QString label = qstring(param_label); + QLineEdit::EchoMode mode = (QLineEdit::EchoMode)param_echoMode; + Qt::WindowFlags flags = (Qt::WindowFlags)param_flags; + QString text = qstring(param_text); + + bool ok = false; + QString result = QInputDialog::getText(parent, title, label, mode, text, &ok, flags); + + Context::TypeVector tt(2); + tt[0] = c->stringType(); + tt[1] = c->boolType(); + + ClassInstance* rval = ClassInstance::allocate(c->tupleType(tt)); + StringBoolPair* p = rval->data(); + p->s = makestring(c, result); + p->b = ok; + + return rval; +} + +static NODE_IMPLEMENTATION(getText, Pointer) +{ + NODE_RETURN( qt_QInputDialog_getText(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer), + NODE_ARG(2, Pointer), + NODE_ARG(3, int), + NODE_ARG(4, Pointer), + NODE_ARG(5, int)) ); +} + +void +QInputDialogType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QInputDialog_QInputDialog_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QInputDialog", _n_QInputDialog0, None, Compiled, qt_QInputDialog_QInputDialog_QInputDialog_QInputDialog_QWidget_int, Return, "qt.QInputDialog", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "parent", "qt.QWidget"), new Param(c, "flags", "int", Value((int)Qt::WindowFlags())), End), + new Function(c, "cancelButtonText", _n_cancelButtonText0, None, Compiled, qt_QInputDialog_cancelButtonText_string_QInputDialog, Return, "string", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "comboBoxItems", _n_comboBoxItems0, None, Compiled, qt_QInputDialog_comboBoxItems_stringBSB_ESB__QInputDialog, Return, "string[]", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "doubleDecimals", _n_doubleDecimals0, None, Compiled, qt_QInputDialog_doubleDecimals_int_QInputDialog, Return, "int", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "doubleMaximum", _n_doubleMaximum0, None, Compiled, qt_QInputDialog_doubleMaximum_double_QInputDialog, Return, "double", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "doubleMinimum", _n_doubleMinimum0, None, Compiled, qt_QInputDialog_doubleMinimum_double_QInputDialog, Return, "double", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "doubleStep", _n_doubleStep0, None, Compiled, qt_QInputDialog_doubleStep_double_QInputDialog, Return, "double", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "doubleValue", _n_doubleValue0, None, Compiled, qt_QInputDialog_doubleValue_double_QInputDialog, Return, "double", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "inputMode", _n_inputMode0, None, Compiled, qt_QInputDialog_inputMode_int_QInputDialog, Return, "int", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "intMaximum", _n_intMaximum0, None, Compiled, qt_QInputDialog_intMaximum_int_QInputDialog, Return, "int", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "intMinimum", _n_intMinimum0, None, Compiled, qt_QInputDialog_intMinimum_int_QInputDialog, Return, "int", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "intStep", _n_intStep0, None, Compiled, qt_QInputDialog_intStep_int_QInputDialog, Return, "int", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "intValue", _n_intValue0, None, Compiled, qt_QInputDialog_intValue_int_QInputDialog, Return, "int", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "isComboBoxEditable", _n_isComboBoxEditable0, None, Compiled, qt_QInputDialog_isComboBoxEditable_bool_QInputDialog, Return, "bool", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "labelText", _n_labelText0, None, Compiled, qt_QInputDialog_labelText_string_QInputDialog, Return, "string", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "okButtonText", _n_okButtonText0, None, Compiled, qt_QInputDialog_okButtonText_string_QInputDialog, Return, "string", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + // MISSING: open (void; QInputDialog this, QObject receiver, "const char *" member) + new Function(c, "options", _n_options0, None, Compiled, qt_QInputDialog_options_int_QInputDialog, Return, "int", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "setCancelButtonText", _n_setCancelButtonText0, None, Compiled, qt_QInputDialog_setCancelButtonText_void_QInputDialog_string, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "text", "string"), End), + new Function(c, "setComboBoxEditable", _n_setComboBoxEditable0, None, Compiled, qt_QInputDialog_setComboBoxEditable_void_QInputDialog_bool, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "editable", "bool"), End), + new Function(c, "setComboBoxItems", _n_setComboBoxItems0, None, Compiled, qt_QInputDialog_setComboBoxItems_void_QInputDialog_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "items", "string[]"), End), + new Function(c, "setDoubleDecimals", _n_setDoubleDecimals0, None, Compiled, qt_QInputDialog_setDoubleDecimals_void_QInputDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "decimals", "int"), End), + new Function(c, "setDoubleMaximum", _n_setDoubleMaximum0, None, Compiled, qt_QInputDialog_setDoubleMaximum_void_QInputDialog_double, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "max", "double"), End), + new Function(c, "setDoubleMinimum", _n_setDoubleMinimum0, None, Compiled, qt_QInputDialog_setDoubleMinimum_void_QInputDialog_double, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "min", "double"), End), + new Function(c, "setDoubleRange", _n_setDoubleRange0, None, Compiled, qt_QInputDialog_setDoubleRange_void_QInputDialog_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "min", "double"), new Param(c, "max", "double"), End), + new Function(c, "setDoubleStep", _n_setDoubleStep0, None, Compiled, qt_QInputDialog_setDoubleStep_void_QInputDialog_double, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "step", "double"), End), + new Function(c, "setDoubleValue", _n_setDoubleValue0, None, Compiled, qt_QInputDialog_setDoubleValue_void_QInputDialog_double, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "value", "double"), End), + new Function(c, "setInputMode", _n_setInputMode0, None, Compiled, qt_QInputDialog_setInputMode_void_QInputDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "mode", "int"), End), + new Function(c, "setIntMaximum", _n_setIntMaximum0, None, Compiled, qt_QInputDialog_setIntMaximum_void_QInputDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "max", "int"), End), + new Function(c, "setIntMinimum", _n_setIntMinimum0, None, Compiled, qt_QInputDialog_setIntMinimum_void_QInputDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "min", "int"), End), + new Function(c, "setIntRange", _n_setIntRange0, None, Compiled, qt_QInputDialog_setIntRange_void_QInputDialog_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "min", "int"), new Param(c, "max", "int"), End), + new Function(c, "setIntStep", _n_setIntStep0, None, Compiled, qt_QInputDialog_setIntStep_void_QInputDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "step", "int"), End), + new Function(c, "setIntValue", _n_setIntValue0, None, Compiled, qt_QInputDialog_setIntValue_void_QInputDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "value", "int"), End), + new Function(c, "setLabelText", _n_setLabelText0, None, Compiled, qt_QInputDialog_setLabelText_void_QInputDialog_string, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "text", "string"), End), + new Function(c, "setOkButtonText", _n_setOkButtonText0, None, Compiled, qt_QInputDialog_setOkButtonText_void_QInputDialog_string, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "text", "string"), End), + new Function(c, "setOption", _n_setOption0, None, Compiled, qt_QInputDialog_setOption_void_QInputDialog_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "option", "int"), new Param(c, "on", "bool"), End), + new Function(c, "setOptions", _n_setOptions0, None, Compiled, qt_QInputDialog_setOptions_void_QInputDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "options", "int"), End), + new Function(c, "setTextEchoMode", _n_setTextEchoMode0, None, Compiled, qt_QInputDialog_setTextEchoMode_void_QInputDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "mode", "int"), End), + new Function(c, "setTextValue", _n_setTextValue0, None, Compiled, qt_QInputDialog_setTextValue_void_QInputDialog_string, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "text", "string"), End), + new Function(c, "testOption", _n_testOption0, None, Compiled, qt_QInputDialog_testOption_bool_QInputDialog_int, Return, "bool", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "option", "int"), End), + new Function(c, "textEchoMode", _n_textEchoMode0, None, Compiled, qt_QInputDialog_textEchoMode_int_QInputDialog, Return, "int", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + new Function(c, "textValue", _n_textValue0, None, Compiled, qt_QInputDialog_textValue_string_QInputDialog, Return, "string", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + _func[0] = new MemberFunction(c, "done", _n_done0, None, Compiled, qt_QInputDialog_done_void_QInputDialog_int, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "result", "int"), End), + _func[1] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QInputDialog_minimumSizeHint_QSize_QInputDialog, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + _func[2] = new MemberFunction(c, "setVisible", _n_setVisible0, None, Compiled, qt_QInputDialog_setVisible_void_QInputDialog_bool, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "visible", "bool"), End), + _func[3] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QInputDialog_sizeHint_QSize_QInputDialog, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QInputDialog"), End), + _func[4] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QInputDialog_closeEvent_void_QInputDialog_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "e", "qt.QCloseEvent"), End), + _func[5] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QInputDialog_contextMenuEvent_void_QInputDialog_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "e", "qt.QContextMenuEvent"), End), + _func[6] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QInputDialog_eventFilter_bool_QInputDialog_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "o", "qt.QObject"), new Param(c, "e", "qt.QEvent"), End), + _func[7] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QInputDialog_keyPressEvent_void_QInputDialog_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[8] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QInputDialog_resizeEvent_void_QInputDialog_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "_p15", "qt.QResizeEvent"), End), + _func[9] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QInputDialog_showEvent_void_QInputDialog_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QInputDialog"), new Param(c, "event", "qt.QShowEvent"), End), + // static functions + // MISSING: getDouble (double; QWidget parent, string title, string label, double value, double min, double max, int decimals, "bool *" ok, flags Qt::WindowFlags flags, double step) + // MISSING: getInt (int; QWidget parent, string title, string label, int value, int min, int max, int step, "bool *" ok, flags Qt::WindowFlags flags) + // MISSING: getItem (string; QWidget parent, string title, string label, string[] items, int current, bool editable, "bool *" ok, flags Qt::WindowFlags flags, flags Qt::InputMethodHints inputMethodHints) + // MISSING: getMultiLineText (string; QWidget parent, string title, string label, string text, "bool *" ok, flags Qt::WindowFlags flags, flags Qt::InputMethodHints inputMethodHints) + // MISSING: getText (string; QWidget parent, string title, string label, flags QLineEdit::EchoMode mode, string text, "bool *" ok, flags Qt::WindowFlags flags, flags Qt::InputMethodHints inputMethodHints) + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// declare the tuple type (string,bool) just in case +Context::TypeVector tt(2); +tt[0] = c->stringType(); +tt[1] = c->boolType(); +c->tupleType(tt); + +addSymbols( new Function(c, "getText", getText, None, + Return, "(string,bool)", + Parameters, + new Param(c, "parent", "qt.QWidget"), + new Param(c, "title", "string"), + new Param(c, "label", "string"), + new Param(c, "echoMode", "int"), + new Param(c, "text", "string"), + new Param(c, "windowFlags", "int"), + End), + + EndArguments); + + const char** propExclusions = 0; + + populate(this, QInputDialog::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QInputEventType.cpp b/src/lib/mu/MuQt6/QInputEventType.cpp new file mode 100644 index 000000000..6df2fad96 --- /dev/null +++ b/src/lib/mu/MuQt6/QInputEventType.cpp @@ -0,0 +1,133 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QInputEventType::QInputEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QInputEventType::~QInputEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +int qt_QInputEvent_deviceType_int_QInputEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputEvent * arg0 = getqpointer(param_this); + return int(arg0->deviceType()); +} + +int qt_QInputEvent_modifiers_int_QInputEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QInputEvent * arg0 = getqpointer(param_this); + return int(arg0->modifiers()); +} + + +static NODE_IMPLEMENTATION(_n_deviceType0, int) +{ + NODE_RETURN(qt_QInputEvent_deviceType_int_QInputEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_modifiers0, int) +{ + NODE_RETURN(qt_QInputEvent_modifiers_int_QInputEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QInputEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + // MISSING: device ("const QInputDevice *"; QInputEvent this) + new Function(c, "deviceType", _n_deviceType0, None, Compiled, qt_QInputEvent_deviceType_int_QInputEvent, Return, "int", Parameters, new Param(c, "this", "qt.QInputEvent"), End), + new Function(c, "modifiers", _n_modifiers0, None, Compiled, qt_QInputEvent_modifiers_int_QInputEvent, Return, "int", Parameters, new Param(c, "this", "qt.QInputEvent"), End), + // MISSING: timestamp ("quint64"; QInputEvent this) + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QItemSelectionModelType.cpp b/src/lib/mu/MuQt6/QItemSelectionModelType.cpp new file mode 100644 index 000000000..bfbaf9365 --- /dev/null +++ b/src/lib/mu/MuQt6/QItemSelectionModelType.cpp @@ -0,0 +1,555 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QItemSelectionModel::~MuQt_QItemSelectionModel() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QItemSelectionModel::MuQt_QItemSelectionModel(Pointer muobj, const CallEnvironment* ce, QAbstractItemModel * model) + : QItemSelectionModel(model) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QItemSelectionModel")); +} + +MuQt_QItemSelectionModel::MuQt_QItemSelectionModel(Pointer muobj, const CallEnvironment* ce, QAbstractItemModel * model, QObject * parent) + : QItemSelectionModel(model, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QItemSelectionModel")); +} + +bool MuQt_QItemSelectionModel::event(QEvent * e) +{ + if (!_env) return QItemSelectionModel::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QItemSelectionModel::event(e); + } +} + +bool MuQt_QItemSelectionModel::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QItemSelectionModel::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QItemSelectionModel::eventFilter(watched, event); + } +} + +void MuQt_QItemSelectionModel::customEvent(QEvent * event) +{ + if (!_env) { QItemSelectionModel::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QItemSelectionModel::customEvent(event); + } +} + +void MuQt_QItemSelectionModel::timerEvent(QTimerEvent * event) +{ + if (!_env) { QItemSelectionModel::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QItemSelectionModel::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QItemSelectionModelType::QItemSelectionModelType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QItemSelectionModelType::~QItemSelectionModelType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QItemSelectionModel_QItemSelectionModel_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QItemSelectionModel* w = object(widget)) + { + QItemSelectionModelType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QItemSelectionModel"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QItemSelectionModel_QItemSelectionModel_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel * arg1 = object(param_model); + setobject(param_this, new MuQt_QItemSelectionModel(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QAbstractItemModel_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QAbstractItemModel * arg1 = object(param_model); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QItemSelectionModel(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +bool qt_QItemSelectionModel_columnIntersectsSelection_bool_QItemSelectionModel_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->columnIntersectsSelection(arg1, arg2); +} + +Pointer qt_QItemSelectionModel_currentIndex_QModelIndex_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + return makeqtype(c,arg0->currentIndex(),"qt.QModelIndex"); +} + +bool qt_QItemSelectionModel_hasSelection_bool_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + return arg0->hasSelection(); +} + +bool qt_QItemSelectionModel_isColumnSelected_bool_QItemSelectionModel_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->isColumnSelected(arg1, arg2); +} + +bool qt_QItemSelectionModel_isRowSelected_bool_QItemSelectionModel_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->isRowSelected(arg1, arg2); +} + +bool qt_QItemSelectionModel_isSelected_bool_QItemSelectionModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return arg0->isSelected(arg1); +} + +Pointer qt_QItemSelectionModel_model_QAbstractItemModel_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + return makeinstance(c, arg0->model(), "qt.QAbstractItemModel"); +} + +bool qt_QItemSelectionModel_rowIntersectsSelection_bool_QItemSelectionModel_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->rowIntersectsSelection(arg1, arg2); +} + +Pointer qt_QItemSelectionModel_selectedColumns_qt__QModelIndexBSB_ESB__QItemSelectionModel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + return makeqmodelindexlist(c,arg0->selectedColumns(arg1)); +} + +Pointer qt_QItemSelectionModel_selectedIndexes_qt__QModelIndexBSB_ESB__QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + return makeqmodelindexlist(c,arg0->selectedIndexes()); +} + +Pointer qt_QItemSelectionModel_selectedRows_qt__QModelIndexBSB_ESB__QItemSelectionModel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + return makeqmodelindexlist(c,arg0->selectedRows(arg1)); +} + +Pointer qt_QItemSelectionModel_selection_QItemSelection_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + return makeqtype(c,arg0->selection(),"qt.QItemSelection"); +} + +void qt_QItemSelectionModel_setModel_void_QItemSelectionModel_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + QAbstractItemModel * arg1 = object(param_model); + arg0->setModel(arg1); +} + +void qt_QItemSelectionModel_emitSelectionChanged_void_QItemSelectionModel_QItemSelection_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_newSelection, Pointer param_oldSelection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_newSelection); + const QItemSelection arg2 = getqtype(param_oldSelection); + ((MuQt_QItemSelectionModel*)arg0)->emitSelectionChanged_pub(arg1, arg2); +} + +bool qt_QItemSelectionModel_event_bool_QItemSelectionModel_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QItemSelectionModel::event(arg1) : arg0->event(arg1); +} + +bool qt_QItemSelectionModel_eventFilter_bool_QItemSelectionModel_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QItemSelectionModel::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QItemSelectionModel_customEvent_void_QItemSelectionModel_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QItemSelectionModel*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QItemSelectionModel*)arg0)->customEvent_pub(arg1); +} + +void qt_QItemSelectionModel_timerEvent_void_QItemSelectionModel_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionModel* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QItemSelectionModel*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QItemSelectionModel*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QItemSelectionModel0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QItemSelectionModel1, Pointer) +{ + NODE_RETURN(qt_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QAbstractItemModel_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_columnIntersectsSelection0, bool) +{ + NODE_RETURN(qt_QItemSelectionModel_columnIntersectsSelection_bool_QItemSelectionModel_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentIndex0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionModel_currentIndex_QModelIndex_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasSelection0, bool) +{ + NODE_RETURN(qt_QItemSelectionModel_hasSelection_bool_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isColumnSelected0, bool) +{ + NODE_RETURN(qt_QItemSelectionModel_isColumnSelected_bool_QItemSelectionModel_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRowSelected0, bool) +{ + NODE_RETURN(qt_QItemSelectionModel_isRowSelected_bool_QItemSelectionModel_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSelected0, bool) +{ + NODE_RETURN(qt_QItemSelectionModel_isSelected_bool_QItemSelectionModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_model0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionModel_model_QAbstractItemModel_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rowIntersectsSelection0, bool) +{ + NODE_RETURN(qt_QItemSelectionModel_rowIntersectsSelection_bool_QItemSelectionModel_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectedColumns0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionModel_selectedColumns_qt__QModelIndexBSB_ESB__QItemSelectionModel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_selectedIndexes0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionModel_selectedIndexes_qt__QModelIndexBSB_ESB__QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectedRows0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionModel_selectedRows_qt__QModelIndexBSB_ESB__QItemSelectionModel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_selection0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionModel_selection_QItemSelection_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setModel0, void) +{ + qt_QItemSelectionModel_setModel_void_QItemSelectionModel_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_emitSelectionChanged0, void) +{ + qt_QItemSelectionModel_emitSelectionChanged_void_QItemSelectionModel_QItemSelection_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QItemSelectionModel_event_bool_QItemSelectionModel_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QItemSelectionModel_eventFilter_bool_QItemSelectionModel_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QItemSelectionModel_customEvent_void_QItemSelectionModel_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QItemSelectionModel_timerEvent_void_QItemSelectionModel_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QItemSelectionModelType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QItemSelectionModel_QItemSelectionModel_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QItemSelectionModel", _n_QItemSelectionModel0, None, Compiled, qt_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QAbstractItemModel, Return, "qt.QItemSelectionModel", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "model", "qt.QAbstractItemModel"), End), + new Function(c, "QItemSelectionModel", _n_QItemSelectionModel1, None, Compiled, qt_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QItemSelectionModel_QAbstractItemModel_QObject, Return, "qt.QItemSelectionModel", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "model", "qt.QAbstractItemModel"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "columnIntersectsSelection", _n_columnIntersectsSelection0, None, Compiled, qt_QItemSelectionModel_columnIntersectsSelection_bool_QItemSelectionModel_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + new Function(c, "currentIndex", _n_currentIndex0, None, Compiled, qt_QItemSelectionModel_currentIndex_QModelIndex_QItemSelectionModel, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), End), + new Function(c, "hasSelection", _n_hasSelection0, None, Compiled, qt_QItemSelectionModel_hasSelection_bool_QItemSelectionModel, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), End), + new Function(c, "isColumnSelected", _n_isColumnSelected0, None, Compiled, qt_QItemSelectionModel_isColumnSelected_bool_QItemSelectionModel_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + new Function(c, "isRowSelected", _n_isRowSelected0, None, Compiled, qt_QItemSelectionModel_isRowSelected_bool_QItemSelectionModel_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "row", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + new Function(c, "isSelected", _n_isSelected0, None, Compiled, qt_QItemSelectionModel_isSelected_bool_QItemSelectionModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "model", _n_model0, None, Compiled, qt_QItemSelectionModel_model_QAbstractItemModel_QItemSelectionModel, Return, "qt.QAbstractItemModel", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), End), + // MISSING: model (QAbstractItemModel; QItemSelectionModel this) + new Function(c, "rowIntersectsSelection", _n_rowIntersectsSelection0, None, Compiled, qt_QItemSelectionModel_rowIntersectsSelection_bool_QItemSelectionModel_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "row", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + new Function(c, "selectedColumns", _n_selectedColumns0, None, Compiled, qt_QItemSelectionModel_selectedColumns_qt__QModelIndexBSB_ESB__QItemSelectionModel_int, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "row", "int", Value((int)0)), End), + new Function(c, "selectedIndexes", _n_selectedIndexes0, None, Compiled, qt_QItemSelectionModel_selectedIndexes_qt__QModelIndexBSB_ESB__QItemSelectionModel, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), End), + new Function(c, "selectedRows", _n_selectedRows0, None, Compiled, qt_QItemSelectionModel_selectedRows_qt__QModelIndexBSB_ESB__QItemSelectionModel_int, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "selection", _n_selection0, None, Compiled, qt_QItemSelectionModel_selection_QItemSelection_QItemSelectionModel, Return, "qt.QItemSelection", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), End), + new Function(c, "setModel", _n_setModel0, None, Compiled, qt_QItemSelectionModel_setModel_void_QItemSelectionModel_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "model", "qt.QAbstractItemModel"), End), + new Function(c, "emitSelectionChanged", _n_emitSelectionChanged0, None, Compiled, qt_QItemSelectionModel_emitSelectionChanged_void_QItemSelectionModel_QItemSelection_QItemSelection, Return, "void", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "newSelection", "qt.QItemSelection"), new Param(c, "oldSelection", "qt.QItemSelection"), End), + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QItemSelectionModel_event_bool_QItemSelectionModel_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QItemSelectionModel_eventFilter_bool_QItemSelectionModel_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QItemSelectionModel this) + // MISSING: childEvent (void; QItemSelectionModel this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QItemSelectionModel this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QItemSelectionModel_customEvent_void_QItemSelectionModel_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QItemSelectionModel this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QItemSelectionModel_timerEvent_void_QItemSelectionModel_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QItemSelectionModel"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QItemSelectionModel::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QItemSelectionRangeType.cpp b/src/lib/mu/MuQt6/QItemSelectionRangeType.cpp new file mode 100644 index 000000000..966514c6d --- /dev/null +++ b/src/lib/mu/MuQt6/QItemSelectionRangeType.cpp @@ -0,0 +1,415 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QItemSelectionRangeType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QItemSelectionRangeType::QItemSelectionRangeType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QItemSelectionRangeType::~QItemSelectionRangeType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QItemSelectionRangeType::Instance* i = new QItemSelectionRangeType::Instance((Class*)NODE_THIS.type()); + QItemSelectionRangeType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QItemSelectionRangeType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QItemSelectionRangeType::finalizer, 0, 0, 0); +} + +void +QItemSelectionRangeType::finalizer (void* obj, void* data) +{ + QItemSelectionRangeType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QItemSelectionRange()); + return param_this; +} + +Pointer qt_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_topLeft, Pointer param_bottomRight) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QModelIndex arg1 = getqtype(param_topLeft); + const QModelIndex arg2 = getqtype(param_bottomRight); + setqtype(param_this,QItemSelectionRange(arg1, arg2)); + return param_this; +} + +Pointer qt_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QModelIndex arg1 = getqtype(param_index); + setqtype(param_this,QItemSelectionRange(arg1)); + return param_this; +} + +int qt_QItemSelectionRange_bottom_int_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return arg0.bottom(); +} + +bool qt_QItemSelectionRange_contains_bool_QItemSelectionRange_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + const QModelIndex arg1 = getqtype(param_index); + return arg0.contains(arg1); +} + +bool qt_QItemSelectionRange_contains_bool_QItemSelectionRange_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_parentIndex) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QModelIndex arg3 = getqtype(param_parentIndex); + return arg0.contains(arg1, arg2, arg3); +} + +int qt_QItemSelectionRange_height_int_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return arg0.height(); +} + +Pointer qt_QItemSelectionRange_indexes_qt__QModelIndexBSB_ESB__QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return makeqmodelindexlist(c,arg0.indexes()); +} + +Pointer qt_QItemSelectionRange_intersected_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + const QItemSelectionRange arg1 = getqtype(param_other); + return makeqtype(c,arg0.intersected(arg1),"qt.QItemSelectionRange"); +} + +bool qt_QItemSelectionRange_intersects_bool_QItemSelectionRange_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + const QItemSelectionRange arg1 = getqtype(param_other); + return arg0.intersects(arg1); +} + +bool qt_QItemSelectionRange_isEmpty_bool_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return arg0.isEmpty(); +} + +bool qt_QItemSelectionRange_isValid_bool_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return arg0.isValid(); +} + +int qt_QItemSelectionRange_left_int_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return arg0.left(); +} + +Pointer qt_QItemSelectionRange_model_QAbstractItemModel_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return makeinstance(c, arg0.model(), "qt.QAbstractItemModel"); +} + +Pointer qt_QItemSelectionRange_parent_QModelIndex_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return makeqtype(c,arg0.parent(),"qt.QModelIndex"); +} + +int qt_QItemSelectionRange_right_int_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return arg0.right(); +} + +void qt_QItemSelectionRange_swap_void_QItemSelectionRange_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + QItemSelectionRange arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +int qt_QItemSelectionRange_top_int_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return arg0.top(); +} + +int qt_QItemSelectionRange_width_int_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + return arg0.width(); +} + +bool qt_QItemSelectionRange_operatorBang_EQ__bool_QItemSelectionRange_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + const QItemSelectionRange arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +bool qt_QItemSelectionRange_operatorEQ_EQ__bool_QItemSelectionRange_QItemSelectionRange(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelectionRange arg0 = getqtype(param_this); + const QItemSelectionRange arg1 = getqtype(param_other); + return arg0.operator==(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QItemSelectionRange0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QItemSelectionRange1, Pointer) +{ + NODE_RETURN(qt_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QItemSelectionRange2, Pointer) +{ + NODE_RETURN(qt_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bottom0, int) +{ + NODE_RETURN(qt_QItemSelectionRange_bottom_int_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contains0, bool) +{ + NODE_RETURN(qt_QItemSelectionRange_contains_bool_QItemSelectionRange_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contains1, bool) +{ + NODE_RETURN(qt_QItemSelectionRange_contains_bool_QItemSelectionRange_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_height0, int) +{ + NODE_RETURN(qt_QItemSelectionRange_height_int_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexes0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionRange_indexes_qt__QModelIndexBSB_ESB__QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intersected0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionRange_intersected_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intersects0, bool) +{ + NODE_RETURN(qt_QItemSelectionRange_intersects_bool_QItemSelectionRange_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QItemSelectionRange_isEmpty_bool_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QItemSelectionRange_isValid_bool_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_left0, int) +{ + NODE_RETURN(qt_QItemSelectionRange_left_int_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_model0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionRange_model_QAbstractItemModel_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_parent0, Pointer) +{ + NODE_RETURN(qt_QItemSelectionRange_parent_QModelIndex_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_right0, int) +{ + NODE_RETURN(qt_QItemSelectionRange_right_int_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QItemSelectionRange_swap_void_QItemSelectionRange_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_top0, int) +{ + NODE_RETURN(qt_QItemSelectionRange_top_int_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_width0, int) +{ + NODE_RETURN(qt_QItemSelectionRange_width_int_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QItemSelectionRange_operatorBang_EQ__bool_QItemSelectionRange_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QItemSelectionRange_operatorEQ_EQ__bool_QItemSelectionRange_QItemSelectionRange(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QItemSelectionRangeType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QItemSelectionRange", _n_QItemSelectionRange0, None, Compiled, qt_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange, Return, "qt.QItemSelectionRange", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + new Function(c, "QItemSelectionRange", _n_QItemSelectionRange1, None, Compiled, qt_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QModelIndex_QModelIndex, Return, "qt.QItemSelectionRange", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), new Param(c, "topLeft", "qt.QModelIndex"), new Param(c, "bottomRight", "qt.QModelIndex"), End), + new Function(c, "QItemSelectionRange", _n_QItemSelectionRange2, None, Compiled, qt_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange_QModelIndex, Return, "qt.QItemSelectionRange", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "bottom", _n_bottom0, None, Compiled, qt_QItemSelectionRange_bottom_int_QItemSelectionRange, Return, "int", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + // MISSING: bottomRight ("const QPersistentModelIndex &"; QItemSelectionRange this) + new Function(c, "contains", _n_contains0, None, Compiled, qt_QItemSelectionRange_contains_bool_QItemSelectionRange_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "contains", _n_contains1, None, Compiled, qt_QItemSelectionRange_contains_bool_QItemSelectionRange_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parentIndex", "qt.QModelIndex"), End), + new Function(c, "height", _n_height0, None, Compiled, qt_QItemSelectionRange_height_int_QItemSelectionRange, Return, "int", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + new Function(c, "indexes", _n_indexes0, None, Compiled, qt_QItemSelectionRange_indexes_qt__QModelIndexBSB_ESB__QItemSelectionRange, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + new Function(c, "intersected", _n_intersected0, None, Compiled, qt_QItemSelectionRange_intersected_QItemSelectionRange_QItemSelectionRange_QItemSelectionRange, Return, "qt.QItemSelectionRange", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), new Param(c, "other", "qt.QItemSelectionRange"), End), + new Function(c, "intersects", _n_intersects0, None, Compiled, qt_QItemSelectionRange_intersects_bool_QItemSelectionRange_QItemSelectionRange, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), new Param(c, "other", "qt.QItemSelectionRange"), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QItemSelectionRange_isEmpty_bool_QItemSelectionRange, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QItemSelectionRange_isValid_bool_QItemSelectionRange, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + new Function(c, "left", _n_left0, None, Compiled, qt_QItemSelectionRange_left_int_QItemSelectionRange, Return, "int", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + new Function(c, "model", _n_model0, None, Compiled, qt_QItemSelectionRange_model_QAbstractItemModel_QItemSelectionRange, Return, "qt.QAbstractItemModel", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + new Function(c, "parent", _n_parent0, None, Compiled, qt_QItemSelectionRange_parent_QModelIndex_QItemSelectionRange, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + new Function(c, "right", _n_right0, None, Compiled, qt_QItemSelectionRange_right_int_QItemSelectionRange, Return, "int", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QItemSelectionRange_swap_void_QItemSelectionRange_QItemSelectionRange, Return, "void", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), new Param(c, "other", "qt.QItemSelectionRange"), End), + new Function(c, "top", _n_top0, None, Compiled, qt_QItemSelectionRange_top_int_QItemSelectionRange, Return, "int", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + // MISSING: topLeft ("const QPersistentModelIndex &"; QItemSelectionRange this) + new Function(c, "width", _n_width0, None, Compiled, qt_QItemSelectionRange_width_int_QItemSelectionRange, Return, "int", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QItemSelectionRange_operatorBang_EQ__bool_QItemSelectionRange_QItemSelectionRange, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), new Param(c, "other", "qt.QItemSelectionRange"), End), + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QItemSelectionRange_operatorEQ_EQ__bool_QItemSelectionRange_QItemSelectionRange, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelectionRange"), new Param(c, "other", "qt.QItemSelectionRange"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QItemSelectionType.cpp b/src/lib/mu/MuQt6/QItemSelectionType.cpp new file mode 100644 index 000000000..cf8f0ea9a --- /dev/null +++ b/src/lib/mu/MuQt6/QItemSelectionType.cpp @@ -0,0 +1,213 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QItemSelectionType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QItemSelectionType::QItemSelectionType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QItemSelectionType::~QItemSelectionType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QItemSelectionType::Instance* i = new QItemSelectionType::Instance((Class*)NODE_THIS.type()); + QItemSelectionType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QItemSelectionType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QItemSelectionType::finalizer, 0, 0, 0); +} + +void +QItemSelectionType::finalizer (void* obj, void* data) +{ + QItemSelectionType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QItemSelection_QItemSelection_QItemSelection_QItemSelection_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_topLeft, Pointer param_bottomRight) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QModelIndex arg1 = getqtype(param_topLeft); + const QModelIndex arg2 = getqtype(param_bottomRight); + setqtype(param_this,QItemSelection(arg1, arg2)); + return param_this; +} + +Pointer qt_QItemSelection_QItemSelection_QItemSelection_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QItemSelection()); + return param_this; +} + +bool qt_QItemSelection_contains_bool_QItemSelection_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelection arg0 = getqtype(param_this); + const QModelIndex arg1 = getqtype(param_index); + return arg0.contains(arg1); +} + +Pointer qt_QItemSelection_indexes_qt__QModelIndexBSB_ESB__QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelection arg0 = getqtype(param_this); + return makeqmodelindexlist(c,arg0.indexes()); +} + +void qt_QItemSelection_merge_void_QItemSelection_QItemSelection_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelection arg0 = getqtype(param_this); + const QItemSelection arg1 = getqtype(param_other); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_command); + arg0.merge(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QItemSelection_select_void_QItemSelection_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_topLeft, Pointer param_bottomRight) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QItemSelection arg0 = getqtype(param_this); + const QModelIndex arg1 = getqtype(param_topLeft); + const QModelIndex arg2 = getqtype(param_bottomRight); + arg0.select(arg1, arg2); + setqtype(param_this,arg0); +} + + +static NODE_IMPLEMENTATION(_n_QItemSelection0, Pointer) +{ + NODE_RETURN(qt_QItemSelection_QItemSelection_QItemSelection_QItemSelection_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QItemSelection1, Pointer) +{ + NODE_RETURN(qt_QItemSelection_QItemSelection_QItemSelection_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contains0, bool) +{ + NODE_RETURN(qt_QItemSelection_contains_bool_QItemSelection_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexes0, Pointer) +{ + NODE_RETURN(qt_QItemSelection_indexes_qt__QModelIndexBSB_ESB__QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_merge0, void) +{ + qt_QItemSelection_merge_void_QItemSelection_QItemSelection_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_select0, void) +{ + qt_QItemSelection_select_void_QItemSelection_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + + + +void +QItemSelectionType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QItemSelection", _n_QItemSelection0, None, Compiled, qt_QItemSelection_QItemSelection_QItemSelection_QItemSelection_QModelIndex_QModelIndex, Return, "qt.QItemSelection", Parameters, new Param(c, "this", "qt.QItemSelection"), new Param(c, "topLeft", "qt.QModelIndex"), new Param(c, "bottomRight", "qt.QModelIndex"), End), + new Function(c, "QItemSelection", _n_QItemSelection1, None, Compiled, qt_QItemSelection_QItemSelection_QItemSelection_QItemSelection, Return, "qt.QItemSelection", Parameters, new Param(c, "this", "qt.QItemSelection"), End), + new Function(c, "contains", _n_contains0, None, Compiled, qt_QItemSelection_contains_bool_QItemSelection_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QItemSelection"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "indexes", _n_indexes0, None, Compiled, qt_QItemSelection_indexes_qt__QModelIndexBSB_ESB__QItemSelection, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QItemSelection"), End), + new Function(c, "merge", _n_merge0, None, Compiled, qt_QItemSelection_merge_void_QItemSelection_QItemSelection_int, Return, "void", Parameters, new Param(c, "this", "qt.QItemSelection"), new Param(c, "other", "qt.QItemSelection"), new Param(c, "command", "int"), End), + new Function(c, "select", _n_select0, None, Compiled, qt_QItemSelection_select_void_QItemSelection_QModelIndex_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QItemSelection"), new Param(c, "topLeft", "qt.QModelIndex"), new Param(c, "bottomRight", "qt.QModelIndex"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QJSEngineType.cpp b/src/lib/mu/MuQt6/QJSEngineType.cpp new file mode 100644 index 000000000..574c7d851 --- /dev/null +++ b/src/lib/mu/MuQt6/QJSEngineType.cpp @@ -0,0 +1,486 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QJSEngine::~MuQt_QJSEngine() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QJSEngine::MuQt_QJSEngine(Pointer muobj, const CallEnvironment* ce) + : QJSEngine() +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QJSEngine")); +} + +MuQt_QJSEngine::MuQt_QJSEngine(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QJSEngine(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QJSEngine")); +} + +bool MuQt_QJSEngine::event(QEvent * e) +{ + if (!_env) return QJSEngine::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QJSEngine::event(e); + } +} + +bool MuQt_QJSEngine::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QJSEngine::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QJSEngine::eventFilter(watched, event); + } +} + +void MuQt_QJSEngine::customEvent(QEvent * event) +{ + if (!_env) { QJSEngine::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QJSEngine::customEvent(event); + } +} + +void MuQt_QJSEngine::timerEvent(QTimerEvent * event) +{ + if (!_env) { QJSEngine::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QJSEngine::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QJSEngineType::QJSEngineType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QJSEngineType::~QJSEngineType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QJSEngine_QJSEngine_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QJSEngine* w = object(widget)) + { + QJSEngineType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QJSEngine"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QJSEngine_QJSEngine_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QJSEngine_QJSEngine_QJSEngine_QJSEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setobject(param_this, new MuQt_QJSEngine(param_this, NODE_THREAD.process()->callEnv())); + return param_this; +} + +Pointer qt_QJSEngine_QJSEngine_QJSEngine_QJSEngine_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QJSEngine(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QJSEngine_collectGarbage_void_QJSEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QJSEngine* arg0 = object(param_this); + arg0->collectGarbage(); +} + +bool qt_QJSEngine_hasError_bool_QJSEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QJSEngine* arg0 = object(param_this); + return arg0->hasError(); +} + +bool qt_QJSEngine_isInterrupted_bool_QJSEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QJSEngine* arg0 = object(param_this); + return arg0->isInterrupted(); +} + +void qt_QJSEngine_setInterrupted_void_QJSEngine_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_interrupted) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QJSEngine* arg0 = object(param_this); + bool arg1 = (bool)(param_interrupted); + arg0->setInterrupted(arg1); +} + +void qt_QJSEngine_throwError_void_QJSEngine_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_message) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QJSEngine* arg0 = object(param_this); + const QString arg1 = qstring(param_message); + arg0->throwError(arg1); +} + +void qt_QJSEngine_throwError_void_QJSEngine_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_errorType, Pointer param_message) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QJSEngine* arg0 = object(param_this); + QJSValue::ErrorType arg1 = (QJSValue::ErrorType)(param_errorType); + const QString arg2 = qstring(param_message); + arg0->throwError(arg1, arg2); +} + +bool qt_QJSEngine_event_bool_QJSEngine_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QJSEngine* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QJSEngine::event(arg1) : arg0->event(arg1); +} + +bool qt_QJSEngine_eventFilter_bool_QJSEngine_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QJSEngine* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QJSEngine::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QJSEngine_customEvent_void_QJSEngine_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QJSEngine* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QJSEngine*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QJSEngine*)arg0)->customEvent_pub(arg1); +} + +void qt_QJSEngine_timerEvent_void_QJSEngine_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QJSEngine* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QJSEngine*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QJSEngine*)arg0)->timerEvent_pub(arg1); +} + +int qt_QJSEngine_objectOwnership_int_QObject(Mu::Thread& NODE_THREAD, Pointer param_object) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg0 = object(param_object); + return int(QJSEngine::objectOwnership(arg0)); +} + +void qt_QJSEngine_setObjectOwnership_void_QObject_int(Mu::Thread& NODE_THREAD, Pointer param_object, int param_ownership) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg0 = object(param_object); + QJSEngine::ObjectOwnership arg1 = (QJSEngine::ObjectOwnership)(param_ownership); + QJSEngine::setObjectOwnership(arg0, arg1); +} + + +static NODE_IMPLEMENTATION(_n_QJSEngine0, Pointer) +{ + NODE_RETURN(qt_QJSEngine_QJSEngine_QJSEngine_QJSEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QJSEngine1, Pointer) +{ + NODE_RETURN(qt_QJSEngine_QJSEngine_QJSEngine_QJSEngine_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_collectGarbage0, void) +{ + qt_QJSEngine_collectGarbage_void_QJSEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasError0, bool) +{ + NODE_RETURN(qt_QJSEngine_hasError_bool_QJSEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isInterrupted0, bool) +{ + NODE_RETURN(qt_QJSEngine_isInterrupted_bool_QJSEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setInterrupted0, void) +{ + qt_QJSEngine_setInterrupted_void_QJSEngine_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_throwError0, void) +{ + qt_QJSEngine_throwError_void_QJSEngine_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_throwError1, void) +{ + qt_QJSEngine_throwError_void_QJSEngine_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QJSEngine_event_bool_QJSEngine_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QJSEngine_eventFilter_bool_QJSEngine_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QJSEngine_customEvent_void_QJSEngine_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QJSEngine_timerEvent_void_QJSEngine_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_objectOwnership0, int) +{ + NODE_RETURN(qt_QJSEngine_objectOwnership_int_QObject(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setObjectOwnership0, void) +{ + qt_QJSEngine_setObjectOwnership_void_QObject_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + + + +void +QJSEngineType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QJSEngine_QJSEngine_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QJSEngine", _n_QJSEngine0, None, Compiled, qt_QJSEngine_QJSEngine_QJSEngine_QJSEngine, Return, "qt.QJSEngine", Parameters, new Param(c, "this", "qt.QJSEngine"), End), + new Function(c, "QJSEngine", _n_QJSEngine1, None, Compiled, qt_QJSEngine_QJSEngine_QJSEngine_QJSEngine_QObject, Return, "qt.QJSEngine", Parameters, new Param(c, "this", "qt.QJSEngine"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: catchError ("QJSValue"; QJSEngine this) + // MISSING: coerceValue ("To"; QJSEngine this, "const From &" from) + new Function(c, "collectGarbage", _n_collectGarbage0, None, Compiled, qt_QJSEngine_collectGarbage_void_QJSEngine, Return, "void", Parameters, new Param(c, "this", "qt.QJSEngine"), End), + // MISSING: evaluate ("QJSValue"; QJSEngine this, string program, string fileName, int lineNumber, string[] exceptionStackTrace) + // MISSING: fromManagedValue ("T"; QJSEngine this, "const QJSManagedValue &" value) + // MISSING: fromPrimitiveValue ("T"; QJSEngine this, "const QJSPrimitiveValue &" value) + // MISSING: fromScriptValue ("T"; QJSEngine this, "const QJSValue &" value) + // MISSING: fromVariant ("T"; QJSEngine this, QVariant value) + // MISSING: globalObject ("QJSValue"; QJSEngine this) + new Function(c, "hasError", _n_hasError0, None, Compiled, qt_QJSEngine_hasError_bool_QJSEngine, Return, "bool", Parameters, new Param(c, "this", "qt.QJSEngine"), End), + // MISSING: importModule ("QJSValue"; QJSEngine this, string fileName) + // MISSING: installExtensions (void; QJSEngine this, flags QJSEngine::Extensions extensions, "const QJSValue &" object) + new Function(c, "isInterrupted", _n_isInterrupted0, None, Compiled, qt_QJSEngine_isInterrupted_bool_QJSEngine, Return, "bool", Parameters, new Param(c, "this", "qt.QJSEngine"), End), + // MISSING: newArray ("QJSValue"; QJSEngine this, int length) + // MISSING: newErrorObject ("QJSValue"; QJSEngine this, flags QJSValue::ErrorType errorType, string message) + // MISSING: newObject ("QJSValue"; QJSEngine this) + // MISSING: newQMetaObject ("QJSValue"; QJSEngine this, "const QMetaObject *" metaObject) + // MISSING: newQMetaObject ("QJSValue"; QJSEngine this) + // MISSING: newQObject ("QJSValue"; QJSEngine this, QObject object) + // MISSING: newSymbol ("QJSValue"; QJSEngine this, string name) + // MISSING: registerModule (bool; QJSEngine this, string moduleName, "const QJSValue &" value) + new Function(c, "setInterrupted", _n_setInterrupted0, None, Compiled, qt_QJSEngine_setInterrupted_void_QJSEngine_bool, Return, "void", Parameters, new Param(c, "this", "qt.QJSEngine"), new Param(c, "interrupted", "bool"), End), + // PROP: setUiLanguage (void; QJSEngine this, string language) + new Function(c, "throwError", _n_throwError0, None, Compiled, qt_QJSEngine_throwError_void_QJSEngine_string, Return, "void", Parameters, new Param(c, "this", "qt.QJSEngine"), new Param(c, "message", "string"), End), + new Function(c, "throwError", _n_throwError1, None, Compiled, qt_QJSEngine_throwError_void_QJSEngine_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QJSEngine"), new Param(c, "errorType", "int"), new Param(c, "message", "string"), End), + // MISSING: throwError (void; QJSEngine this, "const QJSValue &" error) + // MISSING: toManagedValue ("QJSManagedValue"; QJSEngine this, "const T &" value) + // MISSING: toPrimitiveValue ("QJSPrimitiveValue"; QJSEngine this, "const T &" value) + // MISSING: toScriptValue ("QJSValue"; QJSEngine this, "const T &" value) + // PROP: uiLanguage (string; QJSEngine this) + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QJSEngine_event_bool_QJSEngine_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QJSEngine"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QJSEngine_eventFilter_bool_QJSEngine_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QJSEngine"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QJSEngine this) + // MISSING: childEvent (void; QJSEngine this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QJSEngine this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QJSEngine_customEvent_void_QJSEngine_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QJSEngine"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QJSEngine this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QJSEngine_timerEvent_void_QJSEngine_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QJSEngine"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + new Function(c, "objectOwnership", _n_objectOwnership0, None, Compiled, qt_QJSEngine_objectOwnership_int_QObject, Return, "int", Parameters, new Param(c, "object", "qt.QObject"), End), + new Function(c, "setObjectOwnership", _n_setObjectOwnership0, None, Compiled, qt_QJSEngine_setObjectOwnership_void_QObject_int, Return, "void", Parameters, new Param(c, "object", "qt.QObject"), new Param(c, "ownership", "int"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QJSEngine::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QKeyEventType.cpp b/src/lib/mu/MuQt6/QKeyEventType.cpp new file mode 100644 index 000000000..4d47e832c --- /dev/null +++ b/src/lib/mu/MuQt6/QKeyEventType.cpp @@ -0,0 +1,226 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QKeyEventType::QKeyEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QKeyEventType::~QKeyEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +int qt_QKeyEvent_count_int_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeyEvent * arg0 = getqpointer(param_this); + return arg0->count(); +} + +bool qt_QKeyEvent_isAutoRepeat_bool_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeyEvent * arg0 = getqpointer(param_this); + return arg0->isAutoRepeat(); +} + +int qt_QKeyEvent_key_int_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeyEvent * arg0 = getqpointer(param_this); + return arg0->key(); +} + +bool qt_QKeyEvent_matches_bool_QKeyEvent_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_key) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeyEvent * arg0 = getqpointer(param_this); + QKeySequence::StandardKey arg1 = (QKeySequence::StandardKey)(param_key); + return arg0->matches(arg1); +} + +int qt_QKeyEvent_modifiers_int_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeyEvent * arg0 = getqpointer(param_this); + return int(arg0->modifiers()); +} + +int qt_QKeyEvent_nativeModifiers_int_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeyEvent * arg0 = getqpointer(param_this); + return arg0->nativeModifiers(); +} + +int qt_QKeyEvent_nativeScanCode_int_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeyEvent * arg0 = getqpointer(param_this); + return arg0->nativeScanCode(); +} + +int qt_QKeyEvent_nativeVirtualKey_int_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeyEvent * arg0 = getqpointer(param_this); + return arg0->nativeVirtualKey(); +} + +Pointer qt_QKeyEvent_text_string_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeyEvent * arg0 = getqpointer(param_this); + return makestring(c,arg0->text()); +} + + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QKeyEvent_count_int_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isAutoRepeat0, bool) +{ + NODE_RETURN(qt_QKeyEvent_isAutoRepeat_bool_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_key0, int) +{ + NODE_RETURN(qt_QKeyEvent_key_int_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_matches0, bool) +{ + NODE_RETURN(qt_QKeyEvent_matches_bool_QKeyEvent_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_modifiers0, int) +{ + NODE_RETURN(qt_QKeyEvent_modifiers_int_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nativeModifiers0, int) +{ + NODE_RETURN(qt_QKeyEvent_nativeModifiers_int_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nativeScanCode0, int) +{ + NODE_RETURN(qt_QKeyEvent_nativeScanCode_int_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nativeVirtualKey0, int) +{ + NODE_RETURN(qt_QKeyEvent_nativeVirtualKey_int_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QKeyEvent_text_string_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QKeyEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + // MISSING: QKeyEvent (QKeyEvent; QKeyEvent this, flags QEvent::Type type, int key, flags Qt::KeyboardModifiers modifiers, string text, bool autorep, "quint16" count) + // MISSING: QKeyEvent (QKeyEvent; QKeyEvent this, flags QEvent::Type type, int key, flags Qt::KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, string text, bool autorep, "quint16" count, "const QInputDevice *" device) + new Function(c, "count", _n_count0, None, Compiled, qt_QKeyEvent_count_int_QKeyEvent, Return, "int", Parameters, new Param(c, "this", "qt.QKeyEvent"), End), + new Function(c, "isAutoRepeat", _n_isAutoRepeat0, None, Compiled, qt_QKeyEvent_isAutoRepeat_bool_QKeyEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QKeyEvent"), End), + new Function(c, "key", _n_key0, None, Compiled, qt_QKeyEvent_key_int_QKeyEvent, Return, "int", Parameters, new Param(c, "this", "qt.QKeyEvent"), End), + // MISSING: keyCombination ("QKeyCombination"; QKeyEvent this) + new Function(c, "matches", _n_matches0, None, Compiled, qt_QKeyEvent_matches_bool_QKeyEvent_int, Return, "bool", Parameters, new Param(c, "this", "qt.QKeyEvent"), new Param(c, "key", "int"), End), + new Function(c, "modifiers", _n_modifiers0, None, Compiled, qt_QKeyEvent_modifiers_int_QKeyEvent, Return, "int", Parameters, new Param(c, "this", "qt.QKeyEvent"), End), + new Function(c, "nativeModifiers", _n_nativeModifiers0, None, Compiled, qt_QKeyEvent_nativeModifiers_int_QKeyEvent, Return, "int", Parameters, new Param(c, "this", "qt.QKeyEvent"), End), + new Function(c, "nativeScanCode", _n_nativeScanCode0, None, Compiled, qt_QKeyEvent_nativeScanCode_int_QKeyEvent, Return, "int", Parameters, new Param(c, "this", "qt.QKeyEvent"), End), + new Function(c, "nativeVirtualKey", _n_nativeVirtualKey0, None, Compiled, qt_QKeyEvent_nativeVirtualKey_int_QKeyEvent, Return, "int", Parameters, new Param(c, "this", "qt.QKeyEvent"), End), + new Function(c, "text", _n_text0, None, Compiled, qt_QKeyEvent_text_string_QKeyEvent, Return, "string", Parameters, new Param(c, "this", "qt.QKeyEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QKeySequenceType.cpp b/src/lib/mu/MuQt6/QKeySequenceType.cpp new file mode 100644 index 000000000..2f9bf03d1 --- /dev/null +++ b/src/lib/mu/MuQt6/QKeySequenceType.cpp @@ -0,0 +1,451 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QKeySequenceType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QKeySequenceType::QKeySequenceType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QKeySequenceType::~QKeySequenceType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QKeySequenceType::Instance* i = new QKeySequenceType::Instance((Class*)NODE_THIS.type()); + QKeySequenceType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QKeySequenceType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QKeySequenceType::finalizer, 0, 0, 0); +} + +void +QKeySequenceType::finalizer (void* obj, void* data) +{ + QKeySequenceType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QKeySequence()); + return param_this; +} + +Pointer qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_key, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_key); + QKeySequence::SequenceFormat arg2 = (QKeySequence::SequenceFormat)(param_format); + setqtype(param_this,QKeySequence(arg1, arg2)); + return param_this; +} + +Pointer qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_k1, int param_k2, int param_k3, int param_k4) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_k1); + int arg2 = (int)(param_k2); + int arg3 = (int)(param_k3); + int arg4 = (int)(param_k4); + setqtype(param_this,QKeySequence(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_key) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeySequence::StandardKey arg1 = (QKeySequence::StandardKey)(param_key); + setqtype(param_this,QKeySequence(arg1)); + return param_this; +} + +int qt_QKeySequence_count_int_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequence& arg0 = getqtype(param_this); + return arg0.count(); +} + +bool qt_QKeySequence_isEmpty_bool_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequence& arg0 = getqtype(param_this); + return arg0.isEmpty(); +} + +int qt_QKeySequence_matches_int_QKeySequence_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_seq) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequence& arg0 = getqtype(param_this); + const QKeySequence arg1 = getqtype(param_seq); + return int(arg0.matches(arg1)); +} + +void qt_QKeySequence_swap_void_QKeySequence_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QKeySequence& arg0 = getqtype(param_this); + QKeySequence arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QKeySequence_toString_string_QKeySequence_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequence& arg0 = getqtype(param_this); + QKeySequence::SequenceFormat arg1 = (QKeySequence::SequenceFormat)(param_format); + return makestring(c,arg0.toString(arg1)); +} + +bool qt_QKeySequence_operatorBang_EQ__bool_QKeySequence_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequence& arg0 = getqtype(param_this); + const QKeySequence arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +bool qt_QKeySequence_operatorLT__bool_QKeySequence_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequence& arg0 = getqtype(param_this); + const QKeySequence arg1 = getqtype(param_other); + return arg0.operator<(arg1); +} + +bool qt_QKeySequence_operatorLT_EQ__bool_QKeySequence_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequence& arg0 = getqtype(param_this); + const QKeySequence arg1 = getqtype(param_other); + return arg0.operator<=(arg1); +} + +bool qt_QKeySequence_operatorEQ_EQ__bool_QKeySequence_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequence& arg0 = getqtype(param_this); + const QKeySequence arg1 = getqtype(param_other); + return arg0.operator==(arg1); +} + +bool qt_QKeySequence_operatorGT__bool_QKeySequence_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequence& arg0 = getqtype(param_this); + const QKeySequence arg1 = getqtype(param_other); + return arg0.operator>(arg1); +} + +bool qt_QKeySequence_operatorGT_EQ__bool_QKeySequence_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QKeySequence& arg0 = getqtype(param_this); + const QKeySequence arg1 = getqtype(param_other); + return arg0.operator>=(arg1); +} + +Pointer qt_QKeySequence_fromString_QKeySequence_string_int(Mu::Thread& NODE_THREAD, Pointer param_str, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_str); + QKeySequence::SequenceFormat arg1 = (QKeySequence::SequenceFormat)(param_format); + return makeqtype(c,QKeySequence::fromString(arg0, arg1),"qt.QKeySequence"); +} + +Pointer qt_QKeySequence_mnemonic_QKeySequence_string(Mu::Thread& NODE_THREAD, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_text); + return makeqtype(c,QKeySequence::mnemonic(arg0),"qt.QKeySequence"); +} + + +static NODE_IMPLEMENTATION(_n_QKeySequence0, Pointer) +{ + NODE_RETURN(qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QKeySequence1, Pointer) +{ + NODE_RETURN(qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QKeySequence2, Pointer) +{ + NODE_RETURN(qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_QKeySequence4, Pointer) +{ + NODE_RETURN(qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QKeySequence_count_int_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QKeySequence_isEmpty_bool_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_matches0, int) +{ + NODE_RETURN(qt_QKeySequence_matches_int_QKeySequence_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QKeySequence_swap_void_QKeySequence_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toString0, Pointer) +{ + NODE_RETURN(qt_QKeySequence_toString_string_QKeySequence_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QKeySequence_operatorBang_EQ__bool_QKeySequence_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorLT_0, bool) +{ + NODE_RETURN(qt_QKeySequence_operatorLT__bool_QKeySequence_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorLT_EQ_0, bool) +{ + NODE_RETURN(qt_QKeySequence_operatorLT_EQ__bool_QKeySequence_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QKeySequence_operatorEQ_EQ__bool_QKeySequence_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorGT_0, bool) +{ + NODE_RETURN(qt_QKeySequence_operatorGT__bool_QKeySequence_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorGT_EQ_0, bool) +{ + NODE_RETURN(qt_QKeySequence_operatorGT_EQ__bool_QKeySequence_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fromString0, Pointer) +{ + NODE_RETURN(qt_QKeySequence_fromString_QKeySequence_string_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_mnemonic0, Pointer) +{ + NODE_RETURN(qt_QKeySequence_mnemonic_QKeySequence_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + + + +void +QKeySequenceType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "SequenceFormat", "int"), + new SymbolicConstant(c, "NativeText", "int", Value(int(QKeySequence::NativeText))), + new SymbolicConstant(c, "PortableText", "int", Value(int(QKeySequence::PortableText))), + new Alias(c, "SequenceMatch", "int"), + new SymbolicConstant(c, "NoMatch", "int", Value(int(QKeySequence::NoMatch))), + new SymbolicConstant(c, "PartialMatch", "int", Value(int(QKeySequence::PartialMatch))), + new SymbolicConstant(c, "ExactMatch", "int", Value(int(QKeySequence::ExactMatch))), + new Alias(c, "StandardKey", "int"), + new SymbolicConstant(c, "AddTab", "int", Value(int(QKeySequence::AddTab))), + new SymbolicConstant(c, "Back", "int", Value(int(QKeySequence::Back))), + new SymbolicConstant(c, "Backspace", "int", Value(int(QKeySequence::Backspace))), + new SymbolicConstant(c, "Bold", "int", Value(int(QKeySequence::Bold))), + new SymbolicConstant(c, "Close", "int", Value(int(QKeySequence::Close))), + new SymbolicConstant(c, "Copy", "int", Value(int(QKeySequence::Copy))), + new SymbolicConstant(c, "Cut", "int", Value(int(QKeySequence::Cut))), + new SymbolicConstant(c, "Delete", "int", Value(int(QKeySequence::Delete))), + new SymbolicConstant(c, "DeleteEndOfLine", "int", Value(int(QKeySequence::DeleteEndOfLine))), + new SymbolicConstant(c, "DeleteEndOfWord", "int", Value(int(QKeySequence::DeleteEndOfWord))), + new SymbolicConstant(c, "DeleteStartOfWord", "int", Value(int(QKeySequence::DeleteStartOfWord))), + new SymbolicConstant(c, "DeleteCompleteLine", "int", Value(int(QKeySequence::DeleteCompleteLine))), + new SymbolicConstant(c, "Find", "int", Value(int(QKeySequence::Find))), + new SymbolicConstant(c, "FindNext", "int", Value(int(QKeySequence::FindNext))), + new SymbolicConstant(c, "FindPrevious", "int", Value(int(QKeySequence::FindPrevious))), + new SymbolicConstant(c, "Forward", "int", Value(int(QKeySequence::Forward))), + new SymbolicConstant(c, "HelpContents", "int", Value(int(QKeySequence::HelpContents))), + new SymbolicConstant(c, "InsertLineSeparator", "int", Value(int(QKeySequence::InsertLineSeparator))), + new SymbolicConstant(c, "InsertParagraphSeparator", "int", Value(int(QKeySequence::InsertParagraphSeparator))), + new SymbolicConstant(c, "Italic", "int", Value(int(QKeySequence::Italic))), + new SymbolicConstant(c, "MoveToEndOfBlock", "int", Value(int(QKeySequence::MoveToEndOfBlock))), + new SymbolicConstant(c, "MoveToEndOfDocument", "int", Value(int(QKeySequence::MoveToEndOfDocument))), + new SymbolicConstant(c, "MoveToEndOfLine", "int", Value(int(QKeySequence::MoveToEndOfLine))), + new SymbolicConstant(c, "MoveToNextChar", "int", Value(int(QKeySequence::MoveToNextChar))), + new SymbolicConstant(c, "MoveToNextLine", "int", Value(int(QKeySequence::MoveToNextLine))), + new SymbolicConstant(c, "MoveToNextPage", "int", Value(int(QKeySequence::MoveToNextPage))), + new SymbolicConstant(c, "MoveToNextWord", "int", Value(int(QKeySequence::MoveToNextWord))), + new SymbolicConstant(c, "MoveToPreviousChar", "int", Value(int(QKeySequence::MoveToPreviousChar))), + new SymbolicConstant(c, "MoveToPreviousLine", "int", Value(int(QKeySequence::MoveToPreviousLine))), + new SymbolicConstant(c, "MoveToPreviousPage", "int", Value(int(QKeySequence::MoveToPreviousPage))), + new SymbolicConstant(c, "MoveToPreviousWord", "int", Value(int(QKeySequence::MoveToPreviousWord))), + new SymbolicConstant(c, "MoveToStartOfBlock", "int", Value(int(QKeySequence::MoveToStartOfBlock))), + new SymbolicConstant(c, "MoveToStartOfDocument", "int", Value(int(QKeySequence::MoveToStartOfDocument))), + new SymbolicConstant(c, "MoveToStartOfLine", "int", Value(int(QKeySequence::MoveToStartOfLine))), + new SymbolicConstant(c, "New", "int", Value(int(QKeySequence::New))), + new SymbolicConstant(c, "NextChild", "int", Value(int(QKeySequence::NextChild))), + new SymbolicConstant(c, "Open", "int", Value(int(QKeySequence::Open))), + new SymbolicConstant(c, "Paste", "int", Value(int(QKeySequence::Paste))), + new SymbolicConstant(c, "Preferences", "int", Value(int(QKeySequence::Preferences))), + new SymbolicConstant(c, "PreviousChild", "int", Value(int(QKeySequence::PreviousChild))), + new SymbolicConstant(c, "Print", "int", Value(int(QKeySequence::Print))), + new SymbolicConstant(c, "Quit", "int", Value(int(QKeySequence::Quit))), + new SymbolicConstant(c, "Redo", "int", Value(int(QKeySequence::Redo))), + new SymbolicConstant(c, "Refresh", "int", Value(int(QKeySequence::Refresh))), + new SymbolicConstant(c, "Replace", "int", Value(int(QKeySequence::Replace))), + new SymbolicConstant(c, "SaveAs", "int", Value(int(QKeySequence::SaveAs))), + new SymbolicConstant(c, "Save", "int", Value(int(QKeySequence::Save))), + new SymbolicConstant(c, "SelectAll", "int", Value(int(QKeySequence::SelectAll))), + new SymbolicConstant(c, "Deselect", "int", Value(int(QKeySequence::Deselect))), + new SymbolicConstant(c, "SelectEndOfBlock", "int", Value(int(QKeySequence::SelectEndOfBlock))), + new SymbolicConstant(c, "SelectEndOfDocument", "int", Value(int(QKeySequence::SelectEndOfDocument))), + new SymbolicConstant(c, "SelectEndOfLine", "int", Value(int(QKeySequence::SelectEndOfLine))), + new SymbolicConstant(c, "SelectNextChar", "int", Value(int(QKeySequence::SelectNextChar))), + new SymbolicConstant(c, "SelectNextLine", "int", Value(int(QKeySequence::SelectNextLine))), + new SymbolicConstant(c, "SelectNextPage", "int", Value(int(QKeySequence::SelectNextPage))), + new SymbolicConstant(c, "SelectNextWord", "int", Value(int(QKeySequence::SelectNextWord))), + new SymbolicConstant(c, "SelectPreviousChar", "int", Value(int(QKeySequence::SelectPreviousChar))), + new SymbolicConstant(c, "SelectPreviousLine", "int", Value(int(QKeySequence::SelectPreviousLine))), + new SymbolicConstant(c, "SelectPreviousPage", "int", Value(int(QKeySequence::SelectPreviousPage))), + new SymbolicConstant(c, "SelectPreviousWord", "int", Value(int(QKeySequence::SelectPreviousWord))), + new SymbolicConstant(c, "SelectStartOfBlock", "int", Value(int(QKeySequence::SelectStartOfBlock))), + new SymbolicConstant(c, "SelectStartOfDocument", "int", Value(int(QKeySequence::SelectStartOfDocument))), + new SymbolicConstant(c, "SelectStartOfLine", "int", Value(int(QKeySequence::SelectStartOfLine))), + new SymbolicConstant(c, "Underline", "int", Value(int(QKeySequence::Underline))), + new SymbolicConstant(c, "Undo", "int", Value(int(QKeySequence::Undo))), + new SymbolicConstant(c, "UnknownKey", "int", Value(int(QKeySequence::UnknownKey))), + new SymbolicConstant(c, "WhatsThis", "int", Value(int(QKeySequence::WhatsThis))), + new SymbolicConstant(c, "ZoomIn", "int", Value(int(QKeySequence::ZoomIn))), + new SymbolicConstant(c, "ZoomOut", "int", Value(int(QKeySequence::ZoomOut))), + new SymbolicConstant(c, "FullScreen", "int", Value(int(QKeySequence::FullScreen))), + new SymbolicConstant(c, "Cancel", "int", Value(int(QKeySequence::Cancel))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QKeySequence", _n_QKeySequence0, None, Compiled, qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence, Return, "qt.QKeySequence", Parameters, new Param(c, "this", "qt.QKeySequence"), End), + new Function(c, "QKeySequence", _n_QKeySequence1, None, Compiled, qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence_string_int, Return, "qt.QKeySequence", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "key", "string"), new Param(c, "format", "int", Value((int)QKeySequence::NativeText)), End), + new Function(c, "QKeySequence", _n_QKeySequence2, None, Compiled, qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence_int_int_int_int, Return, "qt.QKeySequence", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "k1", "int"), new Param(c, "k2", "int", Value((int)0)), new Param(c, "k3", "int", Value((int)0)), new Param(c, "k4", "int", Value((int)0)), End), + // MISSING: QKeySequence (QKeySequence; QKeySequence this, "QKeyCombination" k1, "QKeyCombination" k2, "QKeyCombination" k3, "QKeyCombination" k4) + new Function(c, "QKeySequence", _n_QKeySequence4, None, Compiled, qt_QKeySequence_QKeySequence_QKeySequence_QKeySequence_int, Return, "qt.QKeySequence", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "key", "int"), End), + // MISSING: QKeySequence (QKeySequence; QKeySequence this, QKeySequence keysequence) + new Function(c, "count", _n_count0, None, Compiled, qt_QKeySequence_count_int_QKeySequence, Return, "int", Parameters, new Param(c, "this", "qt.QKeySequence"), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QKeySequence_isEmpty_bool_QKeySequence, Return, "bool", Parameters, new Param(c, "this", "qt.QKeySequence"), End), + new Function(c, "matches", _n_matches0, None, Compiled, qt_QKeySequence_matches_int_QKeySequence_QKeySequence, Return, "int", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "seq", "qt.QKeySequence"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QKeySequence_swap_void_QKeySequence_QKeySequence, Return, "void", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "other", "qt.QKeySequence"), End), + new Function(c, "toString", _n_toString0, None, Compiled, qt_QKeySequence_toString_string_QKeySequence_int, Return, "string", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "format", "int", Value((int)QKeySequence::PortableText)), End), + // static functions + new Function(c, "fromString", _n_fromString0, None, Compiled, qt_QKeySequence_fromString_QKeySequence_string_int, Return, "qt.QKeySequence", Parameters, new Param(c, "str", "string"), new Param(c, "format", "int", Value((int)QKeySequence::PortableText)), End), + // MISSING: keyBindings ("QList"; flags QKeySequence::StandardKey key) + // MISSING: listFromString ("QList"; string str, flags QKeySequence::SequenceFormat format) + // MISSING: listToString (string; "const QList &" list, flags QKeySequence::SequenceFormat format) + new Function(c, "mnemonic", _n_mnemonic0, None, Compiled, qt_QKeySequence_mnemonic_QKeySequence_string, Return, "qt.QKeySequence", Parameters, new Param(c, "text", "string"), End), + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QKeySequence_operatorBang_EQ__bool_QKeySequence_QKeySequence, Return, "bool", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "other", "qt.QKeySequence"), End), + new Function(c, "<", _n_operatorLT_0, Op, Compiled, qt_QKeySequence_operatorLT__bool_QKeySequence_QKeySequence, Return, "bool", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "other", "qt.QKeySequence"), End), + new Function(c, "<=", _n_operatorLT_EQ_0, Op, Compiled, qt_QKeySequence_operatorLT_EQ__bool_QKeySequence_QKeySequence, Return, "bool", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "other", "qt.QKeySequence"), End), + // MISSING: = (QKeySequence; QKeySequence this, QKeySequence other) + // MISSING: = (QKeySequence; QKeySequence this, "QKeySequence & &" other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QKeySequence_operatorEQ_EQ__bool_QKeySequence_QKeySequence, Return, "bool", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "other", "qt.QKeySequence"), End), + new Function(c, ">", _n_operatorGT_0, Op, Compiled, qt_QKeySequence_operatorGT__bool_QKeySequence_QKeySequence, Return, "bool", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "other", "qt.QKeySequence"), End), + new Function(c, ">=", _n_operatorGT_EQ_0, Op, Compiled, qt_QKeySequence_operatorGT_EQ__bool_QKeySequence_QKeySequence, Return, "bool", Parameters, new Param(c, "this", "qt.QKeySequence"), new Param(c, "other", "qt.QKeySequence"), End), + // MISSING: [] ("QKeyCombination"; QKeySequence this, int index) + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QLabelType.cpp b/src/lib/mu/MuQt6/QLabelType.cpp new file mode 100644 index 000000000..f0442bd09 --- /dev/null +++ b/src/lib/mu/MuQt6/QLabelType.cpp @@ -0,0 +1,769 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QLabel::~MuQt_QLabel() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QLabel::MuQt_QLabel(Pointer muobj, const CallEnvironment* ce, QWidget * parent, Qt::WindowFlags f) + : QLabel(parent, f) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLabel")); +} + +MuQt_QLabel::MuQt_QLabel(Pointer muobj, const CallEnvironment* ce, const QString & text, QWidget * parent, Qt::WindowFlags f) + : QLabel(text, parent, f) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLabel")); +} + +int MuQt_QLabel::heightForWidth(int w) const +{ + if (!_env) return QLabel::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QLabel::heightForWidth(w); + } +} + +QSize MuQt_QLabel::minimumSizeHint() const +{ + if (!_env) return QLabel::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QLabel::minimumSizeHint(); + } +} + +QSize MuQt_QLabel::sizeHint() const +{ + if (!_env) return QLabel::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QLabel::sizeHint(); + } +} + +void MuQt_QLabel::changeEvent(QEvent * ev) +{ + if (!_env) { QLabel::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QLabel::changeEvent(ev); + } +} + +void MuQt_QLabel::contextMenuEvent(QContextMenuEvent * ev) +{ + if (!_env) { QLabel::contextMenuEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QLabel::contextMenuEvent(ev); + } +} + +bool MuQt_QLabel::event(QEvent * e) +{ + if (!_env) return QLabel::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLabel::event(e); + } +} + +void MuQt_QLabel::focusInEvent(QFocusEvent * ev) +{ + if (!_env) { QLabel::focusInEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QLabel::focusInEvent(ev); + } +} + +bool MuQt_QLabel::focusNextPrevChild(bool next) +{ + if (!_env) return QLabel::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLabel::focusNextPrevChild(next); + } +} + +void MuQt_QLabel::focusOutEvent(QFocusEvent * ev) +{ + if (!_env) { QLabel::focusOutEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QLabel::focusOutEvent(ev); + } +} + +void MuQt_QLabel::keyPressEvent(QKeyEvent * ev) +{ + if (!_env) { QLabel::keyPressEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QLabel::keyPressEvent(ev); + } +} + +void MuQt_QLabel::mouseMoveEvent(QMouseEvent * ev) +{ + if (!_env) { QLabel::mouseMoveEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QLabel::mouseMoveEvent(ev); + } +} + +void MuQt_QLabel::mousePressEvent(QMouseEvent * ev) +{ + if (!_env) { QLabel::mousePressEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QLabel::mousePressEvent(ev); + } +} + +void MuQt_QLabel::mouseReleaseEvent(QMouseEvent * ev) +{ + if (!_env) { QLabel::mouseReleaseEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QLabel::mouseReleaseEvent(ev); + } +} + +void MuQt_QLabel::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QLabel::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QLabel::paintEvent(_p14); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QLabelType::QLabelType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QLabelType::~QLabelType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QLabel_QLabel_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QLabel* w = object(widget)) + { + QLabelType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLabel"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QLabel_QLabel_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QLabel_QLabel_QLabel_QLabel_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + Qt::WindowFlags arg2 = (Qt::WindowFlags)(param_f); + setobject(param_this, new MuQt_QLabel(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QLabel_QLabel_QLabel_QLabel_string_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_parent, int param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + QWidget * arg2 = object(param_parent); + Qt::WindowFlags arg3 = (Qt::WindowFlags)(param_f); + setobject(param_this, new MuQt_QLabel(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QLabel_buddy_QWidget_QLabel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + return makeinstance(c, arg0->buddy(), "qt.QWidget"); +} + +int qt_QLabel_selectionStart_int_QLabel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + return arg0->selectionStart(); +} + +void qt_QLabel_setBuddy_void_QLabel_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_buddy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QWidget * arg1 = object(param_buddy); + arg0->setBuddy(arg1); +} + +void qt_QLabel_setSelection_void_QLabel_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_start, int param_length) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + int arg1 = (int)(param_start); + int arg2 = (int)(param_length); + arg0->setSelection(arg1, arg2); +} + +int qt_QLabel_heightForWidth_int_QLabel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QLabel::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QLabel_minimumSizeHint_QSize_QLabel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QLabel::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QLabel_sizeHint_QSize_QLabel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QLabel::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QLabel_changeEvent_void_QLabel_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QLabel*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QLabel*)arg0)->changeEvent_pub(arg1); +} + +void qt_QLabel_contextMenuEvent_void_QLabel_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QLabel*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QLabel*)arg0)->contextMenuEvent_pub(arg1); +} + +bool qt_QLabel_event_bool_QLabel_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QLabel*)arg0)->event_pub_parent(arg1) : ((MuQt_QLabel*)arg0)->event_pub(arg1); +} + +void qt_QLabel_focusInEvent_void_QLabel_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QLabel*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QLabel*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QLabel_focusNextPrevChild_bool_QLabel_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QLabel*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QLabel*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QLabel_focusOutEvent_void_QLabel_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QLabel*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QLabel*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QLabel_keyPressEvent_void_QLabel_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QLabel*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QLabel*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QLabel_mouseMoveEvent_void_QLabel_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QLabel*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QLabel*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QLabel_mousePressEvent_void_QLabel_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QLabel*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QLabel*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QLabel_mouseReleaseEvent_void_QLabel_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QLabel*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QLabel*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QLabel_paintEvent_void_QLabel_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLabel* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QLabel*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QLabel*)arg0)->paintEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QLabel0, Pointer) +{ + NODE_RETURN(qt_QLabel_QLabel_QLabel_QLabel_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QLabel1, Pointer) +{ + NODE_RETURN(qt_QLabel_QLabel_QLabel_QLabel_string_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_buddy0, Pointer) +{ + NODE_RETURN(qt_QLabel_buddy_QWidget_QLabel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionStart0, int) +{ + NODE_RETURN(qt_QLabel_selectionStart_int_QLabel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBuddy0, void) +{ + qt_QLabel_setBuddy_void_QLabel_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QLabel_setSelection_void_QLabel_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QLabel_heightForWidth_int_QLabel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QLabel_minimumSizeHint_QSize_QLabel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QLabel_sizeHint_QSize_QLabel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QLabel_changeEvent_void_QLabel_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QLabel_contextMenuEvent_void_QLabel_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QLabel_event_bool_QLabel_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QLabel_focusInEvent_void_QLabel_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QLabel_focusNextPrevChild_bool_QLabel_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QLabel_focusOutEvent_void_QLabel_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QLabel_keyPressEvent_void_QLabel_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QLabel_mouseMoveEvent_void_QLabel_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QLabel_mousePressEvent_void_QLabel_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QLabel_mouseReleaseEvent_void_QLabel_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QLabel_paintEvent_void_QLabel_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QLabelType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QLabel_QLabel_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QLabel", _n_QLabel0, None, Compiled, qt_QLabel_QLabel_QLabel_QLabel_QWidget_int, Return, "qt.QLabel", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "parent", "qt.QWidget"), new Param(c, "f", "int", Value((int)Qt::WindowFlags())), End), + new Function(c, "QLabel", _n_QLabel1, None, Compiled, qt_QLabel_QLabel_QLabel_QLabel_string_QWidget_int, Return, "qt.QLabel", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QWidget"), new Param(c, "f", "int", Value((int)Qt::WindowFlags())), End), + // PROP: alignment (flags Qt::Alignment; QLabel this) + new Function(c, "buddy", _n_buddy0, None, Compiled, qt_QLabel_buddy_QWidget_QLabel, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QLabel"), End), + // PROP: hasScaledContents (bool; QLabel this) + // PROP: hasSelectedText (bool; QLabel this) + // PROP: indent (int; QLabel this) + // PROP: margin (int; QLabel this) + // MISSING: movie ("QMovie *"; QLabel this) + // PROP: openExternalLinks (bool; QLabel this) + // PROP: pixmap (QPixmap; QLabel this) + // PROP: selectedText (string; QLabel this) + new Function(c, "selectionStart", _n_selectionStart0, None, Compiled, qt_QLabel_selectionStart_int_QLabel, Return, "int", Parameters, new Param(c, "this", "qt.QLabel"), End), + // PROP: setAlignment (void; QLabel this, flags Qt::Alignment _p13) + new Function(c, "setBuddy", _n_setBuddy0, None, Compiled, qt_QLabel_setBuddy_void_QLabel_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "buddy", "qt.QWidget"), End), + // PROP: setIndent (void; QLabel this, int _p3) + // PROP: setMargin (void; QLabel this, int _p3) + // PROP: setOpenExternalLinks (void; QLabel this, bool open) + // PROP: setScaledContents (void; QLabel this, bool _p4) + new Function(c, "setSelection", _n_setSelection0, None, Compiled, qt_QLabel_setSelection_void_QLabel_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "start", "int"), new Param(c, "length", "int"), End), + // PROP: setTextFormat (void; QLabel this, flags Qt::TextFormat _p14) + // PROP: setTextInteractionFlags (void; QLabel this, flags Qt::TextInteractionFlags flags) + // PROP: setWordWrap (void; QLabel this, bool on) + // PROP: text (string; QLabel this) + // PROP: textFormat (flags Qt::TextFormat; QLabel this) + // PROP: textInteractionFlags (flags Qt::TextInteractionFlags; QLabel this) + // PROP: wordWrap (bool; QLabel this) + _func[0] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QLabel_heightForWidth_int_QLabel_int, Return, "int", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "w", "int"), End), + _func[1] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QLabel_minimumSizeHint_QSize_QLabel, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QLabel"), End), + _func[2] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QLabel_sizeHint_QSize_QLabel, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QLabel"), End), + _func[3] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QLabel_changeEvent_void_QLabel_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "ev", "qt.QEvent"), End), + _func[4] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QLabel_contextMenuEvent_void_QLabel_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "ev", "qt.QContextMenuEvent"), End), + _func[5] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QLabel_event_bool_QLabel_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "e", "qt.QEvent"), End), + _func[6] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QLabel_focusInEvent_void_QLabel_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "ev", "qt.QFocusEvent"), End), + _func[7] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QLabel_focusNextPrevChild_bool_QLabel_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "next", "bool"), End), + _func[8] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QLabel_focusOutEvent_void_QLabel_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "ev", "qt.QFocusEvent"), End), + _func[9] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QLabel_keyPressEvent_void_QLabel_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "ev", "qt.QKeyEvent"), End), + _func[10] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QLabel_mouseMoveEvent_void_QLabel_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "ev", "qt.QMouseEvent"), End), + _func[11] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QLabel_mousePressEvent_void_QLabel_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "ev", "qt.QMouseEvent"), End), + _func[12] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QLabel_mouseReleaseEvent_void_QLabel_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "ev", "qt.QMouseEvent"), End), + _func[13] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QLabel_paintEvent_void_QLabel_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLabel"), new Param(c, "_p14", "qt.QPaintEvent"), End), + // MISSING: initStyleOption (void; QLabel this, "QStyleOptionFrame *" option) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QLabel::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QLayoutItemType.cpp b/src/lib/mu/MuQt6/QLayoutItemType.cpp new file mode 100644 index 000000000..83513f58d --- /dev/null +++ b/src/lib/mu/MuQt6/QLayoutItemType.cpp @@ -0,0 +1,666 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QLayoutItem::~MuQt_QLayoutItem() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QLayoutItem::MuQt_QLayoutItem(Pointer muobj, const CallEnvironment* ce, Qt::Alignment alignment) + : QLayoutItem(alignment) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLayoutItem")); +} + +QSizePolicy::ControlTypes MuQt_QLayoutItem::controlTypes() const +{ + if (!_env) return QLayoutItem::controlTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QSizePolicy::ControlTypes)(rval._int); + } + else + { + return QLayoutItem::controlTypes(); + } +} + +Qt::Orientations MuQt_QLayoutItem::expandingDirections() const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::Orientations)(rval._int); + } + else + { + return defaultValue(); + } +} + +QRect MuQt_QLayoutItem::geometry() const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +bool MuQt_QLayoutItem::hasHeightForWidth() const +{ + if (!_env) return QLayoutItem::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLayoutItem::hasHeightForWidth(); + } +} + +int MuQt_QLayoutItem::heightForWidth(int _p3) const +{ + if (!_env) return QLayoutItem::heightForWidth(_p3); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(_p3); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QLayoutItem::heightForWidth(_p3); + } +} + +void MuQt_QLayoutItem::invalidate() +{ + if (!_env) { QLayoutItem::invalidate(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QLayoutItem::invalidate(); + } +} + +bool MuQt_QLayoutItem::isEmpty() const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return defaultValue(); + } +} + +QLayout * MuQt_QLayoutItem::layout() +{ + if (!_env) return QLayoutItem::layout(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QLayoutItem::layout(); + } +} + +QSize MuQt_QLayoutItem::maximumSize() const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +int MuQt_QLayoutItem::minimumHeightForWidth(int w) const +{ + if (!_env) return QLayoutItem::minimumHeightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QLayoutItem::minimumHeightForWidth(w); + } +} + +QSize MuQt_QLayoutItem::minimumSize() const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +void MuQt_QLayoutItem::setGeometry(const QRect & r) // pure virtual +{ + if (!_env) return; + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,r,"qt.QRect")); + Value rval = _env->call(F, args); + } + else + { + defaultValue(); + } +} + +QSize MuQt_QLayoutItem::sizeHint() const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +QWidget * MuQt_QLayoutItem::widget() const +{ + if (!_env) return QLayoutItem::widget(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QLayoutItem::widget(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QLayoutItemType::QLayoutItemType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QLayoutItemType::~QLayoutItemType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QLayoutItem_QLayoutItem_QLayoutItem(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* item = reinterpret_cast(obj); + + if (!item) + { + return 0; + } + else if (QLayoutItem* i = layoutitem(item)) + { + QLayoutItemType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLayoutItem"), false); + ClassInstance* o = ClassInstance::allocate(type); + setlayoutitem(o, i); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromLayoutItem, Pointer) +{ + NODE_RETURN( QLayoutItem_QLayoutItem_QLayoutItem(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QLayoutItem_QLayoutItem_QLayoutItem_QLayoutItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::Alignment arg1 = (Qt::Alignment)(param_alignment); + setlayoutitem(param_this, new MuQt_QLayoutItem(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +int qt_QLayoutItem_alignment_int_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return int(arg0->alignment()); +} + +int qt_QLayoutItem_controlTypes_int_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? int(arg0->QLayoutItem::controlTypes()) : int(arg0->controlTypes()); +} + +int qt_QLayoutItem_expandingDirections_int_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return int(arg0->expandingDirections()); +} + +Pointer qt_QLayoutItem_geometry_QRect_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return makeqtype(c,arg0->geometry(),"qt.QRect"); +} + +bool qt_QLayoutItem_hasHeightForWidth_bool_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? arg0->QLayoutItem::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QLayoutItem_heightForWidth_int_QLayoutItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param__p3) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + int arg1 = (int)(param__p3); + return isMuQtLayoutItem(arg0) ? arg0->QLayoutItem::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +void qt_QLayoutItem_invalidate_void_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + if (isMuQtLayoutItem(arg0)) arg0->QLayoutItem::invalidate(); + else arg0->invalidate(); +} + +bool qt_QLayoutItem_isEmpty_bool_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return arg0->isEmpty(); +} + +Pointer qt_QLayoutItem_layout_QLayout_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeinstance(c, arg0->QLayoutItem::layout(), "qt.QLayout") : makeinstance(c, arg0->layout(), "qt.QLayout"); +} + +Pointer qt_QLayoutItem_maximumSize_QSize_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return makeqtype(c,arg0->maximumSize(),"qt.QSize"); +} + +int qt_QLayoutItem_minimumHeightForWidth_int_QLayoutItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + int arg1 = (int)(param_w); + return isMuQtLayoutItem(arg0) ? arg0->QLayoutItem::minimumHeightForWidth(arg1) : arg0->minimumHeightForWidth(arg1); +} + +Pointer qt_QLayoutItem_minimumSize_QSize_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return makeqtype(c,arg0->minimumSize(),"qt.QSize"); +} + +void qt_QLayoutItem_setAlignment_void_QLayoutItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + Qt::Alignment arg1 = (Qt::Alignment)(param_alignment); + arg0->setAlignment(arg1); +} + +void qt_QLayoutItem_setGeometry_void_QLayoutItem_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + const QRect arg1 = getqtype(param_r); + arg0->setGeometry(arg1); +} + +Pointer qt_QLayoutItem_sizeHint_QSize_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QLayoutItem_widget_QWidget_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayoutItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeinstance(c, arg0->QLayoutItem::widget(), "qt.QWidget") : makeinstance(c, arg0->widget(), "qt.QWidget"); +} + + +static NODE_IMPLEMENTATION(_n_QLayoutItem0, Pointer) +{ + NODE_RETURN(qt_QLayoutItem_QLayoutItem_QLayoutItem_QLayoutItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_alignment0, int) +{ + NODE_RETURN(qt_QLayoutItem_alignment_int_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_controlTypes0, int) +{ + NODE_RETURN(qt_QLayoutItem_controlTypes_int_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expandingDirections0, int) +{ + NODE_RETURN(qt_QLayoutItem_expandingDirections_int_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_geometry0, Pointer) +{ + NODE_RETURN(qt_QLayoutItem_geometry_QRect_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QLayoutItem_hasHeightForWidth_bool_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QLayoutItem_heightForWidth_int_QLayoutItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_invalidate0, void) +{ + qt_QLayoutItem_invalidate_void_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QLayoutItem_isEmpty_bool_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_layout0, Pointer) +{ + NODE_RETURN(qt_QLayoutItem_layout_QLayout_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_maximumSize0, Pointer) +{ + NODE_RETURN(qt_QLayoutItem_maximumSize_QSize_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumHeightForWidth0, int) +{ + NODE_RETURN(qt_QLayoutItem_minimumHeightForWidth_int_QLayoutItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSize0, Pointer) +{ + NODE_RETURN(qt_QLayoutItem_minimumSize_QSize_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAlignment0, void) +{ + qt_QLayoutItem_setAlignment_void_QLayoutItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setGeometry0, void) +{ + qt_QLayoutItem_setGeometry_void_QLayoutItem_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QLayoutItem_sizeHint_QSize_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QLayoutItem_widget_QWidget_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QLayoutItemType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromLayoutItem, Cast, + Compiled, QLayoutItem_QLayoutItem_QLayoutItem, + Return, ftn, + Parameters, + new Param(c, "layoutItem", "qt.QLayoutItem"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QLayoutItem", _n_QLayoutItem0, None, Compiled, qt_QLayoutItem_QLayoutItem_QLayoutItem_QLayoutItem_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QLayoutItem"), new Param(c, "alignment", "int", Value((int)Qt::Alignment())), End), + new Function(c, "alignment", _n_alignment0, None, Compiled, qt_QLayoutItem_alignment_int_QLayoutItem, Return, "int", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + _func[0] = new MemberFunction(c, "controlTypes", _n_controlTypes0, None, Compiled, qt_QLayoutItem_controlTypes_int_QLayoutItem, Return, "int", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + _func[1] = new MemberFunction(c, "expandingDirections", _n_expandingDirections0, None, Compiled, qt_QLayoutItem_expandingDirections_int_QLayoutItem, Return, "int", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + _func[2] = new MemberFunction(c, "geometry", _n_geometry0, None, Compiled, qt_QLayoutItem_geometry_QRect_QLayoutItem, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + _func[3] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QLayoutItem_hasHeightForWidth_bool_QLayoutItem, Return, "bool", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + _func[4] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QLayoutItem_heightForWidth_int_QLayoutItem_int, Return, "int", Parameters, new Param(c, "this", "qt.QLayoutItem"), new Param(c, "_p3", "int"), End), + _func[5] = new MemberFunction(c, "invalidate", _n_invalidate0, None, Compiled, qt_QLayoutItem_invalidate_void_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + _func[6] = new MemberFunction(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QLayoutItem_isEmpty_bool_QLayoutItem, Return, "bool", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + _func[7] = new MemberFunction(c, "layout", _n_layout0, None, Compiled, qt_QLayoutItem_layout_QLayout_QLayoutItem, Return, "qt.QLayout", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + _func[8] = new MemberFunction(c, "maximumSize", _n_maximumSize0, None, Compiled, qt_QLayoutItem_maximumSize_QSize_QLayoutItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + _func[9] = new MemberFunction(c, "minimumHeightForWidth", _n_minimumHeightForWidth0, None, Compiled, qt_QLayoutItem_minimumHeightForWidth_int_QLayoutItem_int, Return, "int", Parameters, new Param(c, "this", "qt.QLayoutItem"), new Param(c, "w", "int"), End), + _func[10] = new MemberFunction(c, "minimumSize", _n_minimumSize0, None, Compiled, qt_QLayoutItem_minimumSize_QSize_QLayoutItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + new Function(c, "setAlignment", _n_setAlignment0, None, Compiled, qt_QLayoutItem_setAlignment_void_QLayoutItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QLayoutItem"), new Param(c, "alignment", "int"), End), + _func[11] = new MemberFunction(c, "setGeometry", _n_setGeometry0, None, Compiled, qt_QLayoutItem_setGeometry_void_QLayoutItem_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QLayoutItem"), new Param(c, "r", "qt.QRect"), End), + _func[12] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QLayoutItem_sizeHint_QSize_QLayoutItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + // MISSING: spacerItem ("QSpacerItem *"; QLayoutItem this) + _func[13] = new MemberFunction(c, "widget", _n_widget0, None, Compiled, qt_QLayoutItem_widget_QWidget_QLayoutItem, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QLayoutItem"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QLayoutType.cpp b/src/lib/mu/MuQt6/QLayoutType.cpp new file mode 100644 index 000000000..ab1ce1f91 --- /dev/null +++ b/src/lib/mu/MuQt6/QLayoutType.cpp @@ -0,0 +1,1376 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +MuQt_QLayout::MuQt_QLayout(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QLayout(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLayout")); +} + +void MuQt_QLayout::addItem(QLayoutItem * item) // pure virtual +{ + if (!_env) return; + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makelayoutitem(c,item,"qt.QLayoutItem")); + Value rval = _env->call(F, args); + } + else + { + defaultValue(); + } +} + +int MuQt_QLayout::count() const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return defaultValue(); + } +} + +int MuQt_QLayout::indexOf(const QWidget * widget) const +{ + if (!_env) return QLayout::indexOf(widget); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,widget,"qt.QWidget")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QLayout::indexOf(widget); + } +} + +int MuQt_QLayout::indexOf(const QLayoutItem * layoutItem) const +{ + if (!_env) return QLayout::indexOf(layoutItem); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makelayoutitem(c,layoutItem,"qt.QLayoutItem")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QLayout::indexOf(layoutItem); + } +} + +QLayoutItem * MuQt_QLayout::itemAt(int index) const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +QLayoutItem * MuQt_QLayout::replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options) +{ + if (!_env) return QLayout::replaceWidget(from, to, options); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,from,"qt.QWidget")); + args[2] = Value(makeinstance(c,to,"qt.QWidget")); + args[3] = Value(int(options)); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QLayout::replaceWidget(from, to, options); + } +} + +void MuQt_QLayout::setSpacing(int _p3) +{ + if (!_env) { QLayout::setSpacing(_p3); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(_p3); + Value rval = _env->call(F, args); + } + else + { + QLayout::setSpacing(_p3); + } +} + +int MuQt_QLayout::spacing() const +{ + if (!_env) return QLayout::spacing(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QLayout::spacing(); + } +} + +QLayoutItem * MuQt_QLayout::takeAt(int index) // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +QSizePolicy::ControlTypes MuQt_QLayout::controlTypes() const +{ + if (!_env) return QLayout::controlTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QSizePolicy::ControlTypes)(rval._int); + } + else + { + return QLayout::controlTypes(); + } +} + +Qt::Orientations MuQt_QLayout::expandingDirections() const +{ + if (!_env) return QLayout::expandingDirections(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::Orientations)(rval._int); + } + else + { + return QLayout::expandingDirections(); + } +} + +QRect MuQt_QLayout::geometry() const +{ + if (!_env) return QLayout::geometry(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QLayout::geometry(); + } +} + +void MuQt_QLayout::invalidate() +{ + if (!_env) { QLayout::invalidate(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QLayout::invalidate(); + } +} + +bool MuQt_QLayout::isEmpty() const +{ + if (!_env) return QLayout::isEmpty(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLayout::isEmpty(); + } +} + +QLayout * MuQt_QLayout::layout() +{ + if (!_env) return QLayout::layout(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QLayout::layout(); + } +} + +QSize MuQt_QLayout::maximumSize() const +{ + if (!_env) return QLayout::maximumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QLayout::maximumSize(); + } +} + +QSize MuQt_QLayout::minimumSize() const +{ + if (!_env) return QLayout::minimumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QLayout::minimumSize(); + } +} + +void MuQt_QLayout::setGeometry(const QRect & r) +{ + if (!_env) { QLayout::setGeometry(r); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,r,"qt.QRect")); + Value rval = _env->call(F, args); + } + else + { + QLayout::setGeometry(r); + } +} + +bool MuQt_QLayout::event(QEvent * e) +{ + if (!_env) return QLayout::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLayout::event(e); + } +} + +bool MuQt_QLayout::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QLayout::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLayout::eventFilter(watched, event); + } +} + +void MuQt_QLayout::customEvent(QEvent * event) +{ + if (!_env) { QLayout::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QLayout::customEvent(event); + } +} + +void MuQt_QLayout::timerEvent(QTimerEvent * event) +{ + if (!_env) { QLayout::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QLayout::timerEvent(event); + } +} + +bool MuQt_QLayout::hasHeightForWidth() const +{ + if (!_env) return QLayout::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLayout::hasHeightForWidth(); + } +} + +int MuQt_QLayout::heightForWidth(int _p3) const +{ + if (!_env) return QLayout::heightForWidth(_p3); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(_p3); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QLayout::heightForWidth(_p3); + } +} + +int MuQt_QLayout::minimumHeightForWidth(int w) const +{ + if (!_env) return QLayout::minimumHeightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QLayout::minimumHeightForWidth(w); + } +} + +QSize MuQt_QLayout::sizeHint() const // pure virtual +{ + if (!_env) return defaultValue(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return defaultValue(); + } +} + +QWidget * MuQt_QLayout::widget() const +{ + if (!_env) return QLayout::widget(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QLayout::widget(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QLayoutType::QLayoutType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QLayoutType::~QLayoutType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QLayout_QLayout_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QLayout* w = object(widget)) + { + QLayoutType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLayout"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QLayout_QLayout_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QLayout_QLayout_QLayout_QLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QLayout(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +bool qt_QLayout_activate_bool_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return arg0->activate(); +} + +void qt_QLayout_addItem_void_QLayout_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QLayoutItem * arg1 = layoutitem(param_item); + arg0->addItem(arg1); +} + +void qt_QLayout_addWidget_void_QLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_w); + arg0->addWidget(arg1); +} + +Pointer qt_QLayout_contentsMargins_QMargins_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return makeqtype(c,arg0->contentsMargins(),"qt.QMargins"); +} + +Pointer qt_QLayout_contentsRect_QRect_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return makeqtype(c,arg0->contentsRect(),"qt.QRect"); +} + +int qt_QLayout_count_int_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return arg0->count(); +} + +int qt_QLayout_indexOf_int_QLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + const QWidget * arg1 = object(param_widget); + return isMuQtObject(arg0) ? arg0->QLayout::indexOf(arg1) : arg0->indexOf(arg1); +} + +int qt_QLayout_indexOf_int_QLayout_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_layoutItem) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + const QLayoutItem * arg1 = layoutitem(param_layoutItem); + return isMuQtObject(arg0) ? arg0->QLayout::indexOf(arg1) : arg0->indexOf(arg1); +} + +bool qt_QLayout_isEnabled_bool_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return arg0->isEnabled(); +} + +Pointer qt_QLayout_itemAt_QLayoutItem_QLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makelayoutitem(c, arg0->itemAt(arg1), "qt.QLayoutItem"); +} + +Pointer qt_QLayout_menuBar_QWidget_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return makeinstance(c, arg0->menuBar(), "qt.QWidget"); +} + +Pointer qt_QLayout_parentWidget_QWidget_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return makeinstance(c, arg0->parentWidget(), "qt.QWidget"); +} + +void qt_QLayout_removeItem_void_QLayout_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QLayoutItem * arg1 = layoutitem(param_item); + arg0->removeItem(arg1); +} + +void qt_QLayout_removeWidget_void_QLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->removeWidget(arg1); +} + +Pointer qt_QLayout_replaceWidget_QLayoutItem_QLayout_QWidget_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_from, Pointer param_to, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_from); + QWidget * arg2 = object(param_to); + Qt::FindChildOptions arg3 = (Qt::FindChildOptions)(param_options); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QLayout::replaceWidget(arg1, arg2, arg3), "qt.QLayoutItem") : makelayoutitem(c, arg0->replaceWidget(arg1, arg2, arg3), "qt.QLayoutItem"); +} + +bool qt_QLayout_setAlignment_bool_QLayout_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_w, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_w); + Qt::Alignment arg2 = (Qt::Alignment)(param_alignment); + return arg0->setAlignment(arg1, arg2); +} + +bool qt_QLayout_setAlignment_bool_QLayout_QLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_l, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_l); + Qt::Alignment arg2 = (Qt::Alignment)(param_alignment); + return arg0->setAlignment(arg1, arg2); +} + +void qt_QLayout_setContentsMargins_void_QLayout_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_left, int param_top, int param_right, int param_bottom) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + int arg1 = (int)(param_left); + int arg2 = (int)(param_top); + int arg3 = (int)(param_right); + int arg4 = (int)(param_bottom); + arg0->setContentsMargins(arg1, arg2, arg3, arg4); +} + +void qt_QLayout_setContentsMargins_void_QLayout_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_margins) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + const QMargins arg1 = getqtype(param_margins); + arg0->setContentsMargins(arg1); +} + +void qt_QLayout_setEnabled_void_QLayout_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + bool arg1 = (bool)(param_enable); + arg0->setEnabled(arg1); +} + +void qt_QLayout_setMenuBar_void_QLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->setMenuBar(arg1); +} + +void qt_QLayout_setSpacing_void_QLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param__p3) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + int arg1 = (int)(param__p3); + if (isMuQtObject(arg0)) arg0->QLayout::setSpacing(arg1); + else arg0->setSpacing(arg1); +} + +int qt_QLayout_spacing_int_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLayout::spacing() : arg0->spacing(); +} + +Pointer qt_QLayout_takeAt_QLayoutItem_QLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makelayoutitem(c, arg0->takeAt(arg1), "qt.QLayoutItem"); +} + +void qt_QLayout_unsetContentsMargins_void_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + arg0->unsetContentsMargins(); +} + +void qt_QLayout_update_void_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + arg0->update(); +} + +int qt_QLayout_controlTypes_int_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QLayout::controlTypes()) : int(arg0->controlTypes()); +} + +int qt_QLayout_expandingDirections_int_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QLayout::expandingDirections()) : int(arg0->expandingDirections()); +} + +Pointer qt_QLayout_geometry_QRect_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QLayout::geometry(),"qt.QRect") : makeqtype(c,arg0->geometry(),"qt.QRect"); +} + +void qt_QLayout_invalidate_void_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QLayout::invalidate(); + else arg0->invalidate(); +} + +bool qt_QLayout_isEmpty_bool_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLayout::isEmpty() : arg0->isEmpty(); +} + +Pointer qt_QLayout_layout_QLayout_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QLayout::layout(), "qt.QLayout") : makeinstance(c, arg0->layout(), "qt.QLayout"); +} + +Pointer qt_QLayout_maximumSize_QSize_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QLayout::maximumSize(),"qt.QSize") : makeqtype(c,arg0->maximumSize(),"qt.QSize"); +} + +Pointer qt_QLayout_minimumSize_QSize_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QLayout::minimumSize(),"qt.QSize") : makeqtype(c,arg0->minimumSize(),"qt.QSize"); +} + +void qt_QLayout_setGeometry_void_QLayout_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + const QRect arg1 = getqtype(param_r); + if (isMuQtObject(arg0)) arg0->QLayout::setGeometry(arg1); + else arg0->setGeometry(arg1); +} + +void qt_QLayout_addChildLayout_void_QLayout_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_childLayout) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QLayout * arg1 = object(param_childLayout); + ((MuQt_QLayout*)arg0)->addChildLayout_pub(arg1); +} + +void qt_QLayout_addChildWidget_void_QLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_w); + ((MuQt_QLayout*)arg0)->addChildWidget_pub(arg1); +} + +Pointer qt_QLayout_alignmentRect_QRect_QLayout_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + const QRect arg1 = getqtype(param_r); + return makeqtype(c,((MuQt_QLayout*)arg0)->alignmentRect_pub(arg1),"qt.QRect"); +} + +bool qt_QLayout_event_bool_QLayout_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QLayout::event(arg1) : arg0->event(arg1); +} + +bool qt_QLayout_eventFilter_bool_QLayout_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QLayout::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QLayout_customEvent_void_QLayout_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLayout*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QLayout*)arg0)->customEvent_pub(arg1); +} + +void qt_QLayout_timerEvent_void_QLayout_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLayout*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QLayout*)arg0)->timerEvent_pub(arg1); +} + +bool qt_QLayout_hasHeightForWidth_bool_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLayout::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QLayout_heightForWidth_int_QLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param__p3) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + int arg1 = (int)(param__p3); + return isMuQtObject(arg0) ? arg0->QLayout::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +int qt_QLayout_minimumHeightForWidth_int_QLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QLayout::minimumHeightForWidth(arg1) : arg0->minimumHeightForWidth(arg1); +} + +Pointer qt_QLayout_sizeHint_QSize_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QLayout_widget_QWidget_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QLayout::widget(), "qt.QWidget") : makeinstance(c, arg0->widget(), "qt.QWidget"); +} + +Pointer qt_QLayout_closestAcceptableSize_QSize_QWidget_QSize(Mu::Thread& NODE_THREAD, Pointer param_widget, Pointer param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QWidget * arg0 = object(param_widget); + const QSize arg1 = getqtype(param_size); + return makeqtype(c,QLayout::closestAcceptableSize(arg0, arg1),"qt.QSize"); +} + + +static NODE_IMPLEMENTATION(_n_QLayout0, Pointer) +{ + NODE_RETURN(qt_QLayout_QLayout_QLayout_QLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_activate0, bool) +{ + NODE_RETURN(qt_QLayout_activate_bool_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addItem0, void) +{ + qt_QLayout_addItem_void_QLayout_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addWidget0, void) +{ + qt_QLayout_addWidget_void_QLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contentsMargins0, Pointer) +{ + NODE_RETURN(qt_QLayout_contentsMargins_QMargins_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contentsRect0, Pointer) +{ + NODE_RETURN(qt_QLayout_contentsRect_QRect_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QLayout_count_int_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexOf0, int) +{ + NODE_RETURN(qt_QLayout_indexOf_int_QLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexOf1, int) +{ + NODE_RETURN(qt_QLayout_indexOf_int_QLayout_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEnabled0, bool) +{ + NODE_RETURN(qt_QLayout_isEnabled_bool_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemAt0, Pointer) +{ + NODE_RETURN(qt_QLayout_itemAt_QLayoutItem_QLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_menuBar0, Pointer) +{ + NODE_RETURN(qt_QLayout_menuBar_QWidget_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_parentWidget0, Pointer) +{ + NODE_RETURN(qt_QLayout_parentWidget_QWidget_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeItem0, void) +{ + qt_QLayout_removeItem_void_QLayout_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removeWidget0, void) +{ + qt_QLayout_removeWidget_void_QLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_replaceWidget0, Pointer) +{ + NODE_RETURN(qt_QLayout_replaceWidget_QLayoutItem_QLayout_QWidget_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_setAlignment0, bool) +{ + NODE_RETURN(qt_QLayout_setAlignment_bool_QLayout_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_setAlignment1, bool) +{ + NODE_RETURN(qt_QLayout_setAlignment_bool_QLayout_QLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_setContentsMargins0, void) +{ + qt_QLayout_setContentsMargins_void_QLayout_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setContentsMargins1, void) +{ + qt_QLayout_setContentsMargins_void_QLayout_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setEnabled0, void) +{ + qt_QLayout_setEnabled_void_QLayout_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setMenuBar0, void) +{ + qt_QLayout_setMenuBar_void_QLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSpacing0, void) +{ + qt_QLayout_setSpacing_void_QLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_spacing0, int) +{ + NODE_RETURN(qt_QLayout_spacing_int_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_takeAt0, Pointer) +{ + NODE_RETURN(qt_QLayout_takeAt_QLayoutItem_QLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_unsetContentsMargins0, void) +{ + qt_QLayout_unsetContentsMargins_void_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_update0, void) +{ + qt_QLayout_update_void_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_controlTypes0, int) +{ + NODE_RETURN(qt_QLayout_controlTypes_int_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expandingDirections0, int) +{ + NODE_RETURN(qt_QLayout_expandingDirections_int_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_geometry0, Pointer) +{ + NODE_RETURN(qt_QLayout_geometry_QRect_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_invalidate0, void) +{ + qt_QLayout_invalidate_void_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QLayout_isEmpty_bool_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_layout0, Pointer) +{ + NODE_RETURN(qt_QLayout_layout_QLayout_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_maximumSize0, Pointer) +{ + NODE_RETURN(qt_QLayout_maximumSize_QSize_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumSize0, Pointer) +{ + NODE_RETURN(qt_QLayout_minimumSize_QSize_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setGeometry0, void) +{ + qt_QLayout_setGeometry_void_QLayout_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addChildLayout0, void) +{ + qt_QLayout_addChildLayout_void_QLayout_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addChildWidget0, void) +{ + qt_QLayout_addChildWidget_void_QLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_alignmentRect0, Pointer) +{ + NODE_RETURN(qt_QLayout_alignmentRect_QRect_QLayout_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QLayout_event_bool_QLayout_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QLayout_eventFilter_bool_QLayout_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QLayout_customEvent_void_QLayout_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QLayout_timerEvent_void_QLayout_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QLayout_hasHeightForWidth_bool_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QLayout_heightForWidth_int_QLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumHeightForWidth0, int) +{ + NODE_RETURN(qt_QLayout_minimumHeightForWidth_int_QLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QLayout_sizeHint_QSize_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QLayout_widget_QWidget_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closestAcceptableSize0, Pointer) +{ + NODE_RETURN(qt_QLayout_closestAcceptableSize_QSize_QWidget_QSize(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QLayoutType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QLayout_QLayout_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QLayout", _n_QLayout0, None, Compiled, qt_QLayout_QLayout_QLayout_QLayout_QWidget, Return, "qt.QLayout", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "activate", _n_activate0, None, Compiled, qt_QLayout_activate_bool_QLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[0] = new MemberFunction(c, "addItem", _n_addItem0, None, Compiled, qt_QLayout_addItem_void_QLayout_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "item", "qt.QLayoutItem"), End), + new Function(c, "addWidget", _n_addWidget0, None, Compiled, qt_QLayout_addWidget_void_QLayout_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "w", "qt.QWidget"), End), + new Function(c, "contentsMargins", _n_contentsMargins0, None, Compiled, qt_QLayout_contentsMargins_QMargins_QLayout, Return, "qt.QMargins", Parameters, new Param(c, "this", "qt.QLayout"), End), + new Function(c, "contentsRect", _n_contentsRect0, None, Compiled, qt_QLayout_contentsRect_QRect_QLayout, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[1] = new MemberFunction(c, "count", _n_count0, None, Compiled, qt_QLayout_count_int_QLayout, Return, "int", Parameters, new Param(c, "this", "qt.QLayout"), End), + // MISSING: getContentsMargins (void; QLayout this, "int *" left, "int *" top, "int *" right, "int *" bottom) + _func[2] = new MemberFunction(c, "indexOf", _n_indexOf0, None, Compiled, qt_QLayout_indexOf_int_QLayout_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "widget", "qt.QWidget"), End), + _func[3] = new MemberFunction(c, "indexOf", _n_indexOf1, None, Compiled, qt_QLayout_indexOf_int_QLayout_QLayoutItem, Return, "int", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "layoutItem", "qt.QLayoutItem"), End), + new Function(c, "isEnabled", _n_isEnabled0, None, Compiled, qt_QLayout_isEnabled_bool_QLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[4] = new MemberFunction(c, "itemAt", _n_itemAt0, None, Compiled, qt_QLayout_itemAt_QLayoutItem_QLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "index", "int"), End), + new Function(c, "menuBar", _n_menuBar0, None, Compiled, qt_QLayout_menuBar_QWidget_QLayout, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QLayout"), End), + new Function(c, "parentWidget", _n_parentWidget0, None, Compiled, qt_QLayout_parentWidget_QWidget_QLayout, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QLayout"), End), + new Function(c, "removeItem", _n_removeItem0, None, Compiled, qt_QLayout_removeItem_void_QLayout_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "item", "qt.QLayoutItem"), End), + new Function(c, "removeWidget", _n_removeWidget0, None, Compiled, qt_QLayout_removeWidget_void_QLayout_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "widget", "qt.QWidget"), End), + _func[5] = new MemberFunction(c, "replaceWidget", _n_replaceWidget0, None, Compiled, qt_QLayout_replaceWidget_QLayoutItem_QLayout_QWidget_QWidget_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "from", "qt.QWidget"), new Param(c, "to", "qt.QWidget"), new Param(c, "options", "int", Value((int)Qt::FindChildrenRecursively)), End), + new Function(c, "setAlignment", _n_setAlignment0, None, Compiled, qt_QLayout_setAlignment_bool_QLayout_QWidget_int, Return, "bool", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "w", "qt.QWidget"), new Param(c, "alignment", "int"), End), + new Function(c, "setAlignment", _n_setAlignment1, None, Compiled, qt_QLayout_setAlignment_bool_QLayout_QLayout_int, Return, "bool", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "l", "qt.QLayout"), new Param(c, "alignment", "int"), End), + new Function(c, "setContentsMargins", _n_setContentsMargins0, None, Compiled, qt_QLayout_setContentsMargins_void_QLayout_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "left", "int"), new Param(c, "top", "int"), new Param(c, "right", "int"), new Param(c, "bottom", "int"), End), + new Function(c, "setContentsMargins", _n_setContentsMargins1, None, Compiled, qt_QLayout_setContentsMargins_void_QLayout_QMargins, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "margins", "qt.QMargins"), End), + new Function(c, "setEnabled", _n_setEnabled0, None, Compiled, qt_QLayout_setEnabled_void_QLayout_bool, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "enable", "bool"), End), + new Function(c, "setMenuBar", _n_setMenuBar0, None, Compiled, qt_QLayout_setMenuBar_void_QLayout_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: setSizeConstraint (void; QLayout this, flags QLayout::SizeConstraint _p23) + _func[6] = new MemberFunction(c, "setSpacing", _n_setSpacing0, None, Compiled, qt_QLayout_setSpacing_void_QLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "_p3", "int"), End), + // PROP: sizeConstraint (flags QLayout::SizeConstraint; QLayout this) + _func[7] = new MemberFunction(c, "spacing", _n_spacing0, None, Compiled, qt_QLayout_spacing_int_QLayout, Return, "int", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[8] = new MemberFunction(c, "takeAt", _n_takeAt0, None, Compiled, qt_QLayout_takeAt_QLayoutItem_QLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "index", "int"), End), + new Function(c, "unsetContentsMargins", _n_unsetContentsMargins0, None, Compiled, qt_QLayout_unsetContentsMargins_void_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), End), + new Function(c, "update", _n_update0, None, Compiled, qt_QLayout_update_void_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[9] = new MemberFunction(c, "controlTypes", _n_controlTypes0, None, Compiled, qt_QLayout_controlTypes_int_QLayout, Return, "int", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[10] = new MemberFunction(c, "expandingDirections", _n_expandingDirections0, None, Compiled, qt_QLayout_expandingDirections_int_QLayout, Return, "int", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[11] = new MemberFunction(c, "geometry", _n_geometry0, None, Compiled, qt_QLayout_geometry_QRect_QLayout, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[12] = new MemberFunction(c, "invalidate", _n_invalidate0, None, Compiled, qt_QLayout_invalidate_void_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[13] = new MemberFunction(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QLayout_isEmpty_bool_QLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[14] = new MemberFunction(c, "layout", _n_layout0, None, Compiled, qt_QLayout_layout_QLayout_QLayout, Return, "qt.QLayout", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[15] = new MemberFunction(c, "maximumSize", _n_maximumSize0, None, Compiled, qt_QLayout_maximumSize_QSize_QLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[16] = new MemberFunction(c, "minimumSize", _n_minimumSize0, None, Compiled, qt_QLayout_minimumSize_QSize_QLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[17] = new MemberFunction(c, "setGeometry", _n_setGeometry0, None, Compiled, qt_QLayout_setGeometry_void_QLayout_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "r", "qt.QRect"), End), + new Function(c, "addChildLayout", _n_addChildLayout0, None, Compiled, qt_QLayout_addChildLayout_void_QLayout_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "childLayout", "qt.QLayout"), End), + new Function(c, "addChildWidget", _n_addChildWidget0, None, Compiled, qt_QLayout_addChildWidget_void_QLayout_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "w", "qt.QWidget"), End), + new Function(c, "alignmentRect", _n_alignmentRect0, None, Compiled, qt_QLayout_alignmentRect_QRect_QLayout_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "r", "qt.QRect"), End), + // MISSING: childEvent (void; QLayout this, "QChildEvent *" e) // protected + _func[18] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QLayout_event_bool_QLayout_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "e", "qt.QEvent"), End), + _func[19] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QLayout_eventFilter_bool_QLayout_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QLayout this) + // MISSING: connectNotify (void; QLayout this, "const QMetaMethod &" signal) // protected + _func[20] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QLayout_customEvent_void_QLayout_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QLayout this, "const QMetaMethod &" signal) // protected + _func[21] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QLayout_timerEvent_void_QLayout_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[22] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QLayout_hasHeightForWidth_bool_QLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QLayout"), End), + _func[23] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QLayout_heightForWidth_int_QLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "_p3", "int"), End), + _func[24] = new MemberFunction(c, "minimumHeightForWidth", _n_minimumHeightForWidth0, None, Compiled, qt_QLayout_minimumHeightForWidth_int_QLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QLayout"), new Param(c, "w", "int"), End), + _func[25] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QLayout_sizeHint_QSize_QLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QLayout"), End), + // MISSING: spacerItem ("QSpacerItem *"; QLayout this) + _func[26] = new MemberFunction(c, "widget", _n_widget0, None, Compiled, qt_QLayout_widget_QWidget_QLayout, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QLayout"), End), + // static functions + new Function(c, "closestAcceptableSize", _n_closestAcceptableSize0, None, Compiled, qt_QLayout_closestAcceptableSize_QSize_QWidget_QSize, Return, "qt.QSize", Parameters, new Param(c, "widget", "qt.QWidget"), new Param(c, "size", "qt.QSize"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char* propExclusions[] = {"setSpacing", "spacing", 0}; + + populate(this, QLayout::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QLineEditType.cpp b/src/lib/mu/MuQt6/QLineEditType.cpp new file mode 100644 index 000000000..859c9441d --- /dev/null +++ b/src/lib/mu/MuQt6/QLineEditType.cpp @@ -0,0 +1,1693 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QLineEdit::~MuQt_QLineEdit() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QLineEdit::MuQt_QLineEdit(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QLineEdit(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLineEdit")); +} + +MuQt_QLineEdit::MuQt_QLineEdit(Pointer muobj, const CallEnvironment* ce, const QString & contents, QWidget * parent) + : QLineEdit(contents, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLineEdit")); +} + +bool MuQt_QLineEdit::event(QEvent * e) +{ + if (!_env) return QLineEdit::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLineEdit::event(e); + } +} + +QVariant MuQt_QLineEdit::inputMethodQuery(Qt::InputMethodQuery property) const +{ + if (!_env) return QLineEdit::inputMethodQuery(property); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(property)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QLineEdit::inputMethodQuery(property); + } +} + +QSize MuQt_QLineEdit::minimumSizeHint() const +{ + if (!_env) return QLineEdit::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QLineEdit::minimumSizeHint(); + } +} + +QSize MuQt_QLineEdit::sizeHint() const +{ + if (!_env) return QLineEdit::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QLineEdit::sizeHint(); + } +} + +void MuQt_QLineEdit::timerEvent(QTimerEvent * e) +{ + if (!_env) { QLineEdit::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::timerEvent(e); + } +} + +void MuQt_QLineEdit::changeEvent(QEvent * ev) +{ + if (!_env) { QLineEdit::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::changeEvent(ev); + } +} + +void MuQt_QLineEdit::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QLineEdit::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::contextMenuEvent(event); + } +} + +void MuQt_QLineEdit::dragEnterEvent(QDragEnterEvent * e) +{ + if (!_env) { QLineEdit::dragEnterEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::dragEnterEvent(e); + } +} + +void MuQt_QLineEdit::dragLeaveEvent(QDragLeaveEvent * e) +{ + if (!_env) { QLineEdit::dragLeaveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::dragLeaveEvent(e); + } +} + +void MuQt_QLineEdit::dragMoveEvent(QDragMoveEvent * e) +{ + if (!_env) { QLineEdit::dragMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::dragMoveEvent(e); + } +} + +void MuQt_QLineEdit::dropEvent(QDropEvent * e) +{ + if (!_env) { QLineEdit::dropEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::dropEvent(e); + } +} + +void MuQt_QLineEdit::focusInEvent(QFocusEvent * e) +{ + if (!_env) { QLineEdit::focusInEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::focusInEvent(e); + } +} + +void MuQt_QLineEdit::focusOutEvent(QFocusEvent * e) +{ + if (!_env) { QLineEdit::focusOutEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::focusOutEvent(e); + } +} + +void MuQt_QLineEdit::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QLineEdit::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::keyPressEvent(event); + } +} + +void MuQt_QLineEdit::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QLineEdit::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::keyReleaseEvent(e); + } +} + +void MuQt_QLineEdit::mouseDoubleClickEvent(QMouseEvent * e) +{ + if (!_env) { QLineEdit::mouseDoubleClickEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::mouseDoubleClickEvent(e); + } +} + +void MuQt_QLineEdit::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QLineEdit::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::mouseMoveEvent(e); + } +} + +void MuQt_QLineEdit::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QLineEdit::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::mousePressEvent(e); + } +} + +void MuQt_QLineEdit::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QLineEdit::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::mouseReleaseEvent(e); + } +} + +void MuQt_QLineEdit::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QLineEdit::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::paintEvent(_p14); + } +} + +bool MuQt_QLineEdit::hasHeightForWidth() const +{ + if (!_env) return QLineEdit::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLineEdit::hasHeightForWidth(); + } +} + +int MuQt_QLineEdit::heightForWidth(int w) const +{ + if (!_env) return QLineEdit::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QLineEdit::heightForWidth(w); + } +} + +void MuQt_QLineEdit::closeEvent(QCloseEvent * event) +{ + if (!_env) { QLineEdit::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::closeEvent(event); + } +} + +bool MuQt_QLineEdit::focusNextPrevChild(bool next) +{ + if (!_env) return QLineEdit::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLineEdit::focusNextPrevChild(next); + } +} + +void MuQt_QLineEdit::hideEvent(QHideEvent * event) +{ + if (!_env) { QLineEdit::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::hideEvent(event); + } +} + +void MuQt_QLineEdit::leaveEvent(QEvent * event) +{ + if (!_env) { QLineEdit::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::leaveEvent(event); + } +} + +void MuQt_QLineEdit::moveEvent(QMoveEvent * event) +{ + if (!_env) { QLineEdit::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::moveEvent(event); + } +} + +void MuQt_QLineEdit::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QLineEdit::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::resizeEvent(event); + } +} + +void MuQt_QLineEdit::showEvent(QShowEvent * event) +{ + if (!_env) { QLineEdit::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::showEvent(event); + } +} + +void MuQt_QLineEdit::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QLineEdit::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::tabletEvent(event); + } +} + +void MuQt_QLineEdit::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QLineEdit::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QLineEdit::wheelEvent(event); + } +} + +int MuQt_QLineEdit::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QLineEdit::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QLineEdit::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QLineEditType::QLineEditType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QLineEditType::~QLineEditType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QLineEdit_QLineEdit_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QLineEdit* w = object(widget)) + { + QLineEditType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLineEdit"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QLineEdit_QLineEdit_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QLineEdit_QLineEdit_QLineEdit_QLineEdit_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QLineEdit(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QLineEdit_QLineEdit_QLineEdit_QLineEdit_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_contents, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_contents); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QLineEdit(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +void qt_QLineEdit_addAction_void_QLineEdit_QAction_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_action, int param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QAction * arg1 = object(param_action); + QLineEdit::ActionPosition arg2 = (QLineEdit::ActionPosition)(param_position); + arg0->addAction(arg1, arg2); +} + +Pointer qt_QLineEdit_addAction_QAction_QLineEdit_QIcon_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, int param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + const QIcon arg1 = getqtype(param_icon); + QLineEdit::ActionPosition arg2 = (QLineEdit::ActionPosition)(param_position); + return makeinstance(c, arg0->addAction(arg1, arg2), "qt.QAction"); +} + +void qt_QLineEdit_backspace_void_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + arg0->backspace(); +} + +Pointer qt_QLineEdit_completer_QCompleter_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + return makeinstance(c, arg0->completer(), "qt.QCompleter"); +} + +Pointer qt_QLineEdit_createStandardContextMenu_QMenu_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + return makeinstance(c, arg0->createStandardContextMenu(), "qt.QMenu"); +} + +void qt_QLineEdit_cursorBackward_void_QLineEdit_bool_int(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_mark, int param_steps) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + bool arg1 = (bool)(param_mark); + int arg2 = (int)(param_steps); + arg0->cursorBackward(arg1, arg2); +} + +void qt_QLineEdit_cursorForward_void_QLineEdit_bool_int(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_mark, int param_steps) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + bool arg1 = (bool)(param_mark); + int arg2 = (int)(param_steps); + arg0->cursorForward(arg1, arg2); +} + +int qt_QLineEdit_cursorPositionAt_int_QLineEdit_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return arg0->cursorPositionAt(arg1); +} + +void qt_QLineEdit_cursorWordBackward_void_QLineEdit_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_mark) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + bool arg1 = (bool)(param_mark); + arg0->cursorWordBackward(arg1); +} + +void qt_QLineEdit_cursorWordForward_void_QLineEdit_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_mark) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + bool arg1 = (bool)(param_mark); + arg0->cursorWordForward(arg1); +} + +void qt_QLineEdit_del_void_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + arg0->del(); +} + +void qt_QLineEdit_deselect_void_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + arg0->deselect(); +} + +void qt_QLineEdit_end_void_QLineEdit_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_mark) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + bool arg1 = (bool)(param_mark); + arg0->end(arg1); +} + +void qt_QLineEdit_home_void_QLineEdit_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_mark) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + bool arg1 = (bool)(param_mark); + arg0->home(arg1); +} + +void qt_QLineEdit_insert_void_QLineEdit_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_newText) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + const QString arg1 = qstring(param_newText); + arg0->insert(arg1); +} + +int qt_QLineEdit_selectionEnd_int_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + return arg0->selectionEnd(); +} + +int qt_QLineEdit_selectionLength_int_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + return arg0->selectionLength(); +} + +int qt_QLineEdit_selectionStart_int_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + return arg0->selectionStart(); +} + +void qt_QLineEdit_setCompleter_void_QLineEdit_QCompleter(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_c) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QCompleter * arg1 = object(param_c); + arg0->setCompleter(arg1); +} + +void qt_QLineEdit_setSelection_void_QLineEdit_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_start, int param_length) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + int arg1 = (int)(param_start); + int arg2 = (int)(param_length); + arg0->setSelection(arg1, arg2); +} + +void qt_QLineEdit_setTextMargins_void_QLineEdit_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_left, int param_top, int param_right, int param_bottom) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + int arg1 = (int)(param_left); + int arg2 = (int)(param_top); + int arg3 = (int)(param_right); + int arg4 = (int)(param_bottom); + arg0->setTextMargins(arg1, arg2, arg3, arg4); +} + +void qt_QLineEdit_setTextMargins_void_QLineEdit_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_margins) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + const QMargins arg1 = getqtype(param_margins); + arg0->setTextMargins(arg1); +} + +Pointer qt_QLineEdit_textMargins_QMargins_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + return makeqtype(c,arg0->textMargins(),"qt.QMargins"); +} + +bool qt_QLineEdit_event_bool_QLineEdit_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QLineEdit::event(arg1) : arg0->event(arg1); +} + +Pointer qt_QLineEdit_inputMethodQuery_QVariant_QLineEdit_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_property) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_property); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QLineEdit::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QLineEdit_minimumSizeHint_QSize_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QLineEdit::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QLineEdit_sizeHint_QSize_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QLineEdit::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QLineEdit_timerEvent_void_QLineEdit_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) arg0->QLineEdit::timerEvent(arg1); + else arg0->timerEvent(arg1); +} + +Pointer qt_QLineEdit_cursorRect_QRect_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + return makeqtype(c,((MuQt_QLineEdit*)arg0)->cursorRect_pub(),"qt.QRect"); +} + +void qt_QLineEdit_changeEvent_void_QLineEdit_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->changeEvent_pub(arg1); +} + +void qt_QLineEdit_contextMenuEvent_void_QLineEdit_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QLineEdit_dragEnterEvent_void_QLineEdit_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QLineEdit_dragLeaveEvent_void_QLineEdit_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QLineEdit_dragMoveEvent_void_QLineEdit_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QLineEdit_dropEvent_void_QLineEdit_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->dropEvent_pub(arg1); +} + +void qt_QLineEdit_focusInEvent_void_QLineEdit_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QLineEdit_focusOutEvent_void_QLineEdit_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QLineEdit_keyPressEvent_void_QLineEdit_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QLineEdit_keyReleaseEvent_void_QLineEdit_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QLineEdit_mouseDoubleClickEvent_void_QLineEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QLineEdit_mouseMoveEvent_void_QLineEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QLineEdit_mousePressEvent_void_QLineEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QLineEdit_mouseReleaseEvent_void_QLineEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QLineEdit_paintEvent_void_QLineEdit_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->paintEvent_pub(arg1); +} + +bool qt_QLineEdit_hasHeightForWidth_bool_QLineEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLineEdit::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QLineEdit_heightForWidth_int_QLineEdit_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QLineEdit::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +void qt_QLineEdit_closeEvent_void_QLineEdit_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->closeEvent_pub(arg1); +} + +bool qt_QLineEdit_focusNextPrevChild_bool_QLineEdit_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QLineEdit*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QLineEdit*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QLineEdit_hideEvent_void_QLineEdit_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->hideEvent_pub(arg1); +} + +void qt_QLineEdit_leaveEvent_void_QLineEdit_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QLineEdit_moveEvent_void_QLineEdit_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->moveEvent_pub(arg1); +} + +void qt_QLineEdit_resizeEvent_void_QLineEdit_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QLineEdit_showEvent_void_QLineEdit_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->showEvent_pub(arg1); +} + +void qt_QLineEdit_tabletEvent_void_QLineEdit_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QLineEdit_wheelEvent_void_QLineEdit_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QLineEdit*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QLineEdit*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QLineEdit_metric_int_QLineEdit_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLineEdit* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QLineEdit*)arg0)->metric_pub_parent(arg1) : ((MuQt_QLineEdit*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QLineEdit0, Pointer) +{ + NODE_RETURN(qt_QLineEdit_QLineEdit_QLineEdit_QLineEdit_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QLineEdit1, Pointer) +{ + NODE_RETURN(qt_QLineEdit_QLineEdit_QLineEdit_QLineEdit_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addAction0, void) +{ + qt_QLineEdit_addAction_void_QLineEdit_QAction_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_addAction1, Pointer) +{ + NODE_RETURN(qt_QLineEdit_addAction_QAction_QLineEdit_QIcon_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_backspace0, void) +{ + qt_QLineEdit_backspace_void_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_completer0, Pointer) +{ + NODE_RETURN(qt_QLineEdit_completer_QCompleter_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createStandardContextMenu0, Pointer) +{ + NODE_RETURN(qt_QLineEdit_createStandardContextMenu_QMenu_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cursorBackward0, void) +{ + qt_QLineEdit_cursorBackward_void_QLineEdit_bool_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_cursorForward0, void) +{ + qt_QLineEdit_cursorForward_void_QLineEdit_bool_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_cursorPositionAt0, int) +{ + NODE_RETURN(qt_QLineEdit_cursorPositionAt_int_QLineEdit_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cursorWordBackward0, void) +{ + qt_QLineEdit_cursorWordBackward_void_QLineEdit_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_cursorWordForward0, void) +{ + qt_QLineEdit_cursorWordForward_void_QLineEdit_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_del0, void) +{ + qt_QLineEdit_del_void_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_deselect0, void) +{ + qt_QLineEdit_deselect_void_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_end0, void) +{ + qt_QLineEdit_end_void_QLineEdit_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_home0, void) +{ + qt_QLineEdit_home_void_QLineEdit_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_insert0, void) +{ + qt_QLineEdit_insert_void_QLineEdit_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_selectionEnd0, int) +{ + NODE_RETURN(qt_QLineEdit_selectionEnd_int_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionLength0, int) +{ + NODE_RETURN(qt_QLineEdit_selectionLength_int_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionStart0, int) +{ + NODE_RETURN(qt_QLineEdit_selectionStart_int_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCompleter0, void) +{ + qt_QLineEdit_setCompleter_void_QLineEdit_QCompleter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QLineEdit_setSelection_void_QLineEdit_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setTextMargins0, void) +{ + qt_QLineEdit_setTextMargins_void_QLineEdit_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setTextMargins1, void) +{ + qt_QLineEdit_setTextMargins_void_QLineEdit_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_textMargins0, Pointer) +{ + NODE_RETURN(qt_QLineEdit_textMargins_QMargins_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QLineEdit_event_bool_QLineEdit_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QLineEdit_inputMethodQuery_QVariant_QLineEdit_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QLineEdit_minimumSizeHint_QSize_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QLineEdit_sizeHint_QSize_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QLineEdit_timerEvent_void_QLineEdit_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_cursorRect0, Pointer) +{ + NODE_RETURN(qt_QLineEdit_cursorRect_QRect_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QLineEdit_changeEvent_void_QLineEdit_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QLineEdit_contextMenuEvent_void_QLineEdit_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QLineEdit_dragEnterEvent_void_QLineEdit_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QLineEdit_dragLeaveEvent_void_QLineEdit_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QLineEdit_dragMoveEvent_void_QLineEdit_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QLineEdit_dropEvent_void_QLineEdit_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QLineEdit_focusInEvent_void_QLineEdit_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QLineEdit_focusOutEvent_void_QLineEdit_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QLineEdit_keyPressEvent_void_QLineEdit_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QLineEdit_keyReleaseEvent_void_QLineEdit_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QLineEdit_mouseDoubleClickEvent_void_QLineEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QLineEdit_mouseMoveEvent_void_QLineEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QLineEdit_mousePressEvent_void_QLineEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QLineEdit_mouseReleaseEvent_void_QLineEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QLineEdit_paintEvent_void_QLineEdit_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QLineEdit_hasHeightForWidth_bool_QLineEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QLineEdit_heightForWidth_int_QLineEdit_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QLineEdit_closeEvent_void_QLineEdit_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QLineEdit_focusNextPrevChild_bool_QLineEdit_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QLineEdit_hideEvent_void_QLineEdit_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QLineEdit_leaveEvent_void_QLineEdit_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QLineEdit_moveEvent_void_QLineEdit_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QLineEdit_resizeEvent_void_QLineEdit_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QLineEdit_showEvent_void_QLineEdit_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QLineEdit_tabletEvent_void_QLineEdit_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QLineEdit_wheelEvent_void_QLineEdit_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QLineEdit_metric_int_QLineEdit_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QLineEditType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QLineEdit_QLineEdit_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QLineEdit", _n_QLineEdit0, None, Compiled, qt_QLineEdit_QLineEdit_QLineEdit_QLineEdit_QWidget, Return, "qt.QLineEdit", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QLineEdit", _n_QLineEdit1, None, Compiled, qt_QLineEdit_QLineEdit_QLineEdit_QLineEdit_string_QWidget, Return, "qt.QLineEdit", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "contents", "string"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addAction", _n_addAction0, None, Compiled, qt_QLineEdit_addAction_void_QLineEdit_QAction_int, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "action", "qt.QAction"), new Param(c, "position", "int"), End), + new Function(c, "addAction", _n_addAction1, None, Compiled, qt_QLineEdit_addAction_QAction_QLineEdit_QIcon_int, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "icon", "qt.QIcon"), new Param(c, "position", "int"), End), + // PROP: alignment (flags Qt::Alignment; QLineEdit this) + new Function(c, "backspace", _n_backspace0, None, Compiled, qt_QLineEdit_backspace_void_QLineEdit, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + new Function(c, "completer", _n_completer0, None, Compiled, qt_QLineEdit_completer_QCompleter_QLineEdit, Return, "qt.QCompleter", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + new Function(c, "createStandardContextMenu", _n_createStandardContextMenu0, None, Compiled, qt_QLineEdit_createStandardContextMenu_QMenu_QLineEdit, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + new Function(c, "cursorBackward", _n_cursorBackward0, None, Compiled, qt_QLineEdit_cursorBackward_void_QLineEdit_bool_int, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "mark", "bool"), new Param(c, "steps", "int", Value((int)1)), End), + new Function(c, "cursorForward", _n_cursorForward0, None, Compiled, qt_QLineEdit_cursorForward_void_QLineEdit_bool_int, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "mark", "bool"), new Param(c, "steps", "int", Value((int)1)), End), + // PROP: cursorMoveStyle (flags Qt::CursorMoveStyle; QLineEdit this) + // PROP: cursorPosition (int; QLineEdit this) + new Function(c, "cursorPositionAt", _n_cursorPositionAt0, None, Compiled, qt_QLineEdit_cursorPositionAt_int_QLineEdit_QPoint, Return, "int", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "cursorWordBackward", _n_cursorWordBackward0, None, Compiled, qt_QLineEdit_cursorWordBackward_void_QLineEdit_bool, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "mark", "bool"), End), + new Function(c, "cursorWordForward", _n_cursorWordForward0, None, Compiled, qt_QLineEdit_cursorWordForward_void_QLineEdit_bool, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "mark", "bool"), End), + new Function(c, "del", _n_del0, None, Compiled, qt_QLineEdit_del_void_QLineEdit, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + new Function(c, "deselect", _n_deselect0, None, Compiled, qt_QLineEdit_deselect_void_QLineEdit, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + // PROP: displayText (string; QLineEdit this) + // PROP: dragEnabled (bool; QLineEdit this) + // PROP: echoMode (flags QLineEdit::EchoMode; QLineEdit this) + new Function(c, "end", _n_end0, None, Compiled, qt_QLineEdit_end_void_QLineEdit_bool, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "mark", "bool"), End), + // PROP: hasAcceptableInput (bool; QLineEdit this) + // PROP: hasFrame (bool; QLineEdit this) + // PROP: hasSelectedText (bool; QLineEdit this) + new Function(c, "home", _n_home0, None, Compiled, qt_QLineEdit_home_void_QLineEdit_bool, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "mark", "bool"), End), + // PROP: inputMask (string; QLineEdit this) + new Function(c, "insert", _n_insert0, None, Compiled, qt_QLineEdit_insert_void_QLineEdit_string, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "newText", "string"), End), + // PROP: isClearButtonEnabled (bool; QLineEdit this) + // PROP: isModified (bool; QLineEdit this) + // PROP: isReadOnly (bool; QLineEdit this) + // PROP: isRedoAvailable (bool; QLineEdit this) + // PROP: isUndoAvailable (bool; QLineEdit this) + // PROP: maxLength (int; QLineEdit this) + // PROP: placeholderText (string; QLineEdit this) + // PROP: selectedText (string; QLineEdit this) + new Function(c, "selectionEnd", _n_selectionEnd0, None, Compiled, qt_QLineEdit_selectionEnd_int_QLineEdit, Return, "int", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + new Function(c, "selectionLength", _n_selectionLength0, None, Compiled, qt_QLineEdit_selectionLength_int_QLineEdit, Return, "int", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + new Function(c, "selectionStart", _n_selectionStart0, None, Compiled, qt_QLineEdit_selectionStart_int_QLineEdit, Return, "int", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + // PROP: setAlignment (void; QLineEdit this, flags Qt::Alignment flag) + // PROP: setClearButtonEnabled (void; QLineEdit this, bool enable) + new Function(c, "setCompleter", _n_setCompleter0, None, Compiled, qt_QLineEdit_setCompleter_void_QLineEdit_QCompleter, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "c", "qt.QCompleter"), End), + // PROP: setCursorMoveStyle (void; QLineEdit this, flags Qt::CursorMoveStyle style) + // PROP: setCursorPosition (void; QLineEdit this, int _p3) + // PROP: setDragEnabled (void; QLineEdit this, bool b) + // PROP: setEchoMode (void; QLineEdit this, flags QLineEdit::EchoMode _p19) + // PROP: setFrame (void; QLineEdit this, bool _p4) + // PROP: setInputMask (void; QLineEdit this, string inputMask) + // PROP: setMaxLength (void; QLineEdit this, int _p3) + // PROP: setModified (void; QLineEdit this, bool _p4) + // PROP: setPlaceholderText (void; QLineEdit this, string _p16) + // PROP: setReadOnly (void; QLineEdit this, bool _p4) + new Function(c, "setSelection", _n_setSelection0, None, Compiled, qt_QLineEdit_setSelection_void_QLineEdit_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "start", "int"), new Param(c, "length", "int"), End), + new Function(c, "setTextMargins", _n_setTextMargins0, None, Compiled, qt_QLineEdit_setTextMargins_void_QLineEdit_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "left", "int"), new Param(c, "top", "int"), new Param(c, "right", "int"), new Param(c, "bottom", "int"), End), + new Function(c, "setTextMargins", _n_setTextMargins1, None, Compiled, qt_QLineEdit_setTextMargins_void_QLineEdit_QMargins, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "margins", "qt.QMargins"), End), + // MISSING: setValidator (void; QLineEdit this, "const QValidator *" v) + // PROP: text (string; QLineEdit this) + new Function(c, "textMargins", _n_textMargins0, None, Compiled, qt_QLineEdit_textMargins_QMargins_QLineEdit, Return, "qt.QMargins", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + // MISSING: validator ("const QValidator *"; QLineEdit this) + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QLineEdit_event_bool_QLineEdit_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QLineEdit_inputMethodQuery_QVariant_QLineEdit_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "property", "int"), End), + _func[2] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QLineEdit_minimumSizeHint_QSize_QLineEdit, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + _func[3] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QLineEdit_sizeHint_QSize_QLineEdit, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + _func[4] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QLineEdit_timerEvent_void_QLineEdit_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QTimerEvent"), End), + new Function(c, "cursorRect", _n_cursorRect0, None, Compiled, qt_QLineEdit_cursorRect_QRect_QLineEdit, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + // MISSING: initStyleOption (void; QLineEdit this, "QStyleOptionFrame *" option) // protected + _func[5] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QLineEdit_changeEvent_void_QLineEdit_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "ev", "qt.QEvent"), End), + _func[6] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QLineEdit_contextMenuEvent_void_QLineEdit_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[7] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QLineEdit_dragEnterEvent_void_QLineEdit_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QDragEnterEvent"), End), + _func[8] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QLineEdit_dragLeaveEvent_void_QLineEdit_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QDragLeaveEvent"), End), + _func[9] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QLineEdit_dragMoveEvent_void_QLineEdit_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QDragMoveEvent"), End), + _func[10] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QLineEdit_dropEvent_void_QLineEdit_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QDropEvent"), End), + _func[11] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QLineEdit_focusInEvent_void_QLineEdit_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[12] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QLineEdit_focusOutEvent_void_QLineEdit_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QLineEdit this, "QInputMethodEvent *" e) // protected + _func[13] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QLineEdit_keyPressEvent_void_QLineEdit_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[14] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QLineEdit_keyReleaseEvent_void_QLineEdit_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[15] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QLineEdit_mouseDoubleClickEvent_void_QLineEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[16] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QLineEdit_mouseMoveEvent_void_QLineEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[17] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QLineEdit_mousePressEvent_void_QLineEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[18] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QLineEdit_mouseReleaseEvent_void_QLineEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[19] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QLineEdit_paintEvent_void_QLineEdit_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "_p14", "qt.QPaintEvent"), End), + _func[20] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QLineEdit_hasHeightForWidth_bool_QLineEdit, Return, "bool", Parameters, new Param(c, "this", "qt.QLineEdit"), End), + _func[21] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QLineEdit_heightForWidth_int_QLineEdit_int, Return, "int", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "w", "int"), End), + // MISSING: paintEngine ("QPaintEngine *"; QLineEdit this) + // MISSING: actionEvent (void; QLineEdit this, "QActionEvent *" event) // protected + _func[22] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QLineEdit_closeEvent_void_QLineEdit_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "event", "qt.QCloseEvent"), End), + // MISSING: enterEvent (void; QLineEdit this, "QEnterEvent *" event) // protected + _func[23] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QLineEdit_focusNextPrevChild_bool_QLineEdit_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "next", "bool"), End), + _func[24] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QLineEdit_hideEvent_void_QLineEdit_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "event", "qt.QHideEvent"), End), + _func[25] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QLineEdit_leaveEvent_void_QLineEdit_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "event", "qt.QEvent"), End), + _func[26] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QLineEdit_moveEvent_void_QLineEdit_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QLineEdit this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[27] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QLineEdit_resizeEvent_void_QLineEdit_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[28] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QLineEdit_showEvent_void_QLineEdit_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "event", "qt.QShowEvent"), End), + _func[29] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QLineEdit_tabletEvent_void_QLineEdit_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[30] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QLineEdit_wheelEvent_void_QLineEdit_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QLineEdit this, "QPainter *" painter) // protected + _func[31] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QLineEdit_metric_int_QLineEdit_int, Return, "int", Parameters, new Param(c, "this", "qt.QLineEdit"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QLineEdit::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QLinearGradientType.cpp b/src/lib/mu/MuQt6/QLinearGradientType.cpp new file mode 100644 index 000000000..f46d343f2 --- /dev/null +++ b/src/lib/mu/MuQt6/QLinearGradientType.cpp @@ -0,0 +1,259 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QLinearGradientType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QLinearGradientType::QLinearGradientType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QLinearGradientType::~QLinearGradientType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QLinearGradientType::Instance* i = new QLinearGradientType::Instance((Class*)NODE_THIS.type()); + QLinearGradientType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QLinearGradientType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QLinearGradientType::finalizer, 0, 0, 0); +} + +void +QLinearGradientType::finalizer (void* obj, void* data) +{ + QLinearGradientType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QLinearGradient_QLinearGradient_QLinearGradient_QLinearGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QLinearGradient()); + return param_this; +} + +Pointer qt_QLinearGradient_QLinearGradient_QLinearGradient_QLinearGradient_QPointF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_start, Pointer param_finalStop) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPointF arg1 = getqtype(param_start); + const QPointF arg2 = getqtype(param_finalStop); + setqtype(param_this,QLinearGradient(arg1, arg2)); + return param_this; +} + +Pointer qt_QLinearGradient_QLinearGradient_QLinearGradient_QLinearGradient_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x1, double param_y1, double param_x2, double param_y2) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg1 = (double)(param_x1); + qreal arg2 = (double)(param_y1); + qreal arg3 = (double)(param_x2); + qreal arg4 = (double)(param_y2); + setqtype(param_this,QLinearGradient(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QLinearGradient_finalStop_QPointF_QLinearGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLinearGradient arg0 = getqtype(param_this); + return makeqtype(c,arg0.finalStop(),"qt.QPointF"); +} + +void qt_QLinearGradient_setFinalStop_void_QLinearGradient_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_stop) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLinearGradient arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_stop); + arg0.setFinalStop(arg1); + setqtype(param_this,arg0); +} + +void qt_QLinearGradient_setFinalStop_void_QLinearGradient_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLinearGradient arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + qreal arg2 = (double)(param_y); + arg0.setFinalStop(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QLinearGradient_setStart_void_QLinearGradient_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_start) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLinearGradient arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_start); + arg0.setStart(arg1); + setqtype(param_this,arg0); +} + +void qt_QLinearGradient_setStart_void_QLinearGradient_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLinearGradient arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + qreal arg2 = (double)(param_y); + arg0.setStart(arg1, arg2); + setqtype(param_this,arg0); +} + +Pointer qt_QLinearGradient_start_QPointF_QLinearGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLinearGradient arg0 = getqtype(param_this); + return makeqtype(c,arg0.start(),"qt.QPointF"); +} + + +static NODE_IMPLEMENTATION(_n_QLinearGradient0, Pointer) +{ + NODE_RETURN(qt_QLinearGradient_QLinearGradient_QLinearGradient_QLinearGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QLinearGradient1, Pointer) +{ + NODE_RETURN(qt_QLinearGradient_QLinearGradient_QLinearGradient_QLinearGradient_QPointF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QLinearGradient2, Pointer) +{ + NODE_RETURN(qt_QLinearGradient_QLinearGradient_QLinearGradient_QLinearGradient_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double))); +} + +static NODE_IMPLEMENTATION(_n_finalStop0, Pointer) +{ + NODE_RETURN(qt_QLinearGradient_finalStop_QPointF_QLinearGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setFinalStop0, void) +{ + qt_QLinearGradient_setFinalStop_void_QLinearGradient_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFinalStop1, void) +{ + qt_QLinearGradient_setFinalStop_void_QLinearGradient_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double)); +} + +static NODE_IMPLEMENTATION(_n_setStart0, void) +{ + qt_QLinearGradient_setStart_void_QLinearGradient_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setStart1, void) +{ + qt_QLinearGradient_setStart_void_QLinearGradient_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double)); +} + +static NODE_IMPLEMENTATION(_n_start0, Pointer) +{ + NODE_RETURN(qt_QLinearGradient_start_QPointF_QLinearGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QLinearGradientType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QLinearGradient", _n_QLinearGradient0, None, Compiled, qt_QLinearGradient_QLinearGradient_QLinearGradient_QLinearGradient, Return, "qt.QLinearGradient", Parameters, new Param(c, "this", "qt.QLinearGradient"), End), + new Function(c, "QLinearGradient", _n_QLinearGradient1, None, Compiled, qt_QLinearGradient_QLinearGradient_QLinearGradient_QLinearGradient_QPointF_QPointF, Return, "qt.QLinearGradient", Parameters, new Param(c, "this", "qt.QLinearGradient"), new Param(c, "start", "qt.QPointF"), new Param(c, "finalStop", "qt.QPointF"), End), + new Function(c, "QLinearGradient", _n_QLinearGradient2, None, Compiled, qt_QLinearGradient_QLinearGradient_QLinearGradient_QLinearGradient_double_double_double_double, Return, "qt.QLinearGradient", Parameters, new Param(c, "this", "qt.QLinearGradient"), new Param(c, "x1", "double"), new Param(c, "y1", "double"), new Param(c, "x2", "double"), new Param(c, "y2", "double"), End), + new Function(c, "finalStop", _n_finalStop0, None, Compiled, qt_QLinearGradient_finalStop_QPointF_QLinearGradient, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QLinearGradient"), End), + new Function(c, "setFinalStop", _n_setFinalStop0, None, Compiled, qt_QLinearGradient_setFinalStop_void_QLinearGradient_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QLinearGradient"), new Param(c, "stop", "qt.QPointF"), End), + new Function(c, "setFinalStop", _n_setFinalStop1, None, Compiled, qt_QLinearGradient_setFinalStop_void_QLinearGradient_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QLinearGradient"), new Param(c, "x", "double"), new Param(c, "y", "double"), End), + new Function(c, "setStart", _n_setStart0, None, Compiled, qt_QLinearGradient_setStart_void_QLinearGradient_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QLinearGradient"), new Param(c, "start", "qt.QPointF"), End), + new Function(c, "setStart", _n_setStart1, None, Compiled, qt_QLinearGradient_setStart_void_QLinearGradient_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QLinearGradient"), new Param(c, "x", "double"), new Param(c, "y", "double"), End), + new Function(c, "start", _n_start0, None, Compiled, qt_QLinearGradient_start_QPointF_QLinearGradient, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QLinearGradient"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QListViewType.cpp b/src/lib/mu/MuQt6/QListViewType.cpp new file mode 100644 index 000000000..194b5bb28 --- /dev/null +++ b/src/lib/mu/MuQt6/QListViewType.cpp @@ -0,0 +1,1856 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QListView::~MuQt_QListView() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QListView::MuQt_QListView(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QListView(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QListView")); +} + +QModelIndex MuQt_QListView::indexAt(const QPoint & p) const +{ + if (!_env) return QListView::indexAt(p); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,p,"qt.QPoint")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QListView::indexAt(p); + } +} + +void MuQt_QListView::scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) +{ + if (!_env) { QListView::scrollTo(index, hint); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(hint)); + Value rval = _env->call(F, args); + } + else + { + QListView::scrollTo(index, hint); + } +} + +void MuQt_QListView::setRootIndex(const QModelIndex & index) +{ + if (!_env) { QListView::setRootIndex(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QListView::setRootIndex(index); + } +} + +QRect MuQt_QListView::visualRect(const QModelIndex & index) const +{ + if (!_env) return QListView::visualRect(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QListView::visualRect(index); + } +} + +void MuQt_QListView::currentChanged(const QModelIndex & current, const QModelIndex & previous) +{ + if (!_env) { QListView::currentChanged(current, previous); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,current,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,previous,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QListView::currentChanged(current, previous); + } +} + +void MuQt_QListView::dragLeaveEvent(QDragLeaveEvent * e) +{ + if (!_env) { QListView::dragLeaveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::dragLeaveEvent(e); + } +} + +void MuQt_QListView::dragMoveEvent(QDragMoveEvent * e) +{ + if (!_env) { QListView::dragMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::dragMoveEvent(e); + } +} + +void MuQt_QListView::dropEvent(QDropEvent * event) +{ + if (!_env) { QListView::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::dropEvent(event); + } +} + +bool MuQt_QListView::event(QEvent * e) +{ + if (!_env) return QListView::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QListView::event(e); + } +} + +int MuQt_QListView::horizontalOffset() const +{ + if (!_env) return QListView::horizontalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QListView::horizontalOffset(); + } +} + +bool MuQt_QListView::isIndexHidden(const QModelIndex & index) const +{ + if (!_env) return QListView::isIndexHidden(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QListView::isIndexHidden(index); + } +} + +void MuQt_QListView::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QListView::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::mouseMoveEvent(e); + } +} + +void MuQt_QListView::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QListView::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::mouseReleaseEvent(e); + } +} + +void MuQt_QListView::paintEvent(QPaintEvent * e) +{ + if (!_env) { QListView::paintEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::paintEvent(e); + } +} + +void MuQt_QListView::resizeEvent(QResizeEvent * e) +{ + if (!_env) { QListView::resizeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::resizeEvent(e); + } +} + +void MuQt_QListView::rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end) +{ + if (!_env) { QListView::rowsAboutToBeRemoved(parent, start, end); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + args[2] = Value(start); + args[3] = Value(end); + Value rval = _env->call(F, args); + } + else + { + QListView::rowsAboutToBeRemoved(parent, start, end); + } +} + +void MuQt_QListView::rowsInserted(const QModelIndex & parent, int start, int end) +{ + if (!_env) { QListView::rowsInserted(parent, start, end); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + args[2] = Value(start); + args[3] = Value(end); + Value rval = _env->call(F, args); + } + else + { + QListView::rowsInserted(parent, start, end); + } +} + +void MuQt_QListView::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QListView::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QListView::scrollContentsBy(dx, dy); + } +} + +QModelIndexList MuQt_QListView::selectedIndexes() const +{ + if (!_env) return QListView::selectedIndexes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QListView::selectedIndexes(); + } +} + +void MuQt_QListView::selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) +{ + if (!_env) { QListView::selectionChanged(selected, deselected); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selected,"qt.QItemSelection")); + args[2] = Value(makeqtype(c,deselected,"qt.QItemSelection")); + Value rval = _env->call(F, args); + } + else + { + QListView::selectionChanged(selected, deselected); + } +} + +void MuQt_QListView::setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) +{ + if (!_env) { QListView::setSelection(rect, command); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + args[2] = Value(int(command)); + Value rval = _env->call(F, args); + } + else + { + QListView::setSelection(rect, command); + } +} + +void MuQt_QListView::startDrag(Qt::DropActions supportedActions) +{ + if (!_env) { QListView::startDrag(supportedActions); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(supportedActions)); + Value rval = _env->call(F, args); + } + else + { + QListView::startDrag(supportedActions); + } +} + +void MuQt_QListView::timerEvent(QTimerEvent * e) +{ + if (!_env) { QListView::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::timerEvent(e); + } +} + +void MuQt_QListView::updateGeometries() +{ + if (!_env) { QListView::updateGeometries(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QListView::updateGeometries(); + } +} + +int MuQt_QListView::verticalOffset() const +{ + if (!_env) return QListView::verticalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QListView::verticalOffset(); + } +} + +QSize MuQt_QListView::viewportSizeHint() const +{ + if (!_env) return QListView::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QListView::viewportSizeHint(); + } +} + +QRegion MuQt_QListView::visualRegionForSelection(const QItemSelection & selection) const +{ + if (!_env) return QListView::visualRegionForSelection(selection); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selection,"qt.QItemSelection")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QListView::visualRegionForSelection(selection); + } +} + +void MuQt_QListView::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QListView::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::wheelEvent(e); + } +} + +void MuQt_QListView::keyboardSearch(const QString & search) +{ + if (!_env) { QListView::keyboardSearch(search); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makestring(c,search)); + Value rval = _env->call(F, args); + } + else + { + QListView::keyboardSearch(search); + } +} + +void MuQt_QListView::setModel(QAbstractItemModel * model) +{ + if (!_env) { QListView::setModel(model); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,model,"qt.QAbstractItemModel")); + Value rval = _env->call(F, args); + } + else + { + QListView::setModel(model); + } +} + +void MuQt_QListView::setSelectionModel(QItemSelectionModel * selectionModel) +{ + if (!_env) { QListView::setSelectionModel(selectionModel); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,selectionModel,"qt.QItemSelectionModel")); + Value rval = _env->call(F, args); + } + else + { + QListView::setSelectionModel(selectionModel); + } +} + +int MuQt_QListView::sizeHintForColumn(int column) const +{ + if (!_env) return QListView::sizeHintForColumn(column); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QListView::sizeHintForColumn(column); + } +} + +int MuQt_QListView::sizeHintForRow(int row) const +{ + if (!_env) return QListView::sizeHintForRow(row); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QListView::sizeHintForRow(row); + } +} + +QVariant MuQt_QListView::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QListView::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QListView::inputMethodQuery(query); + } +} + +bool MuQt_QListView::edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) +{ + if (!_env) return QListView::edit(index, trigger, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[34]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(trigger)); + args[3] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QListView::edit(index, trigger, event); + } +} + +QItemSelectionModel::SelectionFlags MuQt_QListView::selectionCommand(const QModelIndex & index, const QEvent * event) const +{ + if (!_env) return QListView::selectionCommand(index, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[35]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (QItemSelectionModel::SelectionFlags)(rval._int); + } + else + { + return QListView::selectionCommand(index, event); + } +} + +void MuQt_QListView::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QListView::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[36]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::dragEnterEvent(event); + } +} + +bool MuQt_QListView::eventFilter(QObject * object, QEvent * event) +{ + if (!_env) return QListView::eventFilter(object, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[37]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,object,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QListView::eventFilter(object, event); + } +} + +void MuQt_QListView::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QListView::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[38]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::focusInEvent(event); + } +} + +bool MuQt_QListView::focusNextPrevChild(bool next) +{ + if (!_env) return QListView::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[39]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QListView::focusNextPrevChild(next); + } +} + +void MuQt_QListView::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QListView::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[40]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::focusOutEvent(event); + } +} + +void MuQt_QListView::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QListView::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[41]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::keyPressEvent(event); + } +} + +void MuQt_QListView::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QListView::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[42]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::mouseDoubleClickEvent(event); + } +} + +void MuQt_QListView::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QListView::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[43]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QListView::mousePressEvent(event); + } +} + +bool MuQt_QListView::viewportEvent(QEvent * event) +{ + if (!_env) return QListView::viewportEvent(event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[44]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QListView::viewportEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QListViewType::QListViewType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QListViewType::~QListViewType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QListView_QListView_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QListView* w = object(widget)) + { + QListViewType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QListView"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QListView_QListView_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QListView_QListView_QListView_QListView_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QListView(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QListView_clearPropertyFlags_void_QListView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + arg0->clearPropertyFlags(); +} + +bool qt_QListView_isRowHidden_bool_QListView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + int arg1 = (int)(param_row); + return arg0->isRowHidden(arg1); +} + +void qt_QListView_setRowHidden_void_QListView_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, bool param_hide) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + int arg1 = (int)(param_row); + bool arg2 = (bool)(param_hide); + arg0->setRowHidden(arg1, arg2); +} + +Pointer qt_QListView_indexAt_QModelIndex_QListView_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_p); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QListView::indexAt(arg1),"qt.QModelIndex") : makeqtype(c,arg0->indexAt(arg1),"qt.QModelIndex"); +} + +void qt_QListView_scrollTo_void_QListView_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_hint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::ScrollHint arg2 = (QAbstractItemView::ScrollHint)(param_hint); + if (isMuQtObject(arg0)) arg0->QListView::scrollTo(arg1, arg2); + else arg0->scrollTo(arg1, arg2); +} + +void qt_QListView_setRootIndex_void_QListView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + if (isMuQtObject(arg0)) arg0->QListView::setRootIndex(arg1); + else arg0->setRootIndex(arg1); +} + +Pointer qt_QListView_visualRect_QRect_QListView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QListView::visualRect(arg1),"qt.QRect") : makeqtype(c,arg0->visualRect(arg1),"qt.QRect"); +} + +Pointer qt_QListView_rectForIndex_QRect_QListView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeqtype(c,((MuQt_QListView*)arg0)->rectForIndex_pub(arg1),"qt.QRect"); +} + +void qt_QListView_setPositionForIndex_void_QListView_QPoint_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_position); + const QModelIndex arg2 = getqtype(param_index); + ((MuQt_QListView*)arg0)->setPositionForIndex_pub(arg1, arg2); +} + +void qt_QListView_currentChanged_void_QListView_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_current, Pointer param_previous) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_current); + const QModelIndex arg2 = getqtype(param_previous); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->currentChanged_pub_parent(arg1, arg2); + else ((MuQt_QListView*)arg0)->currentChanged_pub(arg1, arg2); +} + +void qt_QListView_dragLeaveEvent_void_QListView_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QListView_dragMoveEvent_void_QListView_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QListView_dropEvent_void_QListView_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QListView_event_bool_QListView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QListView*)arg0)->event_pub_parent(arg1) : ((MuQt_QListView*)arg0)->event_pub(arg1); +} + +int qt_QListView_horizontalOffset_int_QListView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QListView*)arg0)->horizontalOffset_pub_parent() : ((MuQt_QListView*)arg0)->horizontalOffset_pub(); +} + +bool qt_QListView_isIndexHidden_bool_QListView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? ((MuQt_QListView*)arg0)->isIndexHidden_pub_parent(arg1) : ((MuQt_QListView*)arg0)->isIndexHidden_pub(arg1); +} + +void qt_QListView_mouseMoveEvent_void_QListView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QListView_mouseReleaseEvent_void_QListView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QListView_paintEvent_void_QListView_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->paintEvent_pub(arg1); +} + +void qt_QListView_resizeEvent_void_QListView_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QListView_rowsAboutToBeRemoved_void_QListView_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_start, int param_end) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_start); + int arg3 = (int)(param_end); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->rowsAboutToBeRemoved_pub_parent(arg1, arg2, arg3); + else ((MuQt_QListView*)arg0)->rowsAboutToBeRemoved_pub(arg1, arg2, arg3); +} + +void qt_QListView_rowsInserted_void_QListView_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_start, int param_end) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_start); + int arg3 = (int)(param_end); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->rowsInserted_pub_parent(arg1, arg2, arg3); + else ((MuQt_QListView*)arg0)->rowsInserted_pub(arg1, arg2, arg3); +} + +void qt_QListView_scrollContentsBy_void_QListView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QListView*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +Pointer qt_QListView_selectedIndexes_qt__QModelIndexBSB_ESB__QListView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,((MuQt_QListView*)arg0)->selectedIndexes_pub_parent()) : makeqmodelindexlist(c,((MuQt_QListView*)arg0)->selectedIndexes_pub()); +} + +void qt_QListView_selectionChanged_void_QListView_QItemSelection_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selected, Pointer param_deselected) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selected); + const QItemSelection arg2 = getqtype(param_deselected); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->selectionChanged_pub_parent(arg1, arg2); + else ((MuQt_QListView*)arg0)->selectionChanged_pub(arg1, arg2); +} + +void qt_QListView_setSelection_void_QListView_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_command); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->setSelection_pub_parent(arg1, arg2); + else ((MuQt_QListView*)arg0)->setSelection_pub(arg1, arg2); +} + +void qt_QListView_startDrag_void_QListView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_supportedActions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + Qt::DropActions arg1 = (Qt::DropActions)(param_supportedActions); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->startDrag_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->startDrag_pub(arg1); +} + +void qt_QListView_timerEvent_void_QListView_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->timerEvent_pub(arg1); +} + +void qt_QListView_updateGeometries_void_QListView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->updateGeometries_pub_parent(); + else ((MuQt_QListView*)arg0)->updateGeometries_pub(); +} + +int qt_QListView_verticalOffset_int_QListView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QListView*)arg0)->verticalOffset_pub_parent() : ((MuQt_QListView*)arg0)->verticalOffset_pub(); +} + +Pointer qt_QListView_viewportSizeHint_QSize_QListView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QListView*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QListView*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +Pointer qt_QListView_visualRegionForSelection_QRegion_QListView_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selection); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QListView*)arg0)->visualRegionForSelection_pub_parent(arg1),"qt.QRegion") : makeqtype(c,((MuQt_QListView*)arg0)->visualRegionForSelection_pub(arg1),"qt.QRegion"); +} + +void qt_QListView_wheelEvent_void_QListView_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->wheelEvent_pub(arg1); +} + +void qt_QListView_keyboardSearch_void_QListView_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_search) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QString arg1 = qstring(param_search); + if (isMuQtObject(arg0)) arg0->QListView::keyboardSearch(arg1); + else arg0->keyboardSearch(arg1); +} + +void qt_QListView_setModel_void_QListView_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QAbstractItemModel * arg1 = object(param_model); + if (isMuQtObject(arg0)) arg0->QListView::setModel(arg1); + else arg0->setModel(arg1); +} + +void qt_QListView_setSelectionModel_void_QListView_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selectionModel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QItemSelectionModel * arg1 = object(param_selectionModel); + if (isMuQtObject(arg0)) arg0->QListView::setSelectionModel(arg1); + else arg0->setSelectionModel(arg1); +} + +int qt_QListView_sizeHintForColumn_int_QListView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return isMuQtObject(arg0) ? arg0->QListView::sizeHintForColumn(arg1) : arg0->sizeHintForColumn(arg1); +} + +int qt_QListView_sizeHintForRow_int_QListView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + int arg1 = (int)(param_row); + return isMuQtObject(arg0) ? arg0->QListView::sizeHintForRow(arg1) : arg0->sizeHintForRow(arg1); +} + +Pointer qt_QListView_inputMethodQuery_QVariant_QListView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QListView::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +bool qt_QListView_edit_bool_QListView_QModelIndex_int_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_trigger, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::EditTrigger arg2 = (QAbstractItemView::EditTrigger)(param_trigger); + QEvent * arg3 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QListView*)arg0)->edit_pub_parent(arg1, arg2, arg3) : ((MuQt_QListView*)arg0)->edit_pub(arg1, arg2, arg3); +} + +int qt_QListView_selectionCommand_int_QListView_QModelIndex_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + const QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? int(((MuQt_QListView*)arg0)->selectionCommand_pub_parent(arg1, arg2)) : int(((MuQt_QListView*)arg0)->selectionCommand_pub(arg1, arg2)); +} + +void qt_QListView_dragEnterEvent_void_QListView_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->dragEnterEvent_pub(arg1); +} + +bool qt_QListView_eventFilter_bool_QListView_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QObject * arg1 = object(param_object); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QListView*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QListView*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QListView_focusInEvent_void_QListView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QListView_focusNextPrevChild_bool_QListView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QListView*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QListView*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QListView_focusOutEvent_void_QListView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QListView_keyPressEvent_void_QListView_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QListView_mouseDoubleClickEvent_void_QListView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QListView_mousePressEvent_void_QListView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QListView*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QListView*)arg0)->mousePressEvent_pub(arg1); +} + +bool qt_QListView_viewportEvent_bool_QListView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QListView*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QListView*)arg0)->viewportEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QListView0, Pointer) +{ + NODE_RETURN(qt_QListView_QListView_QListView_QListView_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearPropertyFlags0, void) +{ + qt_QListView_clearPropertyFlags_void_QListView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isRowHidden0, bool) +{ + NODE_RETURN(qt_QListView_isRowHidden_bool_QListView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setRowHidden0, void) +{ + qt_QListView_setRowHidden_void_QListView_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_indexAt0, Pointer) +{ + NODE_RETURN(qt_QListView_indexAt_QModelIndex_QListView_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scrollTo0, void) +{ + qt_QListView_scrollTo_void_QListView_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setRootIndex0, void) +{ + qt_QListView_setRootIndex_void_QListView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_visualRect0, Pointer) +{ + NODE_RETURN(qt_QListView_visualRect_QRect_QListView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rectForIndex0, Pointer) +{ + NODE_RETURN(qt_QListView_rectForIndex_QRect_QListView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setPositionForIndex0, void) +{ + qt_QListView_setPositionForIndex_void_QListView_QPoint_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_currentChanged0, void) +{ + qt_QListView_currentChanged_void_QListView_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QListView_dragLeaveEvent_void_QListView_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QListView_dragMoveEvent_void_QListView_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QListView_dropEvent_void_QListView_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QListView_event_bool_QListView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_horizontalOffset0, int) +{ + NODE_RETURN(qt_QListView_horizontalOffset_int_QListView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIndexHidden0, bool) +{ + NODE_RETURN(qt_QListView_isIndexHidden_bool_QListView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QListView_mouseMoveEvent_void_QListView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QListView_mouseReleaseEvent_void_QListView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QListView_paintEvent_void_QListView_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QListView_resizeEvent_void_QListView_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_rowsAboutToBeRemoved0, void) +{ + qt_QListView_rowsAboutToBeRemoved_void_QListView_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_rowsInserted0, void) +{ + qt_QListView_rowsInserted_void_QListView_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QListView_scrollContentsBy_void_QListView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectedIndexes0, Pointer) +{ + NODE_RETURN(qt_QListView_selectedIndexes_qt__QModelIndexBSB_ESB__QListView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionChanged0, void) +{ + qt_QListView_selectionChanged_void_QListView_QItemSelection_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QListView_setSelection_void_QListView_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_startDrag0, void) +{ + qt_QListView_startDrag_void_QListView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QListView_timerEvent_void_QListView_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_updateGeometries0, void) +{ + qt_QListView_updateGeometries_void_QListView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_verticalOffset0, int) +{ + NODE_RETURN(qt_QListView_verticalOffset_int_QListView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QListView_viewportSizeHint_QSize_QListView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualRegionForSelection0, Pointer) +{ + NODE_RETURN(qt_QListView_visualRegionForSelection_QRegion_QListView_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QListView_wheelEvent_void_QListView_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyboardSearch0, void) +{ + qt_QListView_keyboardSearch_void_QListView_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setModel0, void) +{ + qt_QListView_setModel_void_QListView_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelectionModel0, void) +{ + qt_QListView_setSelectionModel_void_QListView_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForColumn0, int) +{ + NODE_RETURN(qt_QListView_sizeHintForColumn_int_QListView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForRow0, int) +{ + NODE_RETURN(qt_QListView_sizeHintForRow_int_QListView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QListView_inputMethodQuery_QVariant_QListView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_edit0, bool) +{ + NODE_RETURN(qt_QListView_edit_bool_QListView_QModelIndex_int_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionCommand0, int) +{ + NODE_RETURN(qt_QListView_selectionCommand_int_QListView_QModelIndex_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QListView_dragEnterEvent_void_QListView_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QListView_eventFilter_bool_QListView_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QListView_focusInEvent_void_QListView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QListView_focusNextPrevChild_bool_QListView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QListView_focusOutEvent_void_QListView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QListView_keyPressEvent_void_QListView_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QListView_mouseDoubleClickEvent_void_QListView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QListView_mousePressEvent_void_QListView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QListView_viewportEvent_bool_QListView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QListViewType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QListView_QListView_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QListView", _n_QListView0, None, Compiled, qt_QListView_QListView_QListView_QListView_QWidget, Return, "qt.QListView", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: batchSize (int; QListView this) + new Function(c, "clearPropertyFlags", _n_clearPropertyFlags0, None, Compiled, qt_QListView_clearPropertyFlags_void_QListView, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), End), + // PROP: flow (flags QListView::Flow; QListView this) + // PROP: gridSize (QSize; QListView this) + new Function(c, "isRowHidden", _n_isRowHidden0, None, Compiled, qt_QListView_isRowHidden_bool_QListView_int, Return, "bool", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "row", "int"), End), + // PROP: isSelectionRectVisible (bool; QListView this) + // PROP: isWrapping (bool; QListView this) + // PROP: itemAlignment (flags Qt::Alignment; QListView this) + // PROP: layoutMode (flags QListView::LayoutMode; QListView this) + // PROP: modelColumn (int; QListView this) + // PROP: movement (flags QListView::Movement; QListView this) + // PROP: resizeMode (flags QListView::ResizeMode; QListView this) + // PROP: setBatchSize (void; QListView this, int batchSize) + // PROP: setFlow (void; QListView this, flags QListView::Flow flow) + // PROP: setGridSize (void; QListView this, QSize size) + // PROP: setItemAlignment (void; QListView this, flags Qt::Alignment alignment) + // PROP: setLayoutMode (void; QListView this, flags QListView::LayoutMode mode) + // PROP: setModelColumn (void; QListView this, int column) + // PROP: setMovement (void; QListView this, flags QListView::Movement movement) + // PROP: setResizeMode (void; QListView this, flags QListView::ResizeMode mode) + new Function(c, "setRowHidden", _n_setRowHidden0, None, Compiled, qt_QListView_setRowHidden_void_QListView_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "row", "int"), new Param(c, "hide", "bool"), End), + // PROP: setSelectionRectVisible (void; QListView this, bool show) + // PROP: setSpacing (void; QListView this, int space) + // PROP: setUniformItemSizes (void; QListView this, bool enable) + // PROP: setViewMode (void; QListView this, flags QListView::ViewMode mode) + // PROP: setWordWrap (void; QListView this, bool on) + // PROP: setWrapping (void; QListView this, bool enable) + // PROP: spacing (int; QListView this) + // PROP: uniformItemSizes (bool; QListView this) + // PROP: viewMode (flags QListView::ViewMode; QListView this) + // PROP: wordWrap (bool; QListView this) + _func[0] = new MemberFunction(c, "indexAt", _n_indexAt0, None, Compiled, qt_QListView_indexAt_QModelIndex_QListView_QPoint, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "p", "qt.QPoint"), End), + _func[1] = new MemberFunction(c, "scrollTo", _n_scrollTo0, None, Compiled, qt_QListView_scrollTo_void_QListView_QModelIndex_int, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "hint", "int", Value((int)QAbstractItemView::EnsureVisible)), End), + _func[2] = new MemberFunction(c, "setRootIndex", _n_setRootIndex0, None, Compiled, qt_QListView_setRootIndex_void_QListView_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[3] = new MemberFunction(c, "visualRect", _n_visualRect0, None, Compiled, qt_QListView_visualRect_QRect_QListView_QModelIndex, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "rectForIndex", _n_rectForIndex0, None, Compiled, qt_QListView_rectForIndex_QRect_QListView_QModelIndex, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "setPositionForIndex", _n_setPositionForIndex0, None, Compiled, qt_QListView_setPositionForIndex_void_QListView_QPoint_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "position", "qt.QPoint"), new Param(c, "index", "qt.QModelIndex"), End), + _func[4] = new MemberFunction(c, "currentChanged", _n_currentChanged0, None, Compiled, qt_QListView_currentChanged_void_QListView_QModelIndex_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "current", "qt.QModelIndex"), new Param(c, "previous", "qt.QModelIndex"), End), + // MISSING: dataChanged (void; QListView this, QModelIndex topLeft, QModelIndex bottomRight, "const QList &" roles) // protected + _func[5] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QListView_dragLeaveEvent_void_QListView_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "e", "qt.QDragLeaveEvent"), End), + _func[6] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QListView_dragMoveEvent_void_QListView_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "e", "qt.QDragMoveEvent"), End), + _func[7] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QListView_dropEvent_void_QListView_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "event", "qt.QDropEvent"), End), + _func[8] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QListView_event_bool_QListView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "e", "qt.QEvent"), End), + _func[9] = new MemberFunction(c, "horizontalOffset", _n_horizontalOffset0, None, Compiled, qt_QListView_horizontalOffset_int_QListView, Return, "int", Parameters, new Param(c, "this", "qt.QListView"), End), + // MISSING: initViewItemOption (void; QListView this, "QStyleOptionViewItem *" option) // protected + _func[10] = new MemberFunction(c, "isIndexHidden", _n_isIndexHidden0, None, Compiled, qt_QListView_isIndexHidden_bool_QListView_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[11] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QListView_mouseMoveEvent_void_QListView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[12] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QListView_mouseReleaseEvent_void_QListView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[13] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QListView_paintEvent_void_QListView_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "e", "qt.QPaintEvent"), End), + _func[14] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QListView_resizeEvent_void_QListView_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "e", "qt.QResizeEvent"), End), + _func[15] = new MemberFunction(c, "rowsAboutToBeRemoved", _n_rowsAboutToBeRemoved0, None, Compiled, qt_QListView_rowsAboutToBeRemoved_void_QListView_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "start", "int"), new Param(c, "end", "int"), End), + _func[16] = new MemberFunction(c, "rowsInserted", _n_rowsInserted0, None, Compiled, qt_QListView_rowsInserted_void_QListView_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "start", "int"), new Param(c, "end", "int"), End), + _func[17] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QListView_scrollContentsBy_void_QListView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[18] = new MemberFunction(c, "selectedIndexes", _n_selectedIndexes0, None, Compiled, qt_QListView_selectedIndexes_qt__QModelIndexBSB_ESB__QListView, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QListView"), End), + _func[19] = new MemberFunction(c, "selectionChanged", _n_selectionChanged0, None, Compiled, qt_QListView_selectionChanged_void_QListView_QItemSelection_QItemSelection, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "selected", "qt.QItemSelection"), new Param(c, "deselected", "qt.QItemSelection"), End), + _func[20] = new MemberFunction(c, "setSelection", _n_setSelection0, None, Compiled, qt_QListView_setSelection_void_QListView_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "rect", "qt.QRect"), new Param(c, "command", "int"), End), + _func[21] = new MemberFunction(c, "startDrag", _n_startDrag0, None, Compiled, qt_QListView_startDrag_void_QListView_int, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "supportedActions", "int"), End), + _func[22] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QListView_timerEvent_void_QListView_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "e", "qt.QTimerEvent"), End), + _func[23] = new MemberFunction(c, "updateGeometries", _n_updateGeometries0, None, Compiled, qt_QListView_updateGeometries_void_QListView, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), End), + _func[24] = new MemberFunction(c, "verticalOffset", _n_verticalOffset0, None, Compiled, qt_QListView_verticalOffset_int_QListView, Return, "int", Parameters, new Param(c, "this", "qt.QListView"), End), + _func[25] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QListView_viewportSizeHint_QSize_QListView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QListView"), End), + _func[26] = new MemberFunction(c, "visualRegionForSelection", _n_visualRegionForSelection0, None, Compiled, qt_QListView_visualRegionForSelection_QRegion_QListView_QItemSelection, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "selection", "qt.QItemSelection"), End), + _func[27] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QListView_wheelEvent_void_QListView_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "e", "qt.QWheelEvent"), End), + // MISSING: itemDelegateForIndex ("QAbstractItemDelegate *"; QListView this, QModelIndex index) + _func[28] = new MemberFunction(c, "keyboardSearch", _n_keyboardSearch0, None, Compiled, qt_QListView_keyboardSearch_void_QListView_string, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "search", "string"), End), + _func[29] = new MemberFunction(c, "setModel", _n_setModel0, None, Compiled, qt_QListView_setModel_void_QListView_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "model", "qt.QAbstractItemModel"), End), + _func[30] = new MemberFunction(c, "setSelectionModel", _n_setSelectionModel0, None, Compiled, qt_QListView_setSelectionModel_void_QListView_QItemSelectionModel, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "selectionModel", "qt.QItemSelectionModel"), End), + _func[31] = new MemberFunction(c, "sizeHintForColumn", _n_sizeHintForColumn0, None, Compiled, qt_QListView_sizeHintForColumn_int_QListView_int, Return, "int", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "column", "int"), End), + _func[32] = new MemberFunction(c, "sizeHintForRow", _n_sizeHintForRow0, None, Compiled, qt_QListView_sizeHintForRow_int_QListView_int, Return, "int", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "row", "int"), End), + _func[33] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QListView_inputMethodQuery_QVariant_QListView_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "query", "int"), End), + _func[34] = new MemberFunction(c, "edit", _n_edit0, None, Compiled, qt_QListView_edit_bool_QListView_QModelIndex_int_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "trigger", "int"), new Param(c, "event", "qt.QEvent"), End), + _func[35] = new MemberFunction(c, "selectionCommand", _n_selectionCommand0, None, Compiled, qt_QListView_selectionCommand_int_QListView_QModelIndex_QEvent, Return, "int", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "event", "qt.QEvent"), End), + _func[36] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QListView_dragEnterEvent_void_QListView_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[37] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QListView_eventFilter_bool_QListView_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "object", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + _func[38] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QListView_focusInEvent_void_QListView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[39] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QListView_focusNextPrevChild_bool_QListView_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "next", "bool"), End), + _func[40] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QListView_focusOutEvent_void_QListView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "event", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QListView this, "QInputMethodEvent *" event) // protected + _func[41] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QListView_keyPressEvent_void_QListView_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[42] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QListView_mouseDoubleClickEvent_void_QListView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[43] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QListView_mousePressEvent_void_QListView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[44] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QListView_viewportEvent_bool_QListView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QListView"), new Param(c, "event", "qt.QEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QListView::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QListWidgetItemType.cpp b/src/lib/mu/MuQt6/QListWidgetItemType.cpp new file mode 100644 index 000000000..fcf0c6ada --- /dev/null +++ b/src/lib/mu/MuQt6/QListWidgetItemType.cpp @@ -0,0 +1,636 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QListWidgetItemType::QListWidgetItemType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QListWidgetItemType::~QListWidgetItemType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget * arg1 = object(param_parent); + int arg2 = (int)(param_type); + setqpointer(param_this,new QListWidgetItem(arg1, arg2)); + return param_this; +} + +Pointer qt_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidgetItem_string_QListWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_parent, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + QListWidget * arg2 = object(param_parent); + int arg3 = (int)(param_type); + setqpointer(param_this,new QListWidgetItem(arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidgetItem_QIcon_string_QListWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text, Pointer param_parent, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + QListWidget * arg3 = object(param_parent); + int arg4 = (int)(param_type); + setqpointer(param_this,new QListWidgetItem(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QListWidgetItem_background_QBrush_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->background(),"qt.QBrush"); +} + +int qt_QListWidgetItem_checkState_int_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return int(arg0->checkState()); +} + +Pointer qt_QListWidgetItem_clone_QListWidgetItem_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makeqpointer(c,arg0->clone(),"qt.QListWidgetItem"); +} + +Pointer qt_QListWidgetItem_data_QVariant_QListWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_role); + return makeqtype(c,arg0->data(arg1),"qt.QVariant"); +} + +int qt_QListWidgetItem_flags_int_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return int(arg0->flags()); +} + +Pointer qt_QListWidgetItem_font_QFont_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->font(),"qt.QFont"); +} + +Pointer qt_QListWidgetItem_foreground_QBrush_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->foreground(),"qt.QBrush"); +} + +Pointer qt_QListWidgetItem_icon_QIcon_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->icon(),"qt.QIcon"); +} + +bool qt_QListWidgetItem_isHidden_bool_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return arg0->isHidden(); +} + +bool qt_QListWidgetItem_isSelected_bool_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return arg0->isSelected(); +} + +Pointer qt_QListWidgetItem_listWidget_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makeinstance(c,arg0->listWidget(),"qt.QListWidget"); +} + +void qt_QListWidgetItem_setBackground_void_QListWidgetItem_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + const QBrush arg1 = getqtype(param_brush); + arg0->setBackground(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setCheckState_void_QListWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + Qt::CheckState arg1 = (Qt::CheckState)(param_state); + arg0->setCheckState(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setData_void_QListWidgetItem_int_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_role); + const QVariant arg2 = getqtype(param_value); + arg0->setData(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setFlags_void_QListWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + Qt::ItemFlags arg1 = (Qt::ItemFlags)(param_flags); + arg0->setFlags(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setFont_void_QListWidgetItem_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_font) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + const QFont arg1 = getqtype(param_font); + arg0->setFont(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setForeground_void_QListWidgetItem_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + const QBrush arg1 = getqtype(param_brush); + arg0->setForeground(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setHidden_void_QListWidgetItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_hide) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_hide); + arg0->setHidden(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setIcon_void_QListWidgetItem_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + const QIcon arg1 = getqtype(param_icon); + arg0->setIcon(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setSelected_void_QListWidgetItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_select) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_select); + arg0->setSelected(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setSizeHint_void_QListWidgetItem_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + const QSize arg1 = getqtype(param_size); + arg0->setSizeHint(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setStatusTip_void_QListWidgetItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_statusTip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_statusTip); + arg0->setStatusTip(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setText_void_QListWidgetItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_text); + arg0->setText(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setTextAlignment_void_QListWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + Qt::Alignment arg1 = (Qt::Alignment)(param_alignment); + arg0->setTextAlignment(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setToolTip_void_QListWidgetItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_toolTip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_toolTip); + arg0->setToolTip(arg1); + setqpointer(param_this,arg0); +} + +void qt_QListWidgetItem_setWhatsThis_void_QListWidgetItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_whatsThis) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_whatsThis); + arg0->setWhatsThis(arg1); + setqpointer(param_this,arg0); +} + +Pointer qt_QListWidgetItem_sizeHint_QSize_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QListWidgetItem_statusTip_string_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->statusTip()); +} + +Pointer qt_QListWidgetItem_text_string_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->text()); +} + +int qt_QListWidgetItem_textAlignment_int_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return arg0->textAlignment(); +} + +Pointer qt_QListWidgetItem_toolTip_string_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->toolTip()); +} + +int qt_QListWidgetItem_type_int_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return arg0->type(); +} + +Pointer qt_QListWidgetItem_whatsThis_string_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidgetItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->whatsThis()); +} + + +static NODE_IMPLEMENTATION(_n_QListWidgetItem0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QListWidgetItem1, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidgetItem_string_QListWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_QListWidgetItem2, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidgetItem_QIcon_string_QListWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_background0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_background_QBrush_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_checkState0, int) +{ + NODE_RETURN(qt_QListWidgetItem_checkState_int_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clone0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_clone_QListWidgetItem_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_data_QVariant_QListWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QListWidgetItem_flags_int_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_font0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_font_QFont_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_foreground0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_foreground_QBrush_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_icon0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_icon_QIcon_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isHidden0, bool) +{ + NODE_RETURN(qt_QListWidgetItem_isHidden_bool_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSelected0, bool) +{ + NODE_RETURN(qt_QListWidgetItem_isSelected_bool_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_listWidget0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_listWidget_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBackground0, void) +{ + qt_QListWidgetItem_setBackground_void_QListWidgetItem_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCheckState0, void) +{ + qt_QListWidgetItem_setCheckState_void_QListWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setData0, void) +{ + qt_QListWidgetItem_setData_void_QListWidgetItem_int_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFlags0, void) +{ + qt_QListWidgetItem_setFlags_void_QListWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFont0, void) +{ + qt_QListWidgetItem_setFont_void_QListWidgetItem_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setForeground0, void) +{ + qt_QListWidgetItem_setForeground_void_QListWidgetItem_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHidden0, void) +{ + qt_QListWidgetItem_setHidden_void_QListWidgetItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setIcon0, void) +{ + qt_QListWidgetItem_setIcon_void_QListWidgetItem_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelected0, void) +{ + qt_QListWidgetItem_setSelected_void_QListWidgetItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSizeHint0, void) +{ + qt_QListWidgetItem_setSizeHint_void_QListWidgetItem_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setStatusTip0, void) +{ + qt_QListWidgetItem_setStatusTip_void_QListWidgetItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setText0, void) +{ + qt_QListWidgetItem_setText_void_QListWidgetItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTextAlignment0, void) +{ + qt_QListWidgetItem_setTextAlignment_void_QListWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setToolTip0, void) +{ + qt_QListWidgetItem_setToolTip_void_QListWidgetItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setWhatsThis0, void) +{ + qt_QListWidgetItem_setWhatsThis_void_QListWidgetItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_sizeHint_QSize_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_statusTip0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_statusTip_string_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_text_string_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_textAlignment0, int) +{ + NODE_RETURN(qt_QListWidgetItem_textAlignment_int_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toolTip0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_toolTip_string_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_type0, int) +{ + NODE_RETURN(qt_QListWidgetItem_type_int_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_whatsThis0, Pointer) +{ + NODE_RETURN(qt_QListWidgetItem_whatsThis_string_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QListWidgetItemType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + new Alias(c, "ItemType", "int"), + new SymbolicConstant(c, "Type", "int", Value(int(QListWidgetItem::Type))), + new SymbolicConstant(c, "UserType", "int", Value(int(QListWidgetItem::UserType))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QListWidgetItem", _n_QListWidgetItem0, None, Compiled, qt_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidget_int, Return, "qt.QListWidgetItem", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "parent", "qt.QListWidget"), new Param(c, "type", "int", Value((int)QListWidgetItem::Type)), End), + new Function(c, "QListWidgetItem", _n_QListWidgetItem1, None, Compiled, qt_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidgetItem_string_QListWidget_int, Return, "qt.QListWidgetItem", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QListWidget"), new Param(c, "type", "int", Value((int)QListWidgetItem::Type)), End), + new Function(c, "QListWidgetItem", _n_QListWidgetItem2, None, Compiled, qt_QListWidgetItem_QListWidgetItem_QListWidgetItem_QListWidgetItem_QIcon_string_QListWidget_int, Return, "qt.QListWidgetItem", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QListWidget"), new Param(c, "type", "int", Value((int)QListWidgetItem::Type)), End), + // MISSING: QListWidgetItem (QListWidgetItem; QListWidgetItem this, QListWidgetItem other) + new Function(c, "background", _n_background0, None, Compiled, qt_QListWidgetItem_background_QBrush_QListWidgetItem, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "checkState", _n_checkState0, None, Compiled, qt_QListWidgetItem_checkState_int_QListWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new MemberFunction(c, "clone", _n_clone0, None, Compiled, qt_QListWidgetItem_clone_QListWidgetItem_QListWidgetItem, Return, "qt.QListWidgetItem", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new MemberFunction(c, "data", _n_data0, None, Compiled, qt_QListWidgetItem_data_QVariant_QListWidgetItem_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "role", "int"), End), + new Function(c, "flags", _n_flags0, None, Compiled, qt_QListWidgetItem_flags_int_QListWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "font", _n_font0, None, Compiled, qt_QListWidgetItem_font_QFont_QListWidgetItem, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "foreground", _n_foreground0, None, Compiled, qt_QListWidgetItem_foreground_QBrush_QListWidgetItem, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "icon", _n_icon0, None, Compiled, qt_QListWidgetItem_icon_QIcon_QListWidgetItem, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "isHidden", _n_isHidden0, None, Compiled, qt_QListWidgetItem_isHidden_bool_QListWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "isSelected", _n_isSelected0, None, Compiled, qt_QListWidgetItem_isSelected_bool_QListWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "listWidget", _n_listWidget0, None, Compiled, qt_QListWidgetItem_listWidget_QListWidget_QListWidgetItem, Return, "qt.QListWidget", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + // MISSING: read (void; QListWidgetItem this, "QDataStream &" in) + new Function(c, "setBackground", _n_setBackground0, None, Compiled, qt_QListWidgetItem_setBackground_void_QListWidgetItem_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "brush", "qt.QBrush"), End), + new Function(c, "setCheckState", _n_setCheckState0, None, Compiled, qt_QListWidgetItem_setCheckState_void_QListWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "state", "int"), End), + new MemberFunction(c, "setData", _n_setData0, None, Compiled, qt_QListWidgetItem_setData_void_QListWidgetItem_int_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "role", "int"), new Param(c, "value", "qt.QVariant"), End), + new Function(c, "setFlags", _n_setFlags0, None, Compiled, qt_QListWidgetItem_setFlags_void_QListWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "flags", "int"), End), + new Function(c, "setFont", _n_setFont0, None, Compiled, qt_QListWidgetItem_setFont_void_QListWidgetItem_QFont, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "font", "qt.QFont"), End), + new Function(c, "setForeground", _n_setForeground0, None, Compiled, qt_QListWidgetItem_setForeground_void_QListWidgetItem_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "brush", "qt.QBrush"), End), + new Function(c, "setHidden", _n_setHidden0, None, Compiled, qt_QListWidgetItem_setHidden_void_QListWidgetItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "hide", "bool"), End), + new Function(c, "setIcon", _n_setIcon0, None, Compiled, qt_QListWidgetItem_setIcon_void_QListWidgetItem_QIcon, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "icon", "qt.QIcon"), End), + new Function(c, "setSelected", _n_setSelected0, None, Compiled, qt_QListWidgetItem_setSelected_void_QListWidgetItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "select", "bool"), End), + new Function(c, "setSizeHint", _n_setSizeHint0, None, Compiled, qt_QListWidgetItem_setSizeHint_void_QListWidgetItem_QSize, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "size", "qt.QSize"), End), + new Function(c, "setStatusTip", _n_setStatusTip0, None, Compiled, qt_QListWidgetItem_setStatusTip_void_QListWidgetItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "statusTip", "string"), End), + new Function(c, "setText", _n_setText0, None, Compiled, qt_QListWidgetItem_setText_void_QListWidgetItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "text", "string"), End), + new Function(c, "setTextAlignment", _n_setTextAlignment0, None, Compiled, qt_QListWidgetItem_setTextAlignment_void_QListWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "alignment", "int"), End), + new Function(c, "setToolTip", _n_setToolTip0, None, Compiled, qt_QListWidgetItem_setToolTip_void_QListWidgetItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "toolTip", "string"), End), + new Function(c, "setWhatsThis", _n_setWhatsThis0, None, Compiled, qt_QListWidgetItem_setWhatsThis_void_QListWidgetItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QListWidgetItem"), new Param(c, "whatsThis", "string"), End), + new Function(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QListWidgetItem_sizeHint_QSize_QListWidgetItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "statusTip", _n_statusTip0, None, Compiled, qt_QListWidgetItem_statusTip_string_QListWidgetItem, Return, "string", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "text", _n_text0, None, Compiled, qt_QListWidgetItem_text_string_QListWidgetItem, Return, "string", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "textAlignment", _n_textAlignment0, None, Compiled, qt_QListWidgetItem_textAlignment_int_QListWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "toolTip", _n_toolTip0, None, Compiled, qt_QListWidgetItem_toolTip_string_QListWidgetItem, Return, "string", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "type", _n_type0, None, Compiled, qt_QListWidgetItem_type_int_QListWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + new Function(c, "whatsThis", _n_whatsThis0, None, Compiled, qt_QListWidgetItem_whatsThis_string_QListWidgetItem, Return, "string", Parameters, new Param(c, "this", "qt.QListWidgetItem"), End), + // MISSING: write (void; QListWidgetItem this, "QDataStream &" out) + // static functions + EndArguments); +globalScope()->addSymbols( + // MISSING: = (QListWidgetItem; QListWidgetItem this, QListWidgetItem other) + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QListWidgetType.cpp b/src/lib/mu/MuQt6/QListWidgetType.cpp new file mode 100644 index 000000000..59885d6a3 --- /dev/null +++ b/src/lib/mu/MuQt6/QListWidgetType.cpp @@ -0,0 +1,1753 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QListWidget::~MuQt_QListWidget() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QListWidget::MuQt_QListWidget(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QListWidget(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QListWidget")); +} + +void MuQt_QListWidget::setSelectionModel(QItemSelectionModel * selectionModel) +{ + if (!_env) { QListWidget::setSelectionModel(selectionModel); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,selectionModel,"qt.QItemSelectionModel")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::setSelectionModel(selectionModel); + } +} + +bool MuQt_QListWidget::dropMimeData(int index, const QMimeData * data, Qt::DropAction action) +{ + if (!_env) return QListWidget::dropMimeData(index, data, action); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + args[2] = Value(makeinstance(c,data,"qt.QMimeData")); + args[3] = Value(int(action)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QListWidget::dropMimeData(index, data, action); + } +} + +QMimeData * MuQt_QListWidget::mimeData(const QList & items) const +{ + if (!_env) return QListWidget::mimeData(items); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointerlist(c,items,"qt.QListWidgetItem")); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QListWidget::mimeData(items); + } +} + +QStringList MuQt_QListWidget::mimeTypes() const +{ + if (!_env) return QListWidget::mimeTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QListWidget::mimeTypes(); + } +} + +Qt::DropActions MuQt_QListWidget::supportedDropActions() const +{ + if (!_env) return QListWidget::supportedDropActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QListWidget::supportedDropActions(); + } +} + +void MuQt_QListWidget::dropEvent(QDropEvent * event) +{ + if (!_env) { QListWidget::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::dropEvent(event); + } +} + +bool MuQt_QListWidget::event(QEvent * e) +{ + if (!_env) return QListWidget::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QListWidget::event(e); + } +} + +QModelIndex MuQt_QListWidget::indexAt(const QPoint & p) const +{ + if (!_env) return QListWidget::indexAt(p); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,p,"qt.QPoint")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QListWidget::indexAt(p); + } +} + +void MuQt_QListWidget::scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) +{ + if (!_env) { QListWidget::scrollTo(index, hint); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(hint)); + Value rval = _env->call(F, args); + } + else + { + QListWidget::scrollTo(index, hint); + } +} + +void MuQt_QListWidget::setRootIndex(const QModelIndex & index) +{ + if (!_env) { QListWidget::setRootIndex(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::setRootIndex(index); + } +} + +QRect MuQt_QListWidget::visualRect(const QModelIndex & index) const +{ + if (!_env) return QListWidget::visualRect(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QListWidget::visualRect(index); + } +} + +void MuQt_QListWidget::currentChanged(const QModelIndex & current, const QModelIndex & previous) +{ + if (!_env) { QListWidget::currentChanged(current, previous); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,current,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,previous,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::currentChanged(current, previous); + } +} + +void MuQt_QListWidget::dragLeaveEvent(QDragLeaveEvent * e) +{ + if (!_env) { QListWidget::dragLeaveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::dragLeaveEvent(e); + } +} + +void MuQt_QListWidget::dragMoveEvent(QDragMoveEvent * e) +{ + if (!_env) { QListWidget::dragMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::dragMoveEvent(e); + } +} + +int MuQt_QListWidget::horizontalOffset() const +{ + if (!_env) return QListWidget::horizontalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QListWidget::horizontalOffset(); + } +} + +bool MuQt_QListWidget::isIndexHidden(const QModelIndex & index) const +{ + if (!_env) return QListWidget::isIndexHidden(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QListWidget::isIndexHidden(index); + } +} + +void MuQt_QListWidget::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QListWidget::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::mouseMoveEvent(e); + } +} + +void MuQt_QListWidget::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QListWidget::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::mouseReleaseEvent(e); + } +} + +void MuQt_QListWidget::paintEvent(QPaintEvent * e) +{ + if (!_env) { QListWidget::paintEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::paintEvent(e); + } +} + +void MuQt_QListWidget::resizeEvent(QResizeEvent * e) +{ + if (!_env) { QListWidget::resizeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::resizeEvent(e); + } +} + +void MuQt_QListWidget::rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end) +{ + if (!_env) { QListWidget::rowsAboutToBeRemoved(parent, start, end); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + args[2] = Value(start); + args[3] = Value(end); + Value rval = _env->call(F, args); + } + else + { + QListWidget::rowsAboutToBeRemoved(parent, start, end); + } +} + +void MuQt_QListWidget::rowsInserted(const QModelIndex & parent, int start, int end) +{ + if (!_env) { QListWidget::rowsInserted(parent, start, end); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + args[2] = Value(start); + args[3] = Value(end); + Value rval = _env->call(F, args); + } + else + { + QListWidget::rowsInserted(parent, start, end); + } +} + +void MuQt_QListWidget::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QListWidget::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QListWidget::scrollContentsBy(dx, dy); + } +} + +QModelIndexList MuQt_QListWidget::selectedIndexes() const +{ + if (!_env) return QListWidget::selectedIndexes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QListWidget::selectedIndexes(); + } +} + +void MuQt_QListWidget::selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) +{ + if (!_env) { QListWidget::selectionChanged(selected, deselected); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selected,"qt.QItemSelection")); + args[2] = Value(makeqtype(c,deselected,"qt.QItemSelection")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::selectionChanged(selected, deselected); + } +} + +void MuQt_QListWidget::setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) +{ + if (!_env) { QListWidget::setSelection(rect, command); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + args[2] = Value(int(command)); + Value rval = _env->call(F, args); + } + else + { + QListWidget::setSelection(rect, command); + } +} + +void MuQt_QListWidget::startDrag(Qt::DropActions supportedActions) +{ + if (!_env) { QListWidget::startDrag(supportedActions); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(supportedActions)); + Value rval = _env->call(F, args); + } + else + { + QListWidget::startDrag(supportedActions); + } +} + +void MuQt_QListWidget::timerEvent(QTimerEvent * e) +{ + if (!_env) { QListWidget::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::timerEvent(e); + } +} + +void MuQt_QListWidget::updateGeometries() +{ + if (!_env) { QListWidget::updateGeometries(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QListWidget::updateGeometries(); + } +} + +int MuQt_QListWidget::verticalOffset() const +{ + if (!_env) return QListWidget::verticalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QListWidget::verticalOffset(); + } +} + +QSize MuQt_QListWidget::viewportSizeHint() const +{ + if (!_env) return QListWidget::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QListWidget::viewportSizeHint(); + } +} + +QRegion MuQt_QListWidget::visualRegionForSelection(const QItemSelection & selection) const +{ + if (!_env) return QListWidget::visualRegionForSelection(selection); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selection,"qt.QItemSelection")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QListWidget::visualRegionForSelection(selection); + } +} + +void MuQt_QListWidget::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QListWidget::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QListWidget::wheelEvent(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QListWidgetType::QListWidgetType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QListWidgetType::~QListWidgetType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QListWidget_QListWidget_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QListWidget* w = object(widget)) + { + QListWidgetType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QListWidget"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QListWidget_QListWidget_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QListWidget_QListWidget_QListWidget_QListWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QListWidget(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QListWidget_addItem_void_QListWidget_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_label) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QString arg1 = qstring(param_label); + arg0->addItem(arg1); +} + +void qt_QListWidget_addItem_void_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QListWidgetItem * arg1 = getqpointer(param_item); + arg0->addItem(arg1); +} + +void qt_QListWidget_addItems_void_QListWidget_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_labels) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_labels); + arg0->addItems(arg1); +} + +void qt_QListWidget_closePersistentEditor_void_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QListWidgetItem * arg1 = getqpointer(param_item); + arg0->closePersistentEditor(arg1); +} + +Pointer qt_QListWidget_currentItem_QListWidgetItem_QListWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + return makeqpointer(c,arg0->currentItem(),"qt.QListWidgetItem"); +} + +void qt_QListWidget_editItem_void_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QListWidgetItem * arg1 = getqpointer(param_item); + arg0->editItem(arg1); +} + +Pointer qt_QListWidget_findItems_qt__QListWidgetItemBSB_ESB__QListWidget_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + Qt::MatchFlags arg2 = (Qt::MatchFlags)(param_flags); + return makeqpointerlist(c,arg0->findItems(arg1, arg2),"qt.QListWidgetItem"); +} + +Pointer qt_QListWidget_indexFromItem_QModelIndex_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QListWidgetItem * arg1 = getqpointer(param_item); + return makeqtype(c,arg0->indexFromItem(arg1),"qt.QModelIndex"); +} + +void qt_QListWidget_insertItem_void_QListWidget_int_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + QListWidgetItem * arg2 = getqpointer(param_item); + arg0->insertItem(arg1, arg2); +} + +void qt_QListWidget_insertItem_void_QListWidget_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_label) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QString arg2 = qstring(param_label); + arg0->insertItem(arg1, arg2); +} + +void qt_QListWidget_insertItems_void_QListWidget_int_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_labels) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QStringList arg2 = qstringlist(param_labels); + arg0->insertItems(arg1, arg2); +} + +bool qt_QListWidget_isPersistentEditorOpen_bool_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QListWidgetItem * arg1 = getqpointer(param_item); + return arg0->isPersistentEditorOpen(arg1); +} + +Pointer qt_QListWidget_item_QListWidgetItem_QListWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + return makeqpointer(c,arg0->item(arg1),"qt.QListWidgetItem"); +} + +Pointer qt_QListWidget_itemAt_QListWidgetItem_QListWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_p); + return makeqpointer(c,arg0->itemAt(arg1),"qt.QListWidgetItem"); +} + +Pointer qt_QListWidget_itemAt_QListWidgetItem_QListWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + return makeqpointer(c,arg0->itemAt(arg1, arg2),"qt.QListWidgetItem"); +} + +Pointer qt_QListWidget_itemFromIndex_QListWidgetItem_QListWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeqpointer(c,arg0->itemFromIndex(arg1),"qt.QListWidgetItem"); +} + +Pointer qt_QListWidget_itemWidget_QWidget_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QListWidgetItem * arg1 = getqpointer(param_item); + return makeinstance(c, arg0->itemWidget(arg1), "qt.QWidget"); +} + +Pointer qt_QListWidget_items_qt__QListWidgetItemBSB_ESB__QListWidget_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QMimeData * arg1 = object(param_data); + return makeqpointerlist(c,arg0->items(arg1),"qt.QListWidgetItem"); +} + +void qt_QListWidget_openPersistentEditor_void_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QListWidgetItem * arg1 = getqpointer(param_item); + arg0->openPersistentEditor(arg1); +} + +void qt_QListWidget_removeItemWidget_void_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QListWidgetItem * arg1 = getqpointer(param_item); + arg0->removeItemWidget(arg1); +} + +int qt_QListWidget_row_int_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QListWidgetItem * arg1 = getqpointer(param_item); + return arg0->row(arg1); +} + +Pointer qt_QListWidget_selectedItems_qt__QListWidgetItemBSB_ESB__QListWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + return makeqpointerlist(c,arg0->selectedItems(),"qt.QListWidgetItem"); +} + +void qt_QListWidget_setCurrentItem_void_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QListWidgetItem * arg1 = getqpointer(param_item); + arg0->setCurrentItem(arg1); +} + +void qt_QListWidget_setCurrentItem_void_QListWidget_QListWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QListWidgetItem * arg1 = getqpointer(param_item); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_command); + arg0->setCurrentItem(arg1, arg2); +} + +void qt_QListWidget_setCurrentRow_void_QListWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_command); + arg0->setCurrentRow(arg1, arg2); +} + +void qt_QListWidget_setItemWidget_void_QListWidget_QListWidgetItem_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QListWidgetItem * arg1 = getqpointer(param_item); + QWidget * arg2 = object(param_widget); + arg0->setItemWidget(arg1, arg2); +} + +void qt_QListWidget_sortItems_void_QListWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_order) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + Qt::SortOrder arg1 = (Qt::SortOrder)(param_order); + arg0->sortItems(arg1); +} + +Pointer qt_QListWidget_takeItem_QListWidgetItem_QListWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + return makeqpointer(c,arg0->takeItem(arg1),"qt.QListWidgetItem"); +} + +Pointer qt_QListWidget_visualItemRect_QRect_QListWidget_QListWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QListWidgetItem * arg1 = getqpointer(param_item); + return makeqtype(c,arg0->visualItemRect(arg1),"qt.QRect"); +} + +void qt_QListWidget_setSelectionModel_void_QListWidget_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selectionModel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QItemSelectionModel * arg1 = object(param_selectionModel); + if (isMuQtObject(arg0)) arg0->QListWidget::setSelectionModel(arg1); + else arg0->setSelectionModel(arg1); +} + +bool qt_QListWidget_dropMimeData_bool_QListWidget_int_QMimeData_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_data, int param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QMimeData * arg2 = object(param_data); + Qt::DropAction arg3 = (Qt::DropAction)(param_action); + return isMuQtObject(arg0) ? ((MuQt_QListWidget*)arg0)->dropMimeData_pub_parent(arg1, arg2, arg3) : ((MuQt_QListWidget*)arg0)->dropMimeData_pub(arg1, arg2, arg3); +} + +Pointer qt_QListWidget_mimeData_QMimeData_QListWidget_qt__QListWidgetItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QList arg1 = qpointerlist(param_items); + return isMuQtObject(arg0) ? makeinstance(c, ((MuQt_QListWidget*)arg0)->mimeData_pub_parent(arg1), "qt.QMimeData") : makeinstance(c, ((MuQt_QListWidget*)arg0)->mimeData_pub(arg1), "qt.QMimeData"); +} + +Pointer qt_QListWidget_mimeTypes_stringBSB_ESB__QListWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestringlist(c,((MuQt_QListWidget*)arg0)->mimeTypes_pub_parent()) : makestringlist(c,((MuQt_QListWidget*)arg0)->mimeTypes_pub()); +} + +int qt_QListWidget_supportedDropActions_int_QListWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(((MuQt_QListWidget*)arg0)->supportedDropActions_pub_parent()) : int(((MuQt_QListWidget*)arg0)->supportedDropActions_pub()); +} + +void qt_QListWidget_dropEvent_void_QListWidget_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QListWidget*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QListWidget_event_bool_QListWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QListWidget*)arg0)->event_pub_parent(arg1) : ((MuQt_QListWidget*)arg0)->event_pub(arg1); +} + +Pointer qt_QListWidget_indexAt_QModelIndex_QListWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_p); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QListWidget::indexAt(arg1),"qt.QModelIndex") : makeqtype(c,arg0->indexAt(arg1),"qt.QModelIndex"); +} + +void qt_QListWidget_scrollTo_void_QListWidget_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_hint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::ScrollHint arg2 = (QAbstractItemView::ScrollHint)(param_hint); + if (isMuQtObject(arg0)) arg0->QListWidget::scrollTo(arg1, arg2); + else arg0->scrollTo(arg1, arg2); +} + +void qt_QListWidget_setRootIndex_void_QListWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + if (isMuQtObject(arg0)) arg0->QListWidget::setRootIndex(arg1); + else arg0->setRootIndex(arg1); +} + +Pointer qt_QListWidget_visualRect_QRect_QListWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QListWidget::visualRect(arg1),"qt.QRect") : makeqtype(c,arg0->visualRect(arg1),"qt.QRect"); +} + +void qt_QListWidget_currentChanged_void_QListWidget_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_current, Pointer param_previous) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_current); + const QModelIndex arg2 = getqtype(param_previous); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->currentChanged_pub_parent(arg1, arg2); + else ((MuQt_QListWidget*)arg0)->currentChanged_pub(arg1, arg2); +} + +void qt_QListWidget_dragLeaveEvent_void_QListWidget_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QListWidget*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QListWidget_dragMoveEvent_void_QListWidget_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QListWidget*)arg0)->dragMoveEvent_pub(arg1); +} + +int qt_QListWidget_horizontalOffset_int_QListWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QListWidget*)arg0)->horizontalOffset_pub_parent() : ((MuQt_QListWidget*)arg0)->horizontalOffset_pub(); +} + +bool qt_QListWidget_isIndexHidden_bool_QListWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? ((MuQt_QListWidget*)arg0)->isIndexHidden_pub_parent(arg1) : ((MuQt_QListWidget*)arg0)->isIndexHidden_pub(arg1); +} + +void qt_QListWidget_mouseMoveEvent_void_QListWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QListWidget*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QListWidget_mouseReleaseEvent_void_QListWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QListWidget*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QListWidget_paintEvent_void_QListWidget_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QListWidget*)arg0)->paintEvent_pub(arg1); +} + +void qt_QListWidget_resizeEvent_void_QListWidget_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QListWidget*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QListWidget_rowsAboutToBeRemoved_void_QListWidget_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_start, int param_end) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_start); + int arg3 = (int)(param_end); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->rowsAboutToBeRemoved_pub_parent(arg1, arg2, arg3); + else ((MuQt_QListWidget*)arg0)->rowsAboutToBeRemoved_pub(arg1, arg2, arg3); +} + +void qt_QListWidget_rowsInserted_void_QListWidget_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_start, int param_end) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_start); + int arg3 = (int)(param_end); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->rowsInserted_pub_parent(arg1, arg2, arg3); + else ((MuQt_QListWidget*)arg0)->rowsInserted_pub(arg1, arg2, arg3); +} + +void qt_QListWidget_scrollContentsBy_void_QListWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QListWidget*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +Pointer qt_QListWidget_selectedIndexes_qt__QModelIndexBSB_ESB__QListWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,((MuQt_QListWidget*)arg0)->selectedIndexes_pub_parent()) : makeqmodelindexlist(c,((MuQt_QListWidget*)arg0)->selectedIndexes_pub()); +} + +void qt_QListWidget_selectionChanged_void_QListWidget_QItemSelection_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selected, Pointer param_deselected) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selected); + const QItemSelection arg2 = getqtype(param_deselected); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->selectionChanged_pub_parent(arg1, arg2); + else ((MuQt_QListWidget*)arg0)->selectionChanged_pub(arg1, arg2); +} + +void qt_QListWidget_setSelection_void_QListWidget_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_command); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->setSelection_pub_parent(arg1, arg2); + else ((MuQt_QListWidget*)arg0)->setSelection_pub(arg1, arg2); +} + +void qt_QListWidget_startDrag_void_QListWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_supportedActions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + Qt::DropActions arg1 = (Qt::DropActions)(param_supportedActions); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->startDrag_pub_parent(arg1); + else ((MuQt_QListWidget*)arg0)->startDrag_pub(arg1); +} + +void qt_QListWidget_timerEvent_void_QListWidget_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QListWidget*)arg0)->timerEvent_pub(arg1); +} + +void qt_QListWidget_updateGeometries_void_QListWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->updateGeometries_pub_parent(); + else ((MuQt_QListWidget*)arg0)->updateGeometries_pub(); +} + +int qt_QListWidget_verticalOffset_int_QListWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QListWidget*)arg0)->verticalOffset_pub_parent() : ((MuQt_QListWidget*)arg0)->verticalOffset_pub(); +} + +Pointer qt_QListWidget_viewportSizeHint_QSize_QListWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QListWidget*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QListWidget*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +Pointer qt_QListWidget_visualRegionForSelection_QRegion_QListWidget_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selection); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QListWidget*)arg0)->visualRegionForSelection_pub_parent(arg1),"qt.QRegion") : makeqtype(c,((MuQt_QListWidget*)arg0)->visualRegionForSelection_pub(arg1),"qt.QRegion"); +} + +void qt_QListWidget_wheelEvent_void_QListWidget_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QListWidget* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QListWidget*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QListWidget*)arg0)->wheelEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QListWidget0, Pointer) +{ + NODE_RETURN(qt_QListWidget_QListWidget_QListWidget_QListWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addItem0, void) +{ + qt_QListWidget_addItem_void_QListWidget_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addItem1, void) +{ + qt_QListWidget_addItem_void_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addItems0, void) +{ + qt_QListWidget_addItems_void_QListWidget_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closePersistentEditor0, void) +{ + qt_QListWidget_closePersistentEditor_void_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_currentItem0, Pointer) +{ + NODE_RETURN(qt_QListWidget_currentItem_QListWidgetItem_QListWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_editItem0, void) +{ + qt_QListWidget_editItem_void_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_findItems0, Pointer) +{ + NODE_RETURN(qt_QListWidget_findItems_qt__QListWidgetItemBSB_ESB__QListWidget_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_indexFromItem0, Pointer) +{ + NODE_RETURN(qt_QListWidget_indexFromItem_QModelIndex_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertItem0, void) +{ + qt_QListWidget_insertItem_void_QListWidget_int_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertItem1, void) +{ + qt_QListWidget_insertItem_void_QListWidget_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertItems0, void) +{ + qt_QListWidget_insertItems_void_QListWidget_int_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isPersistentEditorOpen0, bool) +{ + NODE_RETURN(qt_QListWidget_isPersistentEditorOpen_bool_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_item0, Pointer) +{ + NODE_RETURN(qt_QListWidget_item_QListWidgetItem_QListWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_itemAt0, Pointer) +{ + NODE_RETURN(qt_QListWidget_itemAt_QListWidgetItem_QListWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemAt1, Pointer) +{ + NODE_RETURN(qt_QListWidget_itemAt_QListWidgetItem_QListWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_itemFromIndex0, Pointer) +{ + NODE_RETURN(qt_QListWidget_itemFromIndex_QListWidgetItem_QListWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemWidget0, Pointer) +{ + NODE_RETURN(qt_QListWidget_itemWidget_QWidget_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_items0, Pointer) +{ + NODE_RETURN(qt_QListWidget_items_qt__QListWidgetItemBSB_ESB__QListWidget_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_openPersistentEditor0, void) +{ + qt_QListWidget_openPersistentEditor_void_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removeItemWidget0, void) +{ + qt_QListWidget_removeItemWidget_void_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_row0, int) +{ + NODE_RETURN(qt_QListWidget_row_int_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectedItems0, Pointer) +{ + NODE_RETURN(qt_QListWidget_selectedItems_qt__QListWidgetItemBSB_ESB__QListWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCurrentItem0, void) +{ + qt_QListWidget_setCurrentItem_void_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCurrentItem1, void) +{ + qt_QListWidget_setCurrentItem_void_QListWidget_QListWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setCurrentRow1, void) +{ + qt_QListWidget_setCurrentRow_void_QListWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setItemWidget0, void) +{ + qt_QListWidget_setItemWidget_void_QListWidget_QListWidgetItem_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sortItems0, void) +{ + qt_QListWidget_sortItems_void_QListWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_takeItem0, Pointer) +{ + NODE_RETURN(qt_QListWidget_takeItem_QListWidgetItem_QListWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_visualItemRect0, Pointer) +{ + NODE_RETURN(qt_QListWidget_visualItemRect_QRect_QListWidget_QListWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setSelectionModel0, void) +{ + qt_QListWidget_setSelectionModel_void_QListWidget_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropMimeData0, bool) +{ + NODE_RETURN(qt_QListWidget_dropMimeData_bool_QListWidget_int_QMimeData_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_mimeData0, Pointer) +{ + NODE_RETURN(qt_QListWidget_mimeData_QMimeData_QListWidget_qt__QListWidgetItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mimeTypes0, Pointer) +{ + NODE_RETURN(qt_QListWidget_mimeTypes_stringBSB_ESB__QListWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportedDropActions0, int) +{ + NODE_RETURN(qt_QListWidget_supportedDropActions_int_QListWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QListWidget_dropEvent_void_QListWidget_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QListWidget_event_bool_QListWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexAt0, Pointer) +{ + NODE_RETURN(qt_QListWidget_indexAt_QModelIndex_QListWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scrollTo0, void) +{ + qt_QListWidget_scrollTo_void_QListWidget_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setRootIndex0, void) +{ + qt_QListWidget_setRootIndex_void_QListWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_visualRect0, Pointer) +{ + NODE_RETURN(qt_QListWidget_visualRect_QRect_QListWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentChanged0, void) +{ + qt_QListWidget_currentChanged_void_QListWidget_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QListWidget_dragLeaveEvent_void_QListWidget_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QListWidget_dragMoveEvent_void_QListWidget_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_horizontalOffset0, int) +{ + NODE_RETURN(qt_QListWidget_horizontalOffset_int_QListWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIndexHidden0, bool) +{ + NODE_RETURN(qt_QListWidget_isIndexHidden_bool_QListWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QListWidget_mouseMoveEvent_void_QListWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QListWidget_mouseReleaseEvent_void_QListWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QListWidget_paintEvent_void_QListWidget_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QListWidget_resizeEvent_void_QListWidget_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_rowsAboutToBeRemoved0, void) +{ + qt_QListWidget_rowsAboutToBeRemoved_void_QListWidget_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_rowsInserted0, void) +{ + qt_QListWidget_rowsInserted_void_QListWidget_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QListWidget_scrollContentsBy_void_QListWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectedIndexes0, Pointer) +{ + NODE_RETURN(qt_QListWidget_selectedIndexes_qt__QModelIndexBSB_ESB__QListWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionChanged0, void) +{ + qt_QListWidget_selectionChanged_void_QListWidget_QItemSelection_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QListWidget_setSelection_void_QListWidget_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_startDrag0, void) +{ + qt_QListWidget_startDrag_void_QListWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QListWidget_timerEvent_void_QListWidget_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_updateGeometries0, void) +{ + qt_QListWidget_updateGeometries_void_QListWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_verticalOffset0, int) +{ + NODE_RETURN(qt_QListWidget_verticalOffset_int_QListWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QListWidget_viewportSizeHint_QSize_QListWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualRegionForSelection0, Pointer) +{ + NODE_RETURN(qt_QListWidget_visualRegionForSelection_QRegion_QListWidget_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QListWidget_wheelEvent_void_QListWidget_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QListWidgetType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QListWidget_QListWidget_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QListWidget", _n_QListWidget0, None, Compiled, qt_QListWidget_QListWidget_QListWidget_QListWidget_QWidget, Return, "qt.QListWidget", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addItem", _n_addItem0, None, Compiled, qt_QListWidget_addItem_void_QListWidget_string, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "label", "string"), End), + new Function(c, "addItem", _n_addItem1, None, Compiled, qt_QListWidget_addItem_void_QListWidget_QListWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + new Function(c, "addItems", _n_addItems0, None, Compiled, qt_QListWidget_addItems_void_QListWidget_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "labels", "string[]"), End), + new Function(c, "closePersistentEditor", _n_closePersistentEditor0, None, Compiled, qt_QListWidget_closePersistentEditor_void_QListWidget_QListWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + // PROP: count (int; QListWidget this) + new Function(c, "currentItem", _n_currentItem0, None, Compiled, qt_QListWidget_currentItem_QListWidgetItem_QListWidget, Return, "qt.QListWidgetItem", Parameters, new Param(c, "this", "qt.QListWidget"), End), + // PROP: currentRow (int; QListWidget this) + new Function(c, "editItem", _n_editItem0, None, Compiled, qt_QListWidget_editItem_void_QListWidget_QListWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + new Function(c, "findItems", _n_findItems0, None, Compiled, qt_QListWidget_findItems_qt__QListWidgetItemBSB_ESB__QListWidget_string_int, Return, "qt.QListWidgetItem[]", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "text", "string"), new Param(c, "flags", "int"), End), + new Function(c, "indexFromItem", _n_indexFromItem0, None, Compiled, qt_QListWidget_indexFromItem_QModelIndex_QListWidget_QListWidgetItem, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + new Function(c, "insertItem", _n_insertItem0, None, Compiled, qt_QListWidget_insertItem_void_QListWidget_int_QListWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "row", "int"), new Param(c, "item", "qt.QListWidgetItem"), End), + new Function(c, "insertItem", _n_insertItem1, None, Compiled, qt_QListWidget_insertItem_void_QListWidget_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "row", "int"), new Param(c, "label", "string"), End), + new Function(c, "insertItems", _n_insertItems0, None, Compiled, qt_QListWidget_insertItems_void_QListWidget_int_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "row", "int"), new Param(c, "labels", "string[]"), End), + new Function(c, "isPersistentEditorOpen", _n_isPersistentEditorOpen0, None, Compiled, qt_QListWidget_isPersistentEditorOpen_bool_QListWidget_QListWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + // PROP: isSortingEnabled (bool; QListWidget this) + new Function(c, "item", _n_item0, None, Compiled, qt_QListWidget_item_QListWidgetItem_QListWidget_int, Return, "qt.QListWidgetItem", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "row", "int"), End), + new Function(c, "itemAt", _n_itemAt0, None, Compiled, qt_QListWidget_itemAt_QListWidgetItem_QListWidget_QPoint, Return, "qt.QListWidgetItem", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "p", "qt.QPoint"), End), + new Function(c, "itemAt", _n_itemAt1, None, Compiled, qt_QListWidget_itemAt_QListWidgetItem_QListWidget_int_int, Return, "qt.QListWidgetItem", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "itemFromIndex", _n_itemFromIndex0, None, Compiled, qt_QListWidget_itemFromIndex_QListWidgetItem_QListWidget_QModelIndex, Return, "qt.QListWidgetItem", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "itemWidget", _n_itemWidget0, None, Compiled, qt_QListWidget_itemWidget_QWidget_QListWidget_QListWidgetItem, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + new Function(c, "items", _n_items0, None, Compiled, qt_QListWidget_items_qt__QListWidgetItemBSB_ESB__QListWidget_QMimeData, Return, "qt.QListWidgetItem[]", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "data", "qt.QMimeData"), End), + new Function(c, "openPersistentEditor", _n_openPersistentEditor0, None, Compiled, qt_QListWidget_openPersistentEditor_void_QListWidget_QListWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + new Function(c, "removeItemWidget", _n_removeItemWidget0, None, Compiled, qt_QListWidget_removeItemWidget_void_QListWidget_QListWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + new Function(c, "row", _n_row0, None, Compiled, qt_QListWidget_row_int_QListWidget_QListWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + new Function(c, "selectedItems", _n_selectedItems0, None, Compiled, qt_QListWidget_selectedItems_qt__QListWidgetItemBSB_ESB__QListWidget, Return, "qt.QListWidgetItem[]", Parameters, new Param(c, "this", "qt.QListWidget"), End), + new Function(c, "setCurrentItem", _n_setCurrentItem0, None, Compiled, qt_QListWidget_setCurrentItem_void_QListWidget_QListWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + new Function(c, "setCurrentItem", _n_setCurrentItem1, None, Compiled, qt_QListWidget_setCurrentItem_void_QListWidget_QListWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), new Param(c, "command", "int"), End), + // PROP: setCurrentRow (void; QListWidget this, int row) + new Function(c, "setCurrentRow", _n_setCurrentRow1, None, Compiled, qt_QListWidget_setCurrentRow_void_QListWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "row", "int"), new Param(c, "command", "int"), End), + new Function(c, "setItemWidget", _n_setItemWidget0, None, Compiled, qt_QListWidget_setItemWidget_void_QListWidget_QListWidgetItem_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: setSortingEnabled (void; QListWidget this, bool enable) + new Function(c, "sortItems", _n_sortItems0, None, Compiled, qt_QListWidget_sortItems_void_QListWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "order", "int", Value((int)Qt::AscendingOrder)), End), + new Function(c, "takeItem", _n_takeItem0, None, Compiled, qt_QListWidget_takeItem_QListWidgetItem_QListWidget_int, Return, "qt.QListWidgetItem", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "row", "int"), End), + new Function(c, "visualItemRect", _n_visualItemRect0, None, Compiled, qt_QListWidget_visualItemRect_QRect_QListWidget_QListWidgetItem, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "item", "qt.QListWidgetItem"), End), + _func[0] = new MemberFunction(c, "setSelectionModel", _n_setSelectionModel0, None, Compiled, qt_QListWidget_setSelectionModel_void_QListWidget_QItemSelectionModel, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "selectionModel", "qt.QItemSelectionModel"), End), + _func[1] = new MemberFunction(c, "dropMimeData", _n_dropMimeData0, None, Compiled, qt_QListWidget_dropMimeData_bool_QListWidget_int_QMimeData_int, Return, "bool", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "index", "int"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), End), + _func[2] = new MemberFunction(c, "mimeData", _n_mimeData0, None, Compiled, qt_QListWidget_mimeData_QMimeData_QListWidget_qt__QListWidgetItemBSB_ESB_, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "items", "qt.QListWidgetItem[]"), End), + _func[3] = new MemberFunction(c, "mimeTypes", _n_mimeTypes0, None, Compiled, qt_QListWidget_mimeTypes_stringBSB_ESB__QListWidget, Return, "string[]", Parameters, new Param(c, "this", "qt.QListWidget"), End), + _func[4] = new MemberFunction(c, "supportedDropActions", _n_supportedDropActions0, None, Compiled, qt_QListWidget_supportedDropActions_int_QListWidget, Return, "int", Parameters, new Param(c, "this", "qt.QListWidget"), End), + _func[5] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QListWidget_dropEvent_void_QListWidget_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "event", "qt.QDropEvent"), End), + _func[6] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QListWidget_event_bool_QListWidget_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "e", "qt.QEvent"), End), + _func[7] = new MemberFunction(c, "indexAt", _n_indexAt0, None, Compiled, qt_QListWidget_indexAt_QModelIndex_QListWidget_QPoint, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "p", "qt.QPoint"), End), + _func[8] = new MemberFunction(c, "scrollTo", _n_scrollTo0, None, Compiled, qt_QListWidget_scrollTo_void_QListWidget_QModelIndex_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "hint", "int", Value((int)QAbstractItemView::EnsureVisible)), End), + _func[9] = new MemberFunction(c, "setRootIndex", _n_setRootIndex0, None, Compiled, qt_QListWidget_setRootIndex_void_QListWidget_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "index", "qt.QModelIndex"), End), + _func[10] = new MemberFunction(c, "visualRect", _n_visualRect0, None, Compiled, qt_QListWidget_visualRect_QRect_QListWidget_QModelIndex, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "index", "qt.QModelIndex"), End), + _func[11] = new MemberFunction(c, "currentChanged", _n_currentChanged0, None, Compiled, qt_QListWidget_currentChanged_void_QListWidget_QModelIndex_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "current", "qt.QModelIndex"), new Param(c, "previous", "qt.QModelIndex"), End), + // MISSING: dataChanged (void; QListWidget this, QModelIndex topLeft, QModelIndex bottomRight, "const QList &" roles) // protected + _func[12] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QListWidget_dragLeaveEvent_void_QListWidget_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "e", "qt.QDragLeaveEvent"), End), + _func[13] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QListWidget_dragMoveEvent_void_QListWidget_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "e", "qt.QDragMoveEvent"), End), + _func[14] = new MemberFunction(c, "horizontalOffset", _n_horizontalOffset0, None, Compiled, qt_QListWidget_horizontalOffset_int_QListWidget, Return, "int", Parameters, new Param(c, "this", "qt.QListWidget"), End), + // MISSING: initViewItemOption (void; QListWidget this, "QStyleOptionViewItem *" option) // protected + _func[15] = new MemberFunction(c, "isIndexHidden", _n_isIndexHidden0, None, Compiled, qt_QListWidget_isIndexHidden_bool_QListWidget_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "index", "qt.QModelIndex"), End), + _func[16] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QListWidget_mouseMoveEvent_void_QListWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[17] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QListWidget_mouseReleaseEvent_void_QListWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[18] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QListWidget_paintEvent_void_QListWidget_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "e", "qt.QPaintEvent"), End), + _func[19] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QListWidget_resizeEvent_void_QListWidget_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "e", "qt.QResizeEvent"), End), + _func[20] = new MemberFunction(c, "rowsAboutToBeRemoved", _n_rowsAboutToBeRemoved0, None, Compiled, qt_QListWidget_rowsAboutToBeRemoved_void_QListWidget_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "start", "int"), new Param(c, "end", "int"), End), + _func[21] = new MemberFunction(c, "rowsInserted", _n_rowsInserted0, None, Compiled, qt_QListWidget_rowsInserted_void_QListWidget_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "start", "int"), new Param(c, "end", "int"), End), + _func[22] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QListWidget_scrollContentsBy_void_QListWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[23] = new MemberFunction(c, "selectedIndexes", _n_selectedIndexes0, None, Compiled, qt_QListWidget_selectedIndexes_qt__QModelIndexBSB_ESB__QListWidget, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QListWidget"), End), + _func[24] = new MemberFunction(c, "selectionChanged", _n_selectionChanged0, None, Compiled, qt_QListWidget_selectionChanged_void_QListWidget_QItemSelection_QItemSelection, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "selected", "qt.QItemSelection"), new Param(c, "deselected", "qt.QItemSelection"), End), + _func[25] = new MemberFunction(c, "setSelection", _n_setSelection0, None, Compiled, qt_QListWidget_setSelection_void_QListWidget_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "rect", "qt.QRect"), new Param(c, "command", "int"), End), + _func[26] = new MemberFunction(c, "startDrag", _n_startDrag0, None, Compiled, qt_QListWidget_startDrag_void_QListWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "supportedActions", "int"), End), + _func[27] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QListWidget_timerEvent_void_QListWidget_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "e", "qt.QTimerEvent"), End), + _func[28] = new MemberFunction(c, "updateGeometries", _n_updateGeometries0, None, Compiled, qt_QListWidget_updateGeometries_void_QListWidget, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), End), + _func[29] = new MemberFunction(c, "verticalOffset", _n_verticalOffset0, None, Compiled, qt_QListWidget_verticalOffset_int_QListWidget, Return, "int", Parameters, new Param(c, "this", "qt.QListWidget"), End), + _func[30] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QListWidget_viewportSizeHint_QSize_QListWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QListWidget"), End), + _func[31] = new MemberFunction(c, "visualRegionForSelection", _n_visualRegionForSelection0, None, Compiled, qt_QListWidget_visualRegionForSelection_QRegion_QListWidget_QItemSelection, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "selection", "qt.QItemSelection"), End), + _func[32] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QListWidget_wheelEvent_void_QListWidget_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QListWidget"), new Param(c, "e", "qt.QWheelEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QListWidget::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QLocalSocketType.cpp b/src/lib/mu/MuQt6/QLocalSocketType.cpp new file mode 100644 index 000000000..97b6dd0e0 --- /dev/null +++ b/src/lib/mu/MuQt6/QLocalSocketType.cpp @@ -0,0 +1,870 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QLocalSocket::~MuQt_QLocalSocket() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QLocalSocket::MuQt_QLocalSocket(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QLocalSocket(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLocalSocket")); +} + +qint64 MuQt_QLocalSocket::bytesAvailable() const +{ + if (!_env) return QLocalSocket::bytesAvailable(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QLocalSocket::bytesAvailable(); + } +} + +qint64 MuQt_QLocalSocket::bytesToWrite() const +{ + if (!_env) return QLocalSocket::bytesToWrite(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QLocalSocket::bytesToWrite(); + } +} + +bool MuQt_QLocalSocket::canReadLine() const +{ + if (!_env) return QLocalSocket::canReadLine(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLocalSocket::canReadLine(); + } +} + +void MuQt_QLocalSocket::close() +{ + if (!_env) { QLocalSocket::close(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QLocalSocket::close(); + } +} + +bool MuQt_QLocalSocket::isSequential() const +{ + if (!_env) return QLocalSocket::isSequential(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLocalSocket::isSequential(); + } +} + +bool MuQt_QLocalSocket::open(QIODeviceBase::OpenMode openMode) +{ + if (!_env) return QLocalSocket::open(openMode); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(openMode)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLocalSocket::open(openMode); + } +} + +bool MuQt_QLocalSocket::waitForBytesWritten(int msecs) +{ + if (!_env) return QLocalSocket::waitForBytesWritten(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLocalSocket::waitForBytesWritten(msecs); + } +} + +bool MuQt_QLocalSocket::waitForReadyRead(int msecs) +{ + if (!_env) return QLocalSocket::waitForReadyRead(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLocalSocket::waitForReadyRead(msecs); + } +} + +qint64 MuQt_QLocalSocket::skipData(qint64 maxSize) +{ + if (!_env) return QLocalSocket::skipData(maxSize); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(maxSize); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QLocalSocket::skipData(maxSize); + } +} + +bool MuQt_QLocalSocket::atEnd() const +{ + if (!_env) return QLocalSocket::atEnd(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLocalSocket::atEnd(); + } +} + +qint64 MuQt_QLocalSocket::pos() const +{ + if (!_env) return QLocalSocket::pos(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QLocalSocket::pos(); + } +} + +bool MuQt_QLocalSocket::reset() +{ + if (!_env) return QLocalSocket::reset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLocalSocket::reset(); + } +} + +bool MuQt_QLocalSocket::seek(qint64 pos) +{ + if (!_env) return QLocalSocket::seek(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(pos); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QLocalSocket::seek(pos); + } +} + +qint64 MuQt_QLocalSocket::size() const +{ + if (!_env) return QLocalSocket::size(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QLocalSocket::size(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QLocalSocketType::QLocalSocketType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QLocalSocketType::~QLocalSocketType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QLocalSocket_QLocalSocket_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QLocalSocket* w = object(widget)) + { + QLocalSocketType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QLocalSocket"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QLocalSocket_QLocalSocket_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QLocalSocket_QLocalSocket_QLocalSocket_QLocalSocket_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QLocalSocket(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QLocalSocket_abort_void_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + arg0->abort(); +} + +void qt_QLocalSocket_connectToServer_void_QLocalSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_openMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + QIODeviceBase::OpenMode arg1 = (QIODeviceBase::OpenMode)(param_openMode); + arg0->connectToServer(arg1); +} + +void qt_QLocalSocket_connectToServer_void_QLocalSocket_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name, int param_openMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + const QString arg1 = qstring(param_name); + QIODeviceBase::OpenMode arg2 = (QIODeviceBase::OpenMode)(param_openMode); + arg0->connectToServer(arg1, arg2); +} + +void qt_QLocalSocket_disconnectFromServer_void_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + arg0->disconnectFromServer(); +} + +int qt_QLocalSocket_error_int_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return int(arg0->error()); +} + +bool qt_QLocalSocket_flush_bool_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return arg0->flush(); +} + +Pointer qt_QLocalSocket_fullServerName_string_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return makestring(c,arg0->fullServerName()); +} + +bool qt_QLocalSocket_isValid_bool_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return arg0->isValid(); +} + +int64 qt_QLocalSocket_readBufferSize_int64_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return arg0->readBufferSize(); +} + +Pointer qt_QLocalSocket_serverName_string_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return makestring(c,arg0->serverName()); +} + +void qt_QLocalSocket_setReadBufferSize_void_QLocalSocket_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + qint64 arg1 = (int64)(param_size); + arg0->setReadBufferSize(arg1); +} + +void qt_QLocalSocket_setServerName_void_QLocalSocket_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + const QString arg1 = qstring(param_name); + arg0->setServerName(arg1); +} + +int qt_QLocalSocket_state_int_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return int(arg0->state()); +} + +bool qt_QLocalSocket_waitForConnected_bool_QLocalSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return arg0->waitForConnected(arg1); +} + +bool qt_QLocalSocket_waitForDisconnected_bool_QLocalSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return arg0->waitForDisconnected(arg1); +} + +int64 qt_QLocalSocket_bytesAvailable_int64_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLocalSocket::bytesAvailable() : arg0->bytesAvailable(); +} + +int64 qt_QLocalSocket_bytesToWrite_int64_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLocalSocket::bytesToWrite() : arg0->bytesToWrite(); +} + +bool qt_QLocalSocket_canReadLine_bool_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLocalSocket::canReadLine() : arg0->canReadLine(); +} + +void qt_QLocalSocket_close_void_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QLocalSocket::close(); + else arg0->close(); +} + +bool qt_QLocalSocket_isSequential_bool_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLocalSocket::isSequential() : arg0->isSequential(); +} + +bool qt_QLocalSocket_open_bool_QLocalSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_openMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + QIODeviceBase::OpenMode arg1 = (QIODeviceBase::OpenMode)(param_openMode); + return isMuQtObject(arg0) ? arg0->QLocalSocket::open(arg1) : arg0->open(arg1); +} + +bool qt_QLocalSocket_waitForBytesWritten_bool_QLocalSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QLocalSocket::waitForBytesWritten(arg1) : arg0->waitForBytesWritten(arg1); +} + +bool qt_QLocalSocket_waitForReadyRead_bool_QLocalSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QLocalSocket::waitForReadyRead(arg1) : arg0->waitForReadyRead(arg1); +} + +int64 qt_QLocalSocket_skipData_int64_QLocalSocket_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + qint64 arg1 = (int64)(param_maxSize); + return isMuQtObject(arg0) ? ((MuQt_QLocalSocket*)arg0)->skipData_pub_parent(arg1) : ((MuQt_QLocalSocket*)arg0)->skipData_pub(arg1); +} + +bool qt_QLocalSocket_atEnd_bool_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLocalSocket::atEnd() : arg0->atEnd(); +} + +int64 qt_QLocalSocket_pos_int64_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLocalSocket::pos() : arg0->pos(); +} + +bool qt_QLocalSocket_reset_bool_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLocalSocket::reset() : arg0->reset(); +} + +bool qt_QLocalSocket_seek_bool_QLocalSocket_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + qint64 arg1 = (int64)(param_pos); + return isMuQtObject(arg0) ? arg0->QLocalSocket::seek(arg1) : arg0->seek(arg1); +} + +int64 qt_QLocalSocket_size_int64_QLocalSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLocalSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QLocalSocket::size() : arg0->size(); +} + + +static NODE_IMPLEMENTATION(_n_QLocalSocket0, Pointer) +{ + NODE_RETURN(qt_QLocalSocket_QLocalSocket_QLocalSocket_QLocalSocket_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_abort0, void) +{ + qt_QLocalSocket_abort_void_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_connectToServer0, void) +{ + qt_QLocalSocket_connectToServer_void_QLocalSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_connectToServer1, void) +{ + qt_QLocalSocket_connectToServer_void_QLocalSocket_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_disconnectFromServer0, void) +{ + qt_QLocalSocket_disconnectFromServer_void_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_error0, int) +{ + NODE_RETURN(qt_QLocalSocket_error_int_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_flush0, bool) +{ + NODE_RETURN(qt_QLocalSocket_flush_bool_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fullServerName0, Pointer) +{ + NODE_RETURN(qt_QLocalSocket_fullServerName_string_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QLocalSocket_isValid_bool_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_readBufferSize0, int64) +{ + NODE_RETURN(qt_QLocalSocket_readBufferSize_int64_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_serverName0, Pointer) +{ + NODE_RETURN(qt_QLocalSocket_serverName_string_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setReadBufferSize0, void) +{ + qt_QLocalSocket_setReadBufferSize_void_QLocalSocket_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64)); +} + +static NODE_IMPLEMENTATION(_n_setServerName0, void) +{ + qt_QLocalSocket_setServerName_void_QLocalSocket_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_state0, int) +{ + NODE_RETURN(qt_QLocalSocket_state_int_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_waitForConnected0, bool) +{ + NODE_RETURN(qt_QLocalSocket_waitForConnected_bool_QLocalSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForDisconnected0, bool) +{ + NODE_RETURN(qt_QLocalSocket_waitForDisconnected_bool_QLocalSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_bytesAvailable0, int64) +{ + NODE_RETURN(qt_QLocalSocket_bytesAvailable_int64_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesToWrite0, int64) +{ + NODE_RETURN(qt_QLocalSocket_bytesToWrite_int64_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canReadLine0, bool) +{ + NODE_RETURN(qt_QLocalSocket_canReadLine_bool_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_close0, void) +{ + qt_QLocalSocket_close_void_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isSequential0, bool) +{ + NODE_RETURN(qt_QLocalSocket_isSequential_bool_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_open0, bool) +{ + NODE_RETURN(qt_QLocalSocket_open_bool_QLocalSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForBytesWritten0, bool) +{ + NODE_RETURN(qt_QLocalSocket_waitForBytesWritten_bool_QLocalSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForReadyRead0, bool) +{ + NODE_RETURN(qt_QLocalSocket_waitForReadyRead_bool_QLocalSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_skipData0, int64) +{ + NODE_RETURN(qt_QLocalSocket_skipData_int64_QLocalSocket_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_atEnd0, bool) +{ + NODE_RETURN(qt_QLocalSocket_atEnd_bool_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pos0, int64) +{ + NODE_RETURN(qt_QLocalSocket_pos_int64_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_reset0, bool) +{ + NODE_RETURN(qt_QLocalSocket_reset_bool_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_seek0, bool) +{ + NODE_RETURN(qt_QLocalSocket_seek_bool_QLocalSocket_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_size0, int64) +{ + NODE_RETURN(qt_QLocalSocket_size_int64_QLocalSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QLocalSocketType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QLocalSocket_QLocalSocket_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + new Alias(c, "LocalSocketError", "int"), + new SymbolicConstant(c, "ConnectionRefusedError", "int", Value(int(QLocalSocket::ConnectionRefusedError))), + new SymbolicConstant(c, "PeerClosedError", "int", Value(int(QLocalSocket::PeerClosedError))), + new SymbolicConstant(c, "ServerNotFoundError", "int", Value(int(QLocalSocket::ServerNotFoundError))), + new SymbolicConstant(c, "SocketAccessError", "int", Value(int(QLocalSocket::SocketAccessError))), + new SymbolicConstant(c, "SocketResourceError", "int", Value(int(QLocalSocket::SocketResourceError))), + new SymbolicConstant(c, "SocketTimeoutError", "int", Value(int(QLocalSocket::SocketTimeoutError))), + new SymbolicConstant(c, "DatagramTooLargeError", "int", Value(int(QLocalSocket::DatagramTooLargeError))), + new SymbolicConstant(c, "ConnectionError", "int", Value(int(QLocalSocket::ConnectionError))), + new SymbolicConstant(c, "UnsupportedSocketOperationError", "int", Value(int(QLocalSocket::UnsupportedSocketOperationError))), + new SymbolicConstant(c, "OperationError", "int", Value(int(QLocalSocket::OperationError))), + new SymbolicConstant(c, "UnknownSocketError", "int", Value(int(QLocalSocket::UnknownSocketError))), + new Alias(c, "LocalSocketState", "int"), + new SymbolicConstant(c, "UnconnectedState", "int", Value(int(QLocalSocket::UnconnectedState))), + new SymbolicConstant(c, "ConnectingState", "int", Value(int(QLocalSocket::ConnectingState))), + new SymbolicConstant(c, "ConnectedState", "int", Value(int(QLocalSocket::ConnectedState))), + new SymbolicConstant(c, "ClosingState", "int", Value(int(QLocalSocket::ClosingState))), + // member functions + new Function(c, "QLocalSocket", _n_QLocalSocket0, None, Compiled, qt_QLocalSocket_QLocalSocket_QLocalSocket_QLocalSocket_QObject, Return, "qt.QLocalSocket", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "abort", _n_abort0, None, Compiled, qt_QLocalSocket_abort_void_QLocalSocket, Return, "void", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + // PROP: bindableSocketOptions (flags QBindable; QLocalSocket this) + new Function(c, "connectToServer", _n_connectToServer0, None, Compiled, qt_QLocalSocket_connectToServer_void_QLocalSocket_int, Return, "void", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "openMode", "int", Value((int)QIODeviceBase::ReadWrite)), End), + new Function(c, "connectToServer", _n_connectToServer1, None, Compiled, qt_QLocalSocket_connectToServer_void_QLocalSocket_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "name", "string"), new Param(c, "openMode", "int", Value((int)QIODeviceBase::ReadWrite)), End), + new Function(c, "disconnectFromServer", _n_disconnectFromServer0, None, Compiled, qt_QLocalSocket_disconnectFromServer_void_QLocalSocket, Return, "void", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + new Function(c, "error", _n_error0, None, Compiled, qt_QLocalSocket_error_int_QLocalSocket, Return, "int", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + new Function(c, "flush", _n_flush0, None, Compiled, qt_QLocalSocket_flush_bool_QLocalSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + new Function(c, "fullServerName", _n_fullServerName0, None, Compiled, qt_QLocalSocket_fullServerName_string_QLocalSocket, Return, "string", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QLocalSocket_isValid_bool_QLocalSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + new Function(c, "readBufferSize", _n_readBufferSize0, None, Compiled, qt_QLocalSocket_readBufferSize_int64_QLocalSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + new Function(c, "serverName", _n_serverName0, None, Compiled, qt_QLocalSocket_serverName_string_QLocalSocket, Return, "string", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + new Function(c, "setReadBufferSize", _n_setReadBufferSize0, None, Compiled, qt_QLocalSocket_setReadBufferSize_void_QLocalSocket_int64, Return, "void", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "size", "int64"), End), + new Function(c, "setServerName", _n_setServerName0, None, Compiled, qt_QLocalSocket_setServerName_void_QLocalSocket_string, Return, "void", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "name", "string"), End), + // MISSING: setSocketDescriptor (bool; QLocalSocket this, "qintptr" socketDescriptor, flags QLocalSocket::LocalSocketState socketState, flags QIODeviceBase::OpenMode openMode) + // PROP: setSocketOptions (void; QLocalSocket this, flags QLocalSocket::SocketOptions option) + // MISSING: socketDescriptor ("qintptr"; QLocalSocket this) + // PROP: socketOptions (flags QLocalSocket::SocketOptions; QLocalSocket this) + new Function(c, "state", _n_state0, None, Compiled, qt_QLocalSocket_state_int_QLocalSocket, Return, "int", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + new Function(c, "waitForConnected", _n_waitForConnected0, None, Compiled, qt_QLocalSocket_waitForConnected_bool_QLocalSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + new Function(c, "waitForDisconnected", _n_waitForDisconnected0, None, Compiled, qt_QLocalSocket_waitForDisconnected_bool_QLocalSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[0] = new MemberFunction(c, "bytesAvailable", _n_bytesAvailable0, None, Compiled, qt_QLocalSocket_bytesAvailable_int64_QLocalSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + _func[1] = new MemberFunction(c, "bytesToWrite", _n_bytesToWrite0, None, Compiled, qt_QLocalSocket_bytesToWrite_int64_QLocalSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + _func[2] = new MemberFunction(c, "canReadLine", _n_canReadLine0, None, Compiled, qt_QLocalSocket_canReadLine_bool_QLocalSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + _func[3] = new MemberFunction(c, "close", _n_close0, None, Compiled, qt_QLocalSocket_close_void_QLocalSocket, Return, "void", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + _func[4] = new MemberFunction(c, "isSequential", _n_isSequential0, None, Compiled, qt_QLocalSocket_isSequential_bool_QLocalSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + _func[5] = new MemberFunction(c, "open", _n_open0, None, Compiled, qt_QLocalSocket_open_bool_QLocalSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "openMode", "int", Value((int)QIODeviceBase::ReadWrite)), End), + _func[6] = new MemberFunction(c, "waitForBytesWritten", _n_waitForBytesWritten0, None, Compiled, qt_QLocalSocket_waitForBytesWritten_bool_QLocalSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[7] = new MemberFunction(c, "waitForReadyRead", _n_waitForReadyRead0, None, Compiled, qt_QLocalSocket_waitForReadyRead_bool_QLocalSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + // MISSING: readData (int64; QLocalSocket this, "char *" data, int64 c) // protected + // MISSING: readLineData (int64; QLocalSocket this, "char *" data, int64 maxSize) // protected + _func[8] = new MemberFunction(c, "skipData", _n_skipData0, None, Compiled, qt_QLocalSocket_skipData_int64_QLocalSocket_int64, Return, "int64", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "maxSize", "int64"), End), + // MISSING: writeData (int64; QLocalSocket this, "const char *" data, int64 c) // protected + _func[9] = new MemberFunction(c, "atEnd", _n_atEnd0, None, Compiled, qt_QLocalSocket_atEnd_bool_QLocalSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + _func[10] = new MemberFunction(c, "pos", _n_pos0, None, Compiled, qt_QLocalSocket_pos_int64_QLocalSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + _func[11] = new MemberFunction(c, "reset", _n_reset0, None, Compiled, qt_QLocalSocket_reset_bool_QLocalSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + _func[12] = new MemberFunction(c, "seek", _n_seek0, None, Compiled, qt_QLocalSocket_seek_bool_QLocalSocket_int64, Return, "bool", Parameters, new Param(c, "this", "qt.QLocalSocket"), new Param(c, "pos", "int64"), End), + _func[13] = new MemberFunction(c, "size", _n_size0, None, Compiled, qt_QLocalSocket_size_int64_QLocalSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QLocalSocket"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QLocalSocket::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QMainWindowType.cpp b/src/lib/mu/MuQt6/QMainWindowType.cpp new file mode 100644 index 000000000..33252d8e8 --- /dev/null +++ b/src/lib/mu/MuQt6/QMainWindowType.cpp @@ -0,0 +1,1766 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QMainWindow::~MuQt_QMainWindow() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QMainWindow::MuQt_QMainWindow(Pointer muobj, const CallEnvironment* ce, QWidget * parent, Qt::WindowFlags flags) + : QMainWindow(parent, flags) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QMainWindow")); +} + +QMenu * MuQt_QMainWindow::createPopupMenu() +{ + if (!_env) return QMainWindow::createPopupMenu(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QMainWindow::createPopupMenu(); + } +} + +void MuQt_QMainWindow::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QMainWindow::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::contextMenuEvent(event); + } +} + +bool MuQt_QMainWindow::event(QEvent * event_) +{ + if (!_env) return QMainWindow::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMainWindow::event(event_); + } +} + +bool MuQt_QMainWindow::hasHeightForWidth() const +{ + if (!_env) return QMainWindow::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMainWindow::hasHeightForWidth(); + } +} + +int MuQt_QMainWindow::heightForWidth(int w) const +{ + if (!_env) return QMainWindow::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QMainWindow::heightForWidth(w); + } +} + +QVariant MuQt_QMainWindow::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QMainWindow::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QMainWindow::inputMethodQuery(query); + } +} + +QSize MuQt_QMainWindow::minimumSizeHint() const +{ + if (!_env) return QMainWindow::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QMainWindow::minimumSizeHint(); + } +} + +QSize MuQt_QMainWindow::sizeHint() const +{ + if (!_env) return QMainWindow::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QMainWindow::sizeHint(); + } +} + +void MuQt_QMainWindow::changeEvent(QEvent * event) +{ + if (!_env) { QMainWindow::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::changeEvent(event); + } +} + +void MuQt_QMainWindow::closeEvent(QCloseEvent * event) +{ + if (!_env) { QMainWindow::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::closeEvent(event); + } +} + +void MuQt_QMainWindow::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QMainWindow::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::dragEnterEvent(event); + } +} + +void MuQt_QMainWindow::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QMainWindow::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::dragLeaveEvent(event); + } +} + +void MuQt_QMainWindow::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QMainWindow::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::dragMoveEvent(event); + } +} + +void MuQt_QMainWindow::dropEvent(QDropEvent * event) +{ + if (!_env) { QMainWindow::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::dropEvent(event); + } +} + +void MuQt_QMainWindow::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QMainWindow::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::focusInEvent(event); + } +} + +bool MuQt_QMainWindow::focusNextPrevChild(bool next) +{ + if (!_env) return QMainWindow::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMainWindow::focusNextPrevChild(next); + } +} + +void MuQt_QMainWindow::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QMainWindow::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::focusOutEvent(event); + } +} + +void MuQt_QMainWindow::hideEvent(QHideEvent * event) +{ + if (!_env) { QMainWindow::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::hideEvent(event); + } +} + +void MuQt_QMainWindow::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QMainWindow::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::keyPressEvent(event); + } +} + +void MuQt_QMainWindow::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QMainWindow::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::keyReleaseEvent(event); + } +} + +void MuQt_QMainWindow::leaveEvent(QEvent * event) +{ + if (!_env) { QMainWindow::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::leaveEvent(event); + } +} + +void MuQt_QMainWindow::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QMainWindow::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::mouseDoubleClickEvent(event); + } +} + +void MuQt_QMainWindow::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QMainWindow::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::mouseMoveEvent(event); + } +} + +void MuQt_QMainWindow::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QMainWindow::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::mousePressEvent(event); + } +} + +void MuQt_QMainWindow::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QMainWindow::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::mouseReleaseEvent(event); + } +} + +void MuQt_QMainWindow::moveEvent(QMoveEvent * event) +{ + if (!_env) { QMainWindow::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::moveEvent(event); + } +} + +void MuQt_QMainWindow::paintEvent(QPaintEvent * event) +{ + if (!_env) { QMainWindow::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::paintEvent(event); + } +} + +void MuQt_QMainWindow::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QMainWindow::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::resizeEvent(event); + } +} + +void MuQt_QMainWindow::showEvent(QShowEvent * event) +{ + if (!_env) { QMainWindow::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::showEvent(event); + } +} + +void MuQt_QMainWindow::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QMainWindow::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::tabletEvent(event); + } +} + +void MuQt_QMainWindow::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QMainWindow::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QMainWindow::wheelEvent(event); + } +} + +int MuQt_QMainWindow::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QMainWindow::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QMainWindow::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QMainWindowType::QMainWindowType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QMainWindowType::~QMainWindowType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QMainWindow_QMainWindow_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QMainWindow* w = object(widget)) + { + QMainWindowType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QMainWindow"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QMainWindow_QMainWindow_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QMainWindow_QMainWindow_QMainWindow_QMainWindow_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + Qt::WindowFlags arg2 = (Qt::WindowFlags)(param_flags); + setobject(param_this, new MuQt_QMainWindow(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +void qt_QMainWindow_addDockWidget_void_QMainWindow_int_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_area, Pointer param_dockwidget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + Qt::DockWidgetArea arg1 = (Qt::DockWidgetArea)(param_area); + QDockWidget * arg2 = object(param_dockwidget); + arg0->addDockWidget(arg1, arg2); +} + +void qt_QMainWindow_addDockWidget_void_QMainWindow_int_QDockWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_area, Pointer param_dockwidget, int param_orientation) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + Qt::DockWidgetArea arg1 = (Qt::DockWidgetArea)(param_area); + QDockWidget * arg2 = object(param_dockwidget); + Qt::Orientation arg3 = (Qt::Orientation)(param_orientation); + arg0->addDockWidget(arg1, arg2, arg3); +} + +void qt_QMainWindow_addToolBar_void_QMainWindow_int_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this, int param_area, Pointer param_toolbar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + Qt::ToolBarArea arg1 = (Qt::ToolBarArea)(param_area); + QToolBar * arg2 = object(param_toolbar); + arg0->addToolBar(arg1, arg2); +} + +void qt_QMainWindow_addToolBar_void_QMainWindow_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_toolbar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QToolBar * arg1 = object(param_toolbar); + arg0->addToolBar(arg1); +} + +Pointer qt_QMainWindow_addToolBar_QToolBar_QMainWindow_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_title) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + const QString arg1 = qstring(param_title); + return makeinstance(c, arg0->addToolBar(arg1), "qt.QToolBar"); +} + +void qt_QMainWindow_addToolBarBreak_void_QMainWindow_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_area) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + Qt::ToolBarArea arg1 = (Qt::ToolBarArea)(param_area); + arg0->addToolBarBreak(arg1); +} + +Pointer qt_QMainWindow_centralWidget_QWidget_QMainWindow(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + return makeinstance(c, arg0->centralWidget(), "qt.QWidget"); +} + +int qt_QMainWindow_corner_int_QMainWindow_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_corner_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + Qt::Corner arg1 = (Qt::Corner)(param_corner_); + return int(arg0->corner(arg1)); +} + +Pointer qt_QMainWindow_createPopupMenu_QMenu_QMainWindow(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QMainWindow::createPopupMenu(), "qt.QMenu") : makeinstance(c, arg0->createPopupMenu(), "qt.QMenu"); +} + +int qt_QMainWindow_dockWidgetArea_int_QMainWindow_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dockwidget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QDockWidget * arg1 = object(param_dockwidget); + return int(arg0->dockWidgetArea(arg1)); +} + +void qt_QMainWindow_insertToolBar_void_QMainWindow_QToolBar_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before, Pointer param_toolbar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QToolBar * arg1 = object(param_before); + QToolBar * arg2 = object(param_toolbar); + arg0->insertToolBar(arg1, arg2); +} + +void qt_QMainWindow_insertToolBarBreak_void_QMainWindow_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QToolBar * arg1 = object(param_before); + arg0->insertToolBarBreak(arg1); +} + +Pointer qt_QMainWindow_menuBar_QMenuBar_QMainWindow(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + return makeinstance(c, arg0->menuBar(), "qt.QMenuBar"); +} + +Pointer qt_QMainWindow_menuWidget_QWidget_QMainWindow(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + return makeinstance(c, arg0->menuWidget(), "qt.QWidget"); +} + +void qt_QMainWindow_removeDockWidget_void_QMainWindow_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dockwidget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QDockWidget * arg1 = object(param_dockwidget); + arg0->removeDockWidget(arg1); +} + +void qt_QMainWindow_removeToolBar_void_QMainWindow_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_toolbar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QToolBar * arg1 = object(param_toolbar); + arg0->removeToolBar(arg1); +} + +void qt_QMainWindow_removeToolBarBreak_void_QMainWindow_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QToolBar * arg1 = object(param_before); + arg0->removeToolBarBreak(arg1); +} + +bool qt_QMainWindow_restoreDockWidget_bool_QMainWindow_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dockwidget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QDockWidget * arg1 = object(param_dockwidget); + return arg0->restoreDockWidget(arg1); +} + +bool qt_QMainWindow_restoreState_bool_QMainWindow_QByteArray_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_state, int param_version) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_state); + int arg2 = (int)(param_version); + return arg0->restoreState(arg1, arg2); +} + +Pointer qt_QMainWindow_saveState_QByteArray_QMainWindow_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_version) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + int arg1 = (int)(param_version); + return makeqtype(c,arg0->saveState(arg1),"qt.QByteArray"); +} + +void qt_QMainWindow_setCentralWidget_void_QMainWindow_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->setCentralWidget(arg1); +} + +void qt_QMainWindow_setCorner_void_QMainWindow_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_corner, int param_area) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + Qt::Corner arg1 = (Qt::Corner)(param_corner); + Qt::DockWidgetArea arg2 = (Qt::DockWidgetArea)(param_area); + arg0->setCorner(arg1, arg2); +} + +void qt_QMainWindow_setMenuBar_void_QMainWindow_QMenuBar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_menuBar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QMenuBar * arg1 = object(param_menuBar); + arg0->setMenuBar(arg1); +} + +void qt_QMainWindow_setMenuWidget_void_QMainWindow_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_menuBar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QWidget * arg1 = object(param_menuBar); + arg0->setMenuWidget(arg1); +} + +void qt_QMainWindow_setStatusBar_void_QMainWindow_QStatusBar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_statusbar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QStatusBar * arg1 = object(param_statusbar); + arg0->setStatusBar(arg1); +} + +void qt_QMainWindow_setTabPosition_void_QMainWindow_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_areas, int param_tabPosition) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + Qt::DockWidgetAreas arg1 = (Qt::DockWidgetAreas)(param_areas); + QTabWidget::TabPosition arg2 = (QTabWidget::TabPosition)(param_tabPosition); + arg0->setTabPosition(arg1, arg2); +} + +void qt_QMainWindow_splitDockWidget_void_QMainWindow_QDockWidget_QDockWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_first, Pointer param_second, int param_orientation) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QDockWidget * arg1 = object(param_first); + QDockWidget * arg2 = object(param_second); + Qt::Orientation arg3 = (Qt::Orientation)(param_orientation); + arg0->splitDockWidget(arg1, arg2, arg3); +} + +Pointer qt_QMainWindow_statusBar_QStatusBar_QMainWindow(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + return makeinstance(c, arg0->statusBar(), "qt.QStatusBar"); +} + +int qt_QMainWindow_tabPosition_int_QMainWindow_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_area) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + Qt::DockWidgetArea arg1 = (Qt::DockWidgetArea)(param_area); + return int(arg0->tabPosition(arg1)); +} + +void qt_QMainWindow_tabifyDockWidget_void_QMainWindow_QDockWidget_QDockWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_first, Pointer param_second) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QDockWidget * arg1 = object(param_first); + QDockWidget * arg2 = object(param_second); + arg0->tabifyDockWidget(arg1, arg2); +} + +Pointer qt_QMainWindow_takeCentralWidget_QWidget_QMainWindow(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + return makeinstance(c, arg0->takeCentralWidget(), "qt.QWidget"); +} + +int qt_QMainWindow_toolBarArea_int_QMainWindow_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_toolbar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + const QToolBar * arg1 = object(param_toolbar); + return int(arg0->toolBarArea(arg1)); +} + +bool qt_QMainWindow_toolBarBreak_bool_QMainWindow_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_toolbar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QToolBar * arg1 = object(param_toolbar); + return arg0->toolBarBreak(arg1); +} + +void qt_QMainWindow_contextMenuEvent_void_QMainWindow_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->contextMenuEvent_pub(arg1); +} + +bool qt_QMainWindow_event_bool_QMainWindow_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QMainWindow*)arg0)->event_pub_parent(arg1) : ((MuQt_QMainWindow*)arg0)->event_pub(arg1); +} + +bool qt_QMainWindow_hasHeightForWidth_bool_QMainWindow(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QMainWindow::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QMainWindow_heightForWidth_int_QMainWindow_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QMainWindow::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QMainWindow_inputMethodQuery_QVariant_QMainWindow_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QMainWindow::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QMainWindow_minimumSizeHint_QSize_QMainWindow(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QMainWindow::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QMainWindow_sizeHint_QSize_QMainWindow(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QMainWindow::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QMainWindow_changeEvent_void_QMainWindow_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->changeEvent_pub(arg1); +} + +void qt_QMainWindow_closeEvent_void_QMainWindow_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->closeEvent_pub(arg1); +} + +void qt_QMainWindow_dragEnterEvent_void_QMainWindow_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QMainWindow_dragLeaveEvent_void_QMainWindow_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QMainWindow_dragMoveEvent_void_QMainWindow_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QMainWindow_dropEvent_void_QMainWindow_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->dropEvent_pub(arg1); +} + +void qt_QMainWindow_focusInEvent_void_QMainWindow_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QMainWindow_focusNextPrevChild_bool_QMainWindow_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QMainWindow*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QMainWindow*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QMainWindow_focusOutEvent_void_QMainWindow_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QMainWindow_hideEvent_void_QMainWindow_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->hideEvent_pub(arg1); +} + +void qt_QMainWindow_keyPressEvent_void_QMainWindow_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QMainWindow_keyReleaseEvent_void_QMainWindow_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QMainWindow_leaveEvent_void_QMainWindow_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QMainWindow_mouseDoubleClickEvent_void_QMainWindow_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QMainWindow_mouseMoveEvent_void_QMainWindow_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QMainWindow_mousePressEvent_void_QMainWindow_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QMainWindow_mouseReleaseEvent_void_QMainWindow_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QMainWindow_moveEvent_void_QMainWindow_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->moveEvent_pub(arg1); +} + +void qt_QMainWindow_paintEvent_void_QMainWindow_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->paintEvent_pub(arg1); +} + +void qt_QMainWindow_resizeEvent_void_QMainWindow_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QMainWindow_showEvent_void_QMainWindow_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->showEvent_pub(arg1); +} + +void qt_QMainWindow_tabletEvent_void_QMainWindow_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QMainWindow_wheelEvent_void_QMainWindow_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMainWindow*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QMainWindow*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QMainWindow_metric_int_QMainWindow_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMainWindow* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QMainWindow*)arg0)->metric_pub_parent(arg1) : ((MuQt_QMainWindow*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QMainWindow0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_QMainWindow_QMainWindow_QMainWindow_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_addDockWidget0, void) +{ + qt_QMainWindow_addDockWidget_void_QMainWindow_int_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addDockWidget1, void) +{ + qt_QMainWindow_addDockWidget_void_QMainWindow_int_QDockWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_addToolBar0, void) +{ + qt_QMainWindow_addToolBar_void_QMainWindow_int_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addToolBar1, void) +{ + qt_QMainWindow_addToolBar_void_QMainWindow_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addToolBar2, Pointer) +{ + NODE_RETURN(qt_QMainWindow_addToolBar_QToolBar_QMainWindow_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addToolBarBreak0, void) +{ + qt_QMainWindow_addToolBarBreak_void_QMainWindow_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_centralWidget0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_centralWidget_QWidget_QMainWindow(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_corner0, int) +{ + NODE_RETURN(qt_QMainWindow_corner_int_QMainWindow_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_createPopupMenu0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_createPopupMenu_QMenu_QMainWindow(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dockWidgetArea0, int) +{ + NODE_RETURN(qt_QMainWindow_dockWidgetArea_int_QMainWindow_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertToolBar0, void) +{ + qt_QMainWindow_insertToolBar_void_QMainWindow_QToolBar_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertToolBarBreak0, void) +{ + qt_QMainWindow_insertToolBarBreak_void_QMainWindow_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_menuBar0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_menuBar_QMenuBar_QMainWindow(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_menuWidget0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_menuWidget_QWidget_QMainWindow(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeDockWidget0, void) +{ + qt_QMainWindow_removeDockWidget_void_QMainWindow_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removeToolBar0, void) +{ + qt_QMainWindow_removeToolBar_void_QMainWindow_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removeToolBarBreak0, void) +{ + qt_QMainWindow_removeToolBarBreak_void_QMainWindow_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_restoreDockWidget0, bool) +{ + NODE_RETURN(qt_QMainWindow_restoreDockWidget_bool_QMainWindow_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_restoreState0, bool) +{ + NODE_RETURN(qt_QMainWindow_restoreState_bool_QMainWindow_QByteArray_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_saveState0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_saveState_QByteArray_QMainWindow_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setCentralWidget0, void) +{ + qt_QMainWindow_setCentralWidget_void_QMainWindow_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCorner0, void) +{ + qt_QMainWindow_setCorner_void_QMainWindow_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setMenuBar0, void) +{ + qt_QMainWindow_setMenuBar_void_QMainWindow_QMenuBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setMenuWidget0, void) +{ + qt_QMainWindow_setMenuWidget_void_QMainWindow_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setStatusBar0, void) +{ + qt_QMainWindow_setStatusBar_void_QMainWindow_QStatusBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabPosition0, void) +{ + qt_QMainWindow_setTabPosition_void_QMainWindow_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_splitDockWidget0, void) +{ + qt_QMainWindow_splitDockWidget_void_QMainWindow_QDockWidget_QDockWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_statusBar0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_statusBar_QStatusBar_QMainWindow(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_tabPosition0, int) +{ + NODE_RETURN(qt_QMainWindow_tabPosition_int_QMainWindow_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabifyDockWidget0, void) +{ + qt_QMainWindow_tabifyDockWidget_void_QMainWindow_QDockWidget_QDockWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_takeCentralWidget0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_takeCentralWidget_QWidget_QMainWindow(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toolBarArea0, int) +{ + NODE_RETURN(qt_QMainWindow_toolBarArea_int_QMainWindow_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toolBarBreak0, bool) +{ + NODE_RETURN(qt_QMainWindow_toolBarBreak_bool_QMainWindow_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QMainWindow_contextMenuEvent_void_QMainWindow_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QMainWindow_event_bool_QMainWindow_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QMainWindow_hasHeightForWidth_bool_QMainWindow(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QMainWindow_heightForWidth_int_QMainWindow_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_inputMethodQuery_QVariant_QMainWindow_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_minimumSizeHint_QSize_QMainWindow(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QMainWindow_sizeHint_QSize_QMainWindow(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QMainWindow_changeEvent_void_QMainWindow_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QMainWindow_closeEvent_void_QMainWindow_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QMainWindow_dragEnterEvent_void_QMainWindow_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QMainWindow_dragLeaveEvent_void_QMainWindow_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QMainWindow_dragMoveEvent_void_QMainWindow_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QMainWindow_dropEvent_void_QMainWindow_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QMainWindow_focusInEvent_void_QMainWindow_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QMainWindow_focusNextPrevChild_bool_QMainWindow_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QMainWindow_focusOutEvent_void_QMainWindow_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QMainWindow_hideEvent_void_QMainWindow_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QMainWindow_keyPressEvent_void_QMainWindow_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QMainWindow_keyReleaseEvent_void_QMainWindow_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QMainWindow_leaveEvent_void_QMainWindow_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QMainWindow_mouseDoubleClickEvent_void_QMainWindow_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QMainWindow_mouseMoveEvent_void_QMainWindow_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QMainWindow_mousePressEvent_void_QMainWindow_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QMainWindow_mouseReleaseEvent_void_QMainWindow_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QMainWindow_moveEvent_void_QMainWindow_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QMainWindow_paintEvent_void_QMainWindow_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QMainWindow_resizeEvent_void_QMainWindow_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QMainWindow_showEvent_void_QMainWindow_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QMainWindow_tabletEvent_void_QMainWindow_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QMainWindow_wheelEvent_void_QMainWindow_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QMainWindow_metric_int_QMainWindow_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QMainWindowType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QMainWindow_QMainWindow_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QMainWindow", _n_QMainWindow0, None, Compiled, qt_QMainWindow_QMainWindow_QMainWindow_QMainWindow_QWidget_int, Return, "qt.QMainWindow", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "parent", "qt.QWidget"), new Param(c, "flags", "int", Value((int)Qt::WindowFlags())), End), + new Function(c, "addDockWidget", _n_addDockWidget0, None, Compiled, qt_QMainWindow_addDockWidget_void_QMainWindow_int_QDockWidget, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "area", "int"), new Param(c, "dockwidget", "qt.QDockWidget"), End), + new Function(c, "addDockWidget", _n_addDockWidget1, None, Compiled, qt_QMainWindow_addDockWidget_void_QMainWindow_int_QDockWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "area", "int"), new Param(c, "dockwidget", "qt.QDockWidget"), new Param(c, "orientation", "int"), End), + new Function(c, "addToolBar", _n_addToolBar0, None, Compiled, qt_QMainWindow_addToolBar_void_QMainWindow_int_QToolBar, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "area", "int"), new Param(c, "toolbar", "qt.QToolBar"), End), + new Function(c, "addToolBar", _n_addToolBar1, None, Compiled, qt_QMainWindow_addToolBar_void_QMainWindow_QToolBar, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "toolbar", "qt.QToolBar"), End), + new Function(c, "addToolBar", _n_addToolBar2, None, Compiled, qt_QMainWindow_addToolBar_QToolBar_QMainWindow_string, Return, "qt.QToolBar", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "title", "string"), End), + new Function(c, "addToolBarBreak", _n_addToolBarBreak0, None, Compiled, qt_QMainWindow_addToolBarBreak_void_QMainWindow_int, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "area", "int", Value((int)Qt::TopToolBarArea)), End), + new Function(c, "centralWidget", _n_centralWidget0, None, Compiled, qt_QMainWindow_centralWidget_QWidget_QMainWindow, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QMainWindow"), End), + new Function(c, "corner", _n_corner0, None, Compiled, qt_QMainWindow_corner_int_QMainWindow_int, Return, "int", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "corner_", "int"), End), + _func[0] = new MemberFunction(c, "createPopupMenu", _n_createPopupMenu0, None, Compiled, qt_QMainWindow_createPopupMenu_QMenu_QMainWindow, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QMainWindow"), End), + // PROP: dockOptions (flags QMainWindow::DockOptions; QMainWindow this) + new Function(c, "dockWidgetArea", _n_dockWidgetArea0, None, Compiled, qt_QMainWindow_dockWidgetArea_int_QMainWindow_QDockWidget, Return, "int", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "dockwidget", "qt.QDockWidget"), End), + // PROP: documentMode (bool; QMainWindow this) + // PROP: iconSize (QSize; QMainWindow this) + new Function(c, "insertToolBar", _n_insertToolBar0, None, Compiled, qt_QMainWindow_insertToolBar_void_QMainWindow_QToolBar_QToolBar, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "before", "qt.QToolBar"), new Param(c, "toolbar", "qt.QToolBar"), End), + new Function(c, "insertToolBarBreak", _n_insertToolBarBreak0, None, Compiled, qt_QMainWindow_insertToolBarBreak_void_QMainWindow_QToolBar, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "before", "qt.QToolBar"), End), + // PROP: isAnimated (bool; QMainWindow this) + // PROP: isDockNestingEnabled (bool; QMainWindow this) + new Function(c, "menuBar", _n_menuBar0, None, Compiled, qt_QMainWindow_menuBar_QMenuBar_QMainWindow, Return, "qt.QMenuBar", Parameters, new Param(c, "this", "qt.QMainWindow"), End), + new Function(c, "menuWidget", _n_menuWidget0, None, Compiled, qt_QMainWindow_menuWidget_QWidget_QMainWindow, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QMainWindow"), End), + new Function(c, "removeDockWidget", _n_removeDockWidget0, None, Compiled, qt_QMainWindow_removeDockWidget_void_QMainWindow_QDockWidget, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "dockwidget", "qt.QDockWidget"), End), + new Function(c, "removeToolBar", _n_removeToolBar0, None, Compiled, qt_QMainWindow_removeToolBar_void_QMainWindow_QToolBar, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "toolbar", "qt.QToolBar"), End), + new Function(c, "removeToolBarBreak", _n_removeToolBarBreak0, None, Compiled, qt_QMainWindow_removeToolBarBreak_void_QMainWindow_QToolBar, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "before", "qt.QToolBar"), End), + // MISSING: resizeDocks (void; QMainWindow this, "const QList &" docks, "const QList &" sizes, flags Qt::Orientation orientation) + new Function(c, "restoreDockWidget", _n_restoreDockWidget0, None, Compiled, qt_QMainWindow_restoreDockWidget_bool_QMainWindow_QDockWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "dockwidget", "qt.QDockWidget"), End), + new Function(c, "restoreState", _n_restoreState0, None, Compiled, qt_QMainWindow_restoreState_bool_QMainWindow_QByteArray_int, Return, "bool", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "state", "qt.QByteArray"), new Param(c, "version", "int", Value((int)0)), End), + new Function(c, "saveState", _n_saveState0, None, Compiled, qt_QMainWindow_saveState_QByteArray_QMainWindow_int, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "version", "int", Value((int)0)), End), + new Function(c, "setCentralWidget", _n_setCentralWidget0, None, Compiled, qt_QMainWindow_setCentralWidget_void_QMainWindow_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "setCorner", _n_setCorner0, None, Compiled, qt_QMainWindow_setCorner_void_QMainWindow_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "corner", "int"), new Param(c, "area", "int"), End), + // PROP: setDockOptions (void; QMainWindow this, flags QMainWindow::DockOptions options) + // PROP: setDocumentMode (void; QMainWindow this, bool enabled) + // PROP: setIconSize (void; QMainWindow this, QSize iconSize) + new Function(c, "setMenuBar", _n_setMenuBar0, None, Compiled, qt_QMainWindow_setMenuBar_void_QMainWindow_QMenuBar, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "menuBar", "qt.QMenuBar"), End), + new Function(c, "setMenuWidget", _n_setMenuWidget0, None, Compiled, qt_QMainWindow_setMenuWidget_void_QMainWindow_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "menuBar", "qt.QWidget"), End), + new Function(c, "setStatusBar", _n_setStatusBar0, None, Compiled, qt_QMainWindow_setStatusBar_void_QMainWindow_QStatusBar, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "statusbar", "qt.QStatusBar"), End), + new Function(c, "setTabPosition", _n_setTabPosition0, None, Compiled, qt_QMainWindow_setTabPosition_void_QMainWindow_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "areas", "int"), new Param(c, "tabPosition", "int"), End), + // PROP: setTabShape (void; QMainWindow this, flags QTabWidget::TabShape tabShape) + // PROP: setToolButtonStyle (void; QMainWindow this, flags Qt::ToolButtonStyle toolButtonStyle) + new Function(c, "splitDockWidget", _n_splitDockWidget0, None, Compiled, qt_QMainWindow_splitDockWidget_void_QMainWindow_QDockWidget_QDockWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "first", "qt.QDockWidget"), new Param(c, "second", "qt.QDockWidget"), new Param(c, "orientation", "int"), End), + new Function(c, "statusBar", _n_statusBar0, None, Compiled, qt_QMainWindow_statusBar_QStatusBar_QMainWindow, Return, "qt.QStatusBar", Parameters, new Param(c, "this", "qt.QMainWindow"), End), + new Function(c, "tabPosition", _n_tabPosition0, None, Compiled, qt_QMainWindow_tabPosition_int_QMainWindow_int, Return, "int", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "area", "int"), End), + // PROP: tabShape (flags QTabWidget::TabShape; QMainWindow this) + // MISSING: tabifiedDockWidgets ("QList"; QMainWindow this, QDockWidget dockwidget) + new Function(c, "tabifyDockWidget", _n_tabifyDockWidget0, None, Compiled, qt_QMainWindow_tabifyDockWidget_void_QMainWindow_QDockWidget_QDockWidget, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "first", "qt.QDockWidget"), new Param(c, "second", "qt.QDockWidget"), End), + new Function(c, "takeCentralWidget", _n_takeCentralWidget0, None, Compiled, qt_QMainWindow_takeCentralWidget_QWidget_QMainWindow, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QMainWindow"), End), + new Function(c, "toolBarArea", _n_toolBarArea0, None, Compiled, qt_QMainWindow_toolBarArea_int_QMainWindow_QToolBar, Return, "int", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "toolbar", "qt.QToolBar"), End), + new Function(c, "toolBarBreak", _n_toolBarBreak0, None, Compiled, qt_QMainWindow_toolBarBreak_bool_QMainWindow_QToolBar, Return, "bool", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "toolbar", "qt.QToolBar"), End), + // PROP: toolButtonStyle (flags Qt::ToolButtonStyle; QMainWindow this) + // PROP: unifiedTitleAndToolBarOnMac (bool; QMainWindow this) + _func[1] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QMainWindow_contextMenuEvent_void_QMainWindow_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QMainWindow_event_bool_QMainWindow_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event_", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QMainWindow_hasHeightForWidth_bool_QMainWindow, Return, "bool", Parameters, new Param(c, "this", "qt.QMainWindow"), End), + _func[4] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QMainWindow_heightForWidth_int_QMainWindow_int, Return, "int", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "w", "int"), End), + _func[5] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QMainWindow_inputMethodQuery_QVariant_QMainWindow_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "query", "int"), End), + _func[6] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QMainWindow_minimumSizeHint_QSize_QMainWindow, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QMainWindow"), End), + _func[7] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QMainWindow_sizeHint_QSize_QMainWindow, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QMainWindow"), End), + // MISSING: paintEngine ("QPaintEngine *"; QMainWindow this) + // MISSING: actionEvent (void; QMainWindow this, "QActionEvent *" event) // protected + _func[8] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QMainWindow_changeEvent_void_QMainWindow_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QEvent"), End), + _func[9] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QMainWindow_closeEvent_void_QMainWindow_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[10] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QMainWindow_dragEnterEvent_void_QMainWindow_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[11] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QMainWindow_dragLeaveEvent_void_QMainWindow_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[12] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QMainWindow_dragMoveEvent_void_QMainWindow_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[13] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QMainWindow_dropEvent_void_QMainWindow_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QMainWindow this, "QEnterEvent *" event) // protected + _func[14] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QMainWindow_focusInEvent_void_QMainWindow_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[15] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QMainWindow_focusNextPrevChild_bool_QMainWindow_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "next", "bool"), End), + _func[16] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QMainWindow_focusOutEvent_void_QMainWindow_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[17] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QMainWindow_hideEvent_void_QMainWindow_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QMainWindow this, "QInputMethodEvent *" event) // protected + _func[18] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QMainWindow_keyPressEvent_void_QMainWindow_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[19] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QMainWindow_keyReleaseEvent_void_QMainWindow_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[20] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QMainWindow_leaveEvent_void_QMainWindow_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QEvent"), End), + _func[21] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QMainWindow_mouseDoubleClickEvent_void_QMainWindow_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[22] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QMainWindow_mouseMoveEvent_void_QMainWindow_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[23] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QMainWindow_mousePressEvent_void_QMainWindow_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QMainWindow_mouseReleaseEvent_void_QMainWindow_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[25] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QMainWindow_moveEvent_void_QMainWindow_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QMainWindow this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[26] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QMainWindow_paintEvent_void_QMainWindow_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[27] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QMainWindow_resizeEvent_void_QMainWindow_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[28] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QMainWindow_showEvent_void_QMainWindow_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QShowEvent"), End), + _func[29] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QMainWindow_tabletEvent_void_QMainWindow_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[30] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QMainWindow_wheelEvent_void_QMainWindow_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QMainWindow this, "QPainter *" painter) // protected + _func[31] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QMainWindow_metric_int_QMainWindow_int, Return, "int", Parameters, new Param(c, "this", "qt.QMainWindow"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QMainWindow::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QMarginsType.cpp b/src/lib/mu/MuQt6/QMarginsType.cpp new file mode 100644 index 000000000..7e5dc9eb5 --- /dev/null +++ b/src/lib/mu/MuQt6/QMarginsType.cpp @@ -0,0 +1,283 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QMarginsType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QMarginsType::QMarginsType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QMarginsType::~QMarginsType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QMarginsType::Instance* i = new QMarginsType::Instance((Class*)NODE_THIS.type()); + QMarginsType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QMarginsType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QMarginsType::finalizer, 0, 0, 0); +} + +void +QMarginsType::finalizer (void* obj, void* data) +{ + QMarginsType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QMargins_QMargins_QMargins_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QMargins()); + return param_this; +} + +Pointer qt_QMargins_QMargins_QMargins_QMargins_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_left, int param_top, int param_right, int param_bottom) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_left); + int arg2 = (int)(param_top); + int arg3 = (int)(param_right); + int arg4 = (int)(param_bottom); + setqtype(param_this,QMargins(arg1, arg2, arg3, arg4)); + return param_this; +} + +int qt_QMargins_bottom_int_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMargins arg0 = getqtype(param_this); + return arg0.bottom(); +} + +bool qt_QMargins_isNull_bool_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMargins arg0 = getqtype(param_this); + return arg0.isNull(); +} + +int qt_QMargins_left_int_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMargins arg0 = getqtype(param_this); + return arg0.left(); +} + +int qt_QMargins_right_int_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMargins arg0 = getqtype(param_this); + return arg0.right(); +} + +void qt_QMargins_setBottom_void_QMargins_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_bottom) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMargins arg0 = getqtype(param_this); + int arg1 = (int)(param_bottom); + arg0.setBottom(arg1); + setqtype(param_this,arg0); +} + +void qt_QMargins_setLeft_void_QMargins_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_left) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMargins arg0 = getqtype(param_this); + int arg1 = (int)(param_left); + arg0.setLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QMargins_setRight_void_QMargins_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_right) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMargins arg0 = getqtype(param_this); + int arg1 = (int)(param_right); + arg0.setRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QMargins_setTop_void_QMargins_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_Top) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMargins arg0 = getqtype(param_this); + int arg1 = (int)(param_Top); + arg0.setTop(arg1); + setqtype(param_this,arg0); +} + +int qt_QMargins_top_int_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMargins arg0 = getqtype(param_this); + return arg0.top(); +} + + +static NODE_IMPLEMENTATION(_n_QMargins0, Pointer) +{ + NODE_RETURN(qt_QMargins_QMargins_QMargins_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QMargins1, Pointer) +{ + NODE_RETURN(qt_QMargins_QMargins_QMargins_QMargins_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_bottom0, int) +{ + NODE_RETURN(qt_QMargins_bottom_int_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QMargins_isNull_bool_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_left0, int) +{ + NODE_RETURN(qt_QMargins_left_int_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_right0, int) +{ + NODE_RETURN(qt_QMargins_right_int_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBottom0, void) +{ + qt_QMargins_setBottom_void_QMargins_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setLeft0, void) +{ + qt_QMargins_setLeft_void_QMargins_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setRight0, void) +{ + qt_QMargins_setRight_void_QMargins_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setTop0, void) +{ + qt_QMargins_setTop_void_QMargins_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_top0, int) +{ + NODE_RETURN(qt_QMargins_top_int_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QMarginsType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QMargins", _n_QMargins0, None, Compiled, qt_QMargins_QMargins_QMargins_QMargins, Return, "qt.QMargins", Parameters, new Param(c, "this", "qt.QMargins"), End), + new Function(c, "QMargins", _n_QMargins1, None, Compiled, qt_QMargins_QMargins_QMargins_QMargins_int_int_int_int, Return, "qt.QMargins", Parameters, new Param(c, "this", "qt.QMargins"), new Param(c, "left", "int"), new Param(c, "top", "int"), new Param(c, "right", "int"), new Param(c, "bottom", "int"), End), + new Function(c, "bottom", _n_bottom0, None, Compiled, qt_QMargins_bottom_int_QMargins, Return, "int", Parameters, new Param(c, "this", "qt.QMargins"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QMargins_isNull_bool_QMargins, Return, "bool", Parameters, new Param(c, "this", "qt.QMargins"), End), + new Function(c, "left", _n_left0, None, Compiled, qt_QMargins_left_int_QMargins, Return, "int", Parameters, new Param(c, "this", "qt.QMargins"), End), + new Function(c, "right", _n_right0, None, Compiled, qt_QMargins_right_int_QMargins, Return, "int", Parameters, new Param(c, "this", "qt.QMargins"), End), + new Function(c, "setBottom", _n_setBottom0, None, Compiled, qt_QMargins_setBottom_void_QMargins_int, Return, "void", Parameters, new Param(c, "this", "qt.QMargins"), new Param(c, "bottom", "int"), End), + new Function(c, "setLeft", _n_setLeft0, None, Compiled, qt_QMargins_setLeft_void_QMargins_int, Return, "void", Parameters, new Param(c, "this", "qt.QMargins"), new Param(c, "left", "int"), End), + new Function(c, "setRight", _n_setRight0, None, Compiled, qt_QMargins_setRight_void_QMargins_int, Return, "void", Parameters, new Param(c, "this", "qt.QMargins"), new Param(c, "right", "int"), End), + new Function(c, "setTop", _n_setTop0, None, Compiled, qt_QMargins_setTop_void_QMargins_int, Return, "void", Parameters, new Param(c, "this", "qt.QMargins"), new Param(c, "Top", "int"), End), + // MISSING: toMarginsF ("QMarginsF"; QMargins this) + new Function(c, "top", _n_top0, None, Compiled, qt_QMargins_top_int_QMargins, Return, "int", Parameters, new Param(c, "this", "qt.QMargins"), End), + // MISSING: = ("QMargins & operator*"; QMargins this, int factor) + // MISSING: = ("QMargins & operator*"; QMargins this, double factor) + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QMatrix4x4Type.cpp b/src/lib/mu/MuQt6/QMatrix4x4Type.cpp new file mode 100644 index 000000000..e600e1a9f --- /dev/null +++ b/src/lib/mu/MuQt6/QMatrix4x4Type.cpp @@ -0,0 +1,680 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QMatrix4x4Type::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QMatrix4x4Type::QMatrix4x4Type(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QMatrix4x4Type::~QMatrix4x4Type() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QMatrix4x4Type::Instance* i = new QMatrix4x4Type::Instance((Class*)NODE_THIS.type()); + QMatrix4x4Type::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QMatrix4x4Type::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QMatrix4x4Type::finalizer, 0, 0, 0); +} + +void +QMatrix4x4Type::finalizer (void* obj, void* data) +{ + QMatrix4x4Type::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QMatrix4x4_QMatrix4x4_QMatrix4x4_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QMatrix4x4()); + return param_this; +} + +Pointer qt_QMatrix4x4_QMatrix4x4_QMatrix4x4_QMatrix4x4_float_float_float_float_float_float_float_float_float_float_float_float_float_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_m11, float param_m12, float param_m13, float param_m14, float param_m21, float param_m22, float param_m23, float param_m24, float param_m31, float param_m32, float param_m33, float param_m34, float param_m41, float param_m42, float param_m43, float param_m44) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + float arg1 = (float)(param_m11); + float arg2 = (float)(param_m12); + float arg3 = (float)(param_m13); + float arg4 = (float)(param_m14); + float arg5 = (float)(param_m21); + float arg6 = (float)(param_m22); + float arg7 = (float)(param_m23); + float arg8 = (float)(param_m24); + float arg9 = (float)(param_m31); + float arg10 = (float)(param_m32); + float arg11 = (float)(param_m33); + float arg12 = (float)(param_m34); + float arg13 = (float)(param_m41); + float arg14 = (float)(param_m42); + float arg15 = (float)(param_m43); + float arg16 = (float)(param_m44); + setqtype(param_this,QMatrix4x4(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16)); + return param_this; +} + +Pointer qt_QMatrix4x4_QMatrix4x4_QMatrix4x4_QMatrix4x4_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_transform) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTransform arg1 = getqtype(param_transform); + setqtype(param_this,QMatrix4x4(arg1)); + return param_this; +} + +double qt_QMatrix4x4_determinant_double_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + return arg0.determinant(); +} + +void qt_QMatrix4x4_fill_void_QMatrix4x4_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_value); + arg0.fill(arg1); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_frustum_void_QMatrix4x4_float_float_float_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_left, float param_right, float param_bottom, float param_top, float param_nearPlane, float param_farPlane) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_left); + float arg2 = (float)(param_right); + float arg3 = (float)(param_bottom); + float arg4 = (float)(param_top); + float arg5 = (float)(param_nearPlane); + float arg6 = (float)(param_farPlane); + arg0.frustum(arg1, arg2, arg3, arg4, arg5, arg6); + setqtype(param_this,arg0); +} + +bool qt_QMatrix4x4_isAffine_bool_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + return arg0.isAffine(); +} + +bool qt_QMatrix4x4_isIdentity_bool_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + return arg0.isIdentity(); +} + +Pointer qt_QMatrix4x4_map_QPoint_QMatrix4x4_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_point); + return makeqtype(c,arg0.map(arg1),"qt.QPoint"); +} + +Pointer qt_QMatrix4x4_map_QPointF_QMatrix4x4_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_point); + return makeqtype(c,arg0.map(arg1),"qt.QPointF"); +} + +Pointer qt_QMatrix4x4_mapRect_QRect_QMatrix4x4_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rect); + return makeqtype(c,arg0.mapRect(arg1),"qt.QRect"); +} + +Pointer qt_QMatrix4x4_mapRect_QRectF_QMatrix4x4_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rect); + return makeqtype(c,arg0.mapRect(arg1),"qt.QRectF"); +} + +void qt_QMatrix4x4_optimize_void_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + arg0.optimize(); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_ortho_void_QMatrix4x4_float_float_float_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_left, float param_right, float param_bottom, float param_top, float param_nearPlane, float param_farPlane) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_left); + float arg2 = (float)(param_right); + float arg3 = (float)(param_bottom); + float arg4 = (float)(param_top); + float arg5 = (float)(param_nearPlane); + float arg6 = (float)(param_farPlane); + arg0.ortho(arg1, arg2, arg3, arg4, arg5, arg6); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_ortho_void_QMatrix4x4_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rect); + arg0.ortho(arg1); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_ortho_void_QMatrix4x4_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rect); + arg0.ortho(arg1); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_perspective_void_QMatrix4x4_float_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_verticalAngle, float param_aspectRatio, float param_nearPlane, float param_farPlane) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_verticalAngle); + float arg2 = (float)(param_aspectRatio); + float arg3 = (float)(param_nearPlane); + float arg4 = (float)(param_farPlane); + arg0.perspective(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_rotate_void_QMatrix4x4_float_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_angle, float param_x, float param_y, float param_z) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_angle); + float arg2 = (float)(param_x); + float arg3 = (float)(param_y); + float arg4 = (float)(param_z); + arg0.rotate(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_scale_void_QMatrix4x4_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_x, float param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_x); + float arg2 = (float)(param_y); + arg0.scale(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_scale_void_QMatrix4x4_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_x, float param_y, float param_z) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_x); + float arg2 = (float)(param_y); + float arg3 = (float)(param_z); + arg0.scale(arg1, arg2, arg3); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_scale_void_QMatrix4x4_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_factor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_factor); + arg0.scale(arg1); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_setToIdentity_void_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + arg0.setToIdentity(); + setqtype(param_this,arg0); +} + +Pointer qt_QMatrix4x4_toTransform_QTransform_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + return makeqtype(c,arg0.toTransform(),"qt.QTransform"); +} + +Pointer qt_QMatrix4x4_toTransform_QTransform_QMatrix4x4_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_distanceToPlane) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_distanceToPlane); + return makeqtype(c,arg0.toTransform(arg1),"qt.QTransform"); +} + +void qt_QMatrix4x4_translate_void_QMatrix4x4_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_x, float param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_x); + float arg2 = (float)(param_y); + arg0.translate(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_translate_void_QMatrix4x4_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_x, float param_y, float param_z) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_x); + float arg2 = (float)(param_y); + float arg3 = (float)(param_z); + arg0.translate(arg1, arg2, arg3); + setqtype(param_this,arg0); +} + +Pointer qt_QMatrix4x4_transposed_QMatrix4x4_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + return makeqtype(c,arg0.transposed(),"qt.QMatrix4x4"); +} + +void qt_QMatrix4x4_viewport_void_QMatrix4x4_float_float_float_float_float_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_left, float param_bottom, float param_width, float param_height, float param_nearPlane, float param_farPlane) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_left); + float arg2 = (float)(param_bottom); + float arg3 = (float)(param_width); + float arg4 = (float)(param_height); + float arg5 = (float)(param_nearPlane); + float arg6 = (float)(param_farPlane); + arg0.viewport(arg1, arg2, arg3, arg4, arg5, arg6); + setqtype(param_this,arg0); +} + +void qt_QMatrix4x4_viewport_void_QMatrix4x4_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rect); + arg0.viewport(arg1); + setqtype(param_this,arg0); +} + +bool qt_QMatrix4x4_operatorBang_EQ__bool_QMatrix4x4_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QMatrix4x4 arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +Pointer qt_QMatrix4x4_operatorPlus_EQ__QMatrix4x4_QMatrix4x4_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QMatrix4x4 arg1 = getqtype(param_other); + return makeqtype(c,arg0.operator+=(arg1),"qt.QMatrix4x4"); +} + +Pointer qt_QMatrix4x4_operatorMinus_EQ__QMatrix4x4_QMatrix4x4_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QMatrix4x4 arg1 = getqtype(param_other); + return makeqtype(c,arg0.operator-=(arg1),"qt.QMatrix4x4"); +} + +Pointer qt_QMatrix4x4_operatorSlash_EQ__QMatrix4x4_QMatrix4x4_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_divisor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + float arg1 = (float)(param_divisor); + return makeqtype(c,arg0.operator/=(arg1),"qt.QMatrix4x4"); +} + +bool qt_QMatrix4x4_operatorEQ_EQ__bool_QMatrix4x4_QMatrix4x4(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMatrix4x4 arg0 = getqtype(param_this); + const QMatrix4x4 arg1 = getqtype(param_other); + return arg0.operator==(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QMatrix4x40, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_QMatrix4x4_QMatrix4x4_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QMatrix4x42, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_QMatrix4x4_QMatrix4x4_QMatrix4x4_float_float_float_float_float_float_float_float_float_float_float_float_float_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float), NODE_ARG(5, float), NODE_ARG(6, float), NODE_ARG(7, float), NODE_ARG(8, float), NODE_ARG(9, float), NODE_ARG(10, float), NODE_ARG(11, float), NODE_ARG(12, float), NODE_ARG(13, float), NODE_ARG(14, float), NODE_ARG(15, float), NODE_ARG(16, float))); +} + +static NODE_IMPLEMENTATION(_n_QMatrix4x44, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_QMatrix4x4_QMatrix4x4_QMatrix4x4_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_determinant0, double) +{ + NODE_RETURN(qt_QMatrix4x4_determinant_double_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fill0, void) +{ + qt_QMatrix4x4_fill_void_QMatrix4x4_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float)); +} + +static NODE_IMPLEMENTATION(_n_frustum0, void) +{ + qt_QMatrix4x4_frustum_void_QMatrix4x4_float_float_float_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float), NODE_ARG(5, float), NODE_ARG(6, float)); +} + +static NODE_IMPLEMENTATION(_n_isAffine0, bool) +{ + NODE_RETURN(qt_QMatrix4x4_isAffine_bool_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIdentity0, bool) +{ + NODE_RETURN(qt_QMatrix4x4_isIdentity_bool_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_map0, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_map_QPoint_QMatrix4x4_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_map1, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_map_QPointF_QMatrix4x4_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapRect0, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_mapRect_QRect_QMatrix4x4_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapRect1, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_mapRect_QRectF_QMatrix4x4_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_optimize0, void) +{ + qt_QMatrix4x4_optimize_void_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_ortho0, void) +{ + qt_QMatrix4x4_ortho_void_QMatrix4x4_float_float_float_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float), NODE_ARG(5, float), NODE_ARG(6, float)); +} + +static NODE_IMPLEMENTATION(_n_ortho1, void) +{ + qt_QMatrix4x4_ortho_void_QMatrix4x4_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_ortho2, void) +{ + qt_QMatrix4x4_ortho_void_QMatrix4x4_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_perspective0, void) +{ + qt_QMatrix4x4_perspective_void_QMatrix4x4_float_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float)); +} + +static NODE_IMPLEMENTATION(_n_rotate1, void) +{ + qt_QMatrix4x4_rotate_void_QMatrix4x4_float_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float)); +} + +static NODE_IMPLEMENTATION(_n_scale1, void) +{ + qt_QMatrix4x4_scale_void_QMatrix4x4_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float)); +} + +static NODE_IMPLEMENTATION(_n_scale2, void) +{ + qt_QMatrix4x4_scale_void_QMatrix4x4_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float)); +} + +static NODE_IMPLEMENTATION(_n_scale3, void) +{ + qt_QMatrix4x4_scale_void_QMatrix4x4_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float)); +} + +static NODE_IMPLEMENTATION(_n_setToIdentity0, void) +{ + qt_QMatrix4x4_setToIdentity_void_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toTransform0, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_toTransform_QTransform_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toTransform1, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_toTransform_QTransform_QMatrix4x4_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float))); +} + +static NODE_IMPLEMENTATION(_n_translate1, void) +{ + qt_QMatrix4x4_translate_void_QMatrix4x4_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float)); +} + +static NODE_IMPLEMENTATION(_n_translate2, void) +{ + qt_QMatrix4x4_translate_void_QMatrix4x4_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float)); +} + +static NODE_IMPLEMENTATION(_n_transposed0, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_transposed_QMatrix4x4_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewport0, void) +{ + qt_QMatrix4x4_viewport_void_QMatrix4x4_float_float_float_float_float_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float), NODE_ARG(2, float), NODE_ARG(3, float), NODE_ARG(4, float), NODE_ARG(5, float), NODE_ARG(6, float)); +} + +static NODE_IMPLEMENTATION(_n_viewport1, void) +{ + qt_QMatrix4x4_viewport_void_QMatrix4x4_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QMatrix4x4_operatorBang_EQ__bool_QMatrix4x4_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_operatorPlus_EQ__QMatrix4x4_QMatrix4x4_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorMinus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_operatorMinus_EQ__QMatrix4x4_QMatrix4x4_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorSlash_EQ_0, Pointer) +{ + NODE_RETURN(qt_QMatrix4x4_operatorSlash_EQ__QMatrix4x4_QMatrix4x4_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QMatrix4x4_operatorEQ_EQ__bool_QMatrix4x4_QMatrix4x4(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QMatrix4x4Type::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QMatrix4x4", _n_QMatrix4x40, None, Compiled, qt_QMatrix4x4_QMatrix4x4_QMatrix4x4_QMatrix4x4, Return, "qt.QMatrix4x4", Parameters, new Param(c, "this", "qt.QMatrix4x4"), End), + // MISSING: QMatrix4x4 (QMatrix4x4; QMatrix4x4 this, "const float *" values) + new Function(c, "QMatrix4x4", _n_QMatrix4x42, None, Compiled, qt_QMatrix4x4_QMatrix4x4_QMatrix4x4_QMatrix4x4_float_float_float_float_float_float_float_float_float_float_float_float_float_float_float_float, Return, "qt.QMatrix4x4", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "m11", "float"), new Param(c, "m12", "float"), new Param(c, "m13", "float"), new Param(c, "m14", "float"), new Param(c, "m21", "float"), new Param(c, "m22", "float"), new Param(c, "m23", "float"), new Param(c, "m24", "float"), new Param(c, "m31", "float"), new Param(c, "m32", "float"), new Param(c, "m33", "float"), new Param(c, "m34", "float"), new Param(c, "m41", "float"), new Param(c, "m42", "float"), new Param(c, "m43", "float"), new Param(c, "m44", "float"), End), + // MISSING: QMatrix4x4 (QMatrix4x4; QMatrix4x4 this, "const QGenericMatrix &" matrix) + new Function(c, "QMatrix4x4", _n_QMatrix4x44, None, Compiled, qt_QMatrix4x4_QMatrix4x4_QMatrix4x4_QMatrix4x4_QTransform, Return, "qt.QMatrix4x4", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "transform", "qt.QTransform"), End), + // MISSING: column ("QVector4D"; QMatrix4x4 this, int index) + // MISSING: constData ("const float *"; QMatrix4x4 this) + // MISSING: copyDataTo (void; QMatrix4x4 this, "float *" values) + // MISSING: data ("float *"; QMatrix4x4 this) + // MISSING: data ("const float *"; QMatrix4x4 this) + new Function(c, "determinant", _n_determinant0, None, Compiled, qt_QMatrix4x4_determinant_double_QMatrix4x4, Return, "double", Parameters, new Param(c, "this", "qt.QMatrix4x4"), End), + new Function(c, "fill", _n_fill0, None, Compiled, qt_QMatrix4x4_fill_void_QMatrix4x4_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "value", "float"), End), + new Function(c, "frustum", _n_frustum0, None, Compiled, qt_QMatrix4x4_frustum_void_QMatrix4x4_float_float_float_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "left", "float"), new Param(c, "right", "float"), new Param(c, "bottom", "float"), new Param(c, "top", "float"), new Param(c, "nearPlane", "float"), new Param(c, "farPlane", "float"), End), + // MISSING: inverted (QMatrix4x4; QMatrix4x4 this, "bool *" invertible) + new Function(c, "isAffine", _n_isAffine0, None, Compiled, qt_QMatrix4x4_isAffine_bool_QMatrix4x4, Return, "bool", Parameters, new Param(c, "this", "qt.QMatrix4x4"), End), + new Function(c, "isIdentity", _n_isIdentity0, None, Compiled, qt_QMatrix4x4_isIdentity_bool_QMatrix4x4, Return, "bool", Parameters, new Param(c, "this", "qt.QMatrix4x4"), End), + // MISSING: lookAt (void; QMatrix4x4 this, "const QVector3D &" eye, "const QVector3D &" center, "const QVector3D &" up) + new Function(c, "map", _n_map0, None, Compiled, qt_QMatrix4x4_map_QPoint_QMatrix4x4_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "point", "qt.QPoint"), End), + new Function(c, "map", _n_map1, None, Compiled, qt_QMatrix4x4_map_QPointF_QMatrix4x4_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "point", "qt.QPointF"), End), + // MISSING: map ("QVector3D"; QMatrix4x4 this, "const QVector3D &" point) + // MISSING: map ("QVector4D"; QMatrix4x4 this, "const QVector4D &" point) + new Function(c, "mapRect", _n_mapRect0, None, Compiled, qt_QMatrix4x4_mapRect_QRect_QMatrix4x4_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "rect", "qt.QRect"), End), + new Function(c, "mapRect", _n_mapRect1, None, Compiled, qt_QMatrix4x4_mapRect_QRectF_QMatrix4x4_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "rect", "qt.QRectF"), End), + // MISSING: mapVector ("QVector3D"; QMatrix4x4 this, "const QVector3D &" vector) + // MISSING: normalMatrix ("QMatrix3x3"; QMatrix4x4 this) + new Function(c, "optimize", _n_optimize0, None, Compiled, qt_QMatrix4x4_optimize_void_QMatrix4x4, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), End), + new Function(c, "ortho", _n_ortho0, None, Compiled, qt_QMatrix4x4_ortho_void_QMatrix4x4_float_float_float_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "left", "float"), new Param(c, "right", "float"), new Param(c, "bottom", "float"), new Param(c, "top", "float"), new Param(c, "nearPlane", "float"), new Param(c, "farPlane", "float"), End), + new Function(c, "ortho", _n_ortho1, None, Compiled, qt_QMatrix4x4_ortho_void_QMatrix4x4_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "rect", "qt.QRect"), End), + new Function(c, "ortho", _n_ortho2, None, Compiled, qt_QMatrix4x4_ortho_void_QMatrix4x4_QRectF, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "rect", "qt.QRectF"), End), + new Function(c, "perspective", _n_perspective0, None, Compiled, qt_QMatrix4x4_perspective_void_QMatrix4x4_float_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "verticalAngle", "float"), new Param(c, "aspectRatio", "float"), new Param(c, "nearPlane", "float"), new Param(c, "farPlane", "float"), End), + // MISSING: rotate (void; QMatrix4x4 this, float angle, "const QVector3D &" vector) + new Function(c, "rotate", _n_rotate1, None, Compiled, qt_QMatrix4x4_rotate_void_QMatrix4x4_float_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "angle", "float"), new Param(c, "x", "float"), new Param(c, "y", "float"), new Param(c, "z", "float"), End), + // MISSING: rotate (void; QMatrix4x4 this, "const QQuaternion &" quaternion) + // MISSING: row ("QVector4D"; QMatrix4x4 this, int index) + // MISSING: scale (void; QMatrix4x4 this, "const QVector3D &" vector) + new Function(c, "scale", _n_scale1, None, Compiled, qt_QMatrix4x4_scale_void_QMatrix4x4_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "x", "float"), new Param(c, "y", "float"), End), + new Function(c, "scale", _n_scale2, None, Compiled, qt_QMatrix4x4_scale_void_QMatrix4x4_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "x", "float"), new Param(c, "y", "float"), new Param(c, "z", "float"), End), + new Function(c, "scale", _n_scale3, None, Compiled, qt_QMatrix4x4_scale_void_QMatrix4x4_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "factor", "float"), End), + // MISSING: setColumn (void; QMatrix4x4 this, int index, "const QVector4D &" value) + // MISSING: setRow (void; QMatrix4x4 this, int index, "const QVector4D &" value) + new Function(c, "setToIdentity", _n_setToIdentity0, None, Compiled, qt_QMatrix4x4_setToIdentity_void_QMatrix4x4, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), End), + // MISSING: toGenericMatrix ("QGenericMatrix"; QMatrix4x4 this) + new Function(c, "toTransform", _n_toTransform0, None, Compiled, qt_QMatrix4x4_toTransform_QTransform_QMatrix4x4, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QMatrix4x4"), End), + new Function(c, "toTransform", _n_toTransform1, None, Compiled, qt_QMatrix4x4_toTransform_QTransform_QMatrix4x4_float, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "distanceToPlane", "float"), End), + // MISSING: translate (void; QMatrix4x4 this, "const QVector3D &" vector) + new Function(c, "translate", _n_translate1, None, Compiled, qt_QMatrix4x4_translate_void_QMatrix4x4_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "x", "float"), new Param(c, "y", "float"), End), + new Function(c, "translate", _n_translate2, None, Compiled, qt_QMatrix4x4_translate_void_QMatrix4x4_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "x", "float"), new Param(c, "y", "float"), new Param(c, "z", "float"), End), + new Function(c, "transposed", _n_transposed0, None, Compiled, qt_QMatrix4x4_transposed_QMatrix4x4_QMatrix4x4, Return, "qt.QMatrix4x4", Parameters, new Param(c, "this", "qt.QMatrix4x4"), End), + new Function(c, "viewport", _n_viewport0, None, Compiled, qt_QMatrix4x4_viewport_void_QMatrix4x4_float_float_float_float_float_float, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "left", "float"), new Param(c, "bottom", "float"), new Param(c, "width", "float"), new Param(c, "height", "float"), new Param(c, "nearPlane", "float"), new Param(c, "farPlane", "float"), End), + new Function(c, "viewport", _n_viewport1, None, Compiled, qt_QMatrix4x4_viewport_void_QMatrix4x4_QRectF, Return, "void", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "rect", "qt.QRectF"), End), + // MISSING: QVariant ("QVariant operator"; QMatrix4x4 this) + // MISSING: = ("QMatrix4x4 & operator*"; QMatrix4x4 this, QMatrix4x4 other) + // MISSING: = ("QMatrix4x4 & operator*"; QMatrix4x4 this, float factor) + // static functions + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QMatrix4x4_operatorBang_EQ__bool_QMatrix4x4_QMatrix4x4, Return, "bool", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "other", "qt.QMatrix4x4"), End), + new Function(c, "+=", _n_operatorPlus_EQ_0, Op, Compiled, qt_QMatrix4x4_operatorPlus_EQ__QMatrix4x4_QMatrix4x4_QMatrix4x4, Return, "qt.QMatrix4x4", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "other", "qt.QMatrix4x4"), End), + new Function(c, "-=", _n_operatorMinus_EQ_0, Op, Compiled, qt_QMatrix4x4_operatorMinus_EQ__QMatrix4x4_QMatrix4x4_QMatrix4x4, Return, "qt.QMatrix4x4", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "other", "qt.QMatrix4x4"), End), + new Function(c, "/=", _n_operatorSlash_EQ_0, Op, Compiled, qt_QMatrix4x4_operatorSlash_EQ__QMatrix4x4_QMatrix4x4_float, Return, "qt.QMatrix4x4", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "divisor", "float"), End), + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QMatrix4x4_operatorEQ_EQ__bool_QMatrix4x4_QMatrix4x4, Return, "bool", Parameters, new Param(c, "this", "qt.QMatrix4x4"), new Param(c, "other", "qt.QMatrix4x4"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QMenuBarType.cpp b/src/lib/mu/MuQt6/QMenuBarType.cpp new file mode 100644 index 000000000..f7ec78fa3 --- /dev/null +++ b/src/lib/mu/MuQt6/QMenuBarType.cpp @@ -0,0 +1,1524 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QMenuBar::~MuQt_QMenuBar() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QMenuBar::MuQt_QMenuBar(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QMenuBar(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QMenuBar")); +} + +int MuQt_QMenuBar::heightForWidth(int _p3) const +{ + if (!_env) return QMenuBar::heightForWidth(_p3); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(_p3); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QMenuBar::heightForWidth(_p3); + } +} + +QSize MuQt_QMenuBar::minimumSizeHint() const +{ + if (!_env) return QMenuBar::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QMenuBar::minimumSizeHint(); + } +} + +QSize MuQt_QMenuBar::sizeHint() const +{ + if (!_env) return QMenuBar::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QMenuBar::sizeHint(); + } +} + +void MuQt_QMenuBar::changeEvent(QEvent * e) +{ + if (!_env) { QMenuBar::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::changeEvent(e); + } +} + +bool MuQt_QMenuBar::event(QEvent * e) +{ + if (!_env) return QMenuBar::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMenuBar::event(e); + } +} + +bool MuQt_QMenuBar::eventFilter(QObject * object, QEvent * event) +{ + if (!_env) return QMenuBar::eventFilter(object, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,object,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMenuBar::eventFilter(object, event); + } +} + +void MuQt_QMenuBar::focusInEvent(QFocusEvent * _p14) +{ + if (!_env) { QMenuBar::focusInEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::focusInEvent(_p14); + } +} + +void MuQt_QMenuBar::focusOutEvent(QFocusEvent * _p14) +{ + if (!_env) { QMenuBar::focusOutEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::focusOutEvent(_p14); + } +} + +void MuQt_QMenuBar::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QMenuBar::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::keyPressEvent(e); + } +} + +void MuQt_QMenuBar::leaveEvent(QEvent * _p9) +{ + if (!_env) { QMenuBar::leaveEvent(_p9); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p9,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::leaveEvent(_p9); + } +} + +void MuQt_QMenuBar::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QMenuBar::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::mouseMoveEvent(e); + } +} + +void MuQt_QMenuBar::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QMenuBar::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::mousePressEvent(e); + } +} + +void MuQt_QMenuBar::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QMenuBar::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::mouseReleaseEvent(e); + } +} + +void MuQt_QMenuBar::paintEvent(QPaintEvent * e) +{ + if (!_env) { QMenuBar::paintEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::paintEvent(e); + } +} + +void MuQt_QMenuBar::resizeEvent(QResizeEvent * _p15) +{ + if (!_env) { QMenuBar::resizeEvent(_p15); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p15,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::resizeEvent(_p15); + } +} + +void MuQt_QMenuBar::timerEvent(QTimerEvent * e) +{ + if (!_env) { QMenuBar::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::timerEvent(e); + } +} + +bool MuQt_QMenuBar::hasHeightForWidth() const +{ + if (!_env) return QMenuBar::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMenuBar::hasHeightForWidth(); + } +} + +QVariant MuQt_QMenuBar::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QMenuBar::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QMenuBar::inputMethodQuery(query); + } +} + +void MuQt_QMenuBar::closeEvent(QCloseEvent * event) +{ + if (!_env) { QMenuBar::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::closeEvent(event); + } +} + +void MuQt_QMenuBar::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QMenuBar::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::contextMenuEvent(event); + } +} + +void MuQt_QMenuBar::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QMenuBar::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::dragEnterEvent(event); + } +} + +void MuQt_QMenuBar::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QMenuBar::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::dragLeaveEvent(event); + } +} + +void MuQt_QMenuBar::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QMenuBar::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::dragMoveEvent(event); + } +} + +void MuQt_QMenuBar::dropEvent(QDropEvent * event) +{ + if (!_env) { QMenuBar::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::dropEvent(event); + } +} + +bool MuQt_QMenuBar::focusNextPrevChild(bool next) +{ + if (!_env) return QMenuBar::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMenuBar::focusNextPrevChild(next); + } +} + +void MuQt_QMenuBar::hideEvent(QHideEvent * event) +{ + if (!_env) { QMenuBar::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::hideEvent(event); + } +} + +void MuQt_QMenuBar::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QMenuBar::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::keyReleaseEvent(event); + } +} + +void MuQt_QMenuBar::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QMenuBar::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::mouseDoubleClickEvent(event); + } +} + +void MuQt_QMenuBar::moveEvent(QMoveEvent * event) +{ + if (!_env) { QMenuBar::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::moveEvent(event); + } +} + +void MuQt_QMenuBar::showEvent(QShowEvent * event) +{ + if (!_env) { QMenuBar::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::showEvent(event); + } +} + +void MuQt_QMenuBar::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QMenuBar::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::tabletEvent(event); + } +} + +void MuQt_QMenuBar::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QMenuBar::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenuBar::wheelEvent(event); + } +} + +int MuQt_QMenuBar::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QMenuBar::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QMenuBar::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QMenuBarType::QMenuBarType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QMenuBarType::~QMenuBarType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QMenuBar_QMenuBar_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QMenuBar* w = object(widget)) + { + QMenuBarType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QMenuBar"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QMenuBar_QMenuBar_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QMenuBar_QMenuBar_QMenuBar_QMenuBar_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QMenuBar(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QMenuBar_actionAt_QAction_QMenuBar_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pt) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pt); + return makeinstance(c, arg0->actionAt(arg1), "qt.QAction"); +} + +Pointer qt_QMenuBar_actionGeometry_QRect_QMenuBar_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_act) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QAction * arg1 = object(param_act); + return makeqtype(c,arg0->actionGeometry(arg1),"qt.QRect"); +} + +Pointer qt_QMenuBar_activeAction_QAction_QMenuBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + return makeinstance(c, arg0->activeAction(), "qt.QAction"); +} + +Pointer qt_QMenuBar_addMenu_QAction_QMenuBar_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_menu) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QMenu * arg1 = object(param_menu); + return makeinstance(c, arg0->addMenu(arg1), "qt.QAction"); +} + +Pointer qt_QMenuBar_addMenu_QMenu_QMenuBar_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_title) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + const QString arg1 = qstring(param_title); + return makeinstance(c, arg0->addMenu(arg1), "qt.QMenu"); +} + +Pointer qt_QMenuBar_addMenu_QMenu_QMenuBar_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_title) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_title); + return makeinstance(c, arg0->addMenu(arg1, arg2), "qt.QMenu"); +} + +Pointer qt_QMenuBar_addSeparator_QAction_QMenuBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + return makeinstance(c, arg0->addSeparator(), "qt.QAction"); +} + +void qt_QMenuBar_clear_void_QMenuBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + arg0->clear(); +} + +Pointer qt_QMenuBar_cornerWidget_QWidget_QMenuBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_corner) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + Qt::Corner arg1 = (Qt::Corner)(param_corner); + return makeinstance(c, arg0->cornerWidget(arg1), "qt.QWidget"); +} + +Pointer qt_QMenuBar_insertMenu_QAction_QMenuBar_QAction_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before, Pointer param_menu) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QAction * arg1 = object(param_before); + QMenu * arg2 = object(param_menu); + return makeinstance(c, arg0->insertMenu(arg1, arg2), "qt.QAction"); +} + +Pointer qt_QMenuBar_insertSeparator_QAction_QMenuBar_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QAction * arg1 = object(param_before); + return makeinstance(c, arg0->insertSeparator(arg1), "qt.QAction"); +} + +void qt_QMenuBar_setActiveAction_void_QMenuBar_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_act) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QAction * arg1 = object(param_act); + arg0->setActiveAction(arg1); +} + +void qt_QMenuBar_setCornerWidget_void_QMenuBar_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, int param_corner) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + Qt::Corner arg2 = (Qt::Corner)(param_corner); + arg0->setCornerWidget(arg1, arg2); +} + +int qt_QMenuBar_heightForWidth_int_QMenuBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param__p3) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + int arg1 = (int)(param__p3); + return isMuQtObject(arg0) ? arg0->QMenuBar::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QMenuBar_minimumSizeHint_QSize_QMenuBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QMenuBar::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QMenuBar_sizeHint_QSize_QMenuBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QMenuBar::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QMenuBar_changeEvent_void_QMenuBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QMenuBar_event_bool_QMenuBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QMenuBar*)arg0)->event_pub_parent(arg1) : ((MuQt_QMenuBar*)arg0)->event_pub(arg1); +} + +bool qt_QMenuBar_eventFilter_bool_QMenuBar_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QObject * arg1 = object(param_object); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QMenuBar*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QMenuBar*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QMenuBar_focusInEvent_void_QMenuBar_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QMenuBar_focusOutEvent_void_QMenuBar_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QMenuBar_keyPressEvent_void_QMenuBar_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QMenuBar_leaveEvent_void_QMenuBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p9) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param__p9); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QMenuBar_mouseMoveEvent_void_QMenuBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QMenuBar_mousePressEvent_void_QMenuBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QMenuBar_mouseReleaseEvent_void_QMenuBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QMenuBar_paintEvent_void_QMenuBar_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->paintEvent_pub(arg1); +} + +void qt_QMenuBar_resizeEvent_void_QMenuBar_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p15) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param__p15); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QMenuBar_timerEvent_void_QMenuBar_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->timerEvent_pub(arg1); +} + +bool qt_QMenuBar_hasHeightForWidth_bool_QMenuBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QMenuBar::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +Pointer qt_QMenuBar_inputMethodQuery_QVariant_QMenuBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QMenuBar::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +void qt_QMenuBar_closeEvent_void_QMenuBar_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->closeEvent_pub(arg1); +} + +void qt_QMenuBar_contextMenuEvent_void_QMenuBar_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QMenuBar_dragEnterEvent_void_QMenuBar_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QMenuBar_dragLeaveEvent_void_QMenuBar_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QMenuBar_dragMoveEvent_void_QMenuBar_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QMenuBar_dropEvent_void_QMenuBar_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QMenuBar_focusNextPrevChild_bool_QMenuBar_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QMenuBar*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QMenuBar*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QMenuBar_hideEvent_void_QMenuBar_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->hideEvent_pub(arg1); +} + +void qt_QMenuBar_keyReleaseEvent_void_QMenuBar_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QMenuBar_mouseDoubleClickEvent_void_QMenuBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QMenuBar_moveEvent_void_QMenuBar_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->moveEvent_pub(arg1); +} + +void qt_QMenuBar_showEvent_void_QMenuBar_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->showEvent_pub(arg1); +} + +void qt_QMenuBar_tabletEvent_void_QMenuBar_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QMenuBar_wheelEvent_void_QMenuBar_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenuBar*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QMenuBar*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QMenuBar_metric_int_QMenuBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenuBar* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QMenuBar*)arg0)->metric_pub_parent(arg1) : ((MuQt_QMenuBar*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QMenuBar0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_QMenuBar_QMenuBar_QMenuBar_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_actionAt0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_actionAt_QAction_QMenuBar_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_actionGeometry0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_actionGeometry_QRect_QMenuBar_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_activeAction0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_activeAction_QAction_QMenuBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addMenu0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_addMenu_QAction_QMenuBar_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addMenu1, Pointer) +{ + NODE_RETURN(qt_QMenuBar_addMenu_QMenu_QMenuBar_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addMenu2, Pointer) +{ + NODE_RETURN(qt_QMenuBar_addMenu_QMenu_QMenuBar_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addSeparator0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_addSeparator_QAction_QMenuBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QMenuBar_clear_void_QMenuBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_cornerWidget0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_cornerWidget_QWidget_QMenuBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_insertMenu0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_insertMenu_QAction_QMenuBar_QAction_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertSeparator0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_insertSeparator_QAction_QMenuBar_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setActiveAction0, void) +{ + qt_QMenuBar_setActiveAction_void_QMenuBar_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCornerWidget0, void) +{ + qt_QMenuBar_setCornerWidget_void_QMenuBar_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QMenuBar_heightForWidth_int_QMenuBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_minimumSizeHint_QSize_QMenuBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_sizeHint_QSize_QMenuBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QMenuBar_changeEvent_void_QMenuBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QMenuBar_event_bool_QMenuBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QMenuBar_eventFilter_bool_QMenuBar_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QMenuBar_focusInEvent_void_QMenuBar_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QMenuBar_focusOutEvent_void_QMenuBar_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QMenuBar_keyPressEvent_void_QMenuBar_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QMenuBar_leaveEvent_void_QMenuBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QMenuBar_mouseMoveEvent_void_QMenuBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QMenuBar_mousePressEvent_void_QMenuBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QMenuBar_mouseReleaseEvent_void_QMenuBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QMenuBar_paintEvent_void_QMenuBar_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QMenuBar_resizeEvent_void_QMenuBar_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QMenuBar_timerEvent_void_QMenuBar_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QMenuBar_hasHeightForWidth_bool_QMenuBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QMenuBar_inputMethodQuery_QVariant_QMenuBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QMenuBar_closeEvent_void_QMenuBar_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QMenuBar_contextMenuEvent_void_QMenuBar_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QMenuBar_dragEnterEvent_void_QMenuBar_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QMenuBar_dragLeaveEvent_void_QMenuBar_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QMenuBar_dragMoveEvent_void_QMenuBar_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QMenuBar_dropEvent_void_QMenuBar_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QMenuBar_focusNextPrevChild_bool_QMenuBar_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QMenuBar_hideEvent_void_QMenuBar_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QMenuBar_keyReleaseEvent_void_QMenuBar_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QMenuBar_mouseDoubleClickEvent_void_QMenuBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QMenuBar_moveEvent_void_QMenuBar_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QMenuBar_showEvent_void_QMenuBar_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QMenuBar_tabletEvent_void_QMenuBar_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QMenuBar_wheelEvent_void_QMenuBar_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QMenuBar_metric_int_QMenuBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QMenuBarType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QMenuBar_QMenuBar_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QMenuBar", _n_QMenuBar0, None, Compiled, qt_QMenuBar_QMenuBar_QMenuBar_QMenuBar_QWidget, Return, "qt.QMenuBar", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "actionAt", _n_actionAt0, None, Compiled, qt_QMenuBar_actionAt_QAction_QMenuBar_QPoint, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "pt", "qt.QPoint"), End), + new Function(c, "actionGeometry", _n_actionGeometry0, None, Compiled, qt_QMenuBar_actionGeometry_QRect_QMenuBar_QAction, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "act", "qt.QAction"), End), + new Function(c, "activeAction", _n_activeAction0, None, Compiled, qt_QMenuBar_activeAction_QAction_QMenuBar, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenuBar"), End), + new Function(c, "addMenu", _n_addMenu0, None, Compiled, qt_QMenuBar_addMenu_QAction_QMenuBar_QMenu, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "menu", "qt.QMenu"), End), + new Function(c, "addMenu", _n_addMenu1, None, Compiled, qt_QMenuBar_addMenu_QMenu_QMenuBar_string, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "title", "string"), End), + new Function(c, "addMenu", _n_addMenu2, None, Compiled, qt_QMenuBar_addMenu_QMenu_QMenuBar_QIcon_string, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "icon", "qt.QIcon"), new Param(c, "title", "string"), End), + new Function(c, "addSeparator", _n_addSeparator0, None, Compiled, qt_QMenuBar_addSeparator_QAction_QMenuBar, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenuBar"), End), + new Function(c, "clear", _n_clear0, None, Compiled, qt_QMenuBar_clear_void_QMenuBar, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), End), + new Function(c, "cornerWidget", _n_cornerWidget0, None, Compiled, qt_QMenuBar_cornerWidget_QWidget_QMenuBar_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "corner", "int", Value((int)Qt::TopRightCorner)), End), + new Function(c, "insertMenu", _n_insertMenu0, None, Compiled, qt_QMenuBar_insertMenu_QAction_QMenuBar_QAction_QMenu, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "before", "qt.QAction"), new Param(c, "menu", "qt.QMenu"), End), + new Function(c, "insertSeparator", _n_insertSeparator0, None, Compiled, qt_QMenuBar_insertSeparator_QAction_QMenuBar_QAction, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "before", "qt.QAction"), End), + // PROP: isDefaultUp (bool; QMenuBar this) + // PROP: isNativeMenuBar (bool; QMenuBar this) + new Function(c, "setActiveAction", _n_setActiveAction0, None, Compiled, qt_QMenuBar_setActiveAction_void_QMenuBar_QAction, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "act", "qt.QAction"), End), + new Function(c, "setCornerWidget", _n_setCornerWidget0, None, Compiled, qt_QMenuBar_setCornerWidget_void_QMenuBar_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "widget", "qt.QWidget"), new Param(c, "corner", "int", Value((int)Qt::TopRightCorner)), End), + // PROP: setDefaultUp (void; QMenuBar this, bool _p4) + // PROP: setNativeMenuBar (void; QMenuBar this, bool nativeMenuBar) + // MISSING: toNSMenu ("NSMenu *"; QMenuBar this) + _func[0] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QMenuBar_heightForWidth_int_QMenuBar_int, Return, "int", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "_p3", "int"), End), + _func[1] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QMenuBar_minimumSizeHint_QSize_QMenuBar, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QMenuBar"), End), + _func[2] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QMenuBar_sizeHint_QSize_QMenuBar, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QMenuBar"), End), + // MISSING: initStyleOption (void; QMenuBar this, "QStyleOptionMenuItem *" option, QAction action) // protected + // MISSING: actionEvent (void; QMenuBar this, "QActionEvent *" e) // protected + _func[3] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QMenuBar_changeEvent_void_QMenuBar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "e", "qt.QEvent"), End), + _func[4] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QMenuBar_event_bool_QMenuBar_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "e", "qt.QEvent"), End), + _func[5] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QMenuBar_eventFilter_bool_QMenuBar_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "object", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + _func[6] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QMenuBar_focusInEvent_void_QMenuBar_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "_p14", "qt.QFocusEvent"), End), + _func[7] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QMenuBar_focusOutEvent_void_QMenuBar_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "_p14", "qt.QFocusEvent"), End), + _func[8] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QMenuBar_keyPressEvent_void_QMenuBar_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[9] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QMenuBar_leaveEvent_void_QMenuBar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "_p9", "qt.QEvent"), End), + _func[10] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QMenuBar_mouseMoveEvent_void_QMenuBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[11] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QMenuBar_mousePressEvent_void_QMenuBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[12] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QMenuBar_mouseReleaseEvent_void_QMenuBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[13] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QMenuBar_paintEvent_void_QMenuBar_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "e", "qt.QPaintEvent"), End), + _func[14] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QMenuBar_resizeEvent_void_QMenuBar_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "_p15", "qt.QResizeEvent"), End), + _func[15] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QMenuBar_timerEvent_void_QMenuBar_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "e", "qt.QTimerEvent"), End), + _func[16] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QMenuBar_hasHeightForWidth_bool_QMenuBar, Return, "bool", Parameters, new Param(c, "this", "qt.QMenuBar"), End), + _func[17] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QMenuBar_inputMethodQuery_QVariant_QMenuBar_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "query", "int"), End), + // MISSING: paintEngine ("QPaintEngine *"; QMenuBar this) + _func[18] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QMenuBar_closeEvent_void_QMenuBar_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[19] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QMenuBar_contextMenuEvent_void_QMenuBar_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[20] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QMenuBar_dragEnterEvent_void_QMenuBar_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[21] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QMenuBar_dragLeaveEvent_void_QMenuBar_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[22] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QMenuBar_dragMoveEvent_void_QMenuBar_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[23] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QMenuBar_dropEvent_void_QMenuBar_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QMenuBar this, "QEnterEvent *" event) // protected + _func[24] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QMenuBar_focusNextPrevChild_bool_QMenuBar_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "next", "bool"), End), + _func[25] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QMenuBar_hideEvent_void_QMenuBar_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QMenuBar this, "QInputMethodEvent *" event) // protected + _func[26] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QMenuBar_keyReleaseEvent_void_QMenuBar_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[27] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QMenuBar_mouseDoubleClickEvent_void_QMenuBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[28] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QMenuBar_moveEvent_void_QMenuBar_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QMenuBar this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[29] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QMenuBar_showEvent_void_QMenuBar_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QShowEvent"), End), + _func[30] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QMenuBar_tabletEvent_void_QMenuBar_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[31] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QMenuBar_wheelEvent_void_QMenuBar_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QMenuBar this, "QPainter *" painter) // protected + _func[32] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QMenuBar_metric_int_QMenuBar_int, Return, "int", Parameters, new Param(c, "this", "qt.QMenuBar"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QMenuBar::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QMenuType.cpp b/src/lib/mu/MuQt6/QMenuType.cpp new file mode 100644 index 000000000..bb4d517d1 --- /dev/null +++ b/src/lib/mu/MuQt6/QMenuType.cpp @@ -0,0 +1,1723 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QMenu::~MuQt_QMenu() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QMenu::MuQt_QMenu(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QMenu(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QMenu")); +} + +MuQt_QMenu::MuQt_QMenu(Pointer muobj, const CallEnvironment* ce, const QString & title, QWidget * parent) + : QMenu(title, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QMenu")); +} + +QSize MuQt_QMenu::sizeHint() const +{ + if (!_env) return QMenu::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QMenu::sizeHint(); + } +} + +void MuQt_QMenu::changeEvent(QEvent * e) +{ + if (!_env) { QMenu::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::changeEvent(e); + } +} + +bool MuQt_QMenu::event(QEvent * e) +{ + if (!_env) return QMenu::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMenu::event(e); + } +} + +bool MuQt_QMenu::focusNextPrevChild(bool next) +{ + if (!_env) return QMenu::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMenu::focusNextPrevChild(next); + } +} + +void MuQt_QMenu::hideEvent(QHideEvent * _p13) +{ + if (!_env) { QMenu::hideEvent(_p13); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p13,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::hideEvent(_p13); + } +} + +void MuQt_QMenu::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QMenu::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::keyPressEvent(e); + } +} + +void MuQt_QMenu::leaveEvent(QEvent * _p9) +{ + if (!_env) { QMenu::leaveEvent(_p9); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p9,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::leaveEvent(_p9); + } +} + +void MuQt_QMenu::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QMenu::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::mouseMoveEvent(e); + } +} + +void MuQt_QMenu::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QMenu::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::mousePressEvent(e); + } +} + +void MuQt_QMenu::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QMenu::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::mouseReleaseEvent(e); + } +} + +void MuQt_QMenu::paintEvent(QPaintEvent * e) +{ + if (!_env) { QMenu::paintEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::paintEvent(e); + } +} + +void MuQt_QMenu::timerEvent(QTimerEvent * e) +{ + if (!_env) { QMenu::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::timerEvent(e); + } +} + +void MuQt_QMenu::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QMenu::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::wheelEvent(e); + } +} + +bool MuQt_QMenu::hasHeightForWidth() const +{ + if (!_env) return QMenu::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMenu::hasHeightForWidth(); + } +} + +int MuQt_QMenu::heightForWidth(int w) const +{ + if (!_env) return QMenu::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QMenu::heightForWidth(w); + } +} + +QVariant MuQt_QMenu::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QMenu::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QMenu::inputMethodQuery(query); + } +} + +QSize MuQt_QMenu::minimumSizeHint() const +{ + if (!_env) return QMenu::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QMenu::minimumSizeHint(); + } +} + +void MuQt_QMenu::closeEvent(QCloseEvent * event) +{ + if (!_env) { QMenu::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::closeEvent(event); + } +} + +void MuQt_QMenu::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QMenu::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::contextMenuEvent(event); + } +} + +void MuQt_QMenu::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QMenu::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::dragEnterEvent(event); + } +} + +void MuQt_QMenu::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QMenu::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::dragLeaveEvent(event); + } +} + +void MuQt_QMenu::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QMenu::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::dragMoveEvent(event); + } +} + +void MuQt_QMenu::dropEvent(QDropEvent * event) +{ + if (!_env) { QMenu::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::dropEvent(event); + } +} + +void MuQt_QMenu::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QMenu::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::focusInEvent(event); + } +} + +void MuQt_QMenu::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QMenu::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::focusOutEvent(event); + } +} + +void MuQt_QMenu::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QMenu::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::keyReleaseEvent(event); + } +} + +void MuQt_QMenu::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QMenu::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::mouseDoubleClickEvent(event); + } +} + +void MuQt_QMenu::moveEvent(QMoveEvent * event) +{ + if (!_env) { QMenu::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::moveEvent(event); + } +} + +void MuQt_QMenu::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QMenu::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::resizeEvent(event); + } +} + +void MuQt_QMenu::showEvent(QShowEvent * event) +{ + if (!_env) { QMenu::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::showEvent(event); + } +} + +void MuQt_QMenu::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QMenu::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QMenu::tabletEvent(event); + } +} + +int MuQt_QMenu::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QMenu::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QMenu::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QMenuType::QMenuType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QMenuType::~QMenuType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QMenu_QMenu_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QMenu* w = object(widget)) + { + QMenuType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QMenu"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QMenu_QMenu_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QMenu_QMenu_QMenu_QMenu_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QMenu(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QMenu_QMenu_QMenu_QMenu_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_title, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_title); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QMenu(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QMenu_actionAt_QAction_QMenu_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pt) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pt); + return makeinstance(c, arg0->actionAt(arg1), "qt.QAction"); +} + +Pointer qt_QMenu_actionGeometry_QRect_QMenu_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_act) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QAction * arg1 = object(param_act); + return makeqtype(c,arg0->actionGeometry(arg1),"qt.QRect"); +} + +Pointer qt_QMenu_activeAction_QAction_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return makeinstance(c, arg0->activeAction(), "qt.QAction"); +} + +Pointer qt_QMenu_addMenu_QAction_QMenu_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_menu) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QMenu * arg1 = object(param_menu); + return makeinstance(c, arg0->addMenu(arg1), "qt.QAction"); +} + +Pointer qt_QMenu_addMenu_QMenu_QMenu_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_title) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + const QString arg1 = qstring(param_title); + return makeinstance(c, arg0->addMenu(arg1), "qt.QMenu"); +} + +Pointer qt_QMenu_addMenu_QMenu_QMenu_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_title) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_title); + return makeinstance(c, arg0->addMenu(arg1, arg2), "qt.QMenu"); +} + +Pointer qt_QMenu_addSection_QAction_QMenu_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + return makeinstance(c, arg0->addSection(arg1), "qt.QAction"); +} + +Pointer qt_QMenu_addSection_QAction_QMenu_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + return makeinstance(c, arg0->addSection(arg1, arg2), "qt.QAction"); +} + +Pointer qt_QMenu_addSeparator_QAction_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return makeinstance(c, arg0->addSeparator(), "qt.QAction"); +} + +void qt_QMenu_clear_void_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + arg0->clear(); +} + +Pointer qt_QMenu_defaultAction_QAction_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return makeinstance(c, arg0->defaultAction(), "qt.QAction"); +} + +Pointer qt_QMenu_exec_QAction_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return makeinstance(c, arg0->exec(), "qt.QAction"); +} + +Pointer qt_QMenu_exec_QAction_QMenu_QPoint_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p, Pointer param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_p); + QAction * arg2 = object(param_action); + return makeinstance(c, arg0->exec(arg1, arg2), "qt.QAction"); +} + +void qt_QMenu_hideTearOffMenu_void_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + arg0->hideTearOffMenu(); +} + +Pointer qt_QMenu_insertMenu_QAction_QMenu_QAction_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before, Pointer param_menu) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QAction * arg1 = object(param_before); + QMenu * arg2 = object(param_menu); + return makeinstance(c, arg0->insertMenu(arg1, arg2), "qt.QAction"); +} + +Pointer qt_QMenu_insertSection_QAction_QMenu_QAction_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QAction * arg1 = object(param_before); + const QString arg2 = qstring(param_text); + return makeinstance(c, arg0->insertSection(arg1, arg2), "qt.QAction"); +} + +Pointer qt_QMenu_insertSection_QAction_QMenu_QAction_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before, Pointer param_icon, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QAction * arg1 = object(param_before); + const QIcon arg2 = getqtype(param_icon); + const QString arg3 = qstring(param_text); + return makeinstance(c, arg0->insertSection(arg1, arg2, arg3), "qt.QAction"); +} + +Pointer qt_QMenu_insertSeparator_QAction_QMenu_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QAction * arg1 = object(param_before); + return makeinstance(c, arg0->insertSeparator(arg1), "qt.QAction"); +} + +bool qt_QMenu_isEmpty_bool_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return arg0->isEmpty(); +} + +bool qt_QMenu_isTearOffMenuVisible_bool_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return arg0->isTearOffMenuVisible(); +} + +Pointer qt_QMenu_menuAction_QAction_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return makeinstance(c, arg0->menuAction(), "qt.QAction"); +} + +void qt_QMenu_popup_void_QMenu_QPoint_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p, Pointer param_atAction) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_p); + QAction * arg2 = object(param_atAction); + arg0->popup(arg1, arg2); +} + +void qt_QMenu_setActiveAction_void_QMenu_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_act) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QAction * arg1 = object(param_act); + arg0->setActiveAction(arg1); +} + +void qt_QMenu_setDefaultAction_void_QMenu_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_act) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QAction * arg1 = object(param_act); + arg0->setDefaultAction(arg1); +} + +void qt_QMenu_showTearOffMenu_void_QMenu_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + arg0->showTearOffMenu(arg1); +} + +void qt_QMenu_showTearOffMenu_void_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + arg0->showTearOffMenu(); +} + +Pointer qt_QMenu_sizeHint_QSize_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QMenu::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +int qt_QMenu_columnCount_int_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return ((MuQt_QMenu*)arg0)->columnCount_pub(); +} + +void qt_QMenu_changeEvent_void_QMenu_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QMenu_event_bool_QMenu_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QMenu*)arg0)->event_pub_parent(arg1) : ((MuQt_QMenu*)arg0)->event_pub(arg1); +} + +bool qt_QMenu_focusNextPrevChild_bool_QMenu_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QMenu*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QMenu*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QMenu_hideEvent_void_QMenu_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p13) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param__p13); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->hideEvent_pub(arg1); +} + +void qt_QMenu_keyPressEvent_void_QMenu_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QMenu_leaveEvent_void_QMenu_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p9) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param__p9); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QMenu_mouseMoveEvent_void_QMenu_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QMenu_mousePressEvent_void_QMenu_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QMenu_mouseReleaseEvent_void_QMenu_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QMenu_paintEvent_void_QMenu_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->paintEvent_pub(arg1); +} + +void qt_QMenu_timerEvent_void_QMenu_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->timerEvent_pub(arg1); +} + +void qt_QMenu_wheelEvent_void_QMenu_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->wheelEvent_pub(arg1); +} + +bool qt_QMenu_hasHeightForWidth_bool_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QMenu::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QMenu_heightForWidth_int_QMenu_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QMenu::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QMenu_inputMethodQuery_QVariant_QMenu_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QMenu::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QMenu_minimumSizeHint_QSize_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QMenu::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +void qt_QMenu_closeEvent_void_QMenu_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->closeEvent_pub(arg1); +} + +void qt_QMenu_contextMenuEvent_void_QMenu_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QMenu_dragEnterEvent_void_QMenu_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QMenu_dragLeaveEvent_void_QMenu_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QMenu_dragMoveEvent_void_QMenu_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QMenu_dropEvent_void_QMenu_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->dropEvent_pub(arg1); +} + +void qt_QMenu_focusInEvent_void_QMenu_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QMenu_focusOutEvent_void_QMenu_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QMenu_keyReleaseEvent_void_QMenu_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QMenu_mouseDoubleClickEvent_void_QMenu_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QMenu_moveEvent_void_QMenu_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->moveEvent_pub(arg1); +} + +void qt_QMenu_resizeEvent_void_QMenu_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QMenu_showEvent_void_QMenu_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->showEvent_pub(arg1); +} + +void qt_QMenu_tabletEvent_void_QMenu_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMenu*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QMenu*)arg0)->tabletEvent_pub(arg1); +} + +int qt_QMenu_metric_int_QMenu_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMenu* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QMenu*)arg0)->metric_pub_parent(arg1) : ((MuQt_QMenu*)arg0)->metric_pub(arg1); +} + +Pointer qt_QMenu_menuInAction_QMenu_QAction(Mu::Thread& NODE_THREAD, Pointer param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QAction * arg0 = object(param_action); + return makeinstance(c, QMenu::menuInAction(arg0), "qt.QMenu"); +} + + +static NODE_IMPLEMENTATION(_n_QMenu0, Pointer) +{ + NODE_RETURN(qt_QMenu_QMenu_QMenu_QMenu_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QMenu1, Pointer) +{ + NODE_RETURN(qt_QMenu_QMenu_QMenu_QMenu_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_actionAt0, Pointer) +{ + NODE_RETURN(qt_QMenu_actionAt_QAction_QMenu_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_actionGeometry0, Pointer) +{ + NODE_RETURN(qt_QMenu_actionGeometry_QRect_QMenu_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_activeAction0, Pointer) +{ + NODE_RETURN(qt_QMenu_activeAction_QAction_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addMenu0, Pointer) +{ + NODE_RETURN(qt_QMenu_addMenu_QAction_QMenu_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addMenu1, Pointer) +{ + NODE_RETURN(qt_QMenu_addMenu_QMenu_QMenu_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addMenu2, Pointer) +{ + NODE_RETURN(qt_QMenu_addMenu_QMenu_QMenu_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addSection0, Pointer) +{ + NODE_RETURN(qt_QMenu_addSection_QAction_QMenu_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addSection1, Pointer) +{ + NODE_RETURN(qt_QMenu_addSection_QAction_QMenu_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addSeparator0, Pointer) +{ + NODE_RETURN(qt_QMenu_addSeparator_QAction_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QMenu_clear_void_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_defaultAction0, Pointer) +{ + NODE_RETURN(qt_QMenu_defaultAction_QAction_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exec0, Pointer) +{ + NODE_RETURN(qt_QMenu_exec_QAction_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exec1, Pointer) +{ + NODE_RETURN(qt_QMenu_exec_QAction_QMenu_QPoint_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hideTearOffMenu0, void) +{ + qt_QMenu_hideTearOffMenu_void_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertMenu0, Pointer) +{ + NODE_RETURN(qt_QMenu_insertMenu_QAction_QMenu_QAction_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertSection0, Pointer) +{ + NODE_RETURN(qt_QMenu_insertSection_QAction_QMenu_QAction_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertSection1, Pointer) +{ + NODE_RETURN(qt_QMenu_insertSection_QAction_QMenu_QAction_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertSeparator0, Pointer) +{ + NODE_RETURN(qt_QMenu_insertSeparator_QAction_QMenu_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QMenu_isEmpty_bool_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isTearOffMenuVisible0, bool) +{ + NODE_RETURN(qt_QMenu_isTearOffMenuVisible_bool_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_menuAction0, Pointer) +{ + NODE_RETURN(qt_QMenu_menuAction_QAction_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_popup0, void) +{ + qt_QMenu_popup_void_QMenu_QPoint_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setActiveAction0, void) +{ + qt_QMenu_setActiveAction_void_QMenu_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setDefaultAction0, void) +{ + qt_QMenu_setDefaultAction_void_QMenu_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showTearOffMenu0, void) +{ + qt_QMenu_showTearOffMenu_void_QMenu_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showTearOffMenu1, void) +{ + qt_QMenu_showTearOffMenu_void_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QMenu_sizeHint_QSize_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_columnCount0, int) +{ + NODE_RETURN(qt_QMenu_columnCount_int_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QMenu_changeEvent_void_QMenu_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QMenu_event_bool_QMenu_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QMenu_focusNextPrevChild_bool_QMenu_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QMenu_hideEvent_void_QMenu_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QMenu_keyPressEvent_void_QMenu_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QMenu_leaveEvent_void_QMenu_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QMenu_mouseMoveEvent_void_QMenu_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QMenu_mousePressEvent_void_QMenu_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QMenu_mouseReleaseEvent_void_QMenu_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QMenu_paintEvent_void_QMenu_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QMenu_timerEvent_void_QMenu_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QMenu_wheelEvent_void_QMenu_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QMenu_hasHeightForWidth_bool_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QMenu_heightForWidth_int_QMenu_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QMenu_inputMethodQuery_QVariant_QMenu_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QMenu_minimumSizeHint_QSize_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QMenu_closeEvent_void_QMenu_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QMenu_contextMenuEvent_void_QMenu_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QMenu_dragEnterEvent_void_QMenu_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QMenu_dragLeaveEvent_void_QMenu_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QMenu_dragMoveEvent_void_QMenu_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QMenu_dropEvent_void_QMenu_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QMenu_focusInEvent_void_QMenu_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QMenu_focusOutEvent_void_QMenu_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QMenu_keyReleaseEvent_void_QMenu_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QMenu_mouseDoubleClickEvent_void_QMenu_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QMenu_moveEvent_void_QMenu_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QMenu_resizeEvent_void_QMenu_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QMenu_showEvent_void_QMenu_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QMenu_tabletEvent_void_QMenu_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QMenu_metric_int_QMenu_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_menuInAction0, Pointer) +{ + NODE_RETURN(qt_QMenu_menuInAction_QMenu_QAction(NODE_THREAD, NODE_ARG(0, Pointer))); +} + + + +void +QMenuType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QMenu_QMenu_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QMenu", _n_QMenu0, None, Compiled, qt_QMenu_QMenu_QMenu_QMenu_QWidget, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QMenu", _n_QMenu1, None, Compiled, qt_QMenu_QMenu_QMenu_QMenu_string_QWidget, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "title", "string"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "actionAt", _n_actionAt0, None, Compiled, qt_QMenu_actionAt_QAction_QMenu_QPoint, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "pt", "qt.QPoint"), End), + new Function(c, "actionGeometry", _n_actionGeometry0, None, Compiled, qt_QMenu_actionGeometry_QRect_QMenu_QAction, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "act", "qt.QAction"), End), + new Function(c, "activeAction", _n_activeAction0, None, Compiled, qt_QMenu_activeAction_QAction_QMenu, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), End), + new Function(c, "addMenu", _n_addMenu0, None, Compiled, qt_QMenu_addMenu_QAction_QMenu_QMenu, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "menu", "qt.QMenu"), End), + new Function(c, "addMenu", _n_addMenu1, None, Compiled, qt_QMenu_addMenu_QMenu_QMenu_string, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "title", "string"), End), + new Function(c, "addMenu", _n_addMenu2, None, Compiled, qt_QMenu_addMenu_QMenu_QMenu_QIcon_string, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "icon", "qt.QIcon"), new Param(c, "title", "string"), End), + new Function(c, "addSection", _n_addSection0, None, Compiled, qt_QMenu_addSection_QAction_QMenu_string, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "text", "string"), End), + new Function(c, "addSection", _n_addSection1, None, Compiled, qt_QMenu_addSection_QAction_QMenu_QIcon_string, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), End), + new Function(c, "addSeparator", _n_addSeparator0, None, Compiled, qt_QMenu_addSeparator_QAction_QMenu, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), End), + new Function(c, "clear", _n_clear0, None, Compiled, qt_QMenu_clear_void_QMenu, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), End), + new Function(c, "defaultAction", _n_defaultAction0, None, Compiled, qt_QMenu_defaultAction_QAction_QMenu, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), End), + new Function(c, "exec", _n_exec0, None, Compiled, qt_QMenu_exec_QAction_QMenu, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), End), + new Function(c, "exec", _n_exec1, None, Compiled, qt_QMenu_exec_QAction_QMenu_QPoint_QAction, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "p", "qt.QPoint"), new Param(c, "action", "qt.QAction"), End), + new Function(c, "hideTearOffMenu", _n_hideTearOffMenu0, None, Compiled, qt_QMenu_hideTearOffMenu_void_QMenu, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), End), + // PROP: icon (QIcon; QMenu this) + new Function(c, "insertMenu", _n_insertMenu0, None, Compiled, qt_QMenu_insertMenu_QAction_QMenu_QAction_QMenu, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "before", "qt.QAction"), new Param(c, "menu", "qt.QMenu"), End), + new Function(c, "insertSection", _n_insertSection0, None, Compiled, qt_QMenu_insertSection_QAction_QMenu_QAction_string, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "before", "qt.QAction"), new Param(c, "text", "string"), End), + new Function(c, "insertSection", _n_insertSection1, None, Compiled, qt_QMenu_insertSection_QAction_QMenu_QAction_QIcon_string, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "before", "qt.QAction"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), End), + new Function(c, "insertSeparator", _n_insertSeparator0, None, Compiled, qt_QMenu_insertSeparator_QAction_QMenu_QAction, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "before", "qt.QAction"), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QMenu_isEmpty_bool_QMenu, Return, "bool", Parameters, new Param(c, "this", "qt.QMenu"), End), + // PROP: isTearOffEnabled (bool; QMenu this) + new Function(c, "isTearOffMenuVisible", _n_isTearOffMenuVisible0, None, Compiled, qt_QMenu_isTearOffMenuVisible_bool_QMenu, Return, "bool", Parameters, new Param(c, "this", "qt.QMenu"), End), + new Function(c, "menuAction", _n_menuAction0, None, Compiled, qt_QMenu_menuAction_QAction_QMenu, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QMenu"), End), + new Function(c, "popup", _n_popup0, None, Compiled, qt_QMenu_popup_void_QMenu_QPoint_QAction, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "p", "qt.QPoint"), new Param(c, "atAction", "qt.QAction"), End), + // PROP: separatorsCollapsible (bool; QMenu this) + new Function(c, "setActiveAction", _n_setActiveAction0, None, Compiled, qt_QMenu_setActiveAction_void_QMenu_QAction, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "act", "qt.QAction"), End), + new Function(c, "setDefaultAction", _n_setDefaultAction0, None, Compiled, qt_QMenu_setDefaultAction_void_QMenu_QAction, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "act", "qt.QAction"), End), + // PROP: setIcon (void; QMenu this, QIcon icon) + // PROP: setSeparatorsCollapsible (void; QMenu this, bool collapse) + // PROP: setTearOffEnabled (void; QMenu this, bool _p4) + // PROP: setTitle (void; QMenu this, string title) + // PROP: setToolTipsVisible (void; QMenu this, bool visible) + new Function(c, "showTearOffMenu", _n_showTearOffMenu0, None, Compiled, qt_QMenu_showTearOffMenu_void_QMenu_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "showTearOffMenu", _n_showTearOffMenu1, None, Compiled, qt_QMenu_showTearOffMenu_void_QMenu, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), End), + // PROP: title (string; QMenu this) + // MISSING: toNSMenu ("NSMenu *"; QMenu this) + // PROP: toolTipsVisible (bool; QMenu this) + _func[0] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QMenu_sizeHint_QSize_QMenu, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QMenu"), End), + new Function(c, "columnCount", _n_columnCount0, None, Compiled, qt_QMenu_columnCount_int_QMenu, Return, "int", Parameters, new Param(c, "this", "qt.QMenu"), End), + // MISSING: initStyleOption (void; QMenu this, "QStyleOptionMenuItem *" option, QAction action) // protected + // MISSING: actionEvent (void; QMenu this, "QActionEvent *" e) // protected + _func[1] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QMenu_changeEvent_void_QMenu_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "e", "qt.QEvent"), End), + // MISSING: enterEvent (void; QMenu this, "QEnterEvent *" _p14) // protected + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QMenu_event_bool_QMenu_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QMenu_focusNextPrevChild_bool_QMenu_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "next", "bool"), End), + _func[4] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QMenu_hideEvent_void_QMenu_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "_p13", "qt.QHideEvent"), End), + _func[5] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QMenu_keyPressEvent_void_QMenu_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[6] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QMenu_leaveEvent_void_QMenu_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "_p9", "qt.QEvent"), End), + _func[7] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QMenu_mouseMoveEvent_void_QMenu_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[8] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QMenu_mousePressEvent_void_QMenu_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[9] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QMenu_mouseReleaseEvent_void_QMenu_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[10] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QMenu_paintEvent_void_QMenu_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "e", "qt.QPaintEvent"), End), + _func[11] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QMenu_timerEvent_void_QMenu_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "e", "qt.QTimerEvent"), End), + _func[12] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QMenu_wheelEvent_void_QMenu_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "e", "qt.QWheelEvent"), End), + _func[13] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QMenu_hasHeightForWidth_bool_QMenu, Return, "bool", Parameters, new Param(c, "this", "qt.QMenu"), End), + _func[14] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QMenu_heightForWidth_int_QMenu_int, Return, "int", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "w", "int"), End), + _func[15] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QMenu_inputMethodQuery_QVariant_QMenu_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "query", "int"), End), + _func[16] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QMenu_minimumSizeHint_QSize_QMenu, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QMenu"), End), + // MISSING: paintEngine ("QPaintEngine *"; QMenu this) + _func[17] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QMenu_closeEvent_void_QMenu_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[18] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QMenu_contextMenuEvent_void_QMenu_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[19] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QMenu_dragEnterEvent_void_QMenu_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[20] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QMenu_dragLeaveEvent_void_QMenu_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[21] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QMenu_dragMoveEvent_void_QMenu_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[22] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QMenu_dropEvent_void_QMenu_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QDropEvent"), End), + _func[23] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QMenu_focusInEvent_void_QMenu_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[24] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QMenu_focusOutEvent_void_QMenu_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QMenu this, "QInputMethodEvent *" event) // protected + _func[25] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QMenu_keyReleaseEvent_void_QMenu_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[26] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QMenu_mouseDoubleClickEvent_void_QMenu_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[27] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QMenu_moveEvent_void_QMenu_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QMenu this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[28] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QMenu_resizeEvent_void_QMenu_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[29] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QMenu_showEvent_void_QMenu_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QShowEvent"), End), + _func[30] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QMenu_tabletEvent_void_QMenu_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "event", "qt.QTabletEvent"), End), + // MISSING: initPainter (void; QMenu this, "QPainter *" painter) // protected + _func[31] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QMenu_metric_int_QMenu_int, Return, "int", Parameters, new Param(c, "this", "qt.QMenu"), new Param(c, "m", "int"), End), + // static functions + // MISSING: exec (QAction; "const QList &" actions, QPoint pos, QAction at, QWidget parent) + new Function(c, "menuInAction", _n_menuInAction0, None, Compiled, qt_QMenu_menuInAction_QMenu_QAction, Return, "qt.QMenu", Parameters, new Param(c, "action", "qt.QAction"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QMenu::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QMimeDataType.cpp b/src/lib/mu/MuQt6/QMimeDataType.cpp new file mode 100644 index 000000000..544df9968 --- /dev/null +++ b/src/lib/mu/MuQt6/QMimeDataType.cpp @@ -0,0 +1,655 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QMimeData::~MuQt_QMimeData() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QMimeData::MuQt_QMimeData(Pointer muobj, const CallEnvironment* ce) + : QMimeData() +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QMimeData")); +} + +QStringList MuQt_QMimeData::formats() const +{ + if (!_env) return QMimeData::formats(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QMimeData::formats(); + } +} + +bool MuQt_QMimeData::hasFormat(const QString & mimeType) const +{ + if (!_env) return QMimeData::hasFormat(mimeType); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makestring(c,mimeType)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMimeData::hasFormat(mimeType); + } +} + +bool MuQt_QMimeData::event(QEvent * e) +{ + if (!_env) return QMimeData::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMimeData::event(e); + } +} + +bool MuQt_QMimeData::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QMimeData::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QMimeData::eventFilter(watched, event); + } +} + +void MuQt_QMimeData::customEvent(QEvent * event) +{ + if (!_env) { QMimeData::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QMimeData::customEvent(event); + } +} + +void MuQt_QMimeData::timerEvent(QTimerEvent * event) +{ + if (!_env) { QMimeData::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QMimeData::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QMimeDataType::QMimeDataType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QMimeDataType::~QMimeDataType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QMimeData_QMimeData_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QMimeData* w = object(widget)) + { + QMimeDataType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QMimeData"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QMimeData_QMimeData_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QMimeData_QMimeData_QMimeData_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setobject(param_this, new MuQt_QMimeData(param_this, NODE_THREAD.process()->callEnv())); + return param_this; +} + +void qt_QMimeData_clear_void_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + arg0->clear(); +} + +Pointer qt_QMimeData_colorData_QVariant_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return makeqtype(c,arg0->colorData(),"qt.QVariant"); +} + +Pointer qt_QMimeData_data_QByteArray_QMimeData_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_mimeType) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + const QString arg1 = qstring(param_mimeType); + return makeqtype(c,arg0->data(arg1),"qt.QByteArray"); +} + +Pointer qt_QMimeData_formats_stringBSB_ESB__QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestringlist(c,arg0->QMimeData::formats()) : makestringlist(c,arg0->formats()); +} + +bool qt_QMimeData_hasColor_bool_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return arg0->hasColor(); +} + +bool qt_QMimeData_hasFormat_bool_QMimeData_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_mimeType) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + const QString arg1 = qstring(param_mimeType); + return isMuQtObject(arg0) ? arg0->QMimeData::hasFormat(arg1) : arg0->hasFormat(arg1); +} + +bool qt_QMimeData_hasHtml_bool_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return arg0->hasHtml(); +} + +bool qt_QMimeData_hasImage_bool_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return arg0->hasImage(); +} + +bool qt_QMimeData_hasText_bool_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return arg0->hasText(); +} + +bool qt_QMimeData_hasUrls_bool_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return arg0->hasUrls(); +} + +Pointer qt_QMimeData_html_string_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return makestring(c,arg0->html()); +} + +Pointer qt_QMimeData_imageData_QVariant_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return makeqtype(c,arg0->imageData(),"qt.QVariant"); +} + +void qt_QMimeData_removeFormat_void_QMimeData_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_mimeType) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + const QString arg1 = qstring(param_mimeType); + arg0->removeFormat(arg1); +} + +void qt_QMimeData_setColorData_void_QMimeData_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + const QVariant arg1 = getqtype(param_color); + arg0->setColorData(arg1); +} + +void qt_QMimeData_setData_void_QMimeData_string_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_mimeType, Pointer param_data) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + const QString arg1 = qstring(param_mimeType); + const QByteArray arg2 = getqtype(param_data); + arg0->setData(arg1, arg2); +} + +void qt_QMimeData_setHtml_void_QMimeData_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_html) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + const QString arg1 = qstring(param_html); + arg0->setHtml(arg1); +} + +void qt_QMimeData_setImageData_void_QMimeData_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_image) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + const QVariant arg1 = getqtype(param_image); + arg0->setImageData(arg1); +} + +void qt_QMimeData_setText_void_QMimeData_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + arg0->setText(arg1); +} + +void qt_QMimeData_setUrls_void_QMimeData_qt__QUrlBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_urls) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + const QList arg1 = qtypelist(param_urls); + arg0->setUrls(arg1); +} + +Pointer qt_QMimeData_text_string_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return makestring(c,arg0->text()); +} + +Pointer qt_QMimeData_urls_qt__QUrlBSB_ESB__QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + return makeqtypelist(c,arg0->urls(),"qt.QUrl"); +} + +bool qt_QMimeData_event_bool_QMimeData_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QMimeData::event(arg1) : arg0->event(arg1); +} + +bool qt_QMimeData_eventFilter_bool_QMimeData_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QMimeData::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QMimeData_customEvent_void_QMimeData_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMimeData*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QMimeData*)arg0)->customEvent_pub(arg1); +} + +void qt_QMimeData_timerEvent_void_QMimeData_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMimeData* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QMimeData*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QMimeData*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QMimeData0, Pointer) +{ + NODE_RETURN(qt_QMimeData_QMimeData_QMimeData_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QMimeData_clear_void_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_colorData0, Pointer) +{ + NODE_RETURN(qt_QMimeData_colorData_QVariant_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QMimeData_data_QByteArray_QMimeData_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_formats0, Pointer) +{ + NODE_RETURN(qt_QMimeData_formats_stringBSB_ESB__QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasColor0, bool) +{ + NODE_RETURN(qt_QMimeData_hasColor_bool_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasFormat0, bool) +{ + NODE_RETURN(qt_QMimeData_hasFormat_bool_QMimeData_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHtml0, bool) +{ + NODE_RETURN(qt_QMimeData_hasHtml_bool_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasImage0, bool) +{ + NODE_RETURN(qt_QMimeData_hasImage_bool_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasText0, bool) +{ + NODE_RETURN(qt_QMimeData_hasText_bool_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasUrls0, bool) +{ + NODE_RETURN(qt_QMimeData_hasUrls_bool_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_html0, Pointer) +{ + NODE_RETURN(qt_QMimeData_html_string_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_imageData0, Pointer) +{ + NODE_RETURN(qt_QMimeData_imageData_QVariant_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeFormat0, void) +{ + qt_QMimeData_removeFormat_void_QMimeData_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setColorData0, void) +{ + qt_QMimeData_setColorData_void_QMimeData_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setData0, void) +{ + qt_QMimeData_setData_void_QMimeData_string_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHtml0, void) +{ + qt_QMimeData_setHtml_void_QMimeData_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setImageData0, void) +{ + qt_QMimeData_setImageData_void_QMimeData_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setText0, void) +{ + qt_QMimeData_setText_void_QMimeData_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setUrls0, void) +{ + qt_QMimeData_setUrls_void_QMimeData_qt__QUrlBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QMimeData_text_string_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_urls0, Pointer) +{ + NODE_RETURN(qt_QMimeData_urls_qt__QUrlBSB_ESB__QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QMimeData_event_bool_QMimeData_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QMimeData_eventFilter_bool_QMimeData_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QMimeData_customEvent_void_QMimeData_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QMimeData_timerEvent_void_QMimeData_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QMimeDataType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QMimeData_QMimeData_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QMimeData", _n_QMimeData0, None, Compiled, qt_QMimeData_QMimeData_QMimeData_QMimeData, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "clear", _n_clear0, None, Compiled, qt_QMimeData_clear_void_QMimeData, Return, "void", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "colorData", _n_colorData0, None, Compiled, qt_QMimeData_colorData_QVariant_QMimeData, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "data", _n_data0, None, Compiled, qt_QMimeData_data_QByteArray_QMimeData_string, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "mimeType", "string"), End), + _func[0] = new MemberFunction(c, "formats", _n_formats0, None, Compiled, qt_QMimeData_formats_stringBSB_ESB__QMimeData, Return, "string[]", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "hasColor", _n_hasColor0, None, Compiled, qt_QMimeData_hasColor_bool_QMimeData, Return, "bool", Parameters, new Param(c, "this", "qt.QMimeData"), End), + _func[1] = new MemberFunction(c, "hasFormat", _n_hasFormat0, None, Compiled, qt_QMimeData_hasFormat_bool_QMimeData_string, Return, "bool", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "mimeType", "string"), End), + new Function(c, "hasHtml", _n_hasHtml0, None, Compiled, qt_QMimeData_hasHtml_bool_QMimeData, Return, "bool", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "hasImage", _n_hasImage0, None, Compiled, qt_QMimeData_hasImage_bool_QMimeData, Return, "bool", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "hasText", _n_hasText0, None, Compiled, qt_QMimeData_hasText_bool_QMimeData, Return, "bool", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "hasUrls", _n_hasUrls0, None, Compiled, qt_QMimeData_hasUrls_bool_QMimeData, Return, "bool", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "html", _n_html0, None, Compiled, qt_QMimeData_html_string_QMimeData, Return, "string", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "imageData", _n_imageData0, None, Compiled, qt_QMimeData_imageData_QVariant_QMimeData, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "removeFormat", _n_removeFormat0, None, Compiled, qt_QMimeData_removeFormat_void_QMimeData_string, Return, "void", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "mimeType", "string"), End), + new Function(c, "setColorData", _n_setColorData0, None, Compiled, qt_QMimeData_setColorData_void_QMimeData_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "color", "qt.QVariant"), End), + new Function(c, "setData", _n_setData0, None, Compiled, qt_QMimeData_setData_void_QMimeData_string_QByteArray, Return, "void", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "mimeType", "string"), new Param(c, "data", "qt.QByteArray"), End), + new Function(c, "setHtml", _n_setHtml0, None, Compiled, qt_QMimeData_setHtml_void_QMimeData_string, Return, "void", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "html", "string"), End), + new Function(c, "setImageData", _n_setImageData0, None, Compiled, qt_QMimeData_setImageData_void_QMimeData_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "image", "qt.QVariant"), End), + new Function(c, "setText", _n_setText0, None, Compiled, qt_QMimeData_setText_void_QMimeData_string, Return, "void", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "text", "string"), End), + new Function(c, "setUrls", _n_setUrls0, None, Compiled, qt_QMimeData_setUrls_void_QMimeData_qt__QUrlBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "urls", "qt.QUrl[]"), End), + new Function(c, "text", _n_text0, None, Compiled, qt_QMimeData_text_string_QMimeData, Return, "string", Parameters, new Param(c, "this", "qt.QMimeData"), End), + new Function(c, "urls", _n_urls0, None, Compiled, qt_QMimeData_urls_qt__QUrlBSB_ESB__QMimeData, Return, "qt.QUrl[]", Parameters, new Param(c, "this", "qt.QMimeData"), End), + // MISSING: retrieveData (QVariant; QMimeData this, string mimeType, "QMetaType" type) // protected + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QMimeData_event_bool_QMimeData_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QMimeData_eventFilter_bool_QMimeData_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QMimeData this) + // MISSING: childEvent (void; QMimeData this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QMimeData this, "const QMetaMethod &" signal) // protected + _func[4] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QMimeData_customEvent_void_QMimeData_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QMimeData this, "const QMetaMethod &" signal) // protected + _func[5] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QMimeData_timerEvent_void_QMimeData_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QMimeData"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QMimeData::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QModelIndexType.cpp b/src/lib/mu/MuQt6/QModelIndexType.cpp new file mode 100644 index 000000000..ceaeeee74 --- /dev/null +++ b/src/lib/mu/MuQt6/QModelIndexType.cpp @@ -0,0 +1,352 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QModelIndexType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QModelIndexType::QModelIndexType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QModelIndexType::~QModelIndexType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QModelIndexType::Instance* i = new QModelIndexType::Instance((Class*)NODE_THIS.type()); + QModelIndexType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QModelIndexType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QModelIndexType::finalizer, 0, 0, 0); +} + +void +QModelIndexType::finalizer (void* obj, void* data) +{ + QModelIndexType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QModelIndex_QModelIndex_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QModelIndex()); + return param_this; +} + +int qt_QModelIndex_column_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + return arg0.column(); +} + +Pointer qt_QModelIndex_data_QVariant_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + int arg1 = (int)(param_role); + return makeqtype(c,arg0.data(arg1),"qt.QVariant"); +} + +int qt_QModelIndex_flags_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + return int(arg0.flags()); +} + +bool qt_QModelIndex_isValid_bool_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + return arg0.isValid(); +} + +Pointer qt_QModelIndex_model_QAbstractItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + return makeinstance(c, arg0.model(), "qt.QAbstractItemModel"); +} + +Pointer qt_QModelIndex_parent_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + return makeqtype(c,arg0.parent(),"qt.QModelIndex"); +} + +int qt_QModelIndex_row_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + return arg0.row(); +} + +Pointer qt_QModelIndex_sibling_QModelIndex_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return makeqtype(c,arg0.sibling(arg1, arg2),"qt.QModelIndex"); +} + +Pointer qt_QModelIndex_siblingAtColumn_QModelIndex_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + int arg1 = (int)(param_column); + return makeqtype(c,arg0.siblingAtColumn(arg1),"qt.QModelIndex"); +} + +Pointer qt_QModelIndex_siblingAtRow_QModelIndex_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + int arg1 = (int)(param_row); + return makeqtype(c,arg0.siblingAtRow(arg1),"qt.QModelIndex"); +} + +bool qt_QModelIndex_operatorBang_EQ__bool_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + const QModelIndex arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +bool qt_QModelIndex_operatorLT__bool_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + const QModelIndex arg1 = getqtype(param_other); + return arg0.operator<(arg1); +} + +bool qt_QModelIndex_operatorEQ_EQ__bool_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(param_this); + const QModelIndex arg1 = getqtype(param_other); + return arg0.operator==(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QModelIndex0, Pointer) +{ + NODE_RETURN(qt_QModelIndex_QModelIndex_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_column0, int) +{ + NODE_RETURN(qt_QModelIndex_column_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QModelIndex_data_QVariant_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QModelIndex_flags_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QModelIndex_isValid_bool_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_model0, Pointer) +{ + NODE_RETURN(qt_QModelIndex_model_QAbstractItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_parent0, Pointer) +{ + NODE_RETURN(qt_QModelIndex_parent_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_row0, int) +{ + NODE_RETURN(qt_QModelIndex_row_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sibling0, Pointer) +{ + NODE_RETURN(qt_QModelIndex_sibling_QModelIndex_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_siblingAtColumn0, Pointer) +{ + NODE_RETURN(qt_QModelIndex_siblingAtColumn_QModelIndex_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_siblingAtRow0, Pointer) +{ + NODE_RETURN(qt_QModelIndex_siblingAtRow_QModelIndex_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QModelIndex_operatorBang_EQ__bool_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorLT_0, bool) +{ + NODE_RETURN(qt_QModelIndex_operatorLT__bool_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QModelIndex_operatorEQ_EQ__bool_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + + +static NODE_IMPLEMENTATION(_n_internalPointer, Pointer) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(NODE_ARG(0, Pointer)); + NODE_RETURN(Pointer(arg0.internalPointer())); +} + +void +QModelIndexType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QModelIndex", _n_QModelIndex0, None, Compiled, qt_QModelIndex_QModelIndex_QModelIndex_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QModelIndex"), End), + new Function(c, "column", _n_column0, None, Compiled, qt_QModelIndex_column_int_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QModelIndex"), End), + // MISSING: constInternalPointer ("const void *"; QModelIndex this) + new Function(c, "data", _n_data0, None, Compiled, qt_QModelIndex_data_QVariant_QModelIndex_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QModelIndex"), new Param(c, "role", "int", Value((int)Qt::DisplayRole)), End), + new Function(c, "flags", _n_flags0, None, Compiled, qt_QModelIndex_flags_int_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QModelIndex"), End), + // MISSING: internalId ("quintptr"; QModelIndex this) + // MISSING: internalPointer ("void *"; QModelIndex this) + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QModelIndex_isValid_bool_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QModelIndex"), End), + new Function(c, "model", _n_model0, None, Compiled, qt_QModelIndex_model_QAbstractItemModel_QModelIndex, Return, "qt.QAbstractItemModel", Parameters, new Param(c, "this", "qt.QModelIndex"), End), + // MISSING: multiData (void; QModelIndex this, "QModelRoleDataSpan" roleDataSpan) + new Function(c, "parent", _n_parent0, None, Compiled, qt_QModelIndex_parent_QModelIndex_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QModelIndex"), End), + new Function(c, "row", _n_row0, None, Compiled, qt_QModelIndex_row_int_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QModelIndex"), End), + new Function(c, "sibling", _n_sibling0, None, Compiled, qt_QModelIndex_sibling_QModelIndex_QModelIndex_int_int, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QModelIndex"), new Param(c, "row", "int"), new Param(c, "column", "int"), End), + new Function(c, "siblingAtColumn", _n_siblingAtColumn0, None, Compiled, qt_QModelIndex_siblingAtColumn_QModelIndex_QModelIndex_int, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QModelIndex"), new Param(c, "column", "int"), End), + new Function(c, "siblingAtRow", _n_siblingAtRow0, None, Compiled, qt_QModelIndex_siblingAtRow_QModelIndex_QModelIndex_int, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QModelIndex"), new Param(c, "row", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QModelIndex_operatorBang_EQ__bool_QModelIndex_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QModelIndex"), new Param(c, "other", "qt.QModelIndex"), End), + new Function(c, "<", _n_operatorLT_0, Op, Compiled, qt_QModelIndex_operatorLT__bool_QModelIndex_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QModelIndex"), new Param(c, "other", "qt.QModelIndex"), End), + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QModelIndex_operatorEQ_EQ__bool_QModelIndex_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QModelIndex"), new Param(c, "other", "qt.QModelIndex"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + +addSymbols( + + new Function(c, "internalPointer", _n_internalPointer, None, + Return, "object", + Parameters, + new Param(c, "this", "qt.QModelIndex"), + End), + + EndArguments); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QMouseEventType.cpp b/src/lib/mu/MuQt6/QMouseEventType.cpp new file mode 100644 index 000000000..89f1321f3 --- /dev/null +++ b/src/lib/mu/MuQt6/QMouseEventType.cpp @@ -0,0 +1,120 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QMouseEventType::QMouseEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QMouseEventType::~QMouseEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +int qt_QMouseEvent_flags_int_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMouseEvent * arg0 = getqpointer(param_this); + return int(arg0->flags()); +} + + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QMouseEvent_flags_int_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QMouseEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + // MISSING: QMouseEvent (QMouseEvent; QMouseEvent this, flags QEvent::Type type, QPointF localPos, QPointF globalPos, flags Qt::MouseButton button, flags Qt::MouseButtons buttons, flags Qt::KeyboardModifiers modifiers, "const QPointingDevice *" device) + // MISSING: QMouseEvent (QMouseEvent; QMouseEvent this, flags QEvent::Type type, QPointF localPos, QPointF scenePos, QPointF globalPos, flags Qt::MouseButton button, flags Qt::MouseButtons buttons, flags Qt::KeyboardModifiers modifiers, "const QPointingDevice *" device) + new Function(c, "flags", _n_flags0, None, Compiled, qt_QMouseEvent_flags_int_QMouseEvent, Return, "int", Parameters, new Param(c, "this", "qt.QMouseEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QMoveEventType.cpp b/src/lib/mu/MuQt6/QMoveEventType.cpp new file mode 100644 index 000000000..228258f56 --- /dev/null +++ b/src/lib/mu/MuQt6/QMoveEventType.cpp @@ -0,0 +1,147 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QMoveEventType::QMoveEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QMoveEventType::~QMoveEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QMoveEvent_QMoveEvent_QMoveEvent_QMoveEvent_QPoint_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos, Pointer param_oldPos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg1 = getqtype(param_pos); + const QPoint arg2 = getqtype(param_oldPos); + setqpointer(param_this,new QMoveEvent(arg1, arg2)); + return param_this; +} + +Pointer qt_QMoveEvent_oldPos_QPoint_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMoveEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->oldPos(),"qt.QPoint"); +} + +Pointer qt_QMoveEvent_pos_QPoint_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QMoveEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->pos(),"qt.QPoint"); +} + + +static NODE_IMPLEMENTATION(_n_QMoveEvent0, Pointer) +{ + NODE_RETURN(qt_QMoveEvent_QMoveEvent_QMoveEvent_QMoveEvent_QPoint_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_oldPos0, Pointer) +{ + NODE_RETURN(qt_QMoveEvent_oldPos_QPoint_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pos0, Pointer) +{ + NODE_RETURN(qt_QMoveEvent_pos_QPoint_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QMoveEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QMoveEvent", _n_QMoveEvent0, None, Compiled, qt_QMoveEvent_QMoveEvent_QMoveEvent_QMoveEvent_QPoint_QPoint, Return, "qt.QMoveEvent", Parameters, new Param(c, "this", "qt.QMoveEvent"), new Param(c, "pos", "qt.QPoint"), new Param(c, "oldPos", "qt.QPoint"), End), + new Function(c, "oldPos", _n_oldPos0, None, Compiled, qt_QMoveEvent_oldPos_QPoint_QMoveEvent, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QMoveEvent"), End), + new Function(c, "pos", _n_pos0, None, Compiled, qt_QMoveEvent_pos_QPoint_QMoveEvent, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QMoveEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QNetworkAccessManagerType.cpp b/src/lib/mu/MuQt6/QNetworkAccessManagerType.cpp new file mode 100644 index 000000000..aa9e6b919 --- /dev/null +++ b/src/lib/mu/MuQt6/QNetworkAccessManagerType.cpp @@ -0,0 +1,576 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QNetworkAccessManager::~MuQt_QNetworkAccessManager() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QNetworkAccessManager::MuQt_QNetworkAccessManager(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QNetworkAccessManager(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QNetworkAccessManager")); +} + +QStringList MuQt_QNetworkAccessManager::supportedSchemes() const +{ + if (!_env) return QNetworkAccessManager::supportedSchemes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QNetworkAccessManager::supportedSchemes(); + } +} + +bool MuQt_QNetworkAccessManager::event(QEvent * e) +{ + if (!_env) return QNetworkAccessManager::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QNetworkAccessManager::event(e); + } +} + +bool MuQt_QNetworkAccessManager::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QNetworkAccessManager::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QNetworkAccessManager::eventFilter(watched, event); + } +} + +void MuQt_QNetworkAccessManager::customEvent(QEvent * event) +{ + if (!_env) { QNetworkAccessManager::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QNetworkAccessManager::customEvent(event); + } +} + +void MuQt_QNetworkAccessManager::timerEvent(QTimerEvent * event) +{ + if (!_env) { QNetworkAccessManager::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QNetworkAccessManager::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QNetworkAccessManagerType::QNetworkAccessManagerType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QNetworkAccessManagerType::~QNetworkAccessManagerType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QNetworkAccessManager_QNetworkAccessManager_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QNetworkAccessManager* w = object(widget)) + { + QNetworkAccessManagerType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QNetworkAccessManager"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QNetworkAccessManager_QNetworkAccessManager_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QNetworkAccessManager_QNetworkAccessManager_QNetworkAccessManager_QNetworkAccessManager_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QNetworkAccessManager(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +bool qt_QNetworkAccessManager_autoDeleteReplies_bool_QNetworkAccessManager(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + return arg0->autoDeleteReplies(); +} + +void qt_QNetworkAccessManager_clearAccessCache_void_QNetworkAccessManager(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + arg0->clearAccessCache(); +} + +void qt_QNetworkAccessManager_clearConnectionCache_void_QNetworkAccessManager(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + arg0->clearConnectionCache(); +} + +Pointer qt_QNetworkAccessManager_cookieJar_QNetworkCookieJar_QNetworkAccessManager(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + return makeinstance(c, arg0->cookieJar(), "qt.QNetworkCookieJar"); +} + +void qt_QNetworkAccessManager_enableStrictTransportSecurityStore_void_QNetworkAccessManager_bool_string(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enabled, Pointer param_storeDir) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + bool arg1 = (bool)(param_enabled); + const QString arg2 = qstring(param_storeDir); + arg0->enableStrictTransportSecurityStore(arg1, arg2); +} + +bool qt_QNetworkAccessManager_isStrictTransportSecurityEnabled_bool_QNetworkAccessManager(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + return arg0->isStrictTransportSecurityEnabled(); +} + +bool qt_QNetworkAccessManager_isStrictTransportSecurityStoreEnabled_bool_QNetworkAccessManager(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + return arg0->isStrictTransportSecurityStoreEnabled(); +} + +int qt_QNetworkAccessManager_redirectPolicy_int_QNetworkAccessManager(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + return int(arg0->redirectPolicy()); +} + +void qt_QNetworkAccessManager_setAutoDeleteReplies_void_QNetworkAccessManager_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_shouldAutoDelete) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + bool arg1 = (bool)(param_shouldAutoDelete); + arg0->setAutoDeleteReplies(arg1); +} + +void qt_QNetworkAccessManager_setCookieJar_void_QNetworkAccessManager_QNetworkCookieJar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cookieJar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + QNetworkCookieJar * arg1 = object(param_cookieJar); + arg0->setCookieJar(arg1); +} + +void qt_QNetworkAccessManager_setRedirectPolicy_void_QNetworkAccessManager_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_policy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + QNetworkRequest::RedirectPolicy arg1 = (QNetworkRequest::RedirectPolicy)(param_policy); + arg0->setRedirectPolicy(arg1); +} + +void qt_QNetworkAccessManager_setStrictTransportSecurityEnabled_void_QNetworkAccessManager_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + bool arg1 = (bool)(param_enabled); + arg0->setStrictTransportSecurityEnabled(arg1); +} + +void qt_QNetworkAccessManager_setTransferTimeout_void_QNetworkAccessManager_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_timeout) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + int arg1 = (int)(param_timeout); + arg0->setTransferTimeout(arg1); +} + +Pointer qt_QNetworkAccessManager_supportedSchemes_stringBSB_ESB__QNetworkAccessManager(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestringlist(c,arg0->QNetworkAccessManager::supportedSchemes()) : makestringlist(c,arg0->supportedSchemes()); +} + +int qt_QNetworkAccessManager_transferTimeout_int_QNetworkAccessManager(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + return arg0->transferTimeout(); +} + +bool qt_QNetworkAccessManager_event_bool_QNetworkAccessManager_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QNetworkAccessManager::event(arg1) : arg0->event(arg1); +} + +bool qt_QNetworkAccessManager_eventFilter_bool_QNetworkAccessManager_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QNetworkAccessManager::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QNetworkAccessManager_customEvent_void_QNetworkAccessManager_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QNetworkAccessManager*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QNetworkAccessManager*)arg0)->customEvent_pub(arg1); +} + +void qt_QNetworkAccessManager_timerEvent_void_QNetworkAccessManager_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkAccessManager* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QNetworkAccessManager*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QNetworkAccessManager*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QNetworkAccessManager0, Pointer) +{ + NODE_RETURN(qt_QNetworkAccessManager_QNetworkAccessManager_QNetworkAccessManager_QNetworkAccessManager_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_autoDeleteReplies0, bool) +{ + NODE_RETURN(qt_QNetworkAccessManager_autoDeleteReplies_bool_QNetworkAccessManager(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearAccessCache0, void) +{ + qt_QNetworkAccessManager_clearAccessCache_void_QNetworkAccessManager(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_clearConnectionCache0, void) +{ + qt_QNetworkAccessManager_clearConnectionCache_void_QNetworkAccessManager(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_cookieJar0, Pointer) +{ + NODE_RETURN(qt_QNetworkAccessManager_cookieJar_QNetworkCookieJar_QNetworkAccessManager(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_enableStrictTransportSecurityStore0, void) +{ + qt_QNetworkAccessManager_enableStrictTransportSecurityStore_void_QNetworkAccessManager_bool_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isStrictTransportSecurityEnabled0, bool) +{ + NODE_RETURN(qt_QNetworkAccessManager_isStrictTransportSecurityEnabled_bool_QNetworkAccessManager(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isStrictTransportSecurityStoreEnabled0, bool) +{ + NODE_RETURN(qt_QNetworkAccessManager_isStrictTransportSecurityStoreEnabled_bool_QNetworkAccessManager(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_redirectPolicy0, int) +{ + NODE_RETURN(qt_QNetworkAccessManager_redirectPolicy_int_QNetworkAccessManager(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAutoDeleteReplies0, void) +{ + qt_QNetworkAccessManager_setAutoDeleteReplies_void_QNetworkAccessManager_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setCookieJar0, void) +{ + qt_QNetworkAccessManager_setCookieJar_void_QNetworkAccessManager_QNetworkCookieJar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRedirectPolicy0, void) +{ + qt_QNetworkAccessManager_setRedirectPolicy_void_QNetworkAccessManager_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setStrictTransportSecurityEnabled0, void) +{ + qt_QNetworkAccessManager_setStrictTransportSecurityEnabled_void_QNetworkAccessManager_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setTransferTimeout0, void) +{ + qt_QNetworkAccessManager_setTransferTimeout_void_QNetworkAccessManager_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_supportedSchemes0, Pointer) +{ + NODE_RETURN(qt_QNetworkAccessManager_supportedSchemes_stringBSB_ESB__QNetworkAccessManager(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_transferTimeout0, int) +{ + NODE_RETURN(qt_QNetworkAccessManager_transferTimeout_int_QNetworkAccessManager(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QNetworkAccessManager_event_bool_QNetworkAccessManager_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QNetworkAccessManager_eventFilter_bool_QNetworkAccessManager_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QNetworkAccessManager_customEvent_void_QNetworkAccessManager_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QNetworkAccessManager_timerEvent_void_QNetworkAccessManager_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QNetworkAccessManagerType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QNetworkAccessManager_QNetworkAccessManager_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QNetworkAccessManager", _n_QNetworkAccessManager0, None, Compiled, qt_QNetworkAccessManager_QNetworkAccessManager_QNetworkAccessManager_QNetworkAccessManager_QObject, Return, "qt.QNetworkAccessManager", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: addStrictTransportSecurityHosts (void; QNetworkAccessManager this, "const QList &" knownHosts) + new Function(c, "autoDeleteReplies", _n_autoDeleteReplies0, None, Compiled, qt_QNetworkAccessManager_autoDeleteReplies_bool_QNetworkAccessManager, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), End), + // MISSING: cache ("QAbstractNetworkCache *"; QNetworkAccessManager this) + new Function(c, "clearAccessCache", _n_clearAccessCache0, None, Compiled, qt_QNetworkAccessManager_clearAccessCache_void_QNetworkAccessManager, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), End), + new Function(c, "clearConnectionCache", _n_clearConnectionCache0, None, Compiled, qt_QNetworkAccessManager_clearConnectionCache_void_QNetworkAccessManager, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), End), + // MISSING: connectToHost (void; QNetworkAccessManager this, string hostName, "quint16" port) + // MISSING: connectToHostEncrypted (void; QNetworkAccessManager this, string hostName, "quint16" port, "const QSslConfiguration &" sslConfiguration) + // MISSING: connectToHostEncrypted (void; QNetworkAccessManager this, string hostName, "quint16" port, "const QSslConfiguration &" sslConfiguration, string peerName) + new Function(c, "cookieJar", _n_cookieJar0, None, Compiled, qt_QNetworkAccessManager_cookieJar_QNetworkCookieJar_QNetworkAccessManager, Return, "qt.QNetworkCookieJar", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), End), + // MISSING: deleteResource (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request) + new Function(c, "enableStrictTransportSecurityStore", _n_enableStrictTransportSecurityStore0, None, Compiled, qt_QNetworkAccessManager_enableStrictTransportSecurityStore_void_QNetworkAccessManager_bool_string, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "enabled", "bool"), new Param(c, "storeDir", "string"), End), + // MISSING: get (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request) + // MISSING: head (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request) + new Function(c, "isStrictTransportSecurityEnabled", _n_isStrictTransportSecurityEnabled0, None, Compiled, qt_QNetworkAccessManager_isStrictTransportSecurityEnabled_bool_QNetworkAccessManager, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), End), + new Function(c, "isStrictTransportSecurityStoreEnabled", _n_isStrictTransportSecurityStoreEnabled0, None, Compiled, qt_QNetworkAccessManager_isStrictTransportSecurityStoreEnabled_bool_QNetworkAccessManager, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), End), + // MISSING: post (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request, QIODevice data) + // MISSING: post (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request, QByteArray data) + // MISSING: post (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request, "QHttpMultiPart *" multiPart) + // MISSING: proxy ("QNetworkProxy"; QNetworkAccessManager this) + // MISSING: proxyFactory ("QNetworkProxyFactory *"; QNetworkAccessManager this) + // MISSING: put (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request, QIODevice data) + // MISSING: put (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request, QByteArray data) + // MISSING: put (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request, "QHttpMultiPart *" multiPart) + new Function(c, "redirectPolicy", _n_redirectPolicy0, None, Compiled, qt_QNetworkAccessManager_redirectPolicy_int_QNetworkAccessManager, Return, "int", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), End), + // MISSING: sendCustomRequest (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request, QByteArray verb, QIODevice data) + // MISSING: sendCustomRequest (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request, QByteArray verb, QByteArray data) + // MISSING: sendCustomRequest (QNetworkReply; QNetworkAccessManager this, "const QNetworkRequest &" request, QByteArray verb, "QHttpMultiPart *" multiPart) + new Function(c, "setAutoDeleteReplies", _n_setAutoDeleteReplies0, None, Compiled, qt_QNetworkAccessManager_setAutoDeleteReplies_void_QNetworkAccessManager_bool, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "shouldAutoDelete", "bool"), End), + // MISSING: setCache (void; QNetworkAccessManager this, "QAbstractNetworkCache *" cache) + new Function(c, "setCookieJar", _n_setCookieJar0, None, Compiled, qt_QNetworkAccessManager_setCookieJar_void_QNetworkAccessManager_QNetworkCookieJar, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "cookieJar", "qt.QNetworkCookieJar"), End), + // MISSING: setProxy (void; QNetworkAccessManager this, "const QNetworkProxy &" proxy) + // MISSING: setProxyFactory (void; QNetworkAccessManager this, "QNetworkProxyFactory *" factory) + new Function(c, "setRedirectPolicy", _n_setRedirectPolicy0, None, Compiled, qt_QNetworkAccessManager_setRedirectPolicy_void_QNetworkAccessManager_int, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "policy", "int"), End), + new Function(c, "setStrictTransportSecurityEnabled", _n_setStrictTransportSecurityEnabled0, None, Compiled, qt_QNetworkAccessManager_setStrictTransportSecurityEnabled_void_QNetworkAccessManager_bool, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "enabled", "bool"), End), + new Function(c, "setTransferTimeout", _n_setTransferTimeout0, None, Compiled, qt_QNetworkAccessManager_setTransferTimeout_void_QNetworkAccessManager_int, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "timeout", "int", Value((int)QNetworkRequest::DefaultTransferTimeoutConstant)), End), + // MISSING: strictTransportSecurityHosts ("QList"; QNetworkAccessManager this) + _func[0] = new MemberFunction(c, "supportedSchemes", _n_supportedSchemes0, None, Compiled, qt_QNetworkAccessManager_supportedSchemes_stringBSB_ESB__QNetworkAccessManager, Return, "string[]", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), End), + new Function(c, "transferTimeout", _n_transferTimeout0, None, Compiled, qt_QNetworkAccessManager_transferTimeout_int_QNetworkAccessManager, Return, "int", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), End), + // MISSING: createRequest (QNetworkReply; QNetworkAccessManager this, flags QNetworkAccessManager::Operation op, "const QNetworkRequest &" originalReq, QIODevice outgoingData) // protected + _func[1] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QNetworkAccessManager_event_bool_QNetworkAccessManager_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "e", "qt.QEvent"), End), + _func[2] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QNetworkAccessManager_eventFilter_bool_QNetworkAccessManager_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QNetworkAccessManager this) + // MISSING: childEvent (void; QNetworkAccessManager this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QNetworkAccessManager this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QNetworkAccessManager_customEvent_void_QNetworkAccessManager_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QNetworkAccessManager this, "const QMetaMethod &" signal) // protected + _func[4] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QNetworkAccessManager_timerEvent_void_QNetworkAccessManager_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkAccessManager"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QNetworkAccessManager::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QNetworkCookieJarType.cpp b/src/lib/mu/MuQt6/QNetworkCookieJarType.cpp new file mode 100644 index 000000000..dc825db40 --- /dev/null +++ b/src/lib/mu/MuQt6/QNetworkCookieJarType.cpp @@ -0,0 +1,567 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QNetworkCookieJar::~MuQt_QNetworkCookieJar() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QNetworkCookieJar::MuQt_QNetworkCookieJar(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QNetworkCookieJar(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QNetworkCookieJar")); +} + +QList MuQt_QNetworkCookieJar::cookiesForUrl(const QUrl & url) const +{ + if (!_env) return QNetworkCookieJar::cookiesForUrl(url); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,url,"qt.QUrl")); + Value rval = _env->call(F, args); + return qtypelist(rval._Pointer); + } + else + { + return QNetworkCookieJar::cookiesForUrl(url); + } +} + +bool MuQt_QNetworkCookieJar::deleteCookie(const QNetworkCookie & cookie) +{ + if (!_env) return QNetworkCookieJar::deleteCookie(cookie); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,cookie,"qt.QNetworkCookie")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QNetworkCookieJar::deleteCookie(cookie); + } +} + +bool MuQt_QNetworkCookieJar::insertCookie(const QNetworkCookie & cookie) +{ + if (!_env) return QNetworkCookieJar::insertCookie(cookie); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,cookie,"qt.QNetworkCookie")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QNetworkCookieJar::insertCookie(cookie); + } +} + +bool MuQt_QNetworkCookieJar::setCookiesFromUrl(const QList & cookieList, const QUrl & url) +{ + if (!_env) return QNetworkCookieJar::setCookiesFromUrl(cookieList, url); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtypelist(c,cookieList,"qt.QNetworkCookie")); + args[2] = Value(makeqtype(c,url,"qt.QUrl")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QNetworkCookieJar::setCookiesFromUrl(cookieList, url); + } +} + +bool MuQt_QNetworkCookieJar::updateCookie(const QNetworkCookie & cookie) +{ + if (!_env) return QNetworkCookieJar::updateCookie(cookie); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,cookie,"qt.QNetworkCookie")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QNetworkCookieJar::updateCookie(cookie); + } +} + +bool MuQt_QNetworkCookieJar::validateCookie(const QNetworkCookie & cookie, const QUrl & url) const +{ + if (!_env) return QNetworkCookieJar::validateCookie(cookie, url); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,cookie,"qt.QNetworkCookie")); + args[2] = Value(makeqtype(c,url,"qt.QUrl")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QNetworkCookieJar::validateCookie(cookie, url); + } +} + +bool MuQt_QNetworkCookieJar::event(QEvent * e) +{ + if (!_env) return QNetworkCookieJar::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QNetworkCookieJar::event(e); + } +} + +bool MuQt_QNetworkCookieJar::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QNetworkCookieJar::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QNetworkCookieJar::eventFilter(watched, event); + } +} + +void MuQt_QNetworkCookieJar::customEvent(QEvent * event) +{ + if (!_env) { QNetworkCookieJar::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QNetworkCookieJar::customEvent(event); + } +} + +void MuQt_QNetworkCookieJar::timerEvent(QTimerEvent * event) +{ + if (!_env) { QNetworkCookieJar::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QNetworkCookieJar::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QNetworkCookieJarType::QNetworkCookieJarType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QNetworkCookieJarType::~QNetworkCookieJarType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QNetworkCookieJar_QNetworkCookieJar_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QNetworkCookieJar* w = object(widget)) + { + QNetworkCookieJarType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QNetworkCookieJar"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QNetworkCookieJar_QNetworkCookieJar_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QNetworkCookieJar_QNetworkCookieJar_QNetworkCookieJar_QNetworkCookieJar_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QNetworkCookieJar(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QNetworkCookieJar_cookiesForUrl_qt__QNetworkCookieBSB_ESB__QNetworkCookieJar_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_url); + return isMuQtObject(arg0) ? makeqtypelist(c,arg0->QNetworkCookieJar::cookiesForUrl(arg1),"qt.QNetworkCookie") : makeqtypelist(c,arg0->cookiesForUrl(arg1),"qt.QNetworkCookie"); +} + +bool qt_QNetworkCookieJar_deleteCookie_bool_QNetworkCookieJar_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cookie) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + const QNetworkCookie arg1 = getqtype(param_cookie); + return isMuQtObject(arg0) ? arg0->QNetworkCookieJar::deleteCookie(arg1) : arg0->deleteCookie(arg1); +} + +bool qt_QNetworkCookieJar_insertCookie_bool_QNetworkCookieJar_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cookie) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + const QNetworkCookie arg1 = getqtype(param_cookie); + return isMuQtObject(arg0) ? arg0->QNetworkCookieJar::insertCookie(arg1) : arg0->insertCookie(arg1); +} + +bool qt_QNetworkCookieJar_setCookiesFromUrl_bool_QNetworkCookieJar_qt__QNetworkCookieBSB_ESB__QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cookieList, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + const QList arg1 = qtypelist(param_cookieList); + const QUrl arg2 = getqtype(param_url); + return isMuQtObject(arg0) ? arg0->QNetworkCookieJar::setCookiesFromUrl(arg1, arg2) : arg0->setCookiesFromUrl(arg1, arg2); +} + +bool qt_QNetworkCookieJar_updateCookie_bool_QNetworkCookieJar_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cookie) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + const QNetworkCookie arg1 = getqtype(param_cookie); + return isMuQtObject(arg0) ? arg0->QNetworkCookieJar::updateCookie(arg1) : arg0->updateCookie(arg1); +} + +Pointer qt_QNetworkCookieJar_allCookies_qt__QNetworkCookieBSB_ESB__QNetworkCookieJar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + return makeqtypelist(c,((MuQt_QNetworkCookieJar*)arg0)->allCookies_pub(),"qt.QNetworkCookie"); +} + +void qt_QNetworkCookieJar_setAllCookies_void_QNetworkCookieJar_qt__QNetworkCookieBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cookieList) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + const QList arg1 = qtypelist(param_cookieList); + ((MuQt_QNetworkCookieJar*)arg0)->setAllCookies_pub(arg1); +} + +bool qt_QNetworkCookieJar_validateCookie_bool_QNetworkCookieJar_QNetworkCookie_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cookie, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + const QNetworkCookie arg1 = getqtype(param_cookie); + const QUrl arg2 = getqtype(param_url); + return isMuQtObject(arg0) ? ((MuQt_QNetworkCookieJar*)arg0)->validateCookie_pub_parent(arg1, arg2) : ((MuQt_QNetworkCookieJar*)arg0)->validateCookie_pub(arg1, arg2); +} + +bool qt_QNetworkCookieJar_event_bool_QNetworkCookieJar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QNetworkCookieJar::event(arg1) : arg0->event(arg1); +} + +bool qt_QNetworkCookieJar_eventFilter_bool_QNetworkCookieJar_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QNetworkCookieJar::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QNetworkCookieJar_customEvent_void_QNetworkCookieJar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QNetworkCookieJar*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QNetworkCookieJar*)arg0)->customEvent_pub(arg1); +} + +void qt_QNetworkCookieJar_timerEvent_void_QNetworkCookieJar_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookieJar* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QNetworkCookieJar*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QNetworkCookieJar*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QNetworkCookieJar0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookieJar_QNetworkCookieJar_QNetworkCookieJar_QNetworkCookieJar_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cookiesForUrl0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookieJar_cookiesForUrl_qt__QNetworkCookieBSB_ESB__QNetworkCookieJar_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_deleteCookie0, bool) +{ + NODE_RETURN(qt_QNetworkCookieJar_deleteCookie_bool_QNetworkCookieJar_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertCookie0, bool) +{ + NODE_RETURN(qt_QNetworkCookieJar_insertCookie_bool_QNetworkCookieJar_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCookiesFromUrl0, bool) +{ + NODE_RETURN(qt_QNetworkCookieJar_setCookiesFromUrl_bool_QNetworkCookieJar_qt__QNetworkCookieBSB_ESB__QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_updateCookie0, bool) +{ + NODE_RETURN(qt_QNetworkCookieJar_updateCookie_bool_QNetworkCookieJar_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_allCookies0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookieJar_allCookies_qt__QNetworkCookieBSB_ESB__QNetworkCookieJar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAllCookies0, void) +{ + qt_QNetworkCookieJar_setAllCookies_void_QNetworkCookieJar_qt__QNetworkCookieBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_validateCookie0, bool) +{ + NODE_RETURN(qt_QNetworkCookieJar_validateCookie_bool_QNetworkCookieJar_QNetworkCookie_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QNetworkCookieJar_event_bool_QNetworkCookieJar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QNetworkCookieJar_eventFilter_bool_QNetworkCookieJar_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QNetworkCookieJar_customEvent_void_QNetworkCookieJar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QNetworkCookieJar_timerEvent_void_QNetworkCookieJar_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QNetworkCookieJarType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QNetworkCookieJar_QNetworkCookieJar_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QNetworkCookieJar", _n_QNetworkCookieJar0, None, Compiled, qt_QNetworkCookieJar_QNetworkCookieJar_QNetworkCookieJar_QNetworkCookieJar_QObject, Return, "qt.QNetworkCookieJar", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "parent", "qt.QObject"), End), + _func[0] = new MemberFunction(c, "cookiesForUrl", _n_cookiesForUrl0, None, Compiled, qt_QNetworkCookieJar_cookiesForUrl_qt__QNetworkCookieBSB_ESB__QNetworkCookieJar_QUrl, Return, "qt.QNetworkCookie[]", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "url", "qt.QUrl"), End), + _func[1] = new MemberFunction(c, "deleteCookie", _n_deleteCookie0, None, Compiled, qt_QNetworkCookieJar_deleteCookie_bool_QNetworkCookieJar_QNetworkCookie, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "cookie", "qt.QNetworkCookie"), End), + _func[2] = new MemberFunction(c, "insertCookie", _n_insertCookie0, None, Compiled, qt_QNetworkCookieJar_insertCookie_bool_QNetworkCookieJar_QNetworkCookie, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "cookie", "qt.QNetworkCookie"), End), + _func[3] = new MemberFunction(c, "setCookiesFromUrl", _n_setCookiesFromUrl0, None, Compiled, qt_QNetworkCookieJar_setCookiesFromUrl_bool_QNetworkCookieJar_qt__QNetworkCookieBSB_ESB__QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "cookieList", "qt.QNetworkCookie[]"), new Param(c, "url", "qt.QUrl"), End), + _func[4] = new MemberFunction(c, "updateCookie", _n_updateCookie0, None, Compiled, qt_QNetworkCookieJar_updateCookie_bool_QNetworkCookieJar_QNetworkCookie, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "cookie", "qt.QNetworkCookie"), End), + new Function(c, "allCookies", _n_allCookies0, None, Compiled, qt_QNetworkCookieJar_allCookies_qt__QNetworkCookieBSB_ESB__QNetworkCookieJar, Return, "qt.QNetworkCookie[]", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), End), + new Function(c, "setAllCookies", _n_setAllCookies0, None, Compiled, qt_QNetworkCookieJar_setAllCookies_void_QNetworkCookieJar_qt__QNetworkCookieBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "cookieList", "qt.QNetworkCookie[]"), End), + _func[5] = new MemberFunction(c, "validateCookie", _n_validateCookie0, None, Compiled, qt_QNetworkCookieJar_validateCookie_bool_QNetworkCookieJar_QNetworkCookie_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "cookie", "qt.QNetworkCookie"), new Param(c, "url", "qt.QUrl"), End), + _func[6] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QNetworkCookieJar_event_bool_QNetworkCookieJar_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "e", "qt.QEvent"), End), + _func[7] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QNetworkCookieJar_eventFilter_bool_QNetworkCookieJar_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QNetworkCookieJar this) + // MISSING: childEvent (void; QNetworkCookieJar this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QNetworkCookieJar this, "const QMetaMethod &" signal) // protected + _func[8] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QNetworkCookieJar_customEvent_void_QNetworkCookieJar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QNetworkCookieJar this, "const QMetaMethod &" signal) // protected + _func[9] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QNetworkCookieJar_timerEvent_void_QNetworkCookieJar_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookieJar"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QNetworkCookieJar::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QNetworkCookieType.cpp b/src/lib/mu/MuQt6/QNetworkCookieType.cpp new file mode 100644 index 000000000..5c497351f --- /dev/null +++ b/src/lib/mu/MuQt6/QNetworkCookieType.cpp @@ -0,0 +1,489 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QNetworkCookieType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QNetworkCookieType::QNetworkCookieType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QNetworkCookieType::~QNetworkCookieType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QNetworkCookieType::Instance* i = new QNetworkCookieType::Instance((Class*)NODE_THIS.type()); + QNetworkCookieType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QNetworkCookieType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QNetworkCookieType::finalizer, 0, 0, 0); +} + +void +QNetworkCookieType::finalizer (void* obj, void* data) +{ + QNetworkCookieType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QNetworkCookie_QNetworkCookie_QNetworkCookie_QNetworkCookie_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray arg1 = getqtype(param_name); + const QByteArray arg2 = getqtype(param_value); + setqtype(param_this,QNetworkCookie(arg1, arg2)); + return param_this; +} + +Pointer qt_QNetworkCookie_domain_string_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + return makestring(c,arg0.domain()); +} + +Pointer qt_QNetworkCookie_expirationDate_QDateTime_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + return makeqtype(c,arg0.expirationDate(),"qt.QDateTime"); +} + +bool qt_QNetworkCookie_hasSameIdentifier_bool_QNetworkCookie_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + const QNetworkCookie arg1 = getqtype(param_other); + return arg0.hasSameIdentifier(arg1); +} + +bool qt_QNetworkCookie_isHttpOnly_bool_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + return arg0.isHttpOnly(); +} + +bool qt_QNetworkCookie_isSecure_bool_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + return arg0.isSecure(); +} + +bool qt_QNetworkCookie_isSessionCookie_bool_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + return arg0.isSessionCookie(); +} + +Pointer qt_QNetworkCookie_name_QByteArray_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + return makeqtype(c,arg0.name(),"qt.QByteArray"); +} + +void qt_QNetworkCookie_normalize_void_QNetworkCookie_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookie& arg0 = getqtype(param_this); + const QUrl arg1 = getqtype(param_url); + arg0.normalize(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QNetworkCookie_path_string_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + return makestring(c,arg0.path()); +} + +int qt_QNetworkCookie_sameSitePolicy_int_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + return int(arg0.sameSitePolicy()); +} + +void qt_QNetworkCookie_setDomain_void_QNetworkCookie_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_domain) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookie& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_domain); + arg0.setDomain(arg1); + setqtype(param_this,arg0); +} + +void qt_QNetworkCookie_setExpirationDate_void_QNetworkCookie_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_date) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookie& arg0 = getqtype(param_this); + const QDateTime arg1 = getqtype(param_date); + arg0.setExpirationDate(arg1); + setqtype(param_this,arg0); +} + +void qt_QNetworkCookie_setHttpOnly_void_QNetworkCookie_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookie& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setHttpOnly(arg1); + setqtype(param_this,arg0); +} + +void qt_QNetworkCookie_setName_void_QNetworkCookie_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cookieName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookie& arg0 = getqtype(param_this); + const QByteArray arg1 = getqtype(param_cookieName); + arg0.setName(arg1); + setqtype(param_this,arg0); +} + +void qt_QNetworkCookie_setPath_void_QNetworkCookie_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookie& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_path); + arg0.setPath(arg1); + setqtype(param_this,arg0); +} + +void qt_QNetworkCookie_setSameSitePolicy_void_QNetworkCookie_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_sameSite) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookie& arg0 = getqtype(param_this); + QNetworkCookie::SameSite arg1 = (QNetworkCookie::SameSite)(param_sameSite); + arg0.setSameSitePolicy(arg1); + setqtype(param_this,arg0); +} + +void qt_QNetworkCookie_setSecure_void_QNetworkCookie_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookie& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setSecure(arg1); + setqtype(param_this,arg0); +} + +void qt_QNetworkCookie_setValue_void_QNetworkCookie_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookie& arg0 = getqtype(param_this); + const QByteArray arg1 = getqtype(param_value); + arg0.setValue(arg1); + setqtype(param_this,arg0); +} + +void qt_QNetworkCookie_swap_void_QNetworkCookie_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkCookie& arg0 = getqtype(param_this); + QNetworkCookie arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QNetworkCookie_toRawForm_QByteArray_QNetworkCookie_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_form) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + QNetworkCookie::RawForm arg1 = (QNetworkCookie::RawForm)(param_form); + return makeqtype(c,arg0.toRawForm(arg1),"qt.QByteArray"); +} + +Pointer qt_QNetworkCookie_value_QByteArray_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + return makeqtype(c,arg0.value(),"qt.QByteArray"); +} + +bool qt_QNetworkCookie_operatorBang_EQ__bool_QNetworkCookie_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + const QNetworkCookie arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +bool qt_QNetworkCookie_operatorEQ_EQ__bool_QNetworkCookie_QNetworkCookie(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QNetworkCookie& arg0 = getqtype(param_this); + const QNetworkCookie arg1 = getqtype(param_other); + return arg0.operator==(arg1); +} + +Pointer qt_QNetworkCookie_parseCookies_qt__QNetworkCookieBSB_ESB__QByteArray(Mu::Thread& NODE_THREAD, Pointer param_cookieString) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray arg0 = getqtype(param_cookieString); + return makeqtypelist(c,QNetworkCookie::parseCookies(arg0),"qt.QNetworkCookie"); +} + + +static NODE_IMPLEMENTATION(_n_QNetworkCookie0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookie_QNetworkCookie_QNetworkCookie_QNetworkCookie_QByteArray_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_domain0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookie_domain_string_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expirationDate0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookie_expirationDate_QDateTime_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasSameIdentifier0, bool) +{ + NODE_RETURN(qt_QNetworkCookie_hasSameIdentifier_bool_QNetworkCookie_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isHttpOnly0, bool) +{ + NODE_RETURN(qt_QNetworkCookie_isHttpOnly_bool_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSecure0, bool) +{ + NODE_RETURN(qt_QNetworkCookie_isSecure_bool_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSessionCookie0, bool) +{ + NODE_RETURN(qt_QNetworkCookie_isSessionCookie_bool_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_name0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookie_name_QByteArray_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_normalize0, void) +{ + qt_QNetworkCookie_normalize_void_QNetworkCookie_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_path0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookie_path_string_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sameSitePolicy0, int) +{ + NODE_RETURN(qt_QNetworkCookie_sameSitePolicy_int_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setDomain0, void) +{ + qt_QNetworkCookie_setDomain_void_QNetworkCookie_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setExpirationDate0, void) +{ + qt_QNetworkCookie_setExpirationDate_void_QNetworkCookie_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHttpOnly0, void) +{ + qt_QNetworkCookie_setHttpOnly_void_QNetworkCookie_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setName0, void) +{ + qt_QNetworkCookie_setName_void_QNetworkCookie_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPath0, void) +{ + qt_QNetworkCookie_setPath_void_QNetworkCookie_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSameSitePolicy0, void) +{ + qt_QNetworkCookie_setSameSitePolicy_void_QNetworkCookie_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setSecure0, void) +{ + qt_QNetworkCookie_setSecure_void_QNetworkCookie_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setValue0, void) +{ + qt_QNetworkCookie_setValue_void_QNetworkCookie_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QNetworkCookie_swap_void_QNetworkCookie_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toRawForm0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookie_toRawForm_QByteArray_QNetworkCookie_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_value0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookie_value_QByteArray_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QNetworkCookie_operatorBang_EQ__bool_QNetworkCookie_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QNetworkCookie_operatorEQ_EQ__bool_QNetworkCookie_QNetworkCookie(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_parseCookies0, Pointer) +{ + NODE_RETURN(qt_QNetworkCookie_parseCookies_qt__QNetworkCookieBSB_ESB__QByteArray(NODE_THREAD, NODE_ARG(0, Pointer))); +} + + + +void +QNetworkCookieType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "RawForm", "int"), + new SymbolicConstant(c, "NameAndValueOnly", "int", Value(int(QNetworkCookie::NameAndValueOnly))), + new SymbolicConstant(c, "Full", "int", Value(int(QNetworkCookie::Full))), + new Alias(c, "SameSite", "int"), + new SymbolicConstant(c, "Default", "int", Value(int(QNetworkCookie::SameSite::Default))), + new SymbolicConstant(c, "None", "int", Value(int(QNetworkCookie::SameSite::None))), + new SymbolicConstant(c, "Lax", "int", Value(int(QNetworkCookie::SameSite::Lax))), + new SymbolicConstant(c, "Strict", "int", Value(int(QNetworkCookie::SameSite::Strict))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QNetworkCookie", _n_QNetworkCookie0, None, Compiled, qt_QNetworkCookie_QNetworkCookie_QNetworkCookie_QNetworkCookie_QByteArray_QByteArray, Return, "qt.QNetworkCookie", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "name", "qt.QByteArray"), new Param(c, "value", "qt.QByteArray"), End), + // MISSING: QNetworkCookie (QNetworkCookie; QNetworkCookie this, QNetworkCookie other) + new Function(c, "domain", _n_domain0, None, Compiled, qt_QNetworkCookie_domain_string_QNetworkCookie, Return, "string", Parameters, new Param(c, "this", "qt.QNetworkCookie"), End), + new Function(c, "expirationDate", _n_expirationDate0, None, Compiled, qt_QNetworkCookie_expirationDate_QDateTime_QNetworkCookie, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QNetworkCookie"), End), + new Function(c, "hasSameIdentifier", _n_hasSameIdentifier0, None, Compiled, qt_QNetworkCookie_hasSameIdentifier_bool_QNetworkCookie_QNetworkCookie, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "other", "qt.QNetworkCookie"), End), + new Function(c, "isHttpOnly", _n_isHttpOnly0, None, Compiled, qt_QNetworkCookie_isHttpOnly_bool_QNetworkCookie, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookie"), End), + new Function(c, "isSecure", _n_isSecure0, None, Compiled, qt_QNetworkCookie_isSecure_bool_QNetworkCookie, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookie"), End), + new Function(c, "isSessionCookie", _n_isSessionCookie0, None, Compiled, qt_QNetworkCookie_isSessionCookie_bool_QNetworkCookie, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookie"), End), + new Function(c, "name", _n_name0, None, Compiled, qt_QNetworkCookie_name_QByteArray_QNetworkCookie, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QNetworkCookie"), End), + new Function(c, "normalize", _n_normalize0, None, Compiled, qt_QNetworkCookie_normalize_void_QNetworkCookie_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "url", "qt.QUrl"), End), + new Function(c, "path", _n_path0, None, Compiled, qt_QNetworkCookie_path_string_QNetworkCookie, Return, "string", Parameters, new Param(c, "this", "qt.QNetworkCookie"), End), + new Function(c, "sameSitePolicy", _n_sameSitePolicy0, None, Compiled, qt_QNetworkCookie_sameSitePolicy_int_QNetworkCookie, Return, "int", Parameters, new Param(c, "this", "qt.QNetworkCookie"), End), + new Function(c, "setDomain", _n_setDomain0, None, Compiled, qt_QNetworkCookie_setDomain_void_QNetworkCookie_string, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "domain", "string"), End), + new Function(c, "setExpirationDate", _n_setExpirationDate0, None, Compiled, qt_QNetworkCookie_setExpirationDate_void_QNetworkCookie_QDateTime, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "date", "qt.QDateTime"), End), + new Function(c, "setHttpOnly", _n_setHttpOnly0, None, Compiled, qt_QNetworkCookie_setHttpOnly_void_QNetworkCookie_bool, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "enable", "bool"), End), + new Function(c, "setName", _n_setName0, None, Compiled, qt_QNetworkCookie_setName_void_QNetworkCookie_QByteArray, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "cookieName", "qt.QByteArray"), End), + new Function(c, "setPath", _n_setPath0, None, Compiled, qt_QNetworkCookie_setPath_void_QNetworkCookie_string, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "path", "string"), End), + new Function(c, "setSameSitePolicy", _n_setSameSitePolicy0, None, Compiled, qt_QNetworkCookie_setSameSitePolicy_void_QNetworkCookie_int, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "sameSite", "int"), End), + new Function(c, "setSecure", _n_setSecure0, None, Compiled, qt_QNetworkCookie_setSecure_void_QNetworkCookie_bool, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "enable", "bool"), End), + new Function(c, "setValue", _n_setValue0, None, Compiled, qt_QNetworkCookie_setValue_void_QNetworkCookie_QByteArray, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "value", "qt.QByteArray"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QNetworkCookie_swap_void_QNetworkCookie_QNetworkCookie, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "other", "qt.QNetworkCookie"), End), + new Function(c, "toRawForm", _n_toRawForm0, None, Compiled, qt_QNetworkCookie_toRawForm_QByteArray_QNetworkCookie_int, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "form", "int", Value((int)QNetworkCookie::Full)), End), + new Function(c, "value", _n_value0, None, Compiled, qt_QNetworkCookie_value_QByteArray_QNetworkCookie, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QNetworkCookie"), End), + // static functions + new Function(c, "parseCookies", _n_parseCookies0, None, Compiled, qt_QNetworkCookie_parseCookies_qt__QNetworkCookieBSB_ESB__QByteArray, Return, "qt.QNetworkCookie[]", Parameters, new Param(c, "cookieString", "qt.QByteArray"), End), + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QNetworkCookie_operatorBang_EQ__bool_QNetworkCookie_QNetworkCookie, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "other", "qt.QNetworkCookie"), End), + // MISSING: = (QNetworkCookie; QNetworkCookie this, QNetworkCookie other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QNetworkCookie_operatorEQ_EQ__bool_QNetworkCookie_QNetworkCookie, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkCookie"), new Param(c, "other", "qt.QNetworkCookie"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QNetworkReplyType.cpp b/src/lib/mu/MuQt6/QNetworkReplyType.cpp new file mode 100644 index 000000000..84801d746 --- /dev/null +++ b/src/lib/mu/MuQt6/QNetworkReplyType.cpp @@ -0,0 +1,507 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QNetworkReplyType::QNetworkReplyType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QNetworkReplyType::~QNetworkReplyType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QNetworkReply_QNetworkReply_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QNetworkReply* w = object(widget)) + { + QNetworkReplyType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QNetworkReply"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QNetworkReply_QNetworkReply_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QNetworkReply_attribute_QVariant_QNetworkReply_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_code) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + QNetworkRequest::Attribute arg1 = (QNetworkRequest::Attribute)(param_code); + return makeqtype(c,arg0->attribute(arg1),"qt.QVariant"); +} + +int qt_QNetworkReply_error_int_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return int(arg0->error()); +} + +bool qt_QNetworkReply_hasRawHeader_bool_QNetworkReply_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_headerName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_headerName); + return arg0->hasRawHeader(arg1); +} + +Pointer qt_QNetworkReply_header_QVariant_QNetworkReply_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_header_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + QNetworkRequest::KnownHeaders arg1 = (QNetworkRequest::KnownHeaders)(param_header_); + return makeqtype(c,arg0->header(arg1),"qt.QVariant"); +} + +bool qt_QNetworkReply_isFinished_bool_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->isFinished(); +} + +bool qt_QNetworkReply_isRunning_bool_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->isRunning(); +} + +Pointer qt_QNetworkReply_manager_QNetworkAccessManager_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return makeinstance(c, arg0->manager(), "qt.QNetworkAccessManager"); +} + +int qt_QNetworkReply_operation_int_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return int(arg0->operation()); +} + +Pointer qt_QNetworkReply_rawHeader_QByteArray_QNetworkReply_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_headerName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_headerName); + return makeqtype(c,arg0->rawHeader(arg1),"qt.QByteArray"); +} + +int64 qt_QNetworkReply_readBufferSize_int64_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->readBufferSize(); +} + +void qt_QNetworkReply_setReadBufferSize_void_QNetworkReply_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + qint64 arg1 = (int64)(param_size); + arg0->setReadBufferSize(arg1); +} + +Pointer qt_QNetworkReply_url_QUrl_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return makeqtype(c,arg0->url(),"qt.QUrl"); +} + +void qt_QNetworkReply_close_void_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + arg0->close(); +} + +bool qt_QNetworkReply_atEnd_bool_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->atEnd(); +} + +int64 qt_QNetworkReply_bytesAvailable_int64_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->bytesAvailable(); +} + +int64 qt_QNetworkReply_bytesToWrite_int64_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->bytesToWrite(); +} + +bool qt_QNetworkReply_canReadLine_bool_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->canReadLine(); +} + +bool qt_QNetworkReply_isSequential_bool_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->isSequential(); +} + +bool qt_QNetworkReply_open_bool_QNetworkReply_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + QIODeviceBase::OpenMode arg1 = (QIODeviceBase::OpenMode)(param_mode); + return arg0->open(arg1); +} + +int64 qt_QNetworkReply_pos_int64_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->pos(); +} + +bool qt_QNetworkReply_reset_bool_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->reset(); +} + +bool qt_QNetworkReply_seek_bool_QNetworkReply_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + qint64 arg1 = (int64)(param_pos); + return arg0->seek(arg1); +} + +int64 qt_QNetworkReply_size_int64_QNetworkReply(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + return arg0->size(); +} + +bool qt_QNetworkReply_waitForBytesWritten_bool_QNetworkReply_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return arg0->waitForBytesWritten(arg1); +} + +bool qt_QNetworkReply_waitForReadyRead_bool_QNetworkReply_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QNetworkReply* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return arg0->waitForReadyRead(arg1); +} + + +static NODE_IMPLEMENTATION(_n_attribute0, Pointer) +{ + NODE_RETURN(qt_QNetworkReply_attribute_QVariant_QNetworkReply_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_error0, int) +{ + NODE_RETURN(qt_QNetworkReply_error_int_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasRawHeader0, bool) +{ + NODE_RETURN(qt_QNetworkReply_hasRawHeader_bool_QNetworkReply_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_header0, Pointer) +{ + NODE_RETURN(qt_QNetworkReply_header_QVariant_QNetworkReply_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isFinished0, bool) +{ + NODE_RETURN(qt_QNetworkReply_isFinished_bool_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRunning0, bool) +{ + NODE_RETURN(qt_QNetworkReply_isRunning_bool_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_manager0, Pointer) +{ + NODE_RETURN(qt_QNetworkReply_manager_QNetworkAccessManager_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operation0, int) +{ + NODE_RETURN(qt_QNetworkReply_operation_int_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rawHeader0, Pointer) +{ + NODE_RETURN(qt_QNetworkReply_rawHeader_QByteArray_QNetworkReply_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_readBufferSize0, int64) +{ + NODE_RETURN(qt_QNetworkReply_readBufferSize_int64_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setReadBufferSize0, void) +{ + qt_QNetworkReply_setReadBufferSize_void_QNetworkReply_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64)); +} + +static NODE_IMPLEMENTATION(_n_url0, Pointer) +{ + NODE_RETURN(qt_QNetworkReply_url_QUrl_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_close0, void) +{ + qt_QNetworkReply_close_void_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_atEnd0, bool) +{ + NODE_RETURN(qt_QNetworkReply_atEnd_bool_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesAvailable0, int64) +{ + NODE_RETURN(qt_QNetworkReply_bytesAvailable_int64_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesToWrite0, int64) +{ + NODE_RETURN(qt_QNetworkReply_bytesToWrite_int64_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canReadLine0, bool) +{ + NODE_RETURN(qt_QNetworkReply_canReadLine_bool_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSequential0, bool) +{ + NODE_RETURN(qt_QNetworkReply_isSequential_bool_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_open0, bool) +{ + NODE_RETURN(qt_QNetworkReply_open_bool_QNetworkReply_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_pos0, int64) +{ + NODE_RETURN(qt_QNetworkReply_pos_int64_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_reset0, bool) +{ + NODE_RETURN(qt_QNetworkReply_reset_bool_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_seek0, bool) +{ + NODE_RETURN(qt_QNetworkReply_seek_bool_QNetworkReply_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_size0, int64) +{ + NODE_RETURN(qt_QNetworkReply_size_int64_QNetworkReply(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_waitForBytesWritten0, bool) +{ + NODE_RETURN(qt_QNetworkReply_waitForBytesWritten_bool_QNetworkReply_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForReadyRead0, bool) +{ + NODE_RETURN(qt_QNetworkReply_waitForReadyRead_bool_QNetworkReply_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QNetworkReplyType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QNetworkReply_QNetworkReply_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "attribute", _n_attribute0, None, Compiled, qt_QNetworkReply_attribute_QVariant_QNetworkReply_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QNetworkReply"), new Param(c, "code", "int"), End), + new Function(c, "error", _n_error0, None, Compiled, qt_QNetworkReply_error_int_QNetworkReply, Return, "int", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new Function(c, "hasRawHeader", _n_hasRawHeader0, None, Compiled, qt_QNetworkReply_hasRawHeader_bool_QNetworkReply_QByteArray, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), new Param(c, "headerName", "qt.QByteArray"), End), + new Function(c, "header", _n_header0, None, Compiled, qt_QNetworkReply_header_QVariant_QNetworkReply_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QNetworkReply"), new Param(c, "header_", "int"), End), + // MISSING: ignoreSslErrors (void; QNetworkReply this, "const QList &" errors) + new Function(c, "isFinished", _n_isFinished0, None, Compiled, qt_QNetworkReply_isFinished_bool_QNetworkReply, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new Function(c, "isRunning", _n_isRunning0, None, Compiled, qt_QNetworkReply_isRunning_bool_QNetworkReply, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new Function(c, "manager", _n_manager0, None, Compiled, qt_QNetworkReply_manager_QNetworkAccessManager_QNetworkReply, Return, "qt.QNetworkAccessManager", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new Function(c, "operation", _n_operation0, None, Compiled, qt_QNetworkReply_operation_int_QNetworkReply, Return, "int", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new Function(c, "rawHeader", _n_rawHeader0, None, Compiled, qt_QNetworkReply_rawHeader_QByteArray_QNetworkReply_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QNetworkReply"), new Param(c, "headerName", "qt.QByteArray"), End), + // MISSING: rawHeaderList ("QList"; QNetworkReply this) + new Function(c, "readBufferSize", _n_readBufferSize0, None, Compiled, qt_QNetworkReply_readBufferSize_int64_QNetworkReply, Return, "int64", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + // MISSING: request ("QNetworkRequest"; QNetworkReply this) + new MemberFunction(c, "setReadBufferSize", _n_setReadBufferSize0, None, Compiled, qt_QNetworkReply_setReadBufferSize_void_QNetworkReply_int64, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkReply"), new Param(c, "size", "int64"), End), + // MISSING: setSslConfiguration (void; QNetworkReply this, "const QSslConfiguration &" config) + // MISSING: sslConfiguration ("QSslConfiguration"; QNetworkReply this) + new Function(c, "url", _n_url0, None, Compiled, qt_QNetworkReply_url_QUrl_QNetworkReply, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new MemberFunction(c, "close", _n_close0, None, Compiled, qt_QNetworkReply_close_void_QNetworkReply, Return, "void", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + // NOT INHERITABLE PROTECTED: QNetworkReply (QNetworkReply; QNetworkReply this, QObject parent) // protected + // MISSING: ignoreSslErrorsImplementation (void; QNetworkReply this, "const QList &" errors) // protected + // NOT INHERITABLE PROTECTED: setAttribute (void; QNetworkReply this, flags QNetworkRequest::Attribute code, QVariant value) // protected + // NOT INHERITABLE PROTECTED: setError (void; QNetworkReply this, flags QNetworkReply::NetworkError errorCode, string errorString) // protected + // NOT INHERITABLE PROTECTED: setFinished (void; QNetworkReply this, bool finished) // protected + // NOT INHERITABLE PROTECTED: setHeader (void; QNetworkReply this, flags QNetworkRequest::KnownHeaders header, QVariant value) // protected + // NOT INHERITABLE PROTECTED: setOperation (void; QNetworkReply this, flags QNetworkAccessManager::Operation operation) // protected + // NOT INHERITABLE PROTECTED: setRawHeader (void; QNetworkReply this, QByteArray headerName, QByteArray value) // protected + // MISSING: setRequest (void; QNetworkReply this, "const QNetworkRequest &" request) // protected + // MISSING: setSslConfigurationImplementation (void; QNetworkReply this, "const QSslConfiguration &" configuration) // protected + // NOT INHERITABLE PROTECTED: setUrl (void; QNetworkReply this, QUrl url) // protected + // MISSING: sslConfigurationImplementation (void; QNetworkReply this, "QSslConfiguration &" configuration) // protected + new MemberFunction(c, "atEnd", _n_atEnd0, None, Compiled, qt_QNetworkReply_atEnd_bool_QNetworkReply, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new MemberFunction(c, "bytesAvailable", _n_bytesAvailable0, None, Compiled, qt_QNetworkReply_bytesAvailable_int64_QNetworkReply, Return, "int64", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new MemberFunction(c, "bytesToWrite", _n_bytesToWrite0, None, Compiled, qt_QNetworkReply_bytesToWrite_int64_QNetworkReply, Return, "int64", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new MemberFunction(c, "canReadLine", _n_canReadLine0, None, Compiled, qt_QNetworkReply_canReadLine_bool_QNetworkReply, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new MemberFunction(c, "isSequential", _n_isSequential0, None, Compiled, qt_QNetworkReply_isSequential_bool_QNetworkReply, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new MemberFunction(c, "open", _n_open0, None, Compiled, qt_QNetworkReply_open_bool_QNetworkReply_int, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), new Param(c, "mode", "int"), End), + new MemberFunction(c, "pos", _n_pos0, None, Compiled, qt_QNetworkReply_pos_int64_QNetworkReply, Return, "int64", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new MemberFunction(c, "reset", _n_reset0, None, Compiled, qt_QNetworkReply_reset_bool_QNetworkReply, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new MemberFunction(c, "seek", _n_seek0, None, Compiled, qt_QNetworkReply_seek_bool_QNetworkReply_int64, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), new Param(c, "pos", "int64"), End), + new MemberFunction(c, "size", _n_size0, None, Compiled, qt_QNetworkReply_size_int64_QNetworkReply, Return, "int64", Parameters, new Param(c, "this", "qt.QNetworkReply"), End), + new MemberFunction(c, "waitForBytesWritten", _n_waitForBytesWritten0, None, Compiled, qt_QNetworkReply_waitForBytesWritten_bool_QNetworkReply_int, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), new Param(c, "msecs", "int"), End), + new MemberFunction(c, "waitForReadyRead", _n_waitForReadyRead0, None, Compiled, qt_QNetworkReply_waitForReadyRead_bool_QNetworkReply_int, Return, "bool", Parameters, new Param(c, "this", "qt.QNetworkReply"), new Param(c, "msecs", "int"), End), + // MISSING: readData (int64; QNetworkReply this, "char *" data, int64 maxSize) // protected + // MISSING: readLineData (int64; QNetworkReply this, "char *" data, int64 maxSize) // protected + // NOT INHERITABLE PROTECTED: skipData (int64; QNetworkReply this, int64 maxSize) // protected + // MISSING: writeData (int64; QNetworkReply this, "const char *" data, int64 maxSize) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QNetworkReply::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QObjectType.cpp b/src/lib/mu/MuQt6/QObjectType.cpp new file mode 100644 index 000000000..0a2e6b460 --- /dev/null +++ b/src/lib/mu/MuQt6/QObjectType.cpp @@ -0,0 +1,647 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QObject::~MuQt_QObject() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QObject::MuQt_QObject(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QObject(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QObject")); +} + +bool MuQt_QObject::event(QEvent * e) +{ + if (!_env) return QObject::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QObject::event(e); + } +} + +bool MuQt_QObject::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QObject::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QObject::eventFilter(watched, event); + } +} + +void MuQt_QObject::customEvent(QEvent * event) +{ + if (!_env) { QObject::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QObject::customEvent(event); + } +} + +void MuQt_QObject::timerEvent(QTimerEvent * event) +{ + if (!_env) { QObject::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QObject::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QObjectType::QObjectType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QObjectType::~QObjectType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QObject_QObject_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QObject* w = object(widget)) + { + QObjectType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QObject"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QObject_QObject_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QObject_QObject_QObject_QObject_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QObject(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +bool qt_QObject_blockSignals_bool_QObject_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_block) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + bool arg1 = (bool)(param_block); + return arg0->blockSignals(arg1); +} + +void qt_QObject_dumpObjectInfo_void_QObject(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + arg0->dumpObjectInfo(); +} + +void qt_QObject_dumpObjectTree_void_QObject(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + arg0->dumpObjectTree(); +} + +bool qt_QObject_event_bool_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QObject::event(arg1) : arg0->event(arg1); +} + +bool qt_QObject_eventFilter_bool_QObject_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QObject::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QObject_installEventFilter_void_QObject_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_filterObj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + QObject * arg1 = object(param_filterObj); + arg0->installEventFilter(arg1); +} + +bool qt_QObject_isQuickItemType_bool_QObject(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + return arg0->isQuickItemType(); +} + +bool qt_QObject_isWidgetType_bool_QObject(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + return arg0->isWidgetType(); +} + +bool qt_QObject_isWindowType_bool_QObject(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + return arg0->isWindowType(); +} + +void qt_QObject_killTimer_void_QObject_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_id) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + int arg1 = (int)(param_id); + arg0->killTimer(arg1); +} + +Pointer qt_QObject_parent_QObject_QObject(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + return makeinstance(c, arg0->parent(), "qt.QObject"); +} + +void qt_QObject_removeEventFilter_void_QObject_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + QObject * arg1 = object(param_obj); + arg0->removeEventFilter(arg1); +} + +void qt_QObject_setObjectName_void_QObject_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + const QString arg1 = qstring(param_name); + arg0->setObjectName(arg1); +} + +void qt_QObject_setParent_void_QObject_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + QObject * arg1 = object(param_parent); + arg0->setParent(arg1); +} + +bool qt_QObject_signalsBlocked_bool_QObject(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + return arg0->signalsBlocked(); +} + +int qt_QObject_startTimer_int_QObject_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_interval, int param_timerType) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + int arg1 = (int)(param_interval); + Qt::TimerType arg2 = (Qt::TimerType)(param_timerType); + return arg0->startTimer(arg1, arg2); +} + +void qt_QObject_customEvent_void_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QObject*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QObject*)arg0)->customEvent_pub(arg1); +} + +Pointer qt_QObject_sender_QObject_QObject(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + return makeinstance(c, ((MuQt_QObject*)arg0)->sender_pub(), "qt.QObject"); +} + +int qt_QObject_senderSignalIndex_int_QObject(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + return ((MuQt_QObject*)arg0)->senderSignalIndex_pub(); +} + +void qt_QObject_timerEvent_void_QObject_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QObject*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QObject*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QObject0, Pointer) +{ + NODE_RETURN(qt_QObject_QObject_QObject_QObject_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_blockSignals0, bool) +{ + NODE_RETURN(qt_QObject_blockSignals_bool_QObject_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_dumpObjectInfo0, void) +{ + qt_QObject_dumpObjectInfo_void_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dumpObjectTree0, void) +{ + qt_QObject_dumpObjectTree_void_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QObject_event_bool_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QObject_eventFilter_bool_QObject_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_installEventFilter0, void) +{ + qt_QObject_installEventFilter_void_QObject_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isQuickItemType0, bool) +{ + NODE_RETURN(qt_QObject_isQuickItemType_bool_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isWidgetType0, bool) +{ + NODE_RETURN(qt_QObject_isWidgetType_bool_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isWindowType0, bool) +{ + NODE_RETURN(qt_QObject_isWindowType_bool_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_killTimer0, void) +{ + qt_QObject_killTimer_void_QObject_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_parent0, Pointer) +{ + NODE_RETURN(qt_QObject_parent_QObject_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeEventFilter0, void) +{ + qt_QObject_removeEventFilter_void_QObject_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setObjectName0, void) +{ + qt_QObject_setObjectName_void_QObject_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setParent0, void) +{ + qt_QObject_setParent_void_QObject_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_signalsBlocked0, bool) +{ + NODE_RETURN(qt_QObject_signalsBlocked_bool_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_startTimer0, int) +{ + NODE_RETURN(qt_QObject_startTimer_int_QObject_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QObject_customEvent_void_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sender0, Pointer) +{ + NODE_RETURN(qt_QObject_sender_QObject_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_senderSignalIndex0, int) +{ + NODE_RETURN(qt_QObject_senderSignalIndex_int_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QObject_timerEvent_void_QObject_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +static Pointer +findChild_Object_string(Thread& NODE_THREAD, Pointer obj, Pointer p) +{ + ClassInstance* self = reinterpret_cast(obj); + StringType::String* name = reinterpret_cast(p); + QObject* o = object(self); + ClassInstance* rval = ClassInstance::allocate(self->classType()); + setobject(rval, o->findChild(name->c_str())); + return rval; +} + +static NODE_IMPLEMENTATION(findChild, Pointer) +{ + NODE_RETURN( findChild_Object_string(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer)) ); +} + +#include +#include +#include +#include + +static bool +setProperty_bool_Object_string_qt_QVariant(Thread& NODE_THREAD, + Pointer obj, + Pointer n, + Pointer v) +{ + ClassInstance* self = reinterpret_cast(obj); + StringType::String* name = reinterpret_cast(n); + const QVariant value = getqtype(v); + QObject* o = object(self); + return o->setProperty(name->c_str(), value); +} + +static NODE_IMPLEMENTATION(setProperty, bool) +{ + NODE_RETURN( setProperty_bool_Object_string_qt_QVariant(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer), + NODE_ARG(2, Pointer)) ); +} + +void +QObjectType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + new Function(c, tn, castFromObject, Cast, + Compiled, QObject_QObject_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QObject", _n_QObject0, None, Compiled, qt_QObject_QObject_QObject_QObject_QObject, Return, "qt.QObject", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: bindableObjectName ("QBindable"; QObject this) + new Function(c, "blockSignals", _n_blockSignals0, None, Compiled, qt_QObject_blockSignals_bool_QObject_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "block", "bool"), End), + // MISSING: children ("const QObjectList &"; QObject this) + // MISSING: connect (flags QMetaObject::Connection; QObject this, QObject sender, "const char *" signal, "const char *" method, flags Qt::ConnectionType type) + new Function(c, "dumpObjectInfo", _n_dumpObjectInfo0, None, Compiled, qt_QObject_dumpObjectInfo_void_QObject, Return, "void", Parameters, new Param(c, "this", "qt.QObject"), End), + new Function(c, "dumpObjectTree", _n_dumpObjectTree0, None, Compiled, qt_QObject_dumpObjectTree_void_QObject, Return, "void", Parameters, new Param(c, "this", "qt.QObject"), End), + // MISSING: dynamicPropertyNames ("QList"; QObject this) + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QObject_event_bool_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QObject_eventFilter_bool_QObject_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: findChild ("T"; QObject this, string name, flags Qt::FindChildOptions options) + // MISSING: findChildren ("QList"; QObject this, string name, flags Qt::FindChildOptions options) + // MISSING: findChildren ("QList"; QObject this, flags Qt::FindChildOptions options) + // MISSING: findChildren ("QList"; QObject this, QRegularExpression re, flags Qt::FindChildOptions options) + // MISSING: inherits (bool; QObject this, "const char *" className) + new Function(c, "installEventFilter", _n_installEventFilter0, None, Compiled, qt_QObject_installEventFilter_void_QObject_QObject, Return, "void", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "filterObj", "qt.QObject"), End), + new Function(c, "isQuickItemType", _n_isQuickItemType0, None, Compiled, qt_QObject_isQuickItemType_bool_QObject, Return, "bool", Parameters, new Param(c, "this", "qt.QObject"), End), + new Function(c, "isWidgetType", _n_isWidgetType0, None, Compiled, qt_QObject_isWidgetType_bool_QObject, Return, "bool", Parameters, new Param(c, "this", "qt.QObject"), End), + new Function(c, "isWindowType", _n_isWindowType0, None, Compiled, qt_QObject_isWindowType_bool_QObject, Return, "bool", Parameters, new Param(c, "this", "qt.QObject"), End), + new Function(c, "killTimer", _n_killTimer0, None, Compiled, qt_QObject_killTimer_void_QObject_int, Return, "void", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "id", "int"), End), + // MISSING: metaObject ("const QMetaObject *"; QObject this) + // MISSING: moveToThread (void; QObject this, "QThread *" targetThread) + // PROP: objectName (string; QObject this) + new Function(c, "parent", _n_parent0, None, Compiled, qt_QObject_parent_QObject_QObject, Return, "qt.QObject", Parameters, new Param(c, "this", "qt.QObject"), End), + // MISSING: property (QVariant; QObject this, "const char *" name) + new Function(c, "removeEventFilter", _n_removeEventFilter0, None, Compiled, qt_QObject_removeEventFilter_void_QObject_QObject, Return, "void", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "obj", "qt.QObject"), End), + new Function(c, "setObjectName", _n_setObjectName0, None, Compiled, qt_QObject_setObjectName_void_QObject_string, Return, "void", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "name", "string"), End), + // MISSING: setObjectName (void; QObject this, "QAnyStringView" name) + new Function(c, "setParent", _n_setParent0, None, Compiled, qt_QObject_setParent_void_QObject_QObject, Return, "void", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: setProperty (bool; QObject this, "const char *" name, QVariant value) + new Function(c, "signalsBlocked", _n_signalsBlocked0, None, Compiled, qt_QObject_signalsBlocked_bool_QObject, Return, "bool", Parameters, new Param(c, "this", "qt.QObject"), End), + new Function(c, "startTimer", _n_startTimer0, None, Compiled, qt_QObject_startTimer_int_QObject_int_int, Return, "int", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "interval", "int"), new Param(c, "timerType", "int", Value((int)Qt::CoarseTimer)), End), + // MISSING: startTimer (int; QObject this, flags std::chrono::milliseconds time, flags Qt::TimerType timerType) + // MISSING: thread ("QThread *"; QObject this) + // MISSING: childEvent (void; QObject this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QObject this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QObject_customEvent_void_QObject_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QObject this, "const QMetaMethod &" signal) // protected + // MISSING: isSignalConnected (bool; QObject this, "const QMetaMethod &" signal) // protected + // MISSING: receivers (int; QObject this, "const char *" signal) // protected + new Function(c, "sender", _n_sender0, None, Compiled, qt_QObject_sender_QObject_QObject, Return, "qt.QObject", Parameters, new Param(c, "this", "qt.QObject"), End), + new Function(c, "senderSignalIndex", _n_senderSignalIndex0, None, Compiled, qt_QObject_senderSignalIndex_int_QObject, Return, "int", Parameters, new Param(c, "this", "qt.QObject"), End), + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QObject_timerEvent_void_QObject_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QObject"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + // MISSING: connect (flags QMetaObject::Connection; QObject sender, "const char *" signal, QObject receiver, "const char *" method, flags Qt::ConnectionType type) + // MISSING: connect (flags QMetaObject::Connection; QObject sender, "const QMetaMethod &" signal, QObject receiver, "const QMetaMethod &" method, flags Qt::ConnectionType type) + // MISSING: connect (flags QMetaObject::Connection; QObject sender, "PointerToMemberFunction" signal, QObject receiver, "PointerToMemberFunction" method, flags Qt::ConnectionType type) + // MISSING: connect (flags QMetaObject::Connection; QObject sender, "PointerToMemberFunction" signal, "Functor" functor) + // MISSING: connect (flags QMetaObject::Connection; QObject sender, "PointerToMemberFunction" signal, QObject context, "Functor" functor, flags Qt::ConnectionType type) + // MISSING: tr (string; "const char *" sourceText, "const char *" disambiguation, int n) + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +addSymbols( new Function(c, "findChild", findChild, None, + Return, ftn, + Parameters, + new Param(c, "this", ftn), + new Param(c, "name", "string"), + End), + + new Function(c, "setProperty", setProperty, None, + Return, "bool", + Parameters, + new Param(c, "this", ftn), + new Param(c, "name", "string"), + new Param(c, "value", "qt.QVariant"), + End), + + EndArguments); + + const char** propExclusions = 0; + + populate(this, QObject::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QPaintDeviceType.cpp b/src/lib/mu/MuQt6/QPaintDeviceType.cpp new file mode 100644 index 000000000..d22e1f6ba --- /dev/null +++ b/src/lib/mu/MuQt6/QPaintDeviceType.cpp @@ -0,0 +1,374 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QPaintDevice::~MuQt_QPaintDevice() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QPaintDevice::MuQt_QPaintDevice(Pointer muobj, const CallEnvironment* ce) + : QPaintDevice() +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPaintDevice")); +} + +int MuQt_QPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric_) const +{ + if (!_env) return QPaintDevice::metric(metric_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(metric_)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QPaintDevice::metric(metric_); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QPaintDeviceType::QPaintDeviceType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QPaintDeviceType::~QPaintDeviceType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QPaintDevice_QPaintDevice_QLayoutItem(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* item = reinterpret_cast(obj); + + if (!item) + { + return 0; + } + else if (QPaintDevice* i = layoutitem(item)) + { + QPaintDeviceType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPaintDevice"), false); + ClassInstance* o = ClassInstance::allocate(type); + setpaintdevice(o, i); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromLayoutItem, Pointer) +{ + NODE_RETURN( QPaintDevice_QPaintDevice_QLayoutItem(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +int qt_QPaintDevice_colorCount_int_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->colorCount(); +} + +int qt_QPaintDevice_depth_int_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->depth(); +} + +double qt_QPaintDevice_devicePixelRatio_double_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->devicePixelRatio(); +} + +double qt_QPaintDevice_devicePixelRatioF_double_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->devicePixelRatioF(); +} + +int qt_QPaintDevice_height_int_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->height(); +} + +int qt_QPaintDevice_heightMM_int_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->heightMM(); +} + +int qt_QPaintDevice_logicalDpiX_int_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->logicalDpiX(); +} + +int qt_QPaintDevice_logicalDpiY_int_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->logicalDpiY(); +} + +bool qt_QPaintDevice_paintingActive_bool_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->paintingActive(); +} + +int qt_QPaintDevice_physicalDpiX_int_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->physicalDpiX(); +} + +int qt_QPaintDevice_physicalDpiY_int_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->physicalDpiY(); +} + +int qt_QPaintDevice_width_int_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->width(); +} + +int qt_QPaintDevice_widthMM_int_QPaintDevice(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + return arg0->widthMM(); +} + +// NO FUNC: CONSTRUCTOR IS PROTECTED: QPaintDevice (QPaintDevice; QPaintDevice this) // protected +int qt_QPaintDevice_metric_int_QPaintDevice_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_metric_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintDevice* arg0 = paintdevice(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_metric_); + return isMuQtPaintDevice(arg0) ? ((MuQt_QPaintDevice*)arg0)->metric_pub_parent(arg1) : ((MuQt_QPaintDevice*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_colorCount0, int) +{ + NODE_RETURN(qt_QPaintDevice_colorCount_int_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_depth0, int) +{ + NODE_RETURN(qt_QPaintDevice_depth_int_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_devicePixelRatio0, double) +{ + NODE_RETURN(qt_QPaintDevice_devicePixelRatio_double_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_devicePixelRatioF0, double) +{ + NODE_RETURN(qt_QPaintDevice_devicePixelRatioF_double_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_height0, int) +{ + NODE_RETURN(qt_QPaintDevice_height_int_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightMM0, int) +{ + NODE_RETURN(qt_QPaintDevice_heightMM_int_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_logicalDpiX0, int) +{ + NODE_RETURN(qt_QPaintDevice_logicalDpiX_int_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_logicalDpiY0, int) +{ + NODE_RETURN(qt_QPaintDevice_logicalDpiY_int_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_paintingActive0, bool) +{ + NODE_RETURN(qt_QPaintDevice_paintingActive_bool_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_physicalDpiX0, int) +{ + NODE_RETURN(qt_QPaintDevice_physicalDpiX_int_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_physicalDpiY0, int) +{ + NODE_RETURN(qt_QPaintDevice_physicalDpiY_int_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_width0, int) +{ + NODE_RETURN(qt_QPaintDevice_width_int_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_widthMM0, int) +{ + NODE_RETURN(qt_QPaintDevice_widthMM_int_QPaintDevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +// NO NODE: CONSTRUCTOR IS PROTECTED: QPaintDevice (QPaintDevice; QPaintDevice this) // protected +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QPaintDevice_metric_int_QPaintDevice_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QPaintDeviceType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromLayoutItem, Cast, + Compiled, QPaintDevice_QPaintDevice_QLayoutItem, + Return, ftn, + Parameters, + new Param(c, "layoutItem", "qt.QLayoutItem"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "colorCount", _n_colorCount0, None, Compiled, qt_QPaintDevice_colorCount_int_QPaintDevice, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "depth", _n_depth0, None, Compiled, qt_QPaintDevice_depth_int_QPaintDevice, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "devicePixelRatio", _n_devicePixelRatio0, None, Compiled, qt_QPaintDevice_devicePixelRatio_double_QPaintDevice, Return, "double", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "devicePixelRatioF", _n_devicePixelRatioF0, None, Compiled, qt_QPaintDevice_devicePixelRatioF_double_QPaintDevice, Return, "double", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "height", _n_height0, None, Compiled, qt_QPaintDevice_height_int_QPaintDevice, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "heightMM", _n_heightMM0, None, Compiled, qt_QPaintDevice_heightMM_int_QPaintDevice, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "logicalDpiX", _n_logicalDpiX0, None, Compiled, qt_QPaintDevice_logicalDpiX_int_QPaintDevice, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "logicalDpiY", _n_logicalDpiY0, None, Compiled, qt_QPaintDevice_logicalDpiY_int_QPaintDevice, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + // MISSING: paintEngine ("QPaintEngine *"; QPaintDevice this) + new Function(c, "paintingActive", _n_paintingActive0, None, Compiled, qt_QPaintDevice_paintingActive_bool_QPaintDevice, Return, "bool", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "physicalDpiX", _n_physicalDpiX0, None, Compiled, qt_QPaintDevice_physicalDpiX_int_QPaintDevice, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "physicalDpiY", _n_physicalDpiY0, None, Compiled, qt_QPaintDevice_physicalDpiY_int_QPaintDevice, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "width", _n_width0, None, Compiled, qt_QPaintDevice_width_int_QPaintDevice, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + new Function(c, "widthMM", _n_widthMM0, None, Compiled, qt_QPaintDevice_widthMM_int_QPaintDevice, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), End), + // CONSTRUCTOR IS PROTECTED: QPaintDevice (QPaintDevice; QPaintDevice this) // protected + _func[0] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QPaintDevice_metric_int_QPaintDevice_int, Return, "int", Parameters, new Param(c, "this", "qt.QPaintDevice"), new Param(c, "metric_", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QPaintEventType.cpp b/src/lib/mu/MuQt6/QPaintEventType.cpp new file mode 100644 index 000000000..25ba75072 --- /dev/null +++ b/src/lib/mu/MuQt6/QPaintEventType.cpp @@ -0,0 +1,161 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QPaintEventType::QPaintEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QPaintEventType::~QPaintEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QPaintEvent_QPaintEvent_QPaintEvent_QPaintEvent_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_paintRegion) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion arg1 = getqtype(param_paintRegion); + setqpointer(param_this,new QPaintEvent(arg1)); + return param_this; +} + +Pointer qt_QPaintEvent_QPaintEvent_QPaintEvent_QPaintEvent_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_paintRect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRect arg1 = getqtype(param_paintRect); + setqpointer(param_this,new QPaintEvent(arg1)); + return param_this; +} + +Pointer qt_QPaintEvent_rect_QRect_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->rect(),"qt.QRect"); +} + +Pointer qt_QPaintEvent_region_QRegion_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPaintEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->region(),"qt.QRegion"); +} + + +static NODE_IMPLEMENTATION(_n_QPaintEvent0, Pointer) +{ + NODE_RETURN(qt_QPaintEvent_QPaintEvent_QPaintEvent_QPaintEvent_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPaintEvent1, Pointer) +{ + NODE_RETURN(qt_QPaintEvent_QPaintEvent_QPaintEvent_QPaintEvent_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rect0, Pointer) +{ + NODE_RETURN(qt_QPaintEvent_rect_QRect_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_region0, Pointer) +{ + NODE_RETURN(qt_QPaintEvent_region_QRegion_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QPaintEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QPaintEvent", _n_QPaintEvent0, None, Compiled, qt_QPaintEvent_QPaintEvent_QPaintEvent_QPaintEvent_QRegion, Return, "qt.QPaintEvent", Parameters, new Param(c, "this", "qt.QPaintEvent"), new Param(c, "paintRegion", "qt.QRegion"), End), + new Function(c, "QPaintEvent", _n_QPaintEvent1, None, Compiled, qt_QPaintEvent_QPaintEvent_QPaintEvent_QPaintEvent_QRect, Return, "qt.QPaintEvent", Parameters, new Param(c, "this", "qt.QPaintEvent"), new Param(c, "paintRect", "qt.QRect"), End), + new Function(c, "rect", _n_rect0, None, Compiled, qt_QPaintEvent_rect_QRect_QPaintEvent, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QPaintEvent"), End), + new Function(c, "region", _n_region0, None, Compiled, qt_QPaintEvent_region_QRegion_QPaintEvent, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QPaintEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QPaletteType.cpp b/src/lib/mu/MuQt6/QPaletteType.cpp new file mode 100644 index 000000000..1a500988d --- /dev/null +++ b/src/lib/mu/MuQt6/QPaletteType.cpp @@ -0,0 +1,777 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QPaletteType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QPaletteType::QPaletteType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QPaletteType::~QPaletteType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QPaletteType::Instance* i = new QPaletteType::Instance((Class*)NODE_THIS.type()); + QPaletteType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QPaletteType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QPaletteType::finalizer, 0, 0, 0); +} + +void +QPaletteType::finalizer (void* obj, void* data) +{ + QPaletteType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QPalette_QPalette_QPalette_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QPalette()); + return param_this; +} + +Pointer qt_QPalette_QPalette_QPalette_QPalette_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_button) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QColor arg1 = getqtype(param_button); + setqtype(param_this,QPalette(arg1)); + return param_this; +} + +Pointer qt_QPalette_QPalette_QPalette_QPalette_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_button) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::GlobalColor arg1 = (Qt::GlobalColor)(param_button); + setqtype(param_this,QPalette(arg1)); + return param_this; +} + +Pointer qt_QPalette_QPalette_QPalette_QPalette_QColor_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_button, Pointer param_window) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QColor arg1 = getqtype(param_button); + const QColor arg2 = getqtype(param_window); + setqtype(param_this,QPalette(arg1, arg2)); + return param_this; +} + +Pointer qt_QPalette_QPalette_QPalette_QPalette_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_windowText, Pointer param_button, Pointer param_light, Pointer param_dark, Pointer param_mid, Pointer param_text, Pointer param_bright_text, Pointer param_base, Pointer param_window) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBrush arg1 = getqtype(param_windowText); + const QBrush arg2 = getqtype(param_button); + const QBrush arg3 = getqtype(param_light); + const QBrush arg4 = getqtype(param_dark); + const QBrush arg5 = getqtype(param_mid); + const QBrush arg6 = getqtype(param_text); + const QBrush arg7 = getqtype(param_bright_text); + const QBrush arg8 = getqtype(param_base); + const QBrush arg9 = getqtype(param_window); + setqtype(param_this,QPalette(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)); + return param_this; +} + +Pointer qt_QPalette_alternateBase_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.alternateBase(),"qt.QBrush"); +} + +Pointer qt_QPalette_base_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.base(),"qt.QBrush"); +} + +Pointer qt_QPalette_brightText_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.brightText(),"qt.QBrush"); +} + +Pointer qt_QPalette_brush_QBrush_QPalette_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_group, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + QPalette::ColorGroup arg1 = (QPalette::ColorGroup)(param_group); + QPalette::ColorRole arg2 = (QPalette::ColorRole)(param_role); + return makeqtype(c,arg0.brush(arg1, arg2),"qt.QBrush"); +} + +Pointer qt_QPalette_brush_QBrush_QPalette_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + QPalette::ColorRole arg1 = (QPalette::ColorRole)(param_role); + return makeqtype(c,arg0.brush(arg1),"qt.QBrush"); +} + +Pointer qt_QPalette_button_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.button(),"qt.QBrush"); +} + +Pointer qt_QPalette_buttonText_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.buttonText(),"qt.QBrush"); +} + +int64 qt_QPalette_cacheKey_int64_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return arg0.cacheKey(); +} + +Pointer qt_QPalette_color_QColor_QPalette_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_group, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + QPalette::ColorGroup arg1 = (QPalette::ColorGroup)(param_group); + QPalette::ColorRole arg2 = (QPalette::ColorRole)(param_role); + return makeqtype(c,arg0.color(arg1, arg2),"qt.QColor"); +} + +Pointer qt_QPalette_color_QColor_QPalette_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + QPalette::ColorRole arg1 = (QPalette::ColorRole)(param_role); + return makeqtype(c,arg0.color(arg1),"qt.QColor"); +} + +int qt_QPalette_currentColorGroup_int_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return int(arg0.currentColorGroup()); +} + +Pointer qt_QPalette_dark_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.dark(),"qt.QBrush"); +} + +Pointer qt_QPalette_highlight_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.highlight(),"qt.QBrush"); +} + +Pointer qt_QPalette_highlightedText_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.highlightedText(),"qt.QBrush"); +} + +bool qt_QPalette_isBrushSet_bool_QPalette_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_cg, int param_cr) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + QPalette::ColorGroup arg1 = (QPalette::ColorGroup)(param_cg); + QPalette::ColorRole arg2 = (QPalette::ColorRole)(param_cr); + return arg0.isBrushSet(arg1, arg2); +} + +bool qt_QPalette_isCopyOf_bool_QPalette_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + const QPalette arg1 = getqtype(param_p); + return arg0.isCopyOf(arg1); +} + +bool qt_QPalette_isEqual_bool_QPalette_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_cg1, int param_cg2) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + QPalette::ColorGroup arg1 = (QPalette::ColorGroup)(param_cg1); + QPalette::ColorGroup arg2 = (QPalette::ColorGroup)(param_cg2); + return arg0.isEqual(arg1, arg2); +} + +Pointer qt_QPalette_light_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.light(),"qt.QBrush"); +} + +Pointer qt_QPalette_link_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.link(),"qt.QBrush"); +} + +Pointer qt_QPalette_linkVisited_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.linkVisited(),"qt.QBrush"); +} + +Pointer qt_QPalette_mid_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.mid(),"qt.QBrush"); +} + +Pointer qt_QPalette_midlight_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.midlight(),"qt.QBrush"); +} + +Pointer qt_QPalette_placeholderText_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.placeholderText(),"qt.QBrush"); +} + +Pointer qt_QPalette_resolve_QPalette_QPalette_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + const QPalette arg1 = getqtype(param_other); + return makeqtype(c,arg0.resolve(arg1),"qt.QPalette"); +} + +void qt_QPalette_setBrush_void_QPalette_int_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPalette& arg0 = getqtype(param_this); + QPalette::ColorRole arg1 = (QPalette::ColorRole)(param_role); + const QBrush arg2 = getqtype(param_brush); + arg0.setBrush(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QPalette_setBrush_void_QPalette_int_int_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, int param_group, int param_role, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPalette& arg0 = getqtype(param_this); + QPalette::ColorGroup arg1 = (QPalette::ColorGroup)(param_group); + QPalette::ColorRole arg2 = (QPalette::ColorRole)(param_role); + const QBrush arg3 = getqtype(param_brush); + arg0.setBrush(arg1, arg2, arg3); + setqtype(param_this,arg0); +} + +void qt_QPalette_setColor_void_QPalette_int_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, int param_group, int param_role, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPalette& arg0 = getqtype(param_this); + QPalette::ColorGroup arg1 = (QPalette::ColorGroup)(param_group); + QPalette::ColorRole arg2 = (QPalette::ColorRole)(param_role); + const QColor arg3 = getqtype(param_color); + arg0.setColor(arg1, arg2, arg3); + setqtype(param_this,arg0); +} + +void qt_QPalette_setColor_void_QPalette_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPalette& arg0 = getqtype(param_this); + QPalette::ColorRole arg1 = (QPalette::ColorRole)(param_role); + const QColor arg2 = getqtype(param_color); + arg0.setColor(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QPalette_setColorGroup_void_QPalette_int_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, int param_cg, Pointer param_windowText, Pointer param_button, Pointer param_light, Pointer param_dark, Pointer param_mid, Pointer param_text, Pointer param_bright_text, Pointer param_base, Pointer param_window) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPalette& arg0 = getqtype(param_this); + QPalette::ColorGroup arg1 = (QPalette::ColorGroup)(param_cg); + const QBrush arg2 = getqtype(param_windowText); + const QBrush arg3 = getqtype(param_button); + const QBrush arg4 = getqtype(param_light); + const QBrush arg5 = getqtype(param_dark); + const QBrush arg6 = getqtype(param_mid); + const QBrush arg7 = getqtype(param_text); + const QBrush arg8 = getqtype(param_bright_text); + const QBrush arg9 = getqtype(param_base); + const QBrush arg10 = getqtype(param_window); + arg0.setColorGroup(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); + setqtype(param_this,arg0); +} + +void qt_QPalette_setCurrentColorGroup_void_QPalette_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_cg) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPalette& arg0 = getqtype(param_this); + QPalette::ColorGroup arg1 = (QPalette::ColorGroup)(param_cg); + arg0.setCurrentColorGroup(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QPalette_shadow_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.shadow(),"qt.QBrush"); +} + +void qt_QPalette_swap_void_QPalette_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPalette& arg0 = getqtype(param_this); + QPalette arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QPalette_text_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.text(),"qt.QBrush"); +} + +Pointer qt_QPalette_toolTipBase_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toolTipBase(),"qt.QBrush"); +} + +Pointer qt_QPalette_toolTipText_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toolTipText(),"qt.QBrush"); +} + +Pointer qt_QPalette_window_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.window(),"qt.QBrush"); +} + +Pointer qt_QPalette_windowText_QBrush_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + return makeqtype(c,arg0.windowText(),"qt.QBrush"); +} + +bool qt_QPalette_operatorBang_EQ__bool_QPalette_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + const QPalette arg1 = getqtype(param_p); + return arg0.operator!=(arg1); +} + +bool qt_QPalette_operatorEQ_EQ__bool_QPalette_QPalette(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPalette& arg0 = getqtype(param_this); + const QPalette arg1 = getqtype(param_p); + return arg0.operator==(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QPalette0, Pointer) +{ + NODE_RETURN(qt_QPalette_QPalette_QPalette_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPalette1, Pointer) +{ + NODE_RETURN(qt_QPalette_QPalette_QPalette_QPalette_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPalette2, Pointer) +{ + NODE_RETURN(qt_QPalette_QPalette_QPalette_QPalette_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_QPalette3, Pointer) +{ + NODE_RETURN(qt_QPalette_QPalette_QPalette_QPalette_QColor_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPalette4, Pointer) +{ + NODE_RETURN(qt_QPalette_QPalette_QPalette_QPalette_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer), NODE_ARG(4, Pointer), NODE_ARG(5, Pointer), NODE_ARG(6, Pointer), NODE_ARG(7, Pointer), NODE_ARG(8, Pointer), NODE_ARG(9, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_alternateBase0, Pointer) +{ + NODE_RETURN(qt_QPalette_alternateBase_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_base0, Pointer) +{ + NODE_RETURN(qt_QPalette_base_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_brightText0, Pointer) +{ + NODE_RETURN(qt_QPalette_brightText_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_brush0, Pointer) +{ + NODE_RETURN(qt_QPalette_brush_QBrush_QPalette_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_brush1, Pointer) +{ + NODE_RETURN(qt_QPalette_brush_QBrush_QPalette_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_button0, Pointer) +{ + NODE_RETURN(qt_QPalette_button_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_buttonText0, Pointer) +{ + NODE_RETURN(qt_QPalette_buttonText_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cacheKey0, int64) +{ + NODE_RETURN(qt_QPalette_cacheKey_int64_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_color0, Pointer) +{ + NODE_RETURN(qt_QPalette_color_QColor_QPalette_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_color1, Pointer) +{ + NODE_RETURN(qt_QPalette_color_QColor_QPalette_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_currentColorGroup0, int) +{ + NODE_RETURN(qt_QPalette_currentColorGroup_int_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dark0, Pointer) +{ + NODE_RETURN(qt_QPalette_dark_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_highlight0, Pointer) +{ + NODE_RETURN(qt_QPalette_highlight_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_highlightedText0, Pointer) +{ + NODE_RETURN(qt_QPalette_highlightedText_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isBrushSet0, bool) +{ + NODE_RETURN(qt_QPalette_isBrushSet_bool_QPalette_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_isCopyOf0, bool) +{ + NODE_RETURN(qt_QPalette_isCopyOf_bool_QPalette_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEqual0, bool) +{ + NODE_RETURN(qt_QPalette_isEqual_bool_QPalette_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_light0, Pointer) +{ + NODE_RETURN(qt_QPalette_light_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_link0, Pointer) +{ + NODE_RETURN(qt_QPalette_link_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_linkVisited0, Pointer) +{ + NODE_RETURN(qt_QPalette_linkVisited_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mid0, Pointer) +{ + NODE_RETURN(qt_QPalette_mid_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_midlight0, Pointer) +{ + NODE_RETURN(qt_QPalette_midlight_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_placeholderText0, Pointer) +{ + NODE_RETURN(qt_QPalette_placeholderText_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resolve0, Pointer) +{ + NODE_RETURN(qt_QPalette_resolve_QPalette_QPalette_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBrush0, void) +{ + qt_QPalette_setBrush_void_QPalette_int_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setBrush1, void) +{ + qt_QPalette_setBrush_void_QPalette_int_int_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setColor0, void) +{ + qt_QPalette_setColor_void_QPalette_int_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setColor1, void) +{ + qt_QPalette_setColor_void_QPalette_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setColorGroup0, void) +{ + qt_QPalette_setColorGroup_void_QPalette_int_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer), NODE_ARG(4, Pointer), NODE_ARG(5, Pointer), NODE_ARG(6, Pointer), NODE_ARG(7, Pointer), NODE_ARG(8, Pointer), NODE_ARG(9, Pointer), NODE_ARG(10, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCurrentColorGroup0, void) +{ + qt_QPalette_setCurrentColorGroup_void_QPalette_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_shadow0, Pointer) +{ + NODE_RETURN(qt_QPalette_shadow_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QPalette_swap_void_QPalette_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QPalette_text_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toolTipBase0, Pointer) +{ + NODE_RETURN(qt_QPalette_toolTipBase_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toolTipText0, Pointer) +{ + NODE_RETURN(qt_QPalette_toolTipText_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_window0, Pointer) +{ + NODE_RETURN(qt_QPalette_window_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_windowText0, Pointer) +{ + NODE_RETURN(qt_QPalette_windowText_QBrush_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QPalette_operatorBang_EQ__bool_QPalette_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QPalette_operatorEQ_EQ__bool_QPalette_QPalette(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QPaletteType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "ColorGroup", "int"), + new SymbolicConstant(c, "Disabled", "int", Value(int(QPalette::Disabled))), + new SymbolicConstant(c, "Active", "int", Value(int(QPalette::Active))), + new SymbolicConstant(c, "Inactive", "int", Value(int(QPalette::Inactive))), + new SymbolicConstant(c, "Normal", "int", Value(int(QPalette::Normal))), + new Alias(c, "ColorRole", "int"), + new SymbolicConstant(c, "Window", "int", Value(int(QPalette::Window))), + new SymbolicConstant(c, "WindowText", "int", Value(int(QPalette::WindowText))), + new SymbolicConstant(c, "Base", "int", Value(int(QPalette::Base))), + new SymbolicConstant(c, "AlternateBase", "int", Value(int(QPalette::AlternateBase))), + new SymbolicConstant(c, "ToolTipBase", "int", Value(int(QPalette::ToolTipBase))), + new SymbolicConstant(c, "ToolTipText", "int", Value(int(QPalette::ToolTipText))), + new SymbolicConstant(c, "PlaceholderText", "int", Value(int(QPalette::PlaceholderText))), + new SymbolicConstant(c, "Text", "int", Value(int(QPalette::Text))), + new SymbolicConstant(c, "Button", "int", Value(int(QPalette::Button))), + new SymbolicConstant(c, "ButtonText", "int", Value(int(QPalette::ButtonText))), + new SymbolicConstant(c, "BrightText", "int", Value(int(QPalette::BrightText))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QPalette", _n_QPalette0, None, Compiled, qt_QPalette_QPalette_QPalette_QPalette, Return, "qt.QPalette", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "QPalette", _n_QPalette1, None, Compiled, qt_QPalette_QPalette_QPalette_QPalette_QColor, Return, "qt.QPalette", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "button", "qt.QColor"), End), + new Function(c, "QPalette", _n_QPalette2, None, Compiled, qt_QPalette_QPalette_QPalette_QPalette_int, Return, "qt.QPalette", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "button", "int"), End), + new Function(c, "QPalette", _n_QPalette3, None, Compiled, qt_QPalette_QPalette_QPalette_QPalette_QColor_QColor, Return, "qt.QPalette", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "button", "qt.QColor"), new Param(c, "window", "qt.QColor"), End), + new Function(c, "QPalette", _n_QPalette4, None, Compiled, qt_QPalette_QPalette_QPalette_QPalette_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush, Return, "qt.QPalette", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "windowText", "qt.QBrush"), new Param(c, "button", "qt.QBrush"), new Param(c, "light", "qt.QBrush"), new Param(c, "dark", "qt.QBrush"), new Param(c, "mid", "qt.QBrush"), new Param(c, "text", "qt.QBrush"), new Param(c, "bright_text", "qt.QBrush"), new Param(c, "base", "qt.QBrush"), new Param(c, "window", "qt.QBrush"), End), + // MISSING: QPalette (QPalette; QPalette this, QPalette p) + // MISSING: QPalette (QPalette; QPalette this, "QPalette & &" other) + new Function(c, "alternateBase", _n_alternateBase0, None, Compiled, qt_QPalette_alternateBase_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "base", _n_base0, None, Compiled, qt_QPalette_base_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "brightText", _n_brightText0, None, Compiled, qt_QPalette_brightText_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "brush", _n_brush0, None, Compiled, qt_QPalette_brush_QBrush_QPalette_int_int, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "group", "int"), new Param(c, "role", "int"), End), + new Function(c, "brush", _n_brush1, None, Compiled, qt_QPalette_brush_QBrush_QPalette_int, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "role", "int"), End), + new Function(c, "button", _n_button0, None, Compiled, qt_QPalette_button_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "buttonText", _n_buttonText0, None, Compiled, qt_QPalette_buttonText_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "cacheKey", _n_cacheKey0, None, Compiled, qt_QPalette_cacheKey_int64_QPalette, Return, "int64", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "color", _n_color0, None, Compiled, qt_QPalette_color_QColor_QPalette_int_int, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "group", "int"), new Param(c, "role", "int"), End), + new Function(c, "color", _n_color1, None, Compiled, qt_QPalette_color_QColor_QPalette_int, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "role", "int"), End), + new Function(c, "currentColorGroup", _n_currentColorGroup0, None, Compiled, qt_QPalette_currentColorGroup_int_QPalette, Return, "int", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "dark", _n_dark0, None, Compiled, qt_QPalette_dark_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "highlight", _n_highlight0, None, Compiled, qt_QPalette_highlight_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "highlightedText", _n_highlightedText0, None, Compiled, qt_QPalette_highlightedText_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "isBrushSet", _n_isBrushSet0, None, Compiled, qt_QPalette_isBrushSet_bool_QPalette_int_int, Return, "bool", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "cg", "int"), new Param(c, "cr", "int"), End), + new Function(c, "isCopyOf", _n_isCopyOf0, None, Compiled, qt_QPalette_isCopyOf_bool_QPalette_QPalette, Return, "bool", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "p", "qt.QPalette"), End), + new Function(c, "isEqual", _n_isEqual0, None, Compiled, qt_QPalette_isEqual_bool_QPalette_int_int, Return, "bool", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "cg1", "int"), new Param(c, "cg2", "int"), End), + new Function(c, "light", _n_light0, None, Compiled, qt_QPalette_light_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "link", _n_link0, None, Compiled, qt_QPalette_link_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "linkVisited", _n_linkVisited0, None, Compiled, qt_QPalette_linkVisited_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "mid", _n_mid0, None, Compiled, qt_QPalette_mid_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "midlight", _n_midlight0, None, Compiled, qt_QPalette_midlight_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "placeholderText", _n_placeholderText0, None, Compiled, qt_QPalette_placeholderText_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "resolve", _n_resolve0, None, Compiled, qt_QPalette_resolve_QPalette_QPalette_QPalette, Return, "qt.QPalette", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "other", "qt.QPalette"), End), + new Function(c, "setBrush", _n_setBrush0, None, Compiled, qt_QPalette_setBrush_void_QPalette_int_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "role", "int"), new Param(c, "brush", "qt.QBrush"), End), + new Function(c, "setBrush", _n_setBrush1, None, Compiled, qt_QPalette_setBrush_void_QPalette_int_int_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "group", "int"), new Param(c, "role", "int"), new Param(c, "brush", "qt.QBrush"), End), + new Function(c, "setColor", _n_setColor0, None, Compiled, qt_QPalette_setColor_void_QPalette_int_int_QColor, Return, "void", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "group", "int"), new Param(c, "role", "int"), new Param(c, "color", "qt.QColor"), End), + new Function(c, "setColor", _n_setColor1, None, Compiled, qt_QPalette_setColor_void_QPalette_int_QColor, Return, "void", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "role", "int"), new Param(c, "color", "qt.QColor"), End), + new Function(c, "setColorGroup", _n_setColorGroup0, None, Compiled, qt_QPalette_setColorGroup_void_QPalette_int_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "cg", "int"), new Param(c, "windowText", "qt.QBrush"), new Param(c, "button", "qt.QBrush"), new Param(c, "light", "qt.QBrush"), new Param(c, "dark", "qt.QBrush"), new Param(c, "mid", "qt.QBrush"), new Param(c, "text", "qt.QBrush"), new Param(c, "bright_text", "qt.QBrush"), new Param(c, "base", "qt.QBrush"), new Param(c, "window", "qt.QBrush"), End), + new Function(c, "setCurrentColorGroup", _n_setCurrentColorGroup0, None, Compiled, qt_QPalette_setCurrentColorGroup_void_QPalette_int, Return, "void", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "cg", "int"), End), + new Function(c, "shadow", _n_shadow0, None, Compiled, qt_QPalette_shadow_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QPalette_swap_void_QPalette_QPalette, Return, "void", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "other", "qt.QPalette"), End), + new Function(c, "text", _n_text0, None, Compiled, qt_QPalette_text_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "toolTipBase", _n_toolTipBase0, None, Compiled, qt_QPalette_toolTipBase_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "toolTipText", _n_toolTipText0, None, Compiled, qt_QPalette_toolTipText_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "window", _n_window0, None, Compiled, qt_QPalette_window_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + new Function(c, "windowText", _n_windowText0, None, Compiled, qt_QPalette_windowText_QBrush_QPalette, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QPalette"), End), + // MISSING: QVariant ("QVariant operator"; QPalette this) + // static functions + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QPalette_operatorBang_EQ__bool_QPalette_QPalette, Return, "bool", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "p", "qt.QPalette"), End), + // MISSING: = (QPalette; QPalette this, QPalette p) + // MISSING: = (QPalette; QPalette this, "QPalette & &" other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QPalette_operatorEQ_EQ__bool_QPalette_QPalette, Return, "bool", Parameters, new Param(c, "this", "qt.QPalette"), new Param(c, "p", "qt.QPalette"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QPixmapType.cpp b/src/lib/mu/MuQt6/QPixmapType.cpp new file mode 100644 index 000000000..e9d5b7f10 --- /dev/null +++ b/src/lib/mu/MuQt6/QPixmapType.cpp @@ -0,0 +1,632 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QPixmapType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QPixmapType::QPixmapType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QPixmapType::~QPixmapType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QPixmapType::Instance* i = new QPixmapType::Instance((Class*)NODE_THIS.type()); + QPixmapType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QPixmapType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QPixmapType::finalizer, 0, 0, 0); +} + +void +QPixmapType::finalizer (void* obj, void* data) +{ + QPixmapType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QPixmap_QPixmap_QPixmap_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setpaintdevice(param_this, QPixmap()); + return param_this; +} + +Pointer qt_QPixmap_QPixmap_QPixmap_QPixmap_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_width); + int arg2 = (int)(param_height); + setpaintdevice(param_this, QPixmap(arg1, arg2)); + return param_this; +} + +Pointer qt_QPixmap_QPixmap_QPixmap_QPixmap_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QSize arg1 = getqtype(param_size); + setpaintdevice(param_this, QPixmap(arg1)); + return param_this; +} + +int64 qt_QPixmap_cacheKey_int64_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return arg0.cacheKey(); +} + +bool qt_QPixmap_convertFromImage_bool_QPixmap_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_image, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPixmap& arg0 = getqtype(param_this); + const QImage arg1 = getqtype(param_image); + Qt::ImageConversionFlags arg2 = (Qt::ImageConversionFlags)(param_flags); + return arg0.convertFromImage(arg1, arg2); +} + +Pointer qt_QPixmap_copy_QPixmap_QPixmap_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.copy(arg1),"qt.QPixmap"); +} + +Pointer qt_QPixmap_copy_QPixmap_QPixmap_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, int param_width, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + int arg3 = (int)(param_width); + int arg4 = (int)(param_height); + return makeqtype(c,arg0.copy(arg1, arg2, arg3, arg4),"qt.QPixmap"); +} + +Pointer qt_QPixmap_createHeuristicMask_QBitmap_QPixmap_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_clipTight) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_clipTight); + return makeqtype(c,arg0.createHeuristicMask(arg1),"qt.QBitmap"); +} + +Pointer qt_QPixmap_createMaskFromColor_QBitmap_QPixmap_QColor_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_maskColor, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + const QColor arg1 = getqtype(param_maskColor); + Qt::MaskMode arg2 = (Qt::MaskMode)(param_mode); + return makeqtype(c,arg0.createMaskFromColor(arg1, arg2),"qt.QBitmap"); +} + +int qt_QPixmap_depth_int_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return arg0.depth(); +} + +void qt_QPixmap_detach_void_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPixmap& arg0 = getqtype(param_this); + arg0.detach(); +} + +double qt_QPixmap_devicePixelRatio_double_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return arg0.devicePixelRatio(); +} + +void qt_QPixmap_fill_void_QPixmap_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPixmap& arg0 = getqtype(param_this); + const QColor arg1 = getqtype(param_color); + arg0.fill(arg1); +} + +bool qt_QPixmap_hasAlpha_bool_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return arg0.hasAlpha(); +} + +bool qt_QPixmap_hasAlphaChannel_bool_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return arg0.hasAlphaChannel(); +} + +int qt_QPixmap_height_int_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return arg0.height(); +} + +bool qt_QPixmap_isNull_bool_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return arg0.isNull(); +} + +bool qt_QPixmap_isQBitmap_bool_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return arg0.isQBitmap(); +} + +Pointer qt_QPixmap_mask_QBitmap_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return makeqtype(c,arg0.mask(),"qt.QBitmap"); +} + +Pointer qt_QPixmap_rect_QRect_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return makeqtype(c,arg0.rect(),"qt.QRect"); +} + +Pointer qt_QPixmap_scaled_QPixmap_QPixmap_QSize_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size, int param_aspectRatioMode, int param_transformMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_size); + Qt::AspectRatioMode arg2 = (Qt::AspectRatioMode)(param_aspectRatioMode); + Qt::TransformationMode arg3 = (Qt::TransformationMode)(param_transformMode); + return makeqtype(c,arg0.scaled(arg1, arg2, arg3),"qt.QPixmap"); +} + +Pointer qt_QPixmap_scaled_QPixmap_QPixmap_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width, int param_height, int param_aspectRatioMode, int param_transformMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + int arg1 = (int)(param_width); + int arg2 = (int)(param_height); + Qt::AspectRatioMode arg3 = (Qt::AspectRatioMode)(param_aspectRatioMode); + Qt::TransformationMode arg4 = (Qt::TransformationMode)(param_transformMode); + return makeqtype(c,arg0.scaled(arg1, arg2, arg3, arg4),"qt.QPixmap"); +} + +Pointer qt_QPixmap_scaledToHeight_QPixmap_QPixmap_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_height, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + int arg1 = (int)(param_height); + Qt::TransformationMode arg2 = (Qt::TransformationMode)(param_mode); + return makeqtype(c,arg0.scaledToHeight(arg1, arg2),"qt.QPixmap"); +} + +Pointer qt_QPixmap_scaledToWidth_QPixmap_QPixmap_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + int arg1 = (int)(param_width); + Qt::TransformationMode arg2 = (Qt::TransformationMode)(param_mode); + return makeqtype(c,arg0.scaledToWidth(arg1, arg2),"qt.QPixmap"); +} + +void qt_QPixmap_setDevicePixelRatio_void_QPixmap_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_scaleFactor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPixmap& arg0 = getqtype(param_this); + qreal arg1 = (double)(param_scaleFactor); + arg0.setDevicePixelRatio(arg1); +} + +void qt_QPixmap_setMask_void_QPixmap_QBitmap(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_mask) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPixmap& arg0 = getqtype(param_this); + const QBitmap arg1 = getqtype(param_mask); + arg0.setMask(arg1); +} + +Pointer qt_QPixmap_size_QSize_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return makeqtype(c,arg0.size(),"qt.QSize"); +} + +void qt_QPixmap_swap_void_QPixmap_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPixmap& arg0 = getqtype(param_this); + QPixmap arg1 = getqtype(param_other); + arg0.swap(arg1); +} + +Pointer qt_QPixmap_toImage_QImage_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toImage(),"qt.QImage"); +} + +Pointer qt_QPixmap_transformed_QPixmap_QPixmap_QTransform_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_transform, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + const QTransform arg1 = getqtype(param_transform); + Qt::TransformationMode arg2 = (Qt::TransformationMode)(param_mode); + return makeqtype(c,arg0.transformed(arg1, arg2),"qt.QPixmap"); +} + +int qt_QPixmap_width_int_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return arg0.width(); +} + +bool qt_QPixmap_operatorBang__bool_QPixmap(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPixmap& arg0 = getqtype(param_this); + return arg0.operator!(); +} + +int qt_QPixmap_defaultDepth_int(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return QPixmap::defaultDepth(); +} + +Pointer qt_QPixmap_fromImage_QPixmap_QImage_int(Mu::Thread& NODE_THREAD, Pointer param_image, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QImage arg0 = getqtype(param_image); + Qt::ImageConversionFlags arg1 = (Qt::ImageConversionFlags)(param_flags); + return makeqtype(c,QPixmap::fromImage(arg0, arg1),"qt.QPixmap"); +} + +Pointer qt_QPixmap_trueMatrix_QTransform_QTransform_int_int(Mu::Thread& NODE_THREAD, Pointer param_matrix, int param_width, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTransform arg0 = getqtype(param_matrix); + int arg1 = (int)(param_width); + int arg2 = (int)(param_height); + return makeqtype(c,QPixmap::trueMatrix(arg0, arg1, arg2),"qt.QTransform"); +} + + +static NODE_IMPLEMENTATION(_n_QPixmap0, Pointer) +{ + NODE_RETURN(qt_QPixmap_QPixmap_QPixmap_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPixmap1, Pointer) +{ + NODE_RETURN(qt_QPixmap_QPixmap_QPixmap_QPixmap_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QPixmap2, Pointer) +{ + NODE_RETURN(qt_QPixmap_QPixmap_QPixmap_QPixmap_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cacheKey0, int64) +{ + NODE_RETURN(qt_QPixmap_cacheKey_int64_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_convertFromImage0, bool) +{ + NODE_RETURN(qt_QPixmap_convertFromImage_bool_QPixmap_QImage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_copy0, Pointer) +{ + NODE_RETURN(qt_QPixmap_copy_QPixmap_QPixmap_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_copy1, Pointer) +{ + NODE_RETURN(qt_QPixmap_copy_QPixmap_QPixmap_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_createHeuristicMask0, Pointer) +{ + NODE_RETURN(qt_QPixmap_createHeuristicMask_QBitmap_QPixmap_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_createMaskFromColor0, Pointer) +{ + NODE_RETURN(qt_QPixmap_createMaskFromColor_QBitmap_QPixmap_QColor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_depth0, int) +{ + NODE_RETURN(qt_QPixmap_depth_int_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_detach0, void) +{ + qt_QPixmap_detach_void_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_devicePixelRatio0, double) +{ + NODE_RETURN(qt_QPixmap_devicePixelRatio_double_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fill0, void) +{ + qt_QPixmap_fill_void_QPixmap_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasAlpha0, bool) +{ + NODE_RETURN(qt_QPixmap_hasAlpha_bool_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasAlphaChannel0, bool) +{ + NODE_RETURN(qt_QPixmap_hasAlphaChannel_bool_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_height0, int) +{ + NODE_RETURN(qt_QPixmap_height_int_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QPixmap_isNull_bool_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isQBitmap0, bool) +{ + NODE_RETURN(qt_QPixmap_isQBitmap_bool_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mask0, Pointer) +{ + NODE_RETURN(qt_QPixmap_mask_QBitmap_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rect0, Pointer) +{ + NODE_RETURN(qt_QPixmap_rect_QRect_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scaled0, Pointer) +{ + NODE_RETURN(qt_QPixmap_scaled_QPixmap_QPixmap_QSize_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_scaled1, Pointer) +{ + NODE_RETURN(qt_QPixmap_scaled_QPixmap_QPixmap_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_scaledToHeight0, Pointer) +{ + NODE_RETURN(qt_QPixmap_scaledToHeight_QPixmap_QPixmap_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_scaledToWidth0, Pointer) +{ + NODE_RETURN(qt_QPixmap_scaledToWidth_QPixmap_QPixmap_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_setDevicePixelRatio0, void) +{ + qt_QPixmap_setDevicePixelRatio_void_QPixmap_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setMask0, void) +{ + qt_QPixmap_setMask_void_QPixmap_QBitmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_size0, Pointer) +{ + NODE_RETURN(qt_QPixmap_size_QSize_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QPixmap_swap_void_QPixmap_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toImage0, Pointer) +{ + NODE_RETURN(qt_QPixmap_toImage_QImage_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_transformed0, Pointer) +{ + NODE_RETURN(qt_QPixmap_transformed_QPixmap_QPixmap_QTransform_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_width0, int) +{ + NODE_RETURN(qt_QPixmap_width_int_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_0, bool) +{ + NODE_RETURN(qt_QPixmap_operatorBang__bool_QPixmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_defaultDepth0, int) +{ + NODE_RETURN(qt_QPixmap_defaultDepth_int(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_fromImage0, Pointer) +{ + NODE_RETURN(qt_QPixmap_fromImage_QPixmap_QImage_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_trueMatrix0, Pointer) +{ + NODE_RETURN(qt_QPixmap_trueMatrix_QTransform_QTransform_int_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + + + +void +QPixmapType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QPixmap", _n_QPixmap0, None, Compiled, qt_QPixmap_QPixmap_QPixmap_QPixmap, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "QPixmap", _n_QPixmap1, None, Compiled, qt_QPixmap_QPixmap_QPixmap_QPixmap_int_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "width", "int"), new Param(c, "height", "int"), End), + new Function(c, "QPixmap", _n_QPixmap2, None, Compiled, qt_QPixmap_QPixmap_QPixmap_QPixmap_QSize, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "size", "qt.QSize"), End), + // MISSING: QPixmap (QPixmap; QPixmap this, string fileName, "const char *" format, flags Qt::ImageConversionFlags flags) + // MISSING: QPixmap (QPixmap; QPixmap this, "const char * const[]" xpm) + // MISSING: QPixmap (QPixmap; QPixmap this, QPixmap pixmap) + // MISSING: QPixmap (QPixmap; QPixmap this, "QPixmap & &" other) + new Function(c, "cacheKey", _n_cacheKey0, None, Compiled, qt_QPixmap_cacheKey_int64_QPixmap, Return, "int64", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "convertFromImage", _n_convertFromImage0, None, Compiled, qt_QPixmap_convertFromImage_bool_QPixmap_QImage_int, Return, "bool", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "image", "qt.QImage"), new Param(c, "flags", "int", Value((int)Qt::AutoColor)), End), + new Function(c, "copy", _n_copy0, None, Compiled, qt_QPixmap_copy_QPixmap_QPixmap_QRect, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "copy", _n_copy1, None, Compiled, qt_QPixmap_copy_QPixmap_QPixmap_int_int_int_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "width", "int"), new Param(c, "height", "int"), End), + new Function(c, "createHeuristicMask", _n_createHeuristicMask0, None, Compiled, qt_QPixmap_createHeuristicMask_QBitmap_QPixmap_bool, Return, "qt.QBitmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "clipTight", "bool"), End), + new Function(c, "createMaskFromColor", _n_createMaskFromColor0, None, Compiled, qt_QPixmap_createMaskFromColor_QBitmap_QPixmap_QColor_int, Return, "qt.QBitmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "maskColor", "qt.QColor"), new Param(c, "mode", "int", Value((int)Qt::MaskInColor)), End), + new Function(c, "depth", _n_depth0, None, Compiled, qt_QPixmap_depth_int_QPixmap, Return, "int", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "detach", _n_detach0, None, Compiled, qt_QPixmap_detach_void_QPixmap, Return, "void", Parameters, new Param(c, "this", "qt.QPixmap"), End), + // MISSING: deviceIndependentSize ("QSizeF"; QPixmap this) + new Function(c, "devicePixelRatio", _n_devicePixelRatio0, None, Compiled, qt_QPixmap_devicePixelRatio_double_QPixmap, Return, "double", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "fill", _n_fill0, None, Compiled, qt_QPixmap_fill_void_QPixmap_QColor, Return, "void", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "color", "qt.QColor"), End), + new Function(c, "hasAlpha", _n_hasAlpha0, None, Compiled, qt_QPixmap_hasAlpha_bool_QPixmap, Return, "bool", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "hasAlphaChannel", _n_hasAlphaChannel0, None, Compiled, qt_QPixmap_hasAlphaChannel_bool_QPixmap, Return, "bool", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "height", _n_height0, None, Compiled, qt_QPixmap_height_int_QPixmap, Return, "int", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QPixmap_isNull_bool_QPixmap, Return, "bool", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "isQBitmap", _n_isQBitmap0, None, Compiled, qt_QPixmap_isQBitmap_bool_QPixmap, Return, "bool", Parameters, new Param(c, "this", "qt.QPixmap"), End), + // MISSING: load (bool; QPixmap this, string fileName, "const char *" format, flags Qt::ImageConversionFlags flags) + // MISSING: loadFromData (bool; QPixmap this, "const uchar *" data, int len, "const char *" format, flags Qt::ImageConversionFlags flags) + // MISSING: loadFromData (bool; QPixmap this, QByteArray data, "const char *" format, flags Qt::ImageConversionFlags flags) + new Function(c, "mask", _n_mask0, None, Compiled, qt_QPixmap_mask_QBitmap_QPixmap, Return, "qt.QBitmap", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "rect", _n_rect0, None, Compiled, qt_QPixmap_rect_QRect_QPixmap, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QPixmap"), End), + // MISSING: save (bool; QPixmap this, string fileName, "const char *" format, int quality) + // MISSING: save (bool; QPixmap this, QIODevice device, "const char *" format, int quality) + new Function(c, "scaled", _n_scaled0, None, Compiled, qt_QPixmap_scaled_QPixmap_QPixmap_QSize_int_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "size", "qt.QSize"), new Param(c, "aspectRatioMode", "int", Value((int)Qt::IgnoreAspectRatio)), new Param(c, "transformMode", "int", Value((int)Qt::FastTransformation)), End), + new Function(c, "scaled", _n_scaled1, None, Compiled, qt_QPixmap_scaled_QPixmap_QPixmap_int_int_int_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "width", "int"), new Param(c, "height", "int"), new Param(c, "aspectRatioMode", "int", Value((int)Qt::IgnoreAspectRatio)), new Param(c, "transformMode", "int", Value((int)Qt::FastTransformation)), End), + new Function(c, "scaledToHeight", _n_scaledToHeight0, None, Compiled, qt_QPixmap_scaledToHeight_QPixmap_QPixmap_int_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "height", "int"), new Param(c, "mode", "int", Value((int)Qt::FastTransformation)), End), + new Function(c, "scaledToWidth", _n_scaledToWidth0, None, Compiled, qt_QPixmap_scaledToWidth_QPixmap_QPixmap_int_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "width", "int"), new Param(c, "mode", "int", Value((int)Qt::FastTransformation)), End), + new Function(c, "setDevicePixelRatio", _n_setDevicePixelRatio0, None, Compiled, qt_QPixmap_setDevicePixelRatio_void_QPixmap_double, Return, "void", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "scaleFactor", "double"), End), + new Function(c, "setMask", _n_setMask0, None, Compiled, qt_QPixmap_setMask_void_QPixmap_QBitmap, Return, "void", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "mask", "qt.QBitmap"), End), + new Function(c, "size", _n_size0, None, Compiled, qt_QPixmap_size_QSize_QPixmap, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QPixmap_swap_void_QPixmap_QPixmap, Return, "void", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "other", "qt.QPixmap"), End), + new Function(c, "toImage", _n_toImage0, None, Compiled, qt_QPixmap_toImage_QImage_QPixmap, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QPixmap"), End), + new Function(c, "transformed", _n_transformed0, None, Compiled, qt_QPixmap_transformed_QPixmap_QPixmap_QTransform_int, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QPixmap"), new Param(c, "transform", "qt.QTransform"), new Param(c, "mode", "int", Value((int)Qt::FastTransformation)), End), + new Function(c, "width", _n_width0, None, Compiled, qt_QPixmap_width_int_QPixmap, Return, "int", Parameters, new Param(c, "this", "qt.QPixmap"), End), + // MISSING: QVariant ("QVariant operator"; QPixmap this) + // static functions + new Function(c, "defaultDepth", _n_defaultDepth0, None, Compiled, qt_QPixmap_defaultDepth_int, Return, "int", End), + new Function(c, "fromImage", _n_fromImage0, None, Compiled, qt_QPixmap_fromImage_QPixmap_QImage_int, Return, "qt.QPixmap", Parameters, new Param(c, "image", "qt.QImage"), new Param(c, "flags", "int", Value((int)Qt::AutoColor)), End), + // MISSING: fromImageReader (QPixmap; "QImageReader *" imageReader, flags Qt::ImageConversionFlags flags) + new Function(c, "trueMatrix", _n_trueMatrix0, None, Compiled, qt_QPixmap_trueMatrix_QTransform_QTransform_int_int, Return, "qt.QTransform", Parameters, new Param(c, "matrix", "qt.QTransform"), new Param(c, "width", "int"), new Param(c, "height", "int"), End), + EndArguments); +globalScope()->addSymbols( + new Function(c, "!", _n_operatorBang_0, Op, Compiled, qt_QPixmap_operatorBang__bool_QPixmap, Return, "bool", Parameters, new Param(c, "this", "qt.QPixmap"), End), + // MISSING: = (QPixmap; QPixmap this, QPixmap pixmap) + // MISSING: = (QPixmap; QPixmap this, "QPixmap & &" other) + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QPlainTextEditType.cpp b/src/lib/mu/MuQt6/QPlainTextEditType.cpp new file mode 100644 index 000000000..aec46ad29 --- /dev/null +++ b/src/lib/mu/MuQt6/QPlainTextEditType.cpp @@ -0,0 +1,1595 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QPlainTextEdit::~MuQt_QPlainTextEdit() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QPlainTextEdit::MuQt_QPlainTextEdit(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QPlainTextEdit(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPlainTextEdit")); +} + +MuQt_QPlainTextEdit::MuQt_QPlainTextEdit(Pointer muobj, const CallEnvironment* ce, const QString & text, QWidget * parent) + : QPlainTextEdit(text, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPlainTextEdit")); +} + +QVariant MuQt_QPlainTextEdit::loadResource(int type, const QUrl & name) +{ + if (!_env) return QPlainTextEdit::loadResource(type, name); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(type); + args[2] = Value(makeqtype(c,name,"qt.QUrl")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QPlainTextEdit::loadResource(type, name); + } +} + +QVariant MuQt_QPlainTextEdit::inputMethodQuery(Qt::InputMethodQuery property) const +{ + if (!_env) return QPlainTextEdit::inputMethodQuery(property); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(property)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QPlainTextEdit::inputMethodQuery(property); + } +} + +bool MuQt_QPlainTextEdit::canInsertFromMimeData(const QMimeData * source) const +{ + if (!_env) return QPlainTextEdit::canInsertFromMimeData(source); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,source,"qt.QMimeData")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QPlainTextEdit::canInsertFromMimeData(source); + } +} + +QMimeData * MuQt_QPlainTextEdit::createMimeDataFromSelection() const +{ + if (!_env) return QPlainTextEdit::createMimeDataFromSelection(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QPlainTextEdit::createMimeDataFromSelection(); + } +} + +void MuQt_QPlainTextEdit::insertFromMimeData(const QMimeData * source) +{ + if (!_env) { QPlainTextEdit::insertFromMimeData(source); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,source,"qt.QMimeData")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::insertFromMimeData(source); + } +} + +void MuQt_QPlainTextEdit::changeEvent(QEvent * e) +{ + if (!_env) { QPlainTextEdit::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::changeEvent(e); + } +} + +void MuQt_QPlainTextEdit::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QPlainTextEdit::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::contextMenuEvent(event); + } +} + +void MuQt_QPlainTextEdit::dragEnterEvent(QDragEnterEvent * e) +{ + if (!_env) { QPlainTextEdit::dragEnterEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::dragEnterEvent(e); + } +} + +void MuQt_QPlainTextEdit::dragLeaveEvent(QDragLeaveEvent * e) +{ + if (!_env) { QPlainTextEdit::dragLeaveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::dragLeaveEvent(e); + } +} + +void MuQt_QPlainTextEdit::dragMoveEvent(QDragMoveEvent * e) +{ + if (!_env) { QPlainTextEdit::dragMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::dragMoveEvent(e); + } +} + +void MuQt_QPlainTextEdit::dropEvent(QDropEvent * e) +{ + if (!_env) { QPlainTextEdit::dropEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::dropEvent(e); + } +} + +void MuQt_QPlainTextEdit::focusInEvent(QFocusEvent * e) +{ + if (!_env) { QPlainTextEdit::focusInEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::focusInEvent(e); + } +} + +bool MuQt_QPlainTextEdit::focusNextPrevChild(bool next) +{ + if (!_env) return QPlainTextEdit::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QPlainTextEdit::focusNextPrevChild(next); + } +} + +void MuQt_QPlainTextEdit::focusOutEvent(QFocusEvent * e) +{ + if (!_env) { QPlainTextEdit::focusOutEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::focusOutEvent(e); + } +} + +void MuQt_QPlainTextEdit::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QPlainTextEdit::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::keyPressEvent(e); + } +} + +void MuQt_QPlainTextEdit::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QPlainTextEdit::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::keyReleaseEvent(e); + } +} + +void MuQt_QPlainTextEdit::mouseDoubleClickEvent(QMouseEvent * e) +{ + if (!_env) { QPlainTextEdit::mouseDoubleClickEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::mouseDoubleClickEvent(e); + } +} + +void MuQt_QPlainTextEdit::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QPlainTextEdit::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::mouseMoveEvent(e); + } +} + +void MuQt_QPlainTextEdit::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QPlainTextEdit::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::mousePressEvent(e); + } +} + +void MuQt_QPlainTextEdit::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QPlainTextEdit::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::mouseReleaseEvent(e); + } +} + +void MuQt_QPlainTextEdit::paintEvent(QPaintEvent * e) +{ + if (!_env) { QPlainTextEdit::paintEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::paintEvent(e); + } +} + +void MuQt_QPlainTextEdit::resizeEvent(QResizeEvent * e) +{ + if (!_env) { QPlainTextEdit::resizeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::resizeEvent(e); + } +} + +void MuQt_QPlainTextEdit::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QPlainTextEdit::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::scrollContentsBy(dx, dy); + } +} + +void MuQt_QPlainTextEdit::showEvent(QShowEvent * _p13) +{ + if (!_env) { QPlainTextEdit::showEvent(_p13); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p13,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::showEvent(_p13); + } +} + +void MuQt_QPlainTextEdit::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QPlainTextEdit::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::wheelEvent(e); + } +} + +void MuQt_QPlainTextEdit::setupViewport(QWidget * viewport) +{ + if (!_env) { QPlainTextEdit::setupViewport(viewport); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,viewport,"qt.QWidget")); + Value rval = _env->call(F, args); + } + else + { + QPlainTextEdit::setupViewport(viewport); + } +} + +QSize MuQt_QPlainTextEdit::minimumSizeHint() const +{ + if (!_env) return QPlainTextEdit::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QPlainTextEdit::minimumSizeHint(); + } +} + +QSize MuQt_QPlainTextEdit::sizeHint() const +{ + if (!_env) return QPlainTextEdit::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QPlainTextEdit::sizeHint(); + } +} + +bool MuQt_QPlainTextEdit::viewportEvent(QEvent * event) +{ + if (!_env) return QPlainTextEdit::viewportEvent(event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QPlainTextEdit::viewportEvent(event); + } +} + +QSize MuQt_QPlainTextEdit::viewportSizeHint() const +{ + if (!_env) return QPlainTextEdit::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QPlainTextEdit::viewportSizeHint(); + } +} + +bool MuQt_QPlainTextEdit::event(QEvent * event_) +{ + if (!_env) return QPlainTextEdit::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QPlainTextEdit::event(event_); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QPlainTextEditType::QPlainTextEditType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QPlainTextEditType::~QPlainTextEditType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QPlainTextEdit_QPlainTextEdit_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QPlainTextEdit* w = object(widget)) + { + QPlainTextEditType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPlainTextEdit"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QPlainTextEdit_QPlainTextEdit_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QPlainTextEdit(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QPlainTextEdit(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QPlainTextEdit_anchorAt_string_QPlainTextEdit_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return makestring(c,arg0->anchorAt(arg1)); +} + +bool qt_QPlainTextEdit_canPaste_bool_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return arg0->canPaste(); +} + +Pointer qt_QPlainTextEdit_createStandardContextMenu_QMenu_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return makeinstance(c, arg0->createStandardContextMenu(), "qt.QMenu"); +} + +Pointer qt_QPlainTextEdit_createStandardContextMenu_QMenu_QPlainTextEdit_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_position); + return makeinstance(c, arg0->createStandardContextMenu(arg1), "qt.QMenu"); +} + +Pointer qt_QPlainTextEdit_cursorForPosition_QTextCursor_QPlainTextEdit_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return makeqtype(c,arg0->cursorForPosition(arg1),"qt.QTextCursor"); +} + +Pointer qt_QPlainTextEdit_cursorRect_QRect_QPlainTextEdit_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cursor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QTextCursor arg1 = getqtype(param_cursor); + return makeqtype(c,arg0->cursorRect(arg1),"qt.QRect"); +} + +Pointer qt_QPlainTextEdit_cursorRect_QRect_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return makeqtype(c,arg0->cursorRect(),"qt.QRect"); +} + +Pointer qt_QPlainTextEdit_document_QTextDocument_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return makeinstance(c, arg0->document(), "qt.QTextDocument"); +} + +void qt_QPlainTextEdit_ensureCursorVisible_void_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + arg0->ensureCursorVisible(); +} + +bool qt_QPlainTextEdit_find_bool_QPlainTextEdit_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_exp, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QString arg1 = qstring(param_exp); + QTextDocument::FindFlags arg2 = (QTextDocument::FindFlags)(param_options); + return arg0->find(arg1, arg2); +} + +bool qt_QPlainTextEdit_find_bool_QPlainTextEdit_QRegularExpression_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_exp, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QRegularExpression arg1 = getqtype(param_exp); + QTextDocument::FindFlags arg2 = (QTextDocument::FindFlags)(param_options); + return arg0->find(arg1, arg2); +} + +Pointer qt_QPlainTextEdit_loadResource_QVariant_QPlainTextEdit_int_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + int arg1 = (int)(param_type); + const QUrl arg2 = getqtype(param_name); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QPlainTextEdit::loadResource(arg1, arg2),"qt.QVariant") : makeqtype(c,arg0->loadResource(arg1, arg2),"qt.QVariant"); +} + +void qt_QPlainTextEdit_moveCursor_void_QPlainTextEdit_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_operation, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QTextCursor::MoveOperation arg1 = (QTextCursor::MoveOperation)(param_operation); + QTextCursor::MoveMode arg2 = (QTextCursor::MoveMode)(param_mode); + arg0->moveCursor(arg1, arg2); +} + +void qt_QPlainTextEdit_setDocument_void_QPlainTextEdit_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_document) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QTextDocument * arg1 = object(param_document); + arg0->setDocument(arg1); +} + +void qt_QPlainTextEdit_setTextCursor_void_QPlainTextEdit_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cursor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QTextCursor arg1 = getqtype(param_cursor); + arg0->setTextCursor(arg1); +} + +Pointer qt_QPlainTextEdit_textCursor_QTextCursor_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return makeqtype(c,arg0->textCursor(),"qt.QTextCursor"); +} + +Pointer qt_QPlainTextEdit_toPlainText_string_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return makestring(c,arg0->toPlainText()); +} + +Pointer qt_QPlainTextEdit_inputMethodQuery_QVariant_QPlainTextEdit_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_property) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_property); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QPlainTextEdit::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QPlainTextEdit_blockBoundingGeometry_QRectF_QPlainTextEdit_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_block) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QTextBlock arg1 = getqtype(param_block); + return makeqtype(c,((MuQt_QPlainTextEdit*)arg0)->blockBoundingGeometry_pub(arg1),"qt.QRectF"); +} + +Pointer qt_QPlainTextEdit_blockBoundingRect_QRectF_QPlainTextEdit_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_block) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QTextBlock arg1 = getqtype(param_block); + return makeqtype(c,((MuQt_QPlainTextEdit*)arg0)->blockBoundingRect_pub(arg1),"qt.QRectF"); +} + +bool qt_QPlainTextEdit_canInsertFromMimeData_bool_QPlainTextEdit_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_source) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QMimeData * arg1 = object(param_source); + return isMuQtObject(arg0) ? ((MuQt_QPlainTextEdit*)arg0)->canInsertFromMimeData_pub_parent(arg1) : ((MuQt_QPlainTextEdit*)arg0)->canInsertFromMimeData_pub(arg1); +} + +Pointer qt_QPlainTextEdit_contentOffset_QPointF_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return makeqtype(c,((MuQt_QPlainTextEdit*)arg0)->contentOffset_pub(),"qt.QPointF"); +} + +Pointer qt_QPlainTextEdit_createMimeDataFromSelection_QMimeData_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, ((MuQt_QPlainTextEdit*)arg0)->createMimeDataFromSelection_pub_parent(), "qt.QMimeData") : makeinstance(c, ((MuQt_QPlainTextEdit*)arg0)->createMimeDataFromSelection_pub(), "qt.QMimeData"); +} + +Pointer qt_QPlainTextEdit_firstVisibleBlock_QTextBlock_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return makeqtype(c,((MuQt_QPlainTextEdit*)arg0)->firstVisibleBlock_pub(),"qt.QTextBlock"); +} + +void qt_QPlainTextEdit_insertFromMimeData_void_QPlainTextEdit_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_source) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + const QMimeData * arg1 = object(param_source); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->insertFromMimeData_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->insertFromMimeData_pub(arg1); +} + +void qt_QPlainTextEdit_changeEvent_void_QPlainTextEdit_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->changeEvent_pub(arg1); +} + +void qt_QPlainTextEdit_contextMenuEvent_void_QPlainTextEdit_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QPlainTextEdit_dragEnterEvent_void_QPlainTextEdit_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QPlainTextEdit_dragLeaveEvent_void_QPlainTextEdit_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QPlainTextEdit_dragMoveEvent_void_QPlainTextEdit_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QPlainTextEdit_dropEvent_void_QPlainTextEdit_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->dropEvent_pub(arg1); +} + +void qt_QPlainTextEdit_focusInEvent_void_QPlainTextEdit_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QPlainTextEdit_focusNextPrevChild_bool_QPlainTextEdit_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QPlainTextEdit*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QPlainTextEdit*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QPlainTextEdit_focusOutEvent_void_QPlainTextEdit_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QPlainTextEdit_keyPressEvent_void_QPlainTextEdit_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QPlainTextEdit_keyReleaseEvent_void_QPlainTextEdit_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QPlainTextEdit_mouseDoubleClickEvent_void_QPlainTextEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QPlainTextEdit_mouseMoveEvent_void_QPlainTextEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QPlainTextEdit_mousePressEvent_void_QPlainTextEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QPlainTextEdit_mouseReleaseEvent_void_QPlainTextEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QPlainTextEdit_paintEvent_void_QPlainTextEdit_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->paintEvent_pub(arg1); +} + +void qt_QPlainTextEdit_resizeEvent_void_QPlainTextEdit_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QPlainTextEdit_scrollContentsBy_void_QPlainTextEdit_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QPlainTextEdit*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +void qt_QPlainTextEdit_showEvent_void_QPlainTextEdit_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p13) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param__p13); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->showEvent_pub(arg1); +} + +void qt_QPlainTextEdit_wheelEvent_void_QPlainTextEdit_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPlainTextEdit*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QPlainTextEdit*)arg0)->wheelEvent_pub(arg1); +} + +void qt_QPlainTextEdit_setupViewport_void_QPlainTextEdit_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_viewport) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QWidget * arg1 = object(param_viewport); + if (isMuQtObject(arg0)) arg0->QPlainTextEdit::setupViewport(arg1); + else arg0->setupViewport(arg1); +} + +Pointer qt_QPlainTextEdit_minimumSizeHint_QSize_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QPlainTextEdit::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QPlainTextEdit_sizeHint_QSize_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QPlainTextEdit::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +bool qt_QPlainTextEdit_viewportEvent_bool_QPlainTextEdit_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QPlainTextEdit*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QPlainTextEdit*)arg0)->viewportEvent_pub(arg1); +} + +Pointer qt_QPlainTextEdit_viewportSizeHint_QSize_QPlainTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QPlainTextEdit*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QPlainTextEdit*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +bool qt_QPlainTextEdit_event_bool_QPlainTextEdit_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPlainTextEdit* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QPlainTextEdit*)arg0)->event_pub_parent(arg1) : ((MuQt_QPlainTextEdit*)arg0)->event_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QPlainTextEdit0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPlainTextEdit1, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_anchorAt0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_anchorAt_string_QPlainTextEdit_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canPaste0, bool) +{ + NODE_RETURN(qt_QPlainTextEdit_canPaste_bool_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createStandardContextMenu0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_createStandardContextMenu_QMenu_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createStandardContextMenu1, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_createStandardContextMenu_QMenu_QPlainTextEdit_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cursorForPosition0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_cursorForPosition_QTextCursor_QPlainTextEdit_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cursorRect0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_cursorRect_QRect_QPlainTextEdit_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cursorRect1, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_cursorRect_QRect_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_document0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_document_QTextDocument_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_ensureCursorVisible0, void) +{ + qt_QPlainTextEdit_ensureCursorVisible_void_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_find0, bool) +{ + NODE_RETURN(qt_QPlainTextEdit_find_bool_QPlainTextEdit_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_find1, bool) +{ + NODE_RETURN(qt_QPlainTextEdit_find_bool_QPlainTextEdit_QRegularExpression_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_loadResource0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_loadResource_QVariant_QPlainTextEdit_int_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_moveCursor0, void) +{ + qt_QPlainTextEdit_moveCursor_void_QPlainTextEdit_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setDocument0, void) +{ + qt_QPlainTextEdit_setDocument_void_QPlainTextEdit_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTextCursor0, void) +{ + qt_QPlainTextEdit_setTextCursor_void_QPlainTextEdit_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_textCursor0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_textCursor_QTextCursor_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toPlainText0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_toPlainText_string_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_inputMethodQuery_QVariant_QPlainTextEdit_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_blockBoundingGeometry0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_blockBoundingGeometry_QRectF_QPlainTextEdit_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_blockBoundingRect0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_blockBoundingRect_QRectF_QPlainTextEdit_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canInsertFromMimeData0, bool) +{ + NODE_RETURN(qt_QPlainTextEdit_canInsertFromMimeData_bool_QPlainTextEdit_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contentOffset0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_contentOffset_QPointF_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createMimeDataFromSelection0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_createMimeDataFromSelection_QMimeData_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_firstVisibleBlock0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_firstVisibleBlock_QTextBlock_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertFromMimeData0, void) +{ + qt_QPlainTextEdit_insertFromMimeData_void_QPlainTextEdit_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QPlainTextEdit_changeEvent_void_QPlainTextEdit_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QPlainTextEdit_contextMenuEvent_void_QPlainTextEdit_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QPlainTextEdit_dragEnterEvent_void_QPlainTextEdit_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QPlainTextEdit_dragLeaveEvent_void_QPlainTextEdit_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QPlainTextEdit_dragMoveEvent_void_QPlainTextEdit_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QPlainTextEdit_dropEvent_void_QPlainTextEdit_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QPlainTextEdit_focusInEvent_void_QPlainTextEdit_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QPlainTextEdit_focusNextPrevChild_bool_QPlainTextEdit_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QPlainTextEdit_focusOutEvent_void_QPlainTextEdit_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QPlainTextEdit_keyPressEvent_void_QPlainTextEdit_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QPlainTextEdit_keyReleaseEvent_void_QPlainTextEdit_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QPlainTextEdit_mouseDoubleClickEvent_void_QPlainTextEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QPlainTextEdit_mouseMoveEvent_void_QPlainTextEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QPlainTextEdit_mousePressEvent_void_QPlainTextEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QPlainTextEdit_mouseReleaseEvent_void_QPlainTextEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QPlainTextEdit_paintEvent_void_QPlainTextEdit_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QPlainTextEdit_resizeEvent_void_QPlainTextEdit_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QPlainTextEdit_scrollContentsBy_void_QPlainTextEdit_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QPlainTextEdit_showEvent_void_QPlainTextEdit_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QPlainTextEdit_wheelEvent_void_QPlainTextEdit_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setupViewport0, void) +{ + qt_QPlainTextEdit_setupViewport_void_QPlainTextEdit_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_minimumSizeHint_QSize_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_sizeHint_QSize_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QPlainTextEdit_viewportEvent_bool_QPlainTextEdit_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QPlainTextEdit_viewportSizeHint_QSize_QPlainTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QPlainTextEdit_event_bool_QPlainTextEdit_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QPlainTextEditType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QPlainTextEdit_QPlainTextEdit_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QPlainTextEdit", _n_QPlainTextEdit0, None, Compiled, qt_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_QWidget, Return, "qt.QPlainTextEdit", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QPlainTextEdit", _n_QPlainTextEdit1, None, Compiled, qt_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_QPlainTextEdit_string_QWidget, Return, "qt.QPlainTextEdit", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "anchorAt", _n_anchorAt0, None, Compiled, qt_QPlainTextEdit_anchorAt_string_QPlainTextEdit_QPoint, Return, "string", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "pos", "qt.QPoint"), End), + // PROP: backgroundVisible (bool; QPlainTextEdit this) + // PROP: blockCount (int; QPlainTextEdit this) + new Function(c, "canPaste", _n_canPaste0, None, Compiled, qt_QPlainTextEdit_canPaste_bool_QPlainTextEdit, Return, "bool", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + // PROP: centerOnScroll (bool; QPlainTextEdit this) + new Function(c, "createStandardContextMenu", _n_createStandardContextMenu0, None, Compiled, qt_QPlainTextEdit_createStandardContextMenu_QMenu_QPlainTextEdit, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + new Function(c, "createStandardContextMenu", _n_createStandardContextMenu1, None, Compiled, qt_QPlainTextEdit_createStandardContextMenu_QMenu_QPlainTextEdit_QPoint, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "position", "qt.QPoint"), End), + // MISSING: currentCharFormat ("QTextCharFormat"; QPlainTextEdit this) + new Function(c, "cursorForPosition", _n_cursorForPosition0, None, Compiled, qt_QPlainTextEdit_cursorForPosition_QTextCursor_QPlainTextEdit_QPoint, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "cursorRect", _n_cursorRect0, None, Compiled, qt_QPlainTextEdit_cursorRect_QRect_QPlainTextEdit_QTextCursor, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "cursor", "qt.QTextCursor"), End), + new Function(c, "cursorRect", _n_cursorRect1, None, Compiled, qt_QPlainTextEdit_cursorRect_QRect_QPlainTextEdit, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + // PROP: cursorWidth (int; QPlainTextEdit this) + new Function(c, "document", _n_document0, None, Compiled, qt_QPlainTextEdit_document_QTextDocument_QPlainTextEdit, Return, "qt.QTextDocument", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + // PROP: documentTitle (string; QPlainTextEdit this) + new Function(c, "ensureCursorVisible", _n_ensureCursorVisible0, None, Compiled, qt_QPlainTextEdit_ensureCursorVisible_void_QPlainTextEdit, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + new Function(c, "find", _n_find0, None, Compiled, qt_QPlainTextEdit_find_bool_QPlainTextEdit_string_int, Return, "bool", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "exp", "string"), new Param(c, "options", "int", Value((int)QTextDocument::FindFlags())), End), + new Function(c, "find", _n_find1, None, Compiled, qt_QPlainTextEdit_find_bool_QPlainTextEdit_QRegularExpression_int, Return, "bool", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "exp", "qt.QRegularExpression"), new Param(c, "options", "int", Value((int)QTextDocument::FindFlags())), End), + // PROP: isReadOnly (bool; QPlainTextEdit this) + // PROP: isUndoRedoEnabled (bool; QPlainTextEdit this) + // PROP: lineWrapMode (flags QPlainTextEdit::LineWrapMode; QPlainTextEdit this) + _func[0] = new MemberFunction(c, "loadResource", _n_loadResource0, None, Compiled, qt_QPlainTextEdit_loadResource_QVariant_QPlainTextEdit_int_QUrl, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "type", "int"), new Param(c, "name", "qt.QUrl"), End), + // PROP: maximumBlockCount (int; QPlainTextEdit this) + // MISSING: mergeCurrentCharFormat (void; QPlainTextEdit this, "const QTextCharFormat &" modifier) + new Function(c, "moveCursor", _n_moveCursor0, None, Compiled, qt_QPlainTextEdit_moveCursor_void_QPlainTextEdit_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "operation", "int"), new Param(c, "mode", "int", Value((int)QTextCursor::MoveAnchor)), End), + // PROP: overwriteMode (bool; QPlainTextEdit this) + // PROP: placeholderText (string; QPlainTextEdit this) + // MISSING: print (void; QPlainTextEdit this, "QPagedPaintDevice *" printer) + // PROP: setBackgroundVisible (void; QPlainTextEdit this, bool visible) + // PROP: setCenterOnScroll (void; QPlainTextEdit this, bool enabled) + // MISSING: setCurrentCharFormat (void; QPlainTextEdit this, "const QTextCharFormat &" format) + // PROP: setCursorWidth (void; QPlainTextEdit this, int width) + new Function(c, "setDocument", _n_setDocument0, None, Compiled, qt_QPlainTextEdit_setDocument_void_QPlainTextEdit_QTextDocument, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "document", "qt.QTextDocument"), End), + // PROP: setDocumentTitle (void; QPlainTextEdit this, string title) + // PROP: setLineWrapMode (void; QPlainTextEdit this, flags QPlainTextEdit::LineWrapMode mode) + // PROP: setMaximumBlockCount (void; QPlainTextEdit this, int maximum) + // PROP: setOverwriteMode (void; QPlainTextEdit this, bool overwrite) + // PROP: setPlaceholderText (void; QPlainTextEdit this, string placeholderText) + // PROP: setReadOnly (void; QPlainTextEdit this, bool ro) + // PROP: setTabChangesFocus (void; QPlainTextEdit this, bool b) + // PROP: setTabStopDistance (void; QPlainTextEdit this, double distance) + new Function(c, "setTextCursor", _n_setTextCursor0, None, Compiled, qt_QPlainTextEdit_setTextCursor_void_QPlainTextEdit_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "cursor", "qt.QTextCursor"), End), + // PROP: setTextInteractionFlags (void; QPlainTextEdit this, flags Qt::TextInteractionFlags flags) + // PROP: setUndoRedoEnabled (void; QPlainTextEdit this, bool enable) + // PROP: setWordWrapMode (void; QPlainTextEdit this, flags QTextOption::WrapMode policy) + // PROP: tabChangesFocus (bool; QPlainTextEdit this) + // PROP: tabStopDistance (double; QPlainTextEdit this) + new Function(c, "textCursor", _n_textCursor0, None, Compiled, qt_QPlainTextEdit_textCursor_QTextCursor_QPlainTextEdit, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + // PROP: textInteractionFlags (flags Qt::TextInteractionFlags; QPlainTextEdit this) + new Function(c, "toPlainText", _n_toPlainText0, None, Compiled, qt_QPlainTextEdit_toPlainText_string_QPlainTextEdit, Return, "string", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + // PROP: wordWrapMode (flags QTextOption::WrapMode; QPlainTextEdit this) + _func[1] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QPlainTextEdit_inputMethodQuery_QVariant_QPlainTextEdit_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "property", "int"), End), + new Function(c, "blockBoundingGeometry", _n_blockBoundingGeometry0, None, Compiled, qt_QPlainTextEdit_blockBoundingGeometry_QRectF_QPlainTextEdit_QTextBlock, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "block", "qt.QTextBlock"), End), + new Function(c, "blockBoundingRect", _n_blockBoundingRect0, None, Compiled, qt_QPlainTextEdit_blockBoundingRect_QRectF_QPlainTextEdit_QTextBlock, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "block", "qt.QTextBlock"), End), + _func[2] = new MemberFunction(c, "canInsertFromMimeData", _n_canInsertFromMimeData0, None, Compiled, qt_QPlainTextEdit_canInsertFromMimeData_bool_QPlainTextEdit_QMimeData, Return, "bool", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "source", "qt.QMimeData"), End), + new Function(c, "contentOffset", _n_contentOffset0, None, Compiled, qt_QPlainTextEdit_contentOffset_QPointF_QPlainTextEdit, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + _func[3] = new MemberFunction(c, "createMimeDataFromSelection", _n_createMimeDataFromSelection0, None, Compiled, qt_QPlainTextEdit_createMimeDataFromSelection_QMimeData_QPlainTextEdit, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + new Function(c, "firstVisibleBlock", _n_firstVisibleBlock0, None, Compiled, qt_QPlainTextEdit_firstVisibleBlock_QTextBlock_QPlainTextEdit, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + _func[4] = new MemberFunction(c, "insertFromMimeData", _n_insertFromMimeData0, None, Compiled, qt_QPlainTextEdit_insertFromMimeData_void_QPlainTextEdit_QMimeData, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "source", "qt.QMimeData"), End), + _func[5] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QPlainTextEdit_changeEvent_void_QPlainTextEdit_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QEvent"), End), + _func[6] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QPlainTextEdit_contextMenuEvent_void_QPlainTextEdit_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[7] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QPlainTextEdit_dragEnterEvent_void_QPlainTextEdit_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QDragEnterEvent"), End), + _func[8] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QPlainTextEdit_dragLeaveEvent_void_QPlainTextEdit_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QDragLeaveEvent"), End), + _func[9] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QPlainTextEdit_dragMoveEvent_void_QPlainTextEdit_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QDragMoveEvent"), End), + _func[10] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QPlainTextEdit_dropEvent_void_QPlainTextEdit_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QDropEvent"), End), + _func[11] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QPlainTextEdit_focusInEvent_void_QPlainTextEdit_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[12] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QPlainTextEdit_focusNextPrevChild_bool_QPlainTextEdit_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "next", "bool"), End), + _func[13] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QPlainTextEdit_focusOutEvent_void_QPlainTextEdit_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QPlainTextEdit this, "QInputMethodEvent *" e) // protected + _func[14] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QPlainTextEdit_keyPressEvent_void_QPlainTextEdit_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[15] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QPlainTextEdit_keyReleaseEvent_void_QPlainTextEdit_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[16] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QPlainTextEdit_mouseDoubleClickEvent_void_QPlainTextEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[17] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QPlainTextEdit_mouseMoveEvent_void_QPlainTextEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[18] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QPlainTextEdit_mousePressEvent_void_QPlainTextEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[19] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QPlainTextEdit_mouseReleaseEvent_void_QPlainTextEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[20] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QPlainTextEdit_paintEvent_void_QPlainTextEdit_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QPaintEvent"), End), + _func[21] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QPlainTextEdit_resizeEvent_void_QPlainTextEdit_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QResizeEvent"), End), + _func[22] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QPlainTextEdit_scrollContentsBy_void_QPlainTextEdit_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[23] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QPlainTextEdit_showEvent_void_QPlainTextEdit_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "_p13", "qt.QShowEvent"), End), + _func[24] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QPlainTextEdit_wheelEvent_void_QPlainTextEdit_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "e", "qt.QWheelEvent"), End), + _func[25] = new MemberFunction(c, "setupViewport", _n_setupViewport0, None, Compiled, qt_QPlainTextEdit_setupViewport_void_QPlainTextEdit_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "viewport", "qt.QWidget"), End), + _func[26] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QPlainTextEdit_minimumSizeHint_QSize_QPlainTextEdit, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + _func[27] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QPlainTextEdit_sizeHint_QSize_QPlainTextEdit, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + _func[28] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QPlainTextEdit_viewportEvent_bool_QPlainTextEdit_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "event", "qt.QEvent"), End), + _func[29] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QPlainTextEdit_viewportSizeHint_QSize_QPlainTextEdit, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), End), + _func[30] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QPlainTextEdit_event_bool_QPlainTextEdit_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QPlainTextEdit"), new Param(c, "event_", "qt.QEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QPlainTextEdit::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QPointFType.cpp b/src/lib/mu/MuQt6/QPointFType.cpp new file mode 100644 index 000000000..3912fcb0a --- /dev/null +++ b/src/lib/mu/MuQt6/QPointFType.cpp @@ -0,0 +1,323 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QPointFType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QPointFType::QPointFType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QPointFType::~QPointFType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QPointFType::Instance* i = new QPointFType::Instance((Class*)NODE_THIS.type()); + QPointFType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QPointFType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QPointFType::finalizer, 0, 0, 0); +} + +void +QPointFType::finalizer (void* obj, void* data) +{ + QPointFType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QPointF_QPointF_QPointF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QPointF()); + return param_this; +} + +Pointer qt_QPointF_QPointF_QPointF_QPointF_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg1 = getqtype(param_point); + setqtype(param_this,QPointF(arg1)); + return param_this; +} + +Pointer qt_QPointF_QPointF_QPointF_QPointF_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_xpos, double param_ypos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg1 = (double)(param_xpos); + qreal arg2 = (double)(param_ypos); + setqtype(param_this,QPointF(arg1, arg2)); + return param_this; +} + +bool qt_QPointF_isNull_bool_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + return arg0.isNull(); +} + +double qt_QPointF_manhattanLength_double_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + return arg0.manhattanLength(); +} + +void qt_QPointF_setX_void_QPointF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + arg0.setX(arg1); + setqtype(param_this,arg0); +} + +void qt_QPointF_setY_void_QPointF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_y); + arg0.setY(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QPointF_toPoint_QPoint_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + return makeqtype(c,arg0.toPoint(),"qt.QPoint"); +} + +Pointer qt_QPointF_transposed_QPointF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + return makeqtype(c,arg0.transposed(),"qt.QPointF"); +} + +double qt_QPointF_x_double_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + return arg0.x(); +} + +double qt_QPointF_y_double_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + return arg0.y(); +} + +Pointer qt_QPointF_operatorPlus_EQ__QPointF_QPointF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_point); + return makeqtype(c,arg0.operator+=(arg1),"qt.QPointF"); +} + +Pointer qt_QPointF_operatorMinus_EQ__QPointF_QPointF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_point); + return makeqtype(c,arg0.operator-=(arg1),"qt.QPointF"); +} + +Pointer qt_QPointF_operatorSlash_EQ__QPointF_QPointF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_divisor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_divisor); + return makeqtype(c,arg0.operator/=(arg1),"qt.QPointF"); +} + + +static NODE_IMPLEMENTATION(_n_QPointF0, Pointer) +{ + NODE_RETURN(qt_QPointF_QPointF_QPointF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPointF1, Pointer) +{ + NODE_RETURN(qt_QPointF_QPointF_QPointF_QPointF_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPointF2, Pointer) +{ + NODE_RETURN(qt_QPointF_QPointF_QPointF_QPointF_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QPointF_isNull_bool_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_manhattanLength0, double) +{ + NODE_RETURN(qt_QPointF_manhattanLength_double_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setX0, void) +{ + qt_QPointF_setX_void_QPointF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setY0, void) +{ + qt_QPointF_setY_void_QPointF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_toPoint0, Pointer) +{ + NODE_RETURN(qt_QPointF_toPoint_QPoint_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_transposed0, Pointer) +{ + NODE_RETURN(qt_QPointF_transposed_QPointF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_x0, double) +{ + NODE_RETURN(qt_QPointF_x_double_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_y0, double) +{ + NODE_RETURN(qt_QPointF_y_double_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QPointF_operatorPlus_EQ__QPointF_QPointF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorMinus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QPointF_operatorMinus_EQ__QPointF_QPointF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorSlash_EQ_0, Pointer) +{ + NODE_RETURN(qt_QPointF_operatorSlash_EQ__QPointF_QPointF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double))); +} + + + +void +QPointFType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QPointF", _n_QPointF0, None, Compiled, qt_QPointF_QPointF_QPointF_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QPointF"), End), + new Function(c, "QPointF", _n_QPointF1, None, Compiled, qt_QPointF_QPointF_QPointF_QPointF_QPoint, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QPointF"), new Param(c, "point", "qt.QPoint"), End), + new Function(c, "QPointF", _n_QPointF2, None, Compiled, qt_QPointF_QPointF_QPointF_QPointF_double_double, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QPointF"), new Param(c, "xpos", "double"), new Param(c, "ypos", "double"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QPointF_isNull_bool_QPointF, Return, "bool", Parameters, new Param(c, "this", "qt.QPointF"), End), + new Function(c, "manhattanLength", _n_manhattanLength0, None, Compiled, qt_QPointF_manhattanLength_double_QPointF, Return, "double", Parameters, new Param(c, "this", "qt.QPointF"), End), + // MISSING: rx ("qreal &"; QPointF this) + // MISSING: ry ("qreal &"; QPointF this) + new Function(c, "setX", _n_setX0, None, Compiled, qt_QPointF_setX_void_QPointF_double, Return, "void", Parameters, new Param(c, "this", "qt.QPointF"), new Param(c, "x", "double"), End), + new Function(c, "setY", _n_setY0, None, Compiled, qt_QPointF_setY_void_QPointF_double, Return, "void", Parameters, new Param(c, "this", "qt.QPointF"), new Param(c, "y", "double"), End), + // MISSING: toCGPoint ("CGPoint"; QPointF this) + new Function(c, "toPoint", _n_toPoint0, None, Compiled, qt_QPointF_toPoint_QPoint_QPointF, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QPointF"), End), + new Function(c, "transposed", _n_transposed0, None, Compiled, qt_QPointF_transposed_QPointF_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QPointF"), End), + new Function(c, "x", _n_x0, None, Compiled, qt_QPointF_x_double_QPointF, Return, "double", Parameters, new Param(c, "this", "qt.QPointF"), End), + new Function(c, "y", _n_y0, None, Compiled, qt_QPointF_y_double_QPointF, Return, "double", Parameters, new Param(c, "this", "qt.QPointF"), End), + // MISSING: = ("QPointF & operator*"; QPointF this, double factor) + // static functions + // MISSING: fromCGPoint (QPointF; "CGPoint" point) + EndArguments); +globalScope()->addSymbols( + new Function(c, "+=", _n_operatorPlus_EQ_0, Op, Compiled, qt_QPointF_operatorPlus_EQ__QPointF_QPointF_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QPointF"), new Param(c, "point", "qt.QPointF"), End), + new Function(c, "-=", _n_operatorMinus_EQ_0, Op, Compiled, qt_QPointF_operatorMinus_EQ__QPointF_QPointF_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QPointF"), new Param(c, "point", "qt.QPointF"), End), + new Function(c, "/=", _n_operatorSlash_EQ_0, Op, Compiled, qt_QPointF_operatorSlash_EQ__QPointF_QPointF_double, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QPointF"), new Param(c, "divisor", "double"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QPointType.cpp b/src/lib/mu/MuQt6/QPointType.cpp new file mode 100644 index 000000000..281661596 --- /dev/null +++ b/src/lib/mu/MuQt6/QPointType.cpp @@ -0,0 +1,310 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QPointType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QPointType::QPointType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QPointType::~QPointType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QPointType::Instance* i = new QPointType::Instance((Class*)NODE_THIS.type()); + QPointType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QPointType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QPointType::finalizer, 0, 0, 0); +} + +void +QPointType::finalizer (void* obj, void* data) +{ + QPointType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QPoint_QPoint_QPoint_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QPoint()); + return param_this; +} + +Pointer qt_QPoint_QPoint_QPoint_QPoint_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_xpos, int param_ypos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_xpos); + int arg2 = (int)(param_ypos); + setqtype(param_this,QPoint(arg1, arg2)); + return param_this; +} + +bool qt_QPoint_isNull_bool_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + return arg0.isNull(); +} + +int qt_QPoint_manhattanLength_int_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + return arg0.manhattanLength(); +} + +void qt_QPoint_setX_void_QPoint_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + arg0.setX(arg1); + setqtype(param_this,arg0); +} + +void qt_QPoint_setY_void_QPoint_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + int arg1 = (int)(param_y); + arg0.setY(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QPoint_toPointF_QPointF_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + return makeqtype(c,arg0.toPointF(),"qt.QPointF"); +} + +Pointer qt_QPoint_transposed_QPoint_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + return makeqtype(c,arg0.transposed(),"qt.QPoint"); +} + +int qt_QPoint_x_int_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + return arg0.x(); +} + +int qt_QPoint_y_int_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + return arg0.y(); +} + +Pointer qt_QPoint_operatorPlus_EQ__QPoint_QPoint_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_point); + return makeqtype(c,arg0.operator+=(arg1),"qt.QPoint"); +} + +Pointer qt_QPoint_operatorMinus_EQ__QPoint_QPoint_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_point); + return makeqtype(c,arg0.operator-=(arg1),"qt.QPoint"); +} + +Pointer qt_QPoint_operatorSlash_EQ__QPoint_QPoint_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_divisor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg0 = getqtype(param_this); + qreal arg1 = (double)(param_divisor); + return makeqtype(c,arg0.operator/=(arg1),"qt.QPoint"); +} + + +static NODE_IMPLEMENTATION(_n_QPoint0, Pointer) +{ + NODE_RETURN(qt_QPoint_QPoint_QPoint_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPoint1, Pointer) +{ + NODE_RETURN(qt_QPoint_QPoint_QPoint_QPoint_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QPoint_isNull_bool_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_manhattanLength0, int) +{ + NODE_RETURN(qt_QPoint_manhattanLength_int_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setX0, void) +{ + qt_QPoint_setX_void_QPoint_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setY0, void) +{ + qt_QPoint_setY_void_QPoint_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_toPointF0, Pointer) +{ + NODE_RETURN(qt_QPoint_toPointF_QPointF_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_transposed0, Pointer) +{ + NODE_RETURN(qt_QPoint_transposed_QPoint_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_x0, int) +{ + NODE_RETURN(qt_QPoint_x_int_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_y0, int) +{ + NODE_RETURN(qt_QPoint_y_int_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QPoint_operatorPlus_EQ__QPoint_QPoint_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorMinus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QPoint_operatorMinus_EQ__QPoint_QPoint_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorSlash_EQ_0, Pointer) +{ + NODE_RETURN(qt_QPoint_operatorSlash_EQ__QPoint_QPoint_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double))); +} + + + +void +QPointType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QPoint", _n_QPoint0, None, Compiled, qt_QPoint_QPoint_QPoint_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QPoint"), End), + new Function(c, "QPoint", _n_QPoint1, None, Compiled, qt_QPoint_QPoint_QPoint_QPoint_int_int, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QPoint"), new Param(c, "xpos", "int"), new Param(c, "ypos", "int"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QPoint_isNull_bool_QPoint, Return, "bool", Parameters, new Param(c, "this", "qt.QPoint"), End), + new Function(c, "manhattanLength", _n_manhattanLength0, None, Compiled, qt_QPoint_manhattanLength_int_QPoint, Return, "int", Parameters, new Param(c, "this", "qt.QPoint"), End), + // MISSING: rx ("int &"; QPoint this) + // MISSING: ry ("int &"; QPoint this) + new Function(c, "setX", _n_setX0, None, Compiled, qt_QPoint_setX_void_QPoint_int, Return, "void", Parameters, new Param(c, "this", "qt.QPoint"), new Param(c, "x", "int"), End), + new Function(c, "setY", _n_setY0, None, Compiled, qt_QPoint_setY_void_QPoint_int, Return, "void", Parameters, new Param(c, "this", "qt.QPoint"), new Param(c, "y", "int"), End), + // MISSING: toCGPoint ("CGPoint"; QPoint this) + new Function(c, "toPointF", _n_toPointF0, None, Compiled, qt_QPoint_toPointF_QPointF_QPoint, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QPoint"), End), + new Function(c, "transposed", _n_transposed0, None, Compiled, qt_QPoint_transposed_QPoint_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QPoint"), End), + new Function(c, "x", _n_x0, None, Compiled, qt_QPoint_x_int_QPoint, Return, "int", Parameters, new Param(c, "this", "qt.QPoint"), End), + new Function(c, "y", _n_y0, None, Compiled, qt_QPoint_y_int_QPoint, Return, "int", Parameters, new Param(c, "this", "qt.QPoint"), End), + // MISSING: = ("QPoint & operator*"; QPoint this, float factor) + // MISSING: = ("QPoint & operator*"; QPoint this, double factor) + // MISSING: = ("QPoint & operator*"; QPoint this, int factor) + // static functions + EndArguments); +globalScope()->addSymbols( + new Function(c, "+=", _n_operatorPlus_EQ_0, Op, Compiled, qt_QPoint_operatorPlus_EQ__QPoint_QPoint_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QPoint"), new Param(c, "point", "qt.QPoint"), End), + new Function(c, "-=", _n_operatorMinus_EQ_0, Op, Compiled, qt_QPoint_operatorMinus_EQ__QPoint_QPoint_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QPoint"), new Param(c, "point", "qt.QPoint"), End), + new Function(c, "/=", _n_operatorSlash_EQ_0, Op, Compiled, qt_QPoint_operatorSlash_EQ__QPoint_QPoint_double, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QPoint"), new Param(c, "divisor", "double"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QPointerEventType.cpp b/src/lib/mu/MuQt6/QPointerEventType.cpp new file mode 100644 index 000000000..d76b6ad2e --- /dev/null +++ b/src/lib/mu/MuQt6/QPointerEventType.cpp @@ -0,0 +1,170 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QPointerEventType::QPointerEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QPointerEventType::~QPointerEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +bool qt_QPointerEvent_allPointsAccepted_bool_QPointerEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointerEvent * arg0 = getqpointer(param_this); + return arg0->allPointsAccepted(); +} + +bool qt_QPointerEvent_allPointsGrabbed_bool_QPointerEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointerEvent * arg0 = getqpointer(param_this); + return arg0->allPointsGrabbed(); +} + +int qt_QPointerEvent_pointerType_int_QPointerEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointerEvent * arg0 = getqpointer(param_this); + return int(arg0->pointerType()); +} + +void qt_QPointerEvent_setAccepted_void_QPointerEvent_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_accepted) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointerEvent * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_accepted); + arg0->setAccepted(arg1); + setqpointer(param_this,arg0); +} + + +static NODE_IMPLEMENTATION(_n_allPointsAccepted0, bool) +{ + NODE_RETURN(qt_QPointerEvent_allPointsAccepted_bool_QPointerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_allPointsGrabbed0, bool) +{ + NODE_RETURN(qt_QPointerEvent_allPointsGrabbed_bool_QPointerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pointerType0, int) +{ + NODE_RETURN(qt_QPointerEvent_pointerType_int_QPointerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAccepted0, void) +{ + qt_QPointerEvent_setAccepted_void_QPointerEvent_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + + + +void +QPointerEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + // MISSING: addPassiveGrabber (bool; QPointerEvent this, "const QEventPoint &" point, QObject grabber) + new Function(c, "allPointsAccepted", _n_allPointsAccepted0, None, Compiled, qt_QPointerEvent_allPointsAccepted_bool_QPointerEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QPointerEvent"), End), + new Function(c, "allPointsGrabbed", _n_allPointsGrabbed0, None, Compiled, qt_QPointerEvent_allPointsGrabbed_bool_QPointerEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QPointerEvent"), End), + // MISSING: clearPassiveGrabbers (void; QPointerEvent this, "const QEventPoint &" point) + // MISSING: exclusiveGrabber (QObject; QPointerEvent this, "const QEventPoint &" point) + // MISSING: passiveGrabbers ("QList>"; QPointerEvent this, "const QEventPoint &" point) + // MISSING: point ("QEventPoint &"; QPointerEvent this, "qsizetype" i) + // MISSING: pointById ("QEventPoint *"; QPointerEvent this, int id) + // MISSING: pointCount ("qsizetype"; QPointerEvent this) + new Function(c, "pointerType", _n_pointerType0, None, Compiled, qt_QPointerEvent_pointerType_int_QPointerEvent, Return, "int", Parameters, new Param(c, "this", "qt.QPointerEvent"), End), + // MISSING: pointingDevice ("const QPointingDevice *"; QPointerEvent this) + // MISSING: points ("const QList &"; QPointerEvent this) + // MISSING: removePassiveGrabber (bool; QPointerEvent this, "const QEventPoint &" point, QObject grabber) + // MISSING: setExclusiveGrabber (void; QPointerEvent this, "const QEventPoint &" point, QObject exclusiveGrabber) + new MemberFunction(c, "setAccepted", _n_setAccepted0, None, Compiled, qt_QPointerEvent_setAccepted_void_QPointerEvent_bool, Return, "void", Parameters, new Param(c, "this", "qt.QPointerEvent"), new Param(c, "accepted", "bool"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QProcessEnvironmentType.cpp b/src/lib/mu/MuQt6/QProcessEnvironmentType.cpp new file mode 100644 index 000000000..363816fd9 --- /dev/null +++ b/src/lib/mu/MuQt6/QProcessEnvironmentType.cpp @@ -0,0 +1,352 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QProcessEnvironmentType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QProcessEnvironmentType::QProcessEnvironmentType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QProcessEnvironmentType::~QProcessEnvironmentType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QProcessEnvironmentType::Instance* i = new QProcessEnvironmentType::Instance((Class*)NODE_THIS.type()); + QProcessEnvironmentType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QProcessEnvironmentType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QProcessEnvironmentType::finalizer, 0, 0, 0); +} + +void +QProcessEnvironmentType::finalizer (void* obj, void* data) +{ + QProcessEnvironmentType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QProcessEnvironment()); + return param_this; +} + +Pointer qt_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param__p35) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcessEnvironment::Initialization arg1 = (QProcessEnvironment::Initialization)(param__p35); + setqtype(param_this,QProcessEnvironment(arg1)); + return param_this; +} + +void qt_QProcessEnvironment_clear_void_QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcessEnvironment& arg0 = getqtype(param_this); + arg0.clear(); + setqtype(param_this,arg0); +} + +bool qt_QProcessEnvironment_contains_bool_QProcessEnvironment_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QProcessEnvironment& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_name); + return arg0.contains(arg1); +} + +bool qt_QProcessEnvironment_inheritsFromParent_bool_QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QProcessEnvironment& arg0 = getqtype(param_this); + return arg0.inheritsFromParent(); +} + +void qt_QProcessEnvironment_insert_void_QProcessEnvironment_string_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcessEnvironment& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_name); + const QString arg2 = qstring(param_value); + arg0.insert(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QProcessEnvironment_insert_void_QProcessEnvironment_QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcessEnvironment& arg0 = getqtype(param_this); + const QProcessEnvironment arg1 = getqtype(param_e); + arg0.insert(arg1); + setqtype(param_this,arg0); +} + +bool qt_QProcessEnvironment_isEmpty_bool_QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QProcessEnvironment& arg0 = getqtype(param_this); + return arg0.isEmpty(); +} + +Pointer qt_QProcessEnvironment_keys_stringBSB_ESB__QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QProcessEnvironment& arg0 = getqtype(param_this); + return makestringlist(c,arg0.keys()); +} + +void qt_QProcessEnvironment_remove_void_QProcessEnvironment_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcessEnvironment& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_name); + arg0.remove(arg1); + setqtype(param_this,arg0); +} + +void qt_QProcessEnvironment_swap_void_QProcessEnvironment_QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcessEnvironment& arg0 = getqtype(param_this); + QProcessEnvironment arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QProcessEnvironment_toStringList_stringBSB_ESB__QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QProcessEnvironment& arg0 = getqtype(param_this); + return makestringlist(c,arg0.toStringList()); +} + +Pointer qt_QProcessEnvironment_value_string_QProcessEnvironment_string_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name, Pointer param_defaultValue) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QProcessEnvironment& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_name); + const QString arg2 = qstring(param_defaultValue); + return makestring(c,arg0.value(arg1, arg2)); +} + +bool qt_QProcessEnvironment_operatorBang_EQ__bool_QProcessEnvironment_QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QProcessEnvironment& arg0 = getqtype(param_this); + const QProcessEnvironment arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +bool qt_QProcessEnvironment_operatorEQ_EQ__bool_QProcessEnvironment_QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QProcessEnvironment& arg0 = getqtype(param_this); + const QProcessEnvironment arg1 = getqtype(param_other); + return arg0.operator==(arg1); +} + +Pointer qt_QProcessEnvironment_systemEnvironment_QProcessEnvironment(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QProcessEnvironment::systemEnvironment(),"qt.QProcessEnvironment"); +} + + +static NODE_IMPLEMENTATION(_n_QProcessEnvironment0, Pointer) +{ + NODE_RETURN(qt_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QProcessEnvironment1, Pointer) +{ + NODE_RETURN(qt_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QProcessEnvironment_clear_void_QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contains0, bool) +{ + NODE_RETURN(qt_QProcessEnvironment_contains_bool_QProcessEnvironment_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inheritsFromParent0, bool) +{ + NODE_RETURN(qt_QProcessEnvironment_inheritsFromParent_bool_QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insert0, void) +{ + qt_QProcessEnvironment_insert_void_QProcessEnvironment_string_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insert1, void) +{ + qt_QProcessEnvironment_insert_void_QProcessEnvironment_QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QProcessEnvironment_isEmpty_bool_QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keys0, Pointer) +{ + NODE_RETURN(qt_QProcessEnvironment_keys_stringBSB_ESB__QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_remove0, void) +{ + qt_QProcessEnvironment_remove_void_QProcessEnvironment_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QProcessEnvironment_swap_void_QProcessEnvironment_QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toStringList0, Pointer) +{ + NODE_RETURN(qt_QProcessEnvironment_toStringList_stringBSB_ESB__QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_value0, Pointer) +{ + NODE_RETURN(qt_QProcessEnvironment_value_string_QProcessEnvironment_string_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QProcessEnvironment_operatorBang_EQ__bool_QProcessEnvironment_QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QProcessEnvironment_operatorEQ_EQ__bool_QProcessEnvironment_QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_systemEnvironment0, Pointer) +{ + NODE_RETURN(qt_QProcessEnvironment_systemEnvironment_QProcessEnvironment(NODE_THREAD)); +} + + + +void +QProcessEnvironmentType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "Initialization", "int"), + new SymbolicConstant(c, "InheritFromParent", "int", Value(int(QProcessEnvironment::InheritFromParent))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QProcessEnvironment", _n_QProcessEnvironment0, None, Compiled, qt_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment, Return, "qt.QProcessEnvironment", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), End), + new Function(c, "QProcessEnvironment", _n_QProcessEnvironment1, None, Compiled, qt_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment_QProcessEnvironment_int, Return, "qt.QProcessEnvironment", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), new Param(c, "_p35", "int"), End), + // MISSING: QProcessEnvironment (QProcessEnvironment; QProcessEnvironment this, QProcessEnvironment other) + new Function(c, "clear", _n_clear0, None, Compiled, qt_QProcessEnvironment_clear_void_QProcessEnvironment, Return, "void", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), End), + new Function(c, "contains", _n_contains0, None, Compiled, qt_QProcessEnvironment_contains_bool_QProcessEnvironment_string, Return, "bool", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), new Param(c, "name", "string"), End), + new Function(c, "inheritsFromParent", _n_inheritsFromParent0, None, Compiled, qt_QProcessEnvironment_inheritsFromParent_bool_QProcessEnvironment, Return, "bool", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), End), + new Function(c, "insert", _n_insert0, None, Compiled, qt_QProcessEnvironment_insert_void_QProcessEnvironment_string_string, Return, "void", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), new Param(c, "name", "string"), new Param(c, "value", "string"), End), + new Function(c, "insert", _n_insert1, None, Compiled, qt_QProcessEnvironment_insert_void_QProcessEnvironment_QProcessEnvironment, Return, "void", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), new Param(c, "e", "qt.QProcessEnvironment"), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QProcessEnvironment_isEmpty_bool_QProcessEnvironment, Return, "bool", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), End), + new Function(c, "keys", _n_keys0, None, Compiled, qt_QProcessEnvironment_keys_stringBSB_ESB__QProcessEnvironment, Return, "string[]", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), End), + new Function(c, "remove", _n_remove0, None, Compiled, qt_QProcessEnvironment_remove_void_QProcessEnvironment_string, Return, "void", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), new Param(c, "name", "string"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QProcessEnvironment_swap_void_QProcessEnvironment_QProcessEnvironment, Return, "void", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), new Param(c, "other", "qt.QProcessEnvironment"), End), + new Function(c, "toStringList", _n_toStringList0, None, Compiled, qt_QProcessEnvironment_toStringList_stringBSB_ESB__QProcessEnvironment, Return, "string[]", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), End), + new Function(c, "value", _n_value0, None, Compiled, qt_QProcessEnvironment_value_string_QProcessEnvironment_string_string, Return, "string", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), new Param(c, "name", "string"), new Param(c, "defaultValue", "string"), End), + // static functions + new Function(c, "systemEnvironment", _n_systemEnvironment0, None, Compiled, qt_QProcessEnvironment_systemEnvironment_QProcessEnvironment, Return, "qt.QProcessEnvironment", End), + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QProcessEnvironment_operatorBang_EQ__bool_QProcessEnvironment_QProcessEnvironment, Return, "bool", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), new Param(c, "other", "qt.QProcessEnvironment"), End), + // MISSING: = (QProcessEnvironment; QProcessEnvironment this, QProcessEnvironment other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QProcessEnvironment_operatorEQ_EQ__bool_QProcessEnvironment_QProcessEnvironment, Return, "bool", Parameters, new Param(c, "this", "qt.QProcessEnvironment"), new Param(c, "other", "qt.QProcessEnvironment"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QProcessType.cpp b/src/lib/mu/MuQt6/QProcessType.cpp new file mode 100644 index 000000000..284e9ec1f --- /dev/null +++ b/src/lib/mu/MuQt6/QProcessType.cpp @@ -0,0 +1,1212 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QProcess::~MuQt_QProcess() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QProcess::MuQt_QProcess(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QProcess(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QProcess")); +} + +qint64 MuQt_QProcess::bytesToWrite() const +{ + if (!_env) return QProcess::bytesToWrite(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QProcess::bytesToWrite(); + } +} + +void MuQt_QProcess::close() +{ + if (!_env) { QProcess::close(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QProcess::close(); + } +} + +bool MuQt_QProcess::isSequential() const +{ + if (!_env) return QProcess::isSequential(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProcess::isSequential(); + } +} + +bool MuQt_QProcess::open(QIODeviceBase::OpenMode mode) +{ + if (!_env) return QProcess::open(mode); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(mode)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProcess::open(mode); + } +} + +bool MuQt_QProcess::waitForBytesWritten(int msecs) +{ + if (!_env) return QProcess::waitForBytesWritten(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProcess::waitForBytesWritten(msecs); + } +} + +bool MuQt_QProcess::waitForReadyRead(int msecs) +{ + if (!_env) return QProcess::waitForReadyRead(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProcess::waitForReadyRead(msecs); + } +} + +bool MuQt_QProcess::atEnd() const +{ + if (!_env) return QProcess::atEnd(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProcess::atEnd(); + } +} + +qint64 MuQt_QProcess::bytesAvailable() const +{ + if (!_env) return QProcess::bytesAvailable(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QProcess::bytesAvailable(); + } +} + +bool MuQt_QProcess::canReadLine() const +{ + if (!_env) return QProcess::canReadLine(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProcess::canReadLine(); + } +} + +qint64 MuQt_QProcess::pos() const +{ + if (!_env) return QProcess::pos(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QProcess::pos(); + } +} + +bool MuQt_QProcess::reset() +{ + if (!_env) return QProcess::reset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProcess::reset(); + } +} + +bool MuQt_QProcess::seek(qint64 pos) +{ + if (!_env) return QProcess::seek(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(pos); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProcess::seek(pos); + } +} + +qint64 MuQt_QProcess::size() const +{ + if (!_env) return QProcess::size(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QProcess::size(); + } +} + +qint64 MuQt_QProcess::skipData(qint64 maxSize) +{ + if (!_env) return QProcess::skipData(maxSize); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(maxSize); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QProcess::skipData(maxSize); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QProcessType::QProcessType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QProcessType::~QProcessType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QProcess_QProcess_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QProcess* w = object(widget)) + { + QProcessType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QProcess"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QProcess_QProcess_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QProcess_QProcess_QProcess_QProcess_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QProcess(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QProcess_arguments_stringBSB_ESB__QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return makestringlist(c,arg0->arguments()); +} + +void qt_QProcess_closeReadChannel_void_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_channel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + QProcess::ProcessChannel arg1 = (QProcess::ProcessChannel)(param_channel); + arg0->closeReadChannel(arg1); +} + +void qt_QProcess_closeWriteChannel_void_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + arg0->closeWriteChannel(); +} + +int qt_QProcess_error_int_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return int(arg0->error()); +} + +int qt_QProcess_exitCode_int_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return arg0->exitCode(); +} + +int qt_QProcess_exitStatus_int_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return int(arg0->exitStatus()); +} + +int qt_QProcess_inputChannelMode_int_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return int(arg0->inputChannelMode()); +} + +int qt_QProcess_processChannelMode_int_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return int(arg0->processChannelMode()); +} + +Pointer qt_QProcess_processEnvironment_QProcessEnvironment_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return makeqtype(c,arg0->processEnvironment(),"qt.QProcessEnvironment"); +} + +int64 qt_QProcess_processId_int64_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return arg0->processId(); +} + +Pointer qt_QProcess_program_string_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return makestring(c,arg0->program()); +} + +Pointer qt_QProcess_readAllStandardError_QByteArray_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return makeqtype(c,arg0->readAllStandardError(),"qt.QByteArray"); +} + +Pointer qt_QProcess_readAllStandardOutput_QByteArray_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return makeqtype(c,arg0->readAllStandardOutput(),"qt.QByteArray"); +} + +int qt_QProcess_readChannel_int_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return int(arg0->readChannel()); +} + +void qt_QProcess_setArguments_void_QProcess_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_arguments) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_arguments); + arg0->setArguments(arg1); +} + +void qt_QProcess_setInputChannelMode_void_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + QProcess::InputChannelMode arg1 = (QProcess::InputChannelMode)(param_mode); + arg0->setInputChannelMode(arg1); +} + +void qt_QProcess_setProcessChannelMode_void_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + QProcess::ProcessChannelMode arg1 = (QProcess::ProcessChannelMode)(param_mode); + arg0->setProcessChannelMode(arg1); +} + +void qt_QProcess_setProcessEnvironment_void_QProcess_QProcessEnvironment(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_environment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + const QProcessEnvironment arg1 = getqtype(param_environment); + arg0->setProcessEnvironment(arg1); +} + +void qt_QProcess_setProgram_void_QProcess_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_program) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + const QString arg1 = qstring(param_program); + arg0->setProgram(arg1); +} + +void qt_QProcess_setReadChannel_void_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_channel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + QProcess::ProcessChannel arg1 = (QProcess::ProcessChannel)(param_channel); + arg0->setReadChannel(arg1); +} + +void qt_QProcess_setStandardErrorFile_void_QProcess_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + const QString arg1 = qstring(param_fileName); + QIODeviceBase::OpenMode arg2 = (QIODeviceBase::OpenMode)(param_mode); + arg0->setStandardErrorFile(arg1, arg2); +} + +void qt_QProcess_setStandardInputFile_void_QProcess_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + const QString arg1 = qstring(param_fileName); + arg0->setStandardInputFile(arg1); +} + +void qt_QProcess_setStandardOutputFile_void_QProcess_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + const QString arg1 = qstring(param_fileName); + QIODeviceBase::OpenMode arg2 = (QIODeviceBase::OpenMode)(param_mode); + arg0->setStandardOutputFile(arg1, arg2); +} + +void qt_QProcess_setStandardOutputProcess_void_QProcess_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_destination) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + QProcess * arg1 = object(param_destination); + arg0->setStandardOutputProcess(arg1); +} + +void qt_QProcess_setWorkingDirectory_void_QProcess_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_dir) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + const QString arg1 = qstring(param_dir); + arg0->setWorkingDirectory(arg1); +} + +void qt_QProcess_start_void_QProcess_string_stringBSB_ESB__int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_program, Pointer param_arguments, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + const QString arg1 = qstring(param_program); + const QStringList arg2 = qstringlist(param_arguments); + QIODeviceBase::OpenMode arg3 = (QIODeviceBase::OpenMode)(param_mode); + arg0->start(arg1, arg2, arg3); +} + +void qt_QProcess_start_void_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + QIODeviceBase::OpenMode arg1 = (QIODeviceBase::OpenMode)(param_mode); + arg0->start(arg1); +} + +void qt_QProcess_startCommand_void_QProcess_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_command, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + const QString arg1 = qstring(param_command); + QIODeviceBase::OpenMode arg2 = (QIODeviceBase::OpenMode)(param_mode); + arg0->startCommand(arg1, arg2); +} + +int qt_QProcess_state_int_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return int(arg0->state()); +} + +bool qt_QProcess_waitForFinished_bool_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return arg0->waitForFinished(arg1); +} + +bool qt_QProcess_waitForStarted_bool_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return arg0->waitForStarted(arg1); +} + +Pointer qt_QProcess_workingDirectory_string_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return makestring(c,arg0->workingDirectory()); +} + +int64 qt_QProcess_bytesToWrite_int64_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QProcess::bytesToWrite() : arg0->bytesToWrite(); +} + +void qt_QProcess_close_void_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QProcess::close(); + else arg0->close(); +} + +bool qt_QProcess_isSequential_bool_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QProcess::isSequential() : arg0->isSequential(); +} + +bool qt_QProcess_open_bool_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + QIODeviceBase::OpenMode arg1 = (QIODeviceBase::OpenMode)(param_mode); + return isMuQtObject(arg0) ? arg0->QProcess::open(arg1) : arg0->open(arg1); +} + +bool qt_QProcess_waitForBytesWritten_bool_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QProcess::waitForBytesWritten(arg1) : arg0->waitForBytesWritten(arg1); +} + +bool qt_QProcess_waitForReadyRead_bool_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QProcess::waitForReadyRead(arg1) : arg0->waitForReadyRead(arg1); +} + +void qt_QProcess_setProcessState_void_QProcess_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + QProcess::ProcessState arg1 = (QProcess::ProcessState)(param_state); + ((MuQt_QProcess*)arg0)->setProcessState_pub(arg1); +} + +bool qt_QProcess_atEnd_bool_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QProcess::atEnd() : arg0->atEnd(); +} + +int64 qt_QProcess_bytesAvailable_int64_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QProcess::bytesAvailable() : arg0->bytesAvailable(); +} + +bool qt_QProcess_canReadLine_bool_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QProcess::canReadLine() : arg0->canReadLine(); +} + +int64 qt_QProcess_pos_int64_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QProcess::pos() : arg0->pos(); +} + +bool qt_QProcess_reset_bool_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QProcess::reset() : arg0->reset(); +} + +bool qt_QProcess_seek_bool_QProcess_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + qint64 arg1 = (int64)(param_pos); + return isMuQtObject(arg0) ? arg0->QProcess::seek(arg1) : arg0->seek(arg1); +} + +int64 qt_QProcess_size_int64_QProcess(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QProcess::size() : arg0->size(); +} + +int64 qt_QProcess_skipData_int64_QProcess_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProcess* arg0 = object(param_this); + qint64 arg1 = (int64)(param_maxSize); + return isMuQtObject(arg0) ? ((MuQt_QProcess*)arg0)->skipData_pub_parent(arg1) : ((MuQt_QProcess*)arg0)->skipData_pub(arg1); +} + +int qt_QProcess_execute_int_string_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_program, Pointer param_arguments) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_program); + const QStringList arg1 = qstringlist(param_arguments); + return QProcess::execute(arg0, arg1); +} + +Pointer qt_QProcess_nullDevice_string(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestring(c,QProcess::nullDevice()); +} + +Pointer qt_QProcess_systemEnvironment_stringBSB_ESB_(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestringlist(c,QProcess::systemEnvironment()); +} + + +static NODE_IMPLEMENTATION(_n_QProcess0, Pointer) +{ + NODE_RETURN(qt_QProcess_QProcess_QProcess_QProcess_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_arguments0, Pointer) +{ + NODE_RETURN(qt_QProcess_arguments_stringBSB_ESB__QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeReadChannel0, void) +{ + qt_QProcess_closeReadChannel_void_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_closeWriteChannel0, void) +{ + qt_QProcess_closeWriteChannel_void_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_error0, int) +{ + NODE_RETURN(qt_QProcess_error_int_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exitCode0, int) +{ + NODE_RETURN(qt_QProcess_exitCode_int_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_exitStatus0, int) +{ + NODE_RETURN(qt_QProcess_exitStatus_int_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inputChannelMode0, int) +{ + NODE_RETURN(qt_QProcess_inputChannelMode_int_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_processChannelMode0, int) +{ + NODE_RETURN(qt_QProcess_processChannelMode_int_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_processEnvironment0, Pointer) +{ + NODE_RETURN(qt_QProcess_processEnvironment_QProcessEnvironment_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_processId0, int64) +{ + NODE_RETURN(qt_QProcess_processId_int64_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_program0, Pointer) +{ + NODE_RETURN(qt_QProcess_program_string_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_readAllStandardError0, Pointer) +{ + NODE_RETURN(qt_QProcess_readAllStandardError_QByteArray_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_readAllStandardOutput0, Pointer) +{ + NODE_RETURN(qt_QProcess_readAllStandardOutput_QByteArray_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_readChannel0, int) +{ + NODE_RETURN(qt_QProcess_readChannel_int_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setArguments0, void) +{ + qt_QProcess_setArguments_void_QProcess_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setInputChannelMode0, void) +{ + qt_QProcess_setInputChannelMode_void_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setProcessChannelMode0, void) +{ + qt_QProcess_setProcessChannelMode_void_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setProcessEnvironment0, void) +{ + qt_QProcess_setProcessEnvironment_void_QProcess_QProcessEnvironment(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setProgram0, void) +{ + qt_QProcess_setProgram_void_QProcess_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setReadChannel0, void) +{ + qt_QProcess_setReadChannel_void_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setStandardErrorFile0, void) +{ + qt_QProcess_setStandardErrorFile_void_QProcess_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setStandardInputFile0, void) +{ + qt_QProcess_setStandardInputFile_void_QProcess_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setStandardOutputFile0, void) +{ + qt_QProcess_setStandardOutputFile_void_QProcess_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setStandardOutputProcess0, void) +{ + qt_QProcess_setStandardOutputProcess_void_QProcess_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setWorkingDirectory0, void) +{ + qt_QProcess_setWorkingDirectory_void_QProcess_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_start0, void) +{ + qt_QProcess_start_void_QProcess_string_stringBSB_ESB__int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_start1, void) +{ + qt_QProcess_start_void_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_startCommand0, void) +{ + qt_QProcess_startCommand_void_QProcess_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_state0, int) +{ + NODE_RETURN(qt_QProcess_state_int_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_waitForFinished0, bool) +{ + NODE_RETURN(qt_QProcess_waitForFinished_bool_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForStarted0, bool) +{ + NODE_RETURN(qt_QProcess_waitForStarted_bool_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_workingDirectory0, Pointer) +{ + NODE_RETURN(qt_QProcess_workingDirectory_string_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesToWrite0, int64) +{ + NODE_RETURN(qt_QProcess_bytesToWrite_int64_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_close0, void) +{ + qt_QProcess_close_void_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isSequential0, bool) +{ + NODE_RETURN(qt_QProcess_isSequential_bool_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_open0, bool) +{ + NODE_RETURN(qt_QProcess_open_bool_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForBytesWritten0, bool) +{ + NODE_RETURN(qt_QProcess_waitForBytesWritten_bool_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForReadyRead0, bool) +{ + NODE_RETURN(qt_QProcess_waitForReadyRead_bool_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setProcessState0, void) +{ + qt_QProcess_setProcessState_void_QProcess_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_atEnd0, bool) +{ + NODE_RETURN(qt_QProcess_atEnd_bool_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesAvailable0, int64) +{ + NODE_RETURN(qt_QProcess_bytesAvailable_int64_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canReadLine0, bool) +{ + NODE_RETURN(qt_QProcess_canReadLine_bool_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pos0, int64) +{ + NODE_RETURN(qt_QProcess_pos_int64_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_reset0, bool) +{ + NODE_RETURN(qt_QProcess_reset_bool_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_seek0, bool) +{ + NODE_RETURN(qt_QProcess_seek_bool_QProcess_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_size0, int64) +{ + NODE_RETURN(qt_QProcess_size_int64_QProcess(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_skipData0, int64) +{ + NODE_RETURN(qt_QProcess_skipData_int64_QProcess_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_execute0, int) +{ + NODE_RETURN(qt_QProcess_execute_int_string_stringBSB_ESB_(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nullDevice0, Pointer) +{ + NODE_RETURN(qt_QProcess_nullDevice_string(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_systemEnvironment0, Pointer) +{ + NODE_RETURN(qt_QProcess_systemEnvironment_stringBSB_ESB_(NODE_THREAD)); +} + + +// +// Copyright (C) 2024 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +bool qt_QProcess_startDetached_bool_string_stringBSB_ESB_(Mu::Thread& NODE_THREAD, + Pointer param_command, + Pointer param_arguments) +{ + // Leave the default value for the 3rd and 4th arguments + // const QString &workingDirectory = QString() + // qint64 *pid = nullptr + + const QString arg0 = qstring(param_command); + const QStringList arg1 = qstringlist(param_arguments); + return QProcess::startDetached(arg0, arg1); +} + +static NODE_IMPLEMENTATION(_n_startDetached0, bool) +{ + NODE_RETURN(qt_QProcess_startDetached_bool_string_stringBSB_ESB_(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer))); +} + +void +QProcessType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QProcess_QProcess_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + new Alias(c, "ExitStatus", "int"), + new SymbolicConstant(c, "NormalExit", "int", Value(int(QProcess::NormalExit))), + new SymbolicConstant(c, "CrashExit", "int", Value(int(QProcess::CrashExit))), + new Alias(c, "ProcessChannel", "int"), + new SymbolicConstant(c, "StandardOutput", "int", Value(int(QProcess::StandardOutput))), + new SymbolicConstant(c, "StandardError", "int", Value(int(QProcess::StandardError))), + new Alias(c, "ProcessChannelMode", "int"), + new SymbolicConstant(c, "SeparateChannels", "int", Value(int(QProcess::SeparateChannels))), + new SymbolicConstant(c, "MergedChannels", "int", Value(int(QProcess::MergedChannels))), + new SymbolicConstant(c, "ForwardedChannels", "int", Value(int(QProcess::ForwardedChannels))), + new SymbolicConstant(c, "ForwardedErrorChannel", "int", Value(int(QProcess::ForwardedErrorChannel))), + new SymbolicConstant(c, "ForwardedOutputChannel", "int", Value(int(QProcess::ForwardedOutputChannel))), + new Alias(c, "ProcessError", "int"), + new SymbolicConstant(c, "FailedToStart", "int", Value(int(QProcess::FailedToStart))), + new SymbolicConstant(c, "Crashed", "int", Value(int(QProcess::Crashed))), + new SymbolicConstant(c, "Timedout", "int", Value(int(QProcess::Timedout))), + new SymbolicConstant(c, "WriteError", "int", Value(int(QProcess::WriteError))), + new SymbolicConstant(c, "ReadError", "int", Value(int(QProcess::ReadError))), + new SymbolicConstant(c, "UnknownError", "int", Value(int(QProcess::UnknownError))), + new Alias(c, "ProcessState", "int"), + new SymbolicConstant(c, "NotRunning", "int", Value(int(QProcess::NotRunning))), + new SymbolicConstant(c, "Starting", "int", Value(int(QProcess::Starting))), + new SymbolicConstant(c, "Running", "int", Value(int(QProcess::Running))), + // member functions + new Function(c, "QProcess", _n_QProcess0, None, Compiled, qt_QProcess_QProcess_QProcess_QProcess_QObject, Return, "qt.QProcess", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "arguments", _n_arguments0, None, Compiled, qt_QProcess_arguments_stringBSB_ESB__QProcess, Return, "string[]", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "closeReadChannel", _n_closeReadChannel0, None, Compiled, qt_QProcess_closeReadChannel_void_QProcess_int, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "channel", "int"), End), + new Function(c, "closeWriteChannel", _n_closeWriteChannel0, None, Compiled, qt_QProcess_closeWriteChannel_void_QProcess, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "error", _n_error0, None, Compiled, qt_QProcess_error_int_QProcess, Return, "int", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "exitCode", _n_exitCode0, None, Compiled, qt_QProcess_exitCode_int_QProcess, Return, "int", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "exitStatus", _n_exitStatus0, None, Compiled, qt_QProcess_exitStatus_int_QProcess, Return, "int", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "inputChannelMode", _n_inputChannelMode0, None, Compiled, qt_QProcess_inputChannelMode_int_QProcess, Return, "int", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "processChannelMode", _n_processChannelMode0, None, Compiled, qt_QProcess_processChannelMode_int_QProcess, Return, "int", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "processEnvironment", _n_processEnvironment0, None, Compiled, qt_QProcess_processEnvironment_QProcessEnvironment_QProcess, Return, "qt.QProcessEnvironment", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "processId", _n_processId0, None, Compiled, qt_QProcess_processId_int64_QProcess, Return, "int64", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "program", _n_program0, None, Compiled, qt_QProcess_program_string_QProcess, Return, "string", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "readAllStandardError", _n_readAllStandardError0, None, Compiled, qt_QProcess_readAllStandardError_QByteArray_QProcess, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "readAllStandardOutput", _n_readAllStandardOutput0, None, Compiled, qt_QProcess_readAllStandardOutput_QByteArray_QProcess, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "readChannel", _n_readChannel0, None, Compiled, qt_QProcess_readChannel_int_QProcess, Return, "int", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "setArguments", _n_setArguments0, None, Compiled, qt_QProcess_setArguments_void_QProcess_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "arguments", "string[]"), End), + new Function(c, "setInputChannelMode", _n_setInputChannelMode0, None, Compiled, qt_QProcess_setInputChannelMode_void_QProcess_int, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "mode", "int"), End), + new Function(c, "setProcessChannelMode", _n_setProcessChannelMode0, None, Compiled, qt_QProcess_setProcessChannelMode_void_QProcess_int, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "mode", "int"), End), + new Function(c, "setProcessEnvironment", _n_setProcessEnvironment0, None, Compiled, qt_QProcess_setProcessEnvironment_void_QProcess_QProcessEnvironment, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "environment", "qt.QProcessEnvironment"), End), + new Function(c, "setProgram", _n_setProgram0, None, Compiled, qt_QProcess_setProgram_void_QProcess_string, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "program", "string"), End), + new Function(c, "setReadChannel", _n_setReadChannel0, None, Compiled, qt_QProcess_setReadChannel_void_QProcess_int, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "channel", "int"), End), + new Function(c, "setStandardErrorFile", _n_setStandardErrorFile0, None, Compiled, qt_QProcess_setStandardErrorFile_void_QProcess_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "fileName", "string"), new Param(c, "mode", "int", Value((int)QIODeviceBase::Truncate)), End), + new Function(c, "setStandardInputFile", _n_setStandardInputFile0, None, Compiled, qt_QProcess_setStandardInputFile_void_QProcess_string, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "fileName", "string"), End), + new Function(c, "setStandardOutputFile", _n_setStandardOutputFile0, None, Compiled, qt_QProcess_setStandardOutputFile_void_QProcess_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "fileName", "string"), new Param(c, "mode", "int", Value((int)QIODeviceBase::Truncate)), End), + new Function(c, "setStandardOutputProcess", _n_setStandardOutputProcess0, None, Compiled, qt_QProcess_setStandardOutputProcess_void_QProcess_QProcess, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "destination", "qt.QProcess"), End), + new Function(c, "setWorkingDirectory", _n_setWorkingDirectory0, None, Compiled, qt_QProcess_setWorkingDirectory_void_QProcess_string, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "dir", "string"), End), + new Function(c, "start", _n_start0, None, Compiled, qt_QProcess_start_void_QProcess_string_stringBSB_ESB__int, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "program", "string"), new Param(c, "arguments", "string[]"), new Param(c, "mode", "int", Value((int)QIODeviceBase::ReadWrite)), End), + new Function(c, "start", _n_start1, None, Compiled, qt_QProcess_start_void_QProcess_int, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "mode", "int", Value((int)QIODeviceBase::ReadWrite)), End), + new Function(c, "startCommand", _n_startCommand0, None, Compiled, qt_QProcess_startCommand_void_QProcess_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "command", "string"), new Param(c, "mode", "int", Value((int)QIODeviceBase::ReadWrite)), End), + new Function(c, "state", _n_state0, None, Compiled, qt_QProcess_state_int_QProcess, Return, "int", Parameters, new Param(c, "this", "qt.QProcess"), End), + new Function(c, "waitForFinished", _n_waitForFinished0, None, Compiled, qt_QProcess_waitForFinished_bool_QProcess_int, Return, "bool", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "msecs", "int", Value((int)30000)), End), + new Function(c, "waitForStarted", _n_waitForStarted0, None, Compiled, qt_QProcess_waitForStarted_bool_QProcess_int, Return, "bool", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "msecs", "int", Value((int)30000)), End), + new Function(c, "workingDirectory", _n_workingDirectory0, None, Compiled, qt_QProcess_workingDirectory_string_QProcess, Return, "string", Parameters, new Param(c, "this", "qt.QProcess"), End), + _func[0] = new MemberFunction(c, "bytesToWrite", _n_bytesToWrite0, None, Compiled, qt_QProcess_bytesToWrite_int64_QProcess, Return, "int64", Parameters, new Param(c, "this", "qt.QProcess"), End), + _func[1] = new MemberFunction(c, "close", _n_close0, None, Compiled, qt_QProcess_close_void_QProcess, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), End), + _func[2] = new MemberFunction(c, "isSequential", _n_isSequential0, None, Compiled, qt_QProcess_isSequential_bool_QProcess, Return, "bool", Parameters, new Param(c, "this", "qt.QProcess"), End), + _func[3] = new MemberFunction(c, "open", _n_open0, None, Compiled, qt_QProcess_open_bool_QProcess_int, Return, "bool", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "mode", "int", Value((int)QIODeviceBase::ReadWrite)), End), + _func[4] = new MemberFunction(c, "waitForBytesWritten", _n_waitForBytesWritten0, None, Compiled, qt_QProcess_waitForBytesWritten_bool_QProcess_int, Return, "bool", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[5] = new MemberFunction(c, "waitForReadyRead", _n_waitForReadyRead0, None, Compiled, qt_QProcess_waitForReadyRead_bool_QProcess_int, Return, "bool", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "msecs", "int", Value((int)30000)), End), + new Function(c, "setProcessState", _n_setProcessState0, None, Compiled, qt_QProcess_setProcessState_void_QProcess_int, Return, "void", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "state", "int"), End), + // MISSING: readData (int64; QProcess this, "char *" data, int64 maxlen) // protected + // MISSING: writeData (int64; QProcess this, "const char *" data, int64 len) // protected + _func[6] = new MemberFunction(c, "atEnd", _n_atEnd0, None, Compiled, qt_QProcess_atEnd_bool_QProcess, Return, "bool", Parameters, new Param(c, "this", "qt.QProcess"), End), + _func[7] = new MemberFunction(c, "bytesAvailable", _n_bytesAvailable0, None, Compiled, qt_QProcess_bytesAvailable_int64_QProcess, Return, "int64", Parameters, new Param(c, "this", "qt.QProcess"), End), + _func[8] = new MemberFunction(c, "canReadLine", _n_canReadLine0, None, Compiled, qt_QProcess_canReadLine_bool_QProcess, Return, "bool", Parameters, new Param(c, "this", "qt.QProcess"), End), + _func[9] = new MemberFunction(c, "pos", _n_pos0, None, Compiled, qt_QProcess_pos_int64_QProcess, Return, "int64", Parameters, new Param(c, "this", "qt.QProcess"), End), + _func[10] = new MemberFunction(c, "reset", _n_reset0, None, Compiled, qt_QProcess_reset_bool_QProcess, Return, "bool", Parameters, new Param(c, "this", "qt.QProcess"), End), + _func[11] = new MemberFunction(c, "seek", _n_seek0, None, Compiled, qt_QProcess_seek_bool_QProcess_int64, Return, "bool", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "pos", "int64"), End), + _func[12] = new MemberFunction(c, "size", _n_size0, None, Compiled, qt_QProcess_size_int64_QProcess, Return, "int64", Parameters, new Param(c, "this", "qt.QProcess"), End), + // MISSING: readLineData (int64; QProcess this, "char *" data, int64 maxSize) // protected + _func[13] = new MemberFunction(c, "skipData", _n_skipData0, None, Compiled, qt_QProcess_skipData_int64_QProcess_int64, Return, "int64", Parameters, new Param(c, "this", "qt.QProcess"), new Param(c, "maxSize", "int64"), End), + // static functions + new Function(c, "execute", _n_execute0, None, Compiled, qt_QProcess_execute_int_string_stringBSB_ESB_, Return, "int", Parameters, new Param(c, "program", "string"), new Param(c, "arguments", "string[]"), End), + new Function(c, "nullDevice", _n_nullDevice0, None, Compiled, qt_QProcess_nullDevice_string, Return, "string", End), + // MISSING: splitCommand (string[]; "QStringView" command) + new Function(c, "systemEnvironment", _n_systemEnvironment0, None, Compiled, qt_QProcess_systemEnvironment_stringBSB_ESB_, Return, "string[]", End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2024 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// MISSING: startDetached (bool; string program, string[] arguments, string workingDirectory, "qint64 *" pid) + +addSymbol( + new Function( + c, + "startDetached", + _n_startDetached0, + None, + Compiled, + // qt_QProcess_startDetached_bool_string_stringBSB_ESB_string_int64, + qt_QProcess_startDetached_bool_string_stringBSB_ESB_, + Return, + "bool", + Parameters, + new Param(c, "command", "string"), + new Param(c, "arguments", "string[]"), + End + ) +); + + const char** propExclusions = 0; + + populate(this, QProcess::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QProgressBarType.cpp b/src/lib/mu/MuQt6/QProgressBarType.cpp new file mode 100644 index 000000000..9a80b0e76 --- /dev/null +++ b/src/lib/mu/MuQt6/QProgressBarType.cpp @@ -0,0 +1,1306 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QProgressBar::~MuQt_QProgressBar() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QProgressBar::MuQt_QProgressBar(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QProgressBar(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QProgressBar")); +} + +QString MuQt_QProgressBar::text() const +{ + if (!_env) return QProgressBar::text(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstring(rval._Pointer); + } + else + { + return QProgressBar::text(); + } +} + +QSize MuQt_QProgressBar::minimumSizeHint() const +{ + if (!_env) return QProgressBar::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QProgressBar::minimumSizeHint(); + } +} + +QSize MuQt_QProgressBar::sizeHint() const +{ + if (!_env) return QProgressBar::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QProgressBar::sizeHint(); + } +} + +bool MuQt_QProgressBar::event(QEvent * e) +{ + if (!_env) return QProgressBar::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProgressBar::event(e); + } +} + +void MuQt_QProgressBar::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QProgressBar::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::paintEvent(_p14); + } +} + +bool MuQt_QProgressBar::hasHeightForWidth() const +{ + if (!_env) return QProgressBar::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProgressBar::hasHeightForWidth(); + } +} + +int MuQt_QProgressBar::heightForWidth(int w) const +{ + if (!_env) return QProgressBar::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QProgressBar::heightForWidth(w); + } +} + +QVariant MuQt_QProgressBar::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QProgressBar::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QProgressBar::inputMethodQuery(query); + } +} + +void MuQt_QProgressBar::changeEvent(QEvent * event) +{ + if (!_env) { QProgressBar::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::changeEvent(event); + } +} + +void MuQt_QProgressBar::closeEvent(QCloseEvent * event) +{ + if (!_env) { QProgressBar::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::closeEvent(event); + } +} + +void MuQt_QProgressBar::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QProgressBar::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::contextMenuEvent(event); + } +} + +void MuQt_QProgressBar::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QProgressBar::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::dragEnterEvent(event); + } +} + +void MuQt_QProgressBar::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QProgressBar::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::dragLeaveEvent(event); + } +} + +void MuQt_QProgressBar::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QProgressBar::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::dragMoveEvent(event); + } +} + +void MuQt_QProgressBar::dropEvent(QDropEvent * event) +{ + if (!_env) { QProgressBar::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::dropEvent(event); + } +} + +void MuQt_QProgressBar::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QProgressBar::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::focusInEvent(event); + } +} + +bool MuQt_QProgressBar::focusNextPrevChild(bool next) +{ + if (!_env) return QProgressBar::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QProgressBar::focusNextPrevChild(next); + } +} + +void MuQt_QProgressBar::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QProgressBar::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::focusOutEvent(event); + } +} + +void MuQt_QProgressBar::hideEvent(QHideEvent * event) +{ + if (!_env) { QProgressBar::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::hideEvent(event); + } +} + +void MuQt_QProgressBar::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QProgressBar::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::keyPressEvent(event); + } +} + +void MuQt_QProgressBar::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QProgressBar::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::keyReleaseEvent(event); + } +} + +void MuQt_QProgressBar::leaveEvent(QEvent * event) +{ + if (!_env) { QProgressBar::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::leaveEvent(event); + } +} + +void MuQt_QProgressBar::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QProgressBar::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::mouseDoubleClickEvent(event); + } +} + +void MuQt_QProgressBar::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QProgressBar::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::mouseMoveEvent(event); + } +} + +void MuQt_QProgressBar::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QProgressBar::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::mousePressEvent(event); + } +} + +void MuQt_QProgressBar::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QProgressBar::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::mouseReleaseEvent(event); + } +} + +void MuQt_QProgressBar::moveEvent(QMoveEvent * event) +{ + if (!_env) { QProgressBar::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::moveEvent(event); + } +} + +void MuQt_QProgressBar::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QProgressBar::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::resizeEvent(event); + } +} + +void MuQt_QProgressBar::showEvent(QShowEvent * event) +{ + if (!_env) { QProgressBar::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::showEvent(event); + } +} + +void MuQt_QProgressBar::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QProgressBar::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::tabletEvent(event); + } +} + +void MuQt_QProgressBar::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QProgressBar::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QProgressBar::wheelEvent(event); + } +} + +int MuQt_QProgressBar::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QProgressBar::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QProgressBar::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QProgressBarType::QProgressBarType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QProgressBarType::~QProgressBarType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QProgressBar_QProgressBar_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QProgressBar* w = object(widget)) + { + QProgressBarType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QProgressBar"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QProgressBar_QProgressBar_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QProgressBar_QProgressBar_QProgressBar_QProgressBar_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QProgressBar(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QProgressBar_text_string_QProgressBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestring(c,arg0->QProgressBar::text()) : makestring(c,arg0->text()); +} + +Pointer qt_QProgressBar_minimumSizeHint_QSize_QProgressBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QProgressBar::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QProgressBar_sizeHint_QSize_QProgressBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QProgressBar::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +bool qt_QProgressBar_event_bool_QProgressBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QProgressBar*)arg0)->event_pub_parent(arg1) : ((MuQt_QProgressBar*)arg0)->event_pub(arg1); +} + +void qt_QProgressBar_paintEvent_void_QProgressBar_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->paintEvent_pub(arg1); +} + +bool qt_QProgressBar_hasHeightForWidth_bool_QProgressBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QProgressBar::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QProgressBar_heightForWidth_int_QProgressBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QProgressBar::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QProgressBar_inputMethodQuery_QVariant_QProgressBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QProgressBar::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +void qt_QProgressBar_changeEvent_void_QProgressBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->changeEvent_pub(arg1); +} + +void qt_QProgressBar_closeEvent_void_QProgressBar_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->closeEvent_pub(arg1); +} + +void qt_QProgressBar_contextMenuEvent_void_QProgressBar_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QProgressBar_dragEnterEvent_void_QProgressBar_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QProgressBar_dragLeaveEvent_void_QProgressBar_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QProgressBar_dragMoveEvent_void_QProgressBar_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QProgressBar_dropEvent_void_QProgressBar_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->dropEvent_pub(arg1); +} + +void qt_QProgressBar_focusInEvent_void_QProgressBar_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QProgressBar_focusNextPrevChild_bool_QProgressBar_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QProgressBar*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QProgressBar*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QProgressBar_focusOutEvent_void_QProgressBar_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QProgressBar_hideEvent_void_QProgressBar_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->hideEvent_pub(arg1); +} + +void qt_QProgressBar_keyPressEvent_void_QProgressBar_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QProgressBar_keyReleaseEvent_void_QProgressBar_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QProgressBar_leaveEvent_void_QProgressBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QProgressBar_mouseDoubleClickEvent_void_QProgressBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QProgressBar_mouseMoveEvent_void_QProgressBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QProgressBar_mousePressEvent_void_QProgressBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QProgressBar_mouseReleaseEvent_void_QProgressBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QProgressBar_moveEvent_void_QProgressBar_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->moveEvent_pub(arg1); +} + +void qt_QProgressBar_resizeEvent_void_QProgressBar_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QProgressBar_showEvent_void_QProgressBar_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->showEvent_pub(arg1); +} + +void qt_QProgressBar_tabletEvent_void_QProgressBar_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QProgressBar_wheelEvent_void_QProgressBar_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QProgressBar*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QProgressBar*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QProgressBar_metric_int_QProgressBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QProgressBar* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QProgressBar*)arg0)->metric_pub_parent(arg1) : ((MuQt_QProgressBar*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QProgressBar0, Pointer) +{ + NODE_RETURN(qt_QProgressBar_QProgressBar_QProgressBar_QProgressBar_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QProgressBar_text_string_QProgressBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QProgressBar_minimumSizeHint_QSize_QProgressBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QProgressBar_sizeHint_QSize_QProgressBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QProgressBar_event_bool_QProgressBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QProgressBar_paintEvent_void_QProgressBar_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QProgressBar_hasHeightForWidth_bool_QProgressBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QProgressBar_heightForWidth_int_QProgressBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QProgressBar_inputMethodQuery_QVariant_QProgressBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QProgressBar_changeEvent_void_QProgressBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QProgressBar_closeEvent_void_QProgressBar_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QProgressBar_contextMenuEvent_void_QProgressBar_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QProgressBar_dragEnterEvent_void_QProgressBar_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QProgressBar_dragLeaveEvent_void_QProgressBar_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QProgressBar_dragMoveEvent_void_QProgressBar_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QProgressBar_dropEvent_void_QProgressBar_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QProgressBar_focusInEvent_void_QProgressBar_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QProgressBar_focusNextPrevChild_bool_QProgressBar_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QProgressBar_focusOutEvent_void_QProgressBar_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QProgressBar_hideEvent_void_QProgressBar_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QProgressBar_keyPressEvent_void_QProgressBar_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QProgressBar_keyReleaseEvent_void_QProgressBar_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QProgressBar_leaveEvent_void_QProgressBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QProgressBar_mouseDoubleClickEvent_void_QProgressBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QProgressBar_mouseMoveEvent_void_QProgressBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QProgressBar_mousePressEvent_void_QProgressBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QProgressBar_mouseReleaseEvent_void_QProgressBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QProgressBar_moveEvent_void_QProgressBar_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QProgressBar_resizeEvent_void_QProgressBar_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QProgressBar_showEvent_void_QProgressBar_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QProgressBar_tabletEvent_void_QProgressBar_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QProgressBar_wheelEvent_void_QProgressBar_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QProgressBar_metric_int_QProgressBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QProgressBarType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QProgressBar_QProgressBar_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QProgressBar", _n_QProgressBar0, None, Compiled, qt_QProgressBar_QProgressBar_QProgressBar_QProgressBar_QWidget, Return, "qt.QProgressBar", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: alignment (flags Qt::Alignment; QProgressBar this) + // PROP: format (string; QProgressBar this) + // PROP: invertedAppearance (bool; QProgressBar this) + // PROP: isTextVisible (bool; QProgressBar this) + // PROP: maximum (int; QProgressBar this) + // PROP: minimum (int; QProgressBar this) + // PROP: orientation (flags Qt::Orientation; QProgressBar this) + // PROP: resetFormat (void; QProgressBar this) + // PROP: setAlignment (void; QProgressBar this, flags Qt::Alignment alignment) + // PROP: setFormat (void; QProgressBar this, string format) + // PROP: setInvertedAppearance (void; QProgressBar this, bool invert) + // PROP: setTextDirection (void; QProgressBar this, flags QProgressBar::Direction textDirection) + // PROP: setTextVisible (void; QProgressBar this, bool visible) + _func[0] = new MemberFunction(c, "text", _n_text0, None, Compiled, qt_QProgressBar_text_string_QProgressBar, Return, "string", Parameters, new Param(c, "this", "qt.QProgressBar"), End), + // PROP: textDirection (flags QProgressBar::Direction; QProgressBar this) + // PROP: value (int; QProgressBar this) + _func[1] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QProgressBar_minimumSizeHint_QSize_QProgressBar, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QProgressBar"), End), + _func[2] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QProgressBar_sizeHint_QSize_QProgressBar, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QProgressBar"), End), + // MISSING: initStyleOption (void; QProgressBar this, "QStyleOptionProgressBar *" option) // protected + _func[3] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QProgressBar_event_bool_QProgressBar_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "e", "qt.QEvent"), End), + _func[4] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QProgressBar_paintEvent_void_QProgressBar_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "_p14", "qt.QPaintEvent"), End), + _func[5] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QProgressBar_hasHeightForWidth_bool_QProgressBar, Return, "bool", Parameters, new Param(c, "this", "qt.QProgressBar"), End), + _func[6] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QProgressBar_heightForWidth_int_QProgressBar_int, Return, "int", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "w", "int"), End), + _func[7] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QProgressBar_inputMethodQuery_QVariant_QProgressBar_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "query", "int"), End), + // MISSING: paintEngine ("QPaintEngine *"; QProgressBar this) + // MISSING: actionEvent (void; QProgressBar this, "QActionEvent *" event) // protected + _func[8] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QProgressBar_changeEvent_void_QProgressBar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QEvent"), End), + _func[9] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QProgressBar_closeEvent_void_QProgressBar_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[10] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QProgressBar_contextMenuEvent_void_QProgressBar_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[11] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QProgressBar_dragEnterEvent_void_QProgressBar_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[12] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QProgressBar_dragLeaveEvent_void_QProgressBar_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[13] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QProgressBar_dragMoveEvent_void_QProgressBar_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[14] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QProgressBar_dropEvent_void_QProgressBar_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QProgressBar this, "QEnterEvent *" event) // protected + _func[15] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QProgressBar_focusInEvent_void_QProgressBar_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[16] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QProgressBar_focusNextPrevChild_bool_QProgressBar_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "next", "bool"), End), + _func[17] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QProgressBar_focusOutEvent_void_QProgressBar_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[18] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QProgressBar_hideEvent_void_QProgressBar_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QProgressBar this, "QInputMethodEvent *" event) // protected + _func[19] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QProgressBar_keyPressEvent_void_QProgressBar_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[20] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QProgressBar_keyReleaseEvent_void_QProgressBar_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[21] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QProgressBar_leaveEvent_void_QProgressBar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QEvent"), End), + _func[22] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QProgressBar_mouseDoubleClickEvent_void_QProgressBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[23] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QProgressBar_mouseMoveEvent_void_QProgressBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QProgressBar_mousePressEvent_void_QProgressBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[25] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QProgressBar_mouseReleaseEvent_void_QProgressBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[26] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QProgressBar_moveEvent_void_QProgressBar_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QProgressBar this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[27] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QProgressBar_resizeEvent_void_QProgressBar_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[28] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QProgressBar_showEvent_void_QProgressBar_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QShowEvent"), End), + _func[29] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QProgressBar_tabletEvent_void_QProgressBar_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[30] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QProgressBar_wheelEvent_void_QProgressBar_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QProgressBar this, "QPainter *" painter) // protected + _func[31] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QProgressBar_metric_int_QProgressBar_int, Return, "int", Parameters, new Param(c, "this", "qt.QProgressBar"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char* propExclusions[] = {"text", 0}; + + populate(this, QProgressBar::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QPushButtonType.cpp b/src/lib/mu/MuQt6/QPushButtonType.cpp new file mode 100644 index 000000000..158a42d54 --- /dev/null +++ b/src/lib/mu/MuQt6/QPushButtonType.cpp @@ -0,0 +1,816 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QPushButton::~MuQt_QPushButton() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QPushButton::MuQt_QPushButton(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QPushButton(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPushButton")); +} + +MuQt_QPushButton::MuQt_QPushButton(Pointer muobj, const CallEnvironment* ce, const QString & text, QWidget * parent) + : QPushButton(text, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPushButton")); +} + +MuQt_QPushButton::MuQt_QPushButton(Pointer muobj, const CallEnvironment* ce, const QIcon & icon, const QString & text, QWidget * parent) + : QPushButton(icon, text, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPushButton")); +} + +QSize MuQt_QPushButton::minimumSizeHint() const +{ + if (!_env) return QPushButton::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QPushButton::minimumSizeHint(); + } +} + +QSize MuQt_QPushButton::sizeHint() const +{ + if (!_env) return QPushButton::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QPushButton::sizeHint(); + } +} + +bool MuQt_QPushButton::event(QEvent * e) +{ + if (!_env) return QPushButton::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QPushButton::event(e); + } +} + +void MuQt_QPushButton::focusInEvent(QFocusEvent * e) +{ + if (!_env) { QPushButton::focusInEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QPushButton::focusInEvent(e); + } +} + +void MuQt_QPushButton::focusOutEvent(QFocusEvent * e) +{ + if (!_env) { QPushButton::focusOutEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QPushButton::focusOutEvent(e); + } +} + +bool MuQt_QPushButton::hitButton(const QPoint & pos) const +{ + if (!_env) return QPushButton::hitButton(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,pos,"qt.QPoint")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QPushButton::hitButton(pos); + } +} + +void MuQt_QPushButton::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QPushButton::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QPushButton::keyPressEvent(e); + } +} + +void MuQt_QPushButton::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QPushButton::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QPushButton::mouseMoveEvent(e); + } +} + +void MuQt_QPushButton::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QPushButton::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QPushButton::paintEvent(_p14); + } +} + +void MuQt_QPushButton::checkStateSet() +{ + if (!_env) { QPushButton::checkStateSet(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QPushButton::checkStateSet(); + } +} + +void MuQt_QPushButton::nextCheckState() +{ + if (!_env) { QPushButton::nextCheckState(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QPushButton::nextCheckState(); + } +} + +void MuQt_QPushButton::changeEvent(QEvent * e) +{ + if (!_env) { QPushButton::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QPushButton::changeEvent(e); + } +} + +void MuQt_QPushButton::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QPushButton::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QPushButton::keyReleaseEvent(e); + } +} + +void MuQt_QPushButton::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QPushButton::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QPushButton::mousePressEvent(e); + } +} + +void MuQt_QPushButton::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QPushButton::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QPushButton::mouseReleaseEvent(e); + } +} + +void MuQt_QPushButton::timerEvent(QTimerEvent * e) +{ + if (!_env) { QPushButton::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QPushButton::timerEvent(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QPushButtonType::QPushButtonType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QPushButtonType::~QPushButtonType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QPushButton_QPushButton_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QPushButton* w = object(widget)) + { + QPushButtonType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPushButton"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QPushButton_QPushButton_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QPushButton_QPushButton_QPushButton_QPushButton_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QPushButton(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QPushButton_QPushButton_QPushButton_QPushButton_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QPushButton(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QPushButton_QPushButton_QPushButton_QPushButton_QIcon_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + QWidget * arg3 = object(param_parent); + setobject(param_this, new MuQt_QPushButton(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QPushButton_menu_QMenu_QPushButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + return makeinstance(c, arg0->menu(), "qt.QMenu"); +} + +void qt_QPushButton_setMenu_void_QPushButton_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_menu) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QMenu * arg1 = object(param_menu); + arg0->setMenu(arg1); +} + +Pointer qt_QPushButton_minimumSizeHint_QSize_QPushButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QPushButton::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QPushButton_sizeHint_QSize_QPushButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QPushButton::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +bool qt_QPushButton_event_bool_QPushButton_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QPushButton*)arg0)->event_pub_parent(arg1) : ((MuQt_QPushButton*)arg0)->event_pub(arg1); +} + +void qt_QPushButton_focusInEvent_void_QPushButton_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QPushButton*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QPushButton_focusOutEvent_void_QPushButton_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QPushButton*)arg0)->focusOutEvent_pub(arg1); +} + +bool qt_QPushButton_hitButton_bool_QPushButton_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return isMuQtObject(arg0) ? ((MuQt_QPushButton*)arg0)->hitButton_pub_parent(arg1) : ((MuQt_QPushButton*)arg0)->hitButton_pub(arg1); +} + +void qt_QPushButton_keyPressEvent_void_QPushButton_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QPushButton*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QPushButton_mouseMoveEvent_void_QPushButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QPushButton*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QPushButton_paintEvent_void_QPushButton_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QPushButton*)arg0)->paintEvent_pub(arg1); +} + +void qt_QPushButton_checkStateSet_void_QPushButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->checkStateSet_pub_parent(); + else ((MuQt_QPushButton*)arg0)->checkStateSet_pub(); +} + +void qt_QPushButton_nextCheckState_void_QPushButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->nextCheckState_pub_parent(); + else ((MuQt_QPushButton*)arg0)->nextCheckState_pub(); +} + +void qt_QPushButton_changeEvent_void_QPushButton_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QPushButton*)arg0)->changeEvent_pub(arg1); +} + +void qt_QPushButton_keyReleaseEvent_void_QPushButton_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QPushButton*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QPushButton_mousePressEvent_void_QPushButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QPushButton*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QPushButton_mouseReleaseEvent_void_QPushButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QPushButton*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QPushButton_timerEvent_void_QPushButton_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPushButton* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QPushButton*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QPushButton*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QPushButton0, Pointer) +{ + NODE_RETURN(qt_QPushButton_QPushButton_QPushButton_QPushButton_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPushButton1, Pointer) +{ + NODE_RETURN(qt_QPushButton_QPushButton_QPushButton_QPushButton_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QPushButton2, Pointer) +{ + NODE_RETURN(qt_QPushButton_QPushButton_QPushButton_QPushButton_QIcon_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_menu0, Pointer) +{ + NODE_RETURN(qt_QPushButton_menu_QMenu_QPushButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setMenu0, void) +{ + qt_QPushButton_setMenu_void_QPushButton_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QPushButton_minimumSizeHint_QSize_QPushButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QPushButton_sizeHint_QSize_QPushButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QPushButton_event_bool_QPushButton_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QPushButton_focusInEvent_void_QPushButton_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QPushButton_focusOutEvent_void_QPushButton_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hitButton0, bool) +{ + NODE_RETURN(qt_QPushButton_hitButton_bool_QPushButton_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QPushButton_keyPressEvent_void_QPushButton_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QPushButton_mouseMoveEvent_void_QPushButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QPushButton_paintEvent_void_QPushButton_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_checkStateSet0, void) +{ + qt_QPushButton_checkStateSet_void_QPushButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_nextCheckState0, void) +{ + qt_QPushButton_nextCheckState_void_QPushButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QPushButton_changeEvent_void_QPushButton_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QPushButton_keyReleaseEvent_void_QPushButton_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QPushButton_mousePressEvent_void_QPushButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QPushButton_mouseReleaseEvent_void_QPushButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QPushButton_timerEvent_void_QPushButton_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QPushButtonType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QPushButton_QPushButton_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QPushButton", _n_QPushButton0, None, Compiled, qt_QPushButton_QPushButton_QPushButton_QPushButton_QWidget, Return, "qt.QPushButton", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QPushButton", _n_QPushButton1, None, Compiled, qt_QPushButton_QPushButton_QPushButton_QPushButton_string_QWidget, Return, "qt.QPushButton", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QPushButton", _n_QPushButton2, None, Compiled, qt_QPushButton_QPushButton_QPushButton_QPushButton_QIcon_string_QWidget, Return, "qt.QPushButton", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: autoDefault (bool; QPushButton this) + // PROP: isDefault (bool; QPushButton this) + // PROP: isFlat (bool; QPushButton this) + new Function(c, "menu", _n_menu0, None, Compiled, qt_QPushButton_menu_QMenu_QPushButton, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QPushButton"), End), + // PROP: setAutoDefault (void; QPushButton this, bool _p4) + // PROP: setDefault (void; QPushButton this, bool _p4) + // PROP: setFlat (void; QPushButton this, bool _p4) + new Function(c, "setMenu", _n_setMenu0, None, Compiled, qt_QPushButton_setMenu_void_QPushButton_QMenu, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "menu", "qt.QMenu"), End), + _func[0] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QPushButton_minimumSizeHint_QSize_QPushButton, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QPushButton"), End), + _func[1] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QPushButton_sizeHint_QSize_QPushButton, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QPushButton"), End), + // MISSING: initStyleOption (void; QPushButton this, "QStyleOptionButton *" option) // protected + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QPushButton_event_bool_QPushButton_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QPushButton_focusInEvent_void_QPushButton_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[4] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QPushButton_focusOutEvent_void_QPushButton_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[5] = new MemberFunction(c, "hitButton", _n_hitButton0, None, Compiled, qt_QPushButton_hitButton_bool_QPushButton_QPoint, Return, "bool", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "pos", "qt.QPoint"), End), + _func[6] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QPushButton_keyPressEvent_void_QPushButton_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[7] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QPushButton_mouseMoveEvent_void_QPushButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[8] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QPushButton_paintEvent_void_QPushButton_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "_p14", "qt.QPaintEvent"), End), + _func[9] = new MemberFunction(c, "checkStateSet", _n_checkStateSet0, None, Compiled, qt_QPushButton_checkStateSet_void_QPushButton, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), End), + _func[10] = new MemberFunction(c, "nextCheckState", _n_nextCheckState0, None, Compiled, qt_QPushButton_nextCheckState_void_QPushButton, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), End), + _func[11] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QPushButton_changeEvent_void_QPushButton_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "e", "qt.QEvent"), End), + _func[12] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QPushButton_keyReleaseEvent_void_QPushButton_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[13] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QPushButton_mousePressEvent_void_QPushButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[14] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QPushButton_mouseReleaseEvent_void_QPushButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[15] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QPushButton_timerEvent_void_QPushButton_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QPushButton"), new Param(c, "e", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QPushButton::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QQmlApplicationEngineType.cpp b/src/lib/mu/MuQt6/QQmlApplicationEngineType.cpp new file mode 100644 index 000000000..7f0b7e3ff --- /dev/null +++ b/src/lib/mu/MuQt6/QQmlApplicationEngineType.cpp @@ -0,0 +1,273 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QQmlApplicationEngine::~MuQt_QQmlApplicationEngine() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QQmlApplicationEngine::MuQt_QQmlApplicationEngine(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QQmlApplicationEngine(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQmlApplicationEngine")); +} + +MuQt_QQmlApplicationEngine::MuQt_QQmlApplicationEngine(Pointer muobj, const CallEnvironment* ce, const QUrl & url, QObject * parent) + : QQmlApplicationEngine(url, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQmlApplicationEngine")); +} + +MuQt_QQmlApplicationEngine::MuQt_QQmlApplicationEngine(Pointer muobj, const CallEnvironment* ce, const QString & filePath, QObject * parent) + : QQmlApplicationEngine(filePath, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQmlApplicationEngine")); +} + +bool MuQt_QQmlApplicationEngine::event(QEvent * e) +{ + if (!_env) return QQmlApplicationEngine::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQmlApplicationEngine::event(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QQmlApplicationEngineType::QQmlApplicationEngineType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QQmlApplicationEngineType::~QQmlApplicationEngineType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QQmlApplicationEngine_QQmlApplicationEngine_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QQmlApplicationEngine* w = object(widget)) + { + QQmlApplicationEngineType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQmlApplicationEngine"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QQmlApplicationEngine_QQmlApplicationEngine_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QQmlApplicationEngine(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QUrl_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl arg1 = getqtype(param_url); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QQmlApplicationEngine(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_string_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_filePath, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_filePath); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QQmlApplicationEngine(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +bool qt_QQmlApplicationEngine_event_bool_QQmlApplicationEngine_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlApplicationEngine* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QQmlApplicationEngine*)arg0)->event_pub_parent(arg1) : ((MuQt_QQmlApplicationEngine*)arg0)->event_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QQmlApplicationEngine0, Pointer) +{ + NODE_RETURN(qt_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QQmlApplicationEngine1, Pointer) +{ + NODE_RETURN(qt_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QUrl_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QQmlApplicationEngine3, Pointer) +{ + NODE_RETURN(qt_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_string_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QQmlApplicationEngine_event_bool_QQmlApplicationEngine_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QQmlApplicationEngineType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QQmlApplicationEngine_QQmlApplicationEngine_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QQmlApplicationEngine", _n_QQmlApplicationEngine0, None, Compiled, qt_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QObject, Return, "qt.QQmlApplicationEngine", Parameters, new Param(c, "this", "qt.QQmlApplicationEngine"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QQmlApplicationEngine", _n_QQmlApplicationEngine1, None, Compiled, qt_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QUrl_QObject, Return, "qt.QQmlApplicationEngine", Parameters, new Param(c, "this", "qt.QQmlApplicationEngine"), new Param(c, "url", "qt.QUrl"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: QQmlApplicationEngine (QQmlApplicationEngine; QQmlApplicationEngine this, "QAnyStringView" uri, "QAnyStringView" typeName, QObject parent) + new Function(c, "QQmlApplicationEngine", _n_QQmlApplicationEngine3, None, Compiled, qt_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_QQmlApplicationEngine_string_QObject, Return, "qt.QQmlApplicationEngine", Parameters, new Param(c, "this", "qt.QQmlApplicationEngine"), new Param(c, "filePath", "string"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: rootObjects ("QList"; QQmlApplicationEngine this) + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QQmlApplicationEngine_event_bool_QQmlApplicationEngine_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QQmlApplicationEngine"), new Param(c, "e", "qt.QEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QQmlApplicationEngine::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QQmlContextType.cpp b/src/lib/mu/MuQt6/QQmlContextType.cpp new file mode 100644 index 000000000..239fb0215 --- /dev/null +++ b/src/lib/mu/MuQt6/QQmlContextType.cpp @@ -0,0 +1,538 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QQmlContext::~MuQt_QQmlContext() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QQmlContext::MuQt_QQmlContext(Pointer muobj, const CallEnvironment* ce, QQmlEngine * engine, QObject * parent) + : QQmlContext(engine, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQmlContext")); +} + +MuQt_QQmlContext::MuQt_QQmlContext(Pointer muobj, const CallEnvironment* ce, QQmlContext * parentContext, QObject * parent) + : QQmlContext(parentContext, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQmlContext")); +} + +bool MuQt_QQmlContext::event(QEvent * e) +{ + if (!_env) return QQmlContext::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQmlContext::event(e); + } +} + +bool MuQt_QQmlContext::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QQmlContext::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQmlContext::eventFilter(watched, event); + } +} + +void MuQt_QQmlContext::customEvent(QEvent * event) +{ + if (!_env) { QQmlContext::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QQmlContext::customEvent(event); + } +} + +void MuQt_QQmlContext::timerEvent(QTimerEvent * event) +{ + if (!_env) { QQmlContext::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QQmlContext::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QQmlContextType::QQmlContextType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QQmlContextType::~QQmlContextType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QQmlContext_QQmlContext_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QQmlContext* w = object(widget)) + { + QQmlContextType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQmlContext"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QQmlContext_QQmlContext_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QQmlContext_QQmlContext_QQmlContext_QQmlContext_QQmlEngine_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_engine, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine * arg1 = object(param_engine); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QQmlContext(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QQmlContext_QQmlContext_QQmlContext_QQmlContext_QQmlContext_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parentContext, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext * arg1 = object(param_parentContext); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QQmlContext(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QQmlContext_baseUrl_QUrl_QQmlContext(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + return makeqtype(c,arg0->baseUrl(),"qt.QUrl"); +} + +Pointer qt_QQmlContext_contextObject_QObject_QQmlContext(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + return makeinstance(c, arg0->contextObject(), "qt.QObject"); +} + +Pointer qt_QQmlContext_contextProperty_QVariant_QQmlContext_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + const QString arg1 = qstring(param_name); + return makeqtype(c,arg0->contextProperty(arg1),"qt.QVariant"); +} + +Pointer qt_QQmlContext_engine_QQmlEngine_QQmlContext(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + return makeinstance(c, arg0->engine(), "qt.QQmlEngine"); +} + +bool qt_QQmlContext_isValid_bool_QQmlContext(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + return arg0->isValid(); +} + +Pointer qt_QQmlContext_nameForObject_string_QQmlContext_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + const QObject * arg1 = object(param_object); + return makestring(c,arg0->nameForObject(arg1)); +} + +Pointer qt_QQmlContext_objectForName_QObject_QQmlContext_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + const QString arg1 = qstring(param_name); + return makeinstance(c, arg0->objectForName(arg1), "qt.QObject"); +} + +Pointer qt_QQmlContext_parentContext_QQmlContext_QQmlContext(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + return makeinstance(c, arg0->parentContext(), "qt.QQmlContext"); +} + +Pointer qt_QQmlContext_resolvedUrl_QUrl_QQmlContext_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_src) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_src); + return makeqtype(c,arg0->resolvedUrl(arg1),"qt.QUrl"); +} + +void qt_QQmlContext_setBaseUrl_void_QQmlContext_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_baseUrl) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_baseUrl); + arg0->setBaseUrl(arg1); +} + +void qt_QQmlContext_setContextObject_void_QQmlContext_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + QObject * arg1 = object(param_object); + arg0->setContextObject(arg1); +} + +void qt_QQmlContext_setContextProperty_void_QQmlContext_string_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + const QString arg1 = qstring(param_name); + QObject * arg2 = object(param_value); + arg0->setContextProperty(arg1, arg2); +} + +void qt_QQmlContext_setContextProperty_void_QQmlContext_string_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + const QString arg1 = qstring(param_name); + const QVariant arg2 = getqtype(param_value); + arg0->setContextProperty(arg1, arg2); +} + +bool qt_QQmlContext_event_bool_QQmlContext_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QQmlContext::event(arg1) : arg0->event(arg1); +} + +bool qt_QQmlContext_eventFilter_bool_QQmlContext_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QQmlContext::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QQmlContext_customEvent_void_QQmlContext_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQmlContext*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QQmlContext*)arg0)->customEvent_pub(arg1); +} + +void qt_QQmlContext_timerEvent_void_QQmlContext_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlContext* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQmlContext*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QQmlContext*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QQmlContext0, Pointer) +{ + NODE_RETURN(qt_QQmlContext_QQmlContext_QQmlContext_QQmlContext_QQmlEngine_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QQmlContext1, Pointer) +{ + NODE_RETURN(qt_QQmlContext_QQmlContext_QQmlContext_QQmlContext_QQmlContext_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_baseUrl0, Pointer) +{ + NODE_RETURN(qt_QQmlContext_baseUrl_QUrl_QQmlContext(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contextObject0, Pointer) +{ + NODE_RETURN(qt_QQmlContext_contextObject_QObject_QQmlContext(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contextProperty0, Pointer) +{ + NODE_RETURN(qt_QQmlContext_contextProperty_QVariant_QQmlContext_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_engine0, Pointer) +{ + NODE_RETURN(qt_QQmlContext_engine_QQmlEngine_QQmlContext(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QQmlContext_isValid_bool_QQmlContext(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nameForObject0, Pointer) +{ + NODE_RETURN(qt_QQmlContext_nameForObject_string_QQmlContext_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_objectForName0, Pointer) +{ + NODE_RETURN(qt_QQmlContext_objectForName_QObject_QQmlContext_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_parentContext0, Pointer) +{ + NODE_RETURN(qt_QQmlContext_parentContext_QQmlContext_QQmlContext(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resolvedUrl0, Pointer) +{ + NODE_RETURN(qt_QQmlContext_resolvedUrl_QUrl_QQmlContext_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBaseUrl0, void) +{ + qt_QQmlContext_setBaseUrl_void_QQmlContext_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setContextObject0, void) +{ + qt_QQmlContext_setContextObject_void_QQmlContext_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setContextProperty0, void) +{ + qt_QQmlContext_setContextProperty_void_QQmlContext_string_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setContextProperty1, void) +{ + qt_QQmlContext_setContextProperty_void_QQmlContext_string_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QQmlContext_event_bool_QQmlContext_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QQmlContext_eventFilter_bool_QQmlContext_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QQmlContext_customEvent_void_QQmlContext_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QQmlContext_timerEvent_void_QQmlContext_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QQmlContextType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QQmlContext_QQmlContext_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QQmlContext", _n_QQmlContext0, None, Compiled, qt_QQmlContext_QQmlContext_QQmlContext_QQmlContext_QQmlEngine_QObject, Return, "qt.QQmlContext", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "engine", "qt.QQmlEngine"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QQmlContext", _n_QQmlContext1, None, Compiled, qt_QQmlContext_QQmlContext_QQmlContext_QQmlContext_QQmlContext_QObject, Return, "qt.QQmlContext", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "parentContext", "qt.QQmlContext"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "baseUrl", _n_baseUrl0, None, Compiled, qt_QQmlContext_baseUrl_QUrl_QQmlContext, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QQmlContext"), End), + new Function(c, "contextObject", _n_contextObject0, None, Compiled, qt_QQmlContext_contextObject_QObject_QQmlContext, Return, "qt.QObject", Parameters, new Param(c, "this", "qt.QQmlContext"), End), + new Function(c, "contextProperty", _n_contextProperty0, None, Compiled, qt_QQmlContext_contextProperty_QVariant_QQmlContext_string, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "name", "string"), End), + new Function(c, "engine", _n_engine0, None, Compiled, qt_QQmlContext_engine_QQmlEngine_QQmlContext, Return, "qt.QQmlEngine", Parameters, new Param(c, "this", "qt.QQmlContext"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QQmlContext_isValid_bool_QQmlContext, Return, "bool", Parameters, new Param(c, "this", "qt.QQmlContext"), End), + new Function(c, "nameForObject", _n_nameForObject0, None, Compiled, qt_QQmlContext_nameForObject_string_QQmlContext_QObject, Return, "string", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "object", "qt.QObject"), End), + new Function(c, "objectForName", _n_objectForName0, None, Compiled, qt_QQmlContext_objectForName_QObject_QQmlContext_string, Return, "qt.QObject", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "name", "string"), End), + new Function(c, "parentContext", _n_parentContext0, None, Compiled, qt_QQmlContext_parentContext_QQmlContext_QQmlContext, Return, "qt.QQmlContext", Parameters, new Param(c, "this", "qt.QQmlContext"), End), + new Function(c, "resolvedUrl", _n_resolvedUrl0, None, Compiled, qt_QQmlContext_resolvedUrl_QUrl_QQmlContext_QUrl, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "src", "qt.QUrl"), End), + new Function(c, "setBaseUrl", _n_setBaseUrl0, None, Compiled, qt_QQmlContext_setBaseUrl_void_QQmlContext_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "baseUrl", "qt.QUrl"), End), + new Function(c, "setContextObject", _n_setContextObject0, None, Compiled, qt_QQmlContext_setContextObject_void_QQmlContext_QObject, Return, "void", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "object", "qt.QObject"), End), + new Function(c, "setContextProperty", _n_setContextProperty0, None, Compiled, qt_QQmlContext_setContextProperty_void_QQmlContext_string_QObject, Return, "void", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "name", "string"), new Param(c, "value", "qt.QObject"), End), + new Function(c, "setContextProperty", _n_setContextProperty1, None, Compiled, qt_QQmlContext_setContextProperty_void_QQmlContext_string_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "name", "string"), new Param(c, "value", "qt.QVariant"), End), + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QQmlContext_event_bool_QQmlContext_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QQmlContext_eventFilter_bool_QQmlContext_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QQmlContext this) + // MISSING: childEvent (void; QQmlContext this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QQmlContext this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QQmlContext_customEvent_void_QQmlContext_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QQmlContext this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QQmlContext_timerEvent_void_QQmlContext_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQmlContext"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QQmlContext::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QQmlEngineType.cpp b/src/lib/mu/MuQt6/QQmlEngineType.cpp new file mode 100644 index 000000000..c79387bc6 --- /dev/null +++ b/src/lib/mu/MuQt6/QQmlEngineType.cpp @@ -0,0 +1,507 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QQmlEngine::~MuQt_QQmlEngine() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QQmlEngine::MuQt_QQmlEngine(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QQmlEngine(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQmlEngine")); +} + +bool MuQt_QQmlEngine::event(QEvent * e) +{ + if (!_env) return QQmlEngine::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQmlEngine::event(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QQmlEngineType::QQmlEngineType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QQmlEngineType::~QQmlEngineType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QQmlEngine_QQmlEngine_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QQmlEngine* w = object(widget)) + { + QQmlEngineType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQmlEngine"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QQmlEngine_QQmlEngine_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QQmlEngine_QQmlEngine_QQmlEngine_QQmlEngine_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QQmlEngine(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QQmlEngine_addImportPath_void_QQmlEngine_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + const QString arg1 = qstring(param_path); + arg0->addImportPath(arg1); +} + +void qt_QQmlEngine_addPluginPath_void_QQmlEngine_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + const QString arg1 = qstring(param_path); + arg0->addPluginPath(arg1); +} + +Pointer qt_QQmlEngine_baseUrl_QUrl_QQmlEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + return makeqtype(c,arg0->baseUrl(),"qt.QUrl"); +} + +void qt_QQmlEngine_clearComponentCache_void_QQmlEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + arg0->clearComponentCache(); +} + +void qt_QQmlEngine_clearSingletons_void_QQmlEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + arg0->clearSingletons(); +} + +Pointer qt_QQmlEngine_importPathList_stringBSB_ESB__QQmlEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + return makestringlist(c,arg0->importPathList()); +} + +Pointer qt_QQmlEngine_interceptUrl_QUrl_QQmlEngine_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_url); + QQmlAbstractUrlInterceptor::DataType arg2 = (QQmlAbstractUrlInterceptor::DataType)(param_type); + return makeqtype(c,arg0->interceptUrl(arg1, arg2),"qt.QUrl"); +} + +Pointer qt_QQmlEngine_networkAccessManager_QNetworkAccessManager_QQmlEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + return makeinstance(c, arg0->networkAccessManager(), "qt.QNetworkAccessManager"); +} + +Pointer qt_QQmlEngine_offlineStorageDatabaseFilePath_string_QQmlEngine_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_databaseName) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + const QString arg1 = qstring(param_databaseName); + return makestring(c,arg0->offlineStorageDatabaseFilePath(arg1)); +} + +bool qt_QQmlEngine_outputWarningsToStandardError_bool_QQmlEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + return arg0->outputWarningsToStandardError(); +} + +Pointer qt_QQmlEngine_pluginPathList_stringBSB_ESB__QQmlEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + return makestringlist(c,arg0->pluginPathList()); +} + +void qt_QQmlEngine_removeImageProvider_void_QQmlEngine_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_providerId) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + const QString arg1 = qstring(param_providerId); + arg0->removeImageProvider(arg1); +} + +Pointer qt_QQmlEngine_rootContext_QQmlContext_QQmlEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + return makeinstance(c, arg0->rootContext(), "qt.QQmlContext"); +} + +void qt_QQmlEngine_setBaseUrl_void_QQmlEngine_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_url); + arg0->setBaseUrl(arg1); +} + +void qt_QQmlEngine_setImportPathList_void_QQmlEngine_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_paths) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_paths); + arg0->setImportPathList(arg1); +} + +void qt_QQmlEngine_setOutputWarningsToStandardError_void_QQmlEngine_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + bool arg1 = (bool)(param_enabled); + arg0->setOutputWarningsToStandardError(arg1); +} + +void qt_QQmlEngine_setPluginPathList_void_QQmlEngine_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_paths) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_paths); + arg0->setPluginPathList(arg1); +} + +void qt_QQmlEngine_trimComponentCache_void_QQmlEngine(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + arg0->trimComponentCache(); +} + +bool qt_QQmlEngine_event_bool_QQmlEngine_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QQmlEngine*)arg0)->event_pub_parent(arg1) : ((MuQt_QQmlEngine*)arg0)->event_pub(arg1); +} + +Pointer qt_QQmlEngine_contextForObject_QQmlContext_QObject(Mu::Thread& NODE_THREAD, Pointer param_object) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QObject * arg0 = object(param_object); + return makeinstance(c, QQmlEngine::contextForObject(arg0), "qt.QQmlContext"); +} + +void qt_QQmlEngine_setContextForObject_void_QObject_QQmlContext(Mu::Thread& NODE_THREAD, Pointer param_object, Pointer param_context) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg0 = object(param_object); + QQmlContext * arg1 = object(param_context); + QQmlEngine::setContextForObject(arg0, arg1); +} + + +static NODE_IMPLEMENTATION(_n_QQmlEngine0, Pointer) +{ + NODE_RETURN(qt_QQmlEngine_QQmlEngine_QQmlEngine_QQmlEngine_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addImportPath0, void) +{ + qt_QQmlEngine_addImportPath_void_QQmlEngine_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addPluginPath0, void) +{ + qt_QQmlEngine_addPluginPath_void_QQmlEngine_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_baseUrl0, Pointer) +{ + NODE_RETURN(qt_QQmlEngine_baseUrl_QUrl_QQmlEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearComponentCache0, void) +{ + qt_QQmlEngine_clearComponentCache_void_QQmlEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_clearSingletons0, void) +{ + qt_QQmlEngine_clearSingletons_void_QQmlEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_importPathList0, Pointer) +{ + NODE_RETURN(qt_QQmlEngine_importPathList_stringBSB_ESB__QQmlEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_interceptUrl0, Pointer) +{ + NODE_RETURN(qt_QQmlEngine_interceptUrl_QUrl_QQmlEngine_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_networkAccessManager0, Pointer) +{ + NODE_RETURN(qt_QQmlEngine_networkAccessManager_QNetworkAccessManager_QQmlEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_offlineStorageDatabaseFilePath0, Pointer) +{ + NODE_RETURN(qt_QQmlEngine_offlineStorageDatabaseFilePath_string_QQmlEngine_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_outputWarningsToStandardError0, bool) +{ + NODE_RETURN(qt_QQmlEngine_outputWarningsToStandardError_bool_QQmlEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pluginPathList0, Pointer) +{ + NODE_RETURN(qt_QQmlEngine_pluginPathList_stringBSB_ESB__QQmlEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeImageProvider0, void) +{ + qt_QQmlEngine_removeImageProvider_void_QQmlEngine_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_rootContext0, Pointer) +{ + NODE_RETURN(qt_QQmlEngine_rootContext_QQmlContext_QQmlEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBaseUrl0, void) +{ + qt_QQmlEngine_setBaseUrl_void_QQmlEngine_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setImportPathList0, void) +{ + qt_QQmlEngine_setImportPathList_void_QQmlEngine_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setOutputWarningsToStandardError0, void) +{ + qt_QQmlEngine_setOutputWarningsToStandardError_void_QQmlEngine_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setPluginPathList0, void) +{ + qt_QQmlEngine_setPluginPathList_void_QQmlEngine_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_trimComponentCache0, void) +{ + qt_QQmlEngine_trimComponentCache_void_QQmlEngine(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QQmlEngine_event_bool_QQmlEngine_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contextForObject0, Pointer) +{ + NODE_RETURN(qt_QQmlEngine_contextForObject_QQmlContext_QObject(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setContextForObject0, void) +{ + qt_QQmlEngine_setContextForObject_void_QObject_QQmlContext(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QQmlEngineType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QQmlEngine_QQmlEngine_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QQmlEngine", _n_QQmlEngine0, None, Compiled, qt_QQmlEngine_QQmlEngine_QQmlEngine_QQmlEngine_QObject, Return, "qt.QQmlEngine", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: addImageProvider (void; QQmlEngine this, string providerId, "QQmlImageProviderBase *" provider) + new Function(c, "addImportPath", _n_addImportPath0, None, Compiled, qt_QQmlEngine_addImportPath_void_QQmlEngine_string, Return, "void", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "path", "string"), End), + new Function(c, "addPluginPath", _n_addPluginPath0, None, Compiled, qt_QQmlEngine_addPluginPath_void_QQmlEngine_string, Return, "void", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "path", "string"), End), + // MISSING: addUrlInterceptor (void; QQmlEngine this, "QQmlAbstractUrlInterceptor *" urlInterceptor) + new Function(c, "baseUrl", _n_baseUrl0, None, Compiled, qt_QQmlEngine_baseUrl_QUrl_QQmlEngine, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QQmlEngine"), End), + new Function(c, "clearComponentCache", _n_clearComponentCache0, None, Compiled, qt_QQmlEngine_clearComponentCache_void_QQmlEngine, Return, "void", Parameters, new Param(c, "this", "qt.QQmlEngine"), End), + new Function(c, "clearSingletons", _n_clearSingletons0, None, Compiled, qt_QQmlEngine_clearSingletons_void_QQmlEngine, Return, "void", Parameters, new Param(c, "this", "qt.QQmlEngine"), End), + // MISSING: imageProvider ("QQmlImageProviderBase *"; QQmlEngine this, string providerId) + new Function(c, "importPathList", _n_importPathList0, None, Compiled, qt_QQmlEngine_importPathList_stringBSB_ESB__QQmlEngine, Return, "string[]", Parameters, new Param(c, "this", "qt.QQmlEngine"), End), + // MISSING: incubationController ("QQmlIncubationController *"; QQmlEngine this) + new Function(c, "interceptUrl", _n_interceptUrl0, None, Compiled, qt_QQmlEngine_interceptUrl_QUrl_QQmlEngine_QUrl_int, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "url", "qt.QUrl"), new Param(c, "type", "int"), End), + new Function(c, "networkAccessManager", _n_networkAccessManager0, None, Compiled, qt_QQmlEngine_networkAccessManager_QNetworkAccessManager_QQmlEngine, Return, "qt.QNetworkAccessManager", Parameters, new Param(c, "this", "qt.QQmlEngine"), End), + // MISSING: networkAccessManagerFactory ("QQmlNetworkAccessManagerFactory *"; QQmlEngine this) + new Function(c, "offlineStorageDatabaseFilePath", _n_offlineStorageDatabaseFilePath0, None, Compiled, qt_QQmlEngine_offlineStorageDatabaseFilePath_string_QQmlEngine_string, Return, "string", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "databaseName", "string"), End), + // PROP: offlineStoragePath (string; QQmlEngine this) + new Function(c, "outputWarningsToStandardError", _n_outputWarningsToStandardError0, None, Compiled, qt_QQmlEngine_outputWarningsToStandardError_bool_QQmlEngine, Return, "bool", Parameters, new Param(c, "this", "qt.QQmlEngine"), End), + new Function(c, "pluginPathList", _n_pluginPathList0, None, Compiled, qt_QQmlEngine_pluginPathList_stringBSB_ESB__QQmlEngine, Return, "string[]", Parameters, new Param(c, "this", "qt.QQmlEngine"), End), + new Function(c, "removeImageProvider", _n_removeImageProvider0, None, Compiled, qt_QQmlEngine_removeImageProvider_void_QQmlEngine_string, Return, "void", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "providerId", "string"), End), + // MISSING: removeUrlInterceptor (void; QQmlEngine this, "QQmlAbstractUrlInterceptor *" urlInterceptor) + new Function(c, "rootContext", _n_rootContext0, None, Compiled, qt_QQmlEngine_rootContext_QQmlContext_QQmlEngine, Return, "qt.QQmlContext", Parameters, new Param(c, "this", "qt.QQmlEngine"), End), + new Function(c, "setBaseUrl", _n_setBaseUrl0, None, Compiled, qt_QQmlEngine_setBaseUrl_void_QQmlEngine_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "url", "qt.QUrl"), End), + new Function(c, "setImportPathList", _n_setImportPathList0, None, Compiled, qt_QQmlEngine_setImportPathList_void_QQmlEngine_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "paths", "string[]"), End), + // MISSING: setIncubationController (void; QQmlEngine this, "QQmlIncubationController *" controller) + // MISSING: setNetworkAccessManagerFactory (void; QQmlEngine this, "QQmlNetworkAccessManagerFactory *" factory) + // PROP: setOfflineStoragePath (void; QQmlEngine this, string dir) + new Function(c, "setOutputWarningsToStandardError", _n_setOutputWarningsToStandardError0, None, Compiled, qt_QQmlEngine_setOutputWarningsToStandardError_void_QQmlEngine_bool, Return, "void", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "enabled", "bool"), End), + new Function(c, "setPluginPathList", _n_setPluginPathList0, None, Compiled, qt_QQmlEngine_setPluginPathList_void_QQmlEngine_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "paths", "string[]"), End), + // MISSING: singletonInstance ("T"; QQmlEngine this, int qmlTypeId) + // MISSING: singletonInstance ("T"; QQmlEngine this, "QAnyStringView" uri, "QAnyStringView" typeName) + new Function(c, "trimComponentCache", _n_trimComponentCache0, None, Compiled, qt_QQmlEngine_trimComponentCache_void_QQmlEngine, Return, "void", Parameters, new Param(c, "this", "qt.QQmlEngine"), End), + // MISSING: urlInterceptors ("QList"; QQmlEngine this) + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QQmlEngine_event_bool_QQmlEngine_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QQmlEngine"), new Param(c, "e", "qt.QEvent"), End), + // static functions + new Function(c, "contextForObject", _n_contextForObject0, None, Compiled, qt_QQmlEngine_contextForObject_QQmlContext_QObject, Return, "qt.QQmlContext", Parameters, new Param(c, "object", "qt.QObject"), End), + new Function(c, "setContextForObject", _n_setContextForObject0, None, Compiled, qt_QQmlEngine_setContextForObject_void_QObject_QQmlContext, Return, "void", Parameters, new Param(c, "object", "qt.QObject"), new Param(c, "context", "qt.QQmlContext"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QQmlEngine::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QQuickItemType.cpp b/src/lib/mu/MuQt6/QQuickItemType.cpp new file mode 100644 index 000000000..900865477 --- /dev/null +++ b/src/lib/mu/MuQt6/QQuickItemType.cpp @@ -0,0 +1,2007 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QQuickItem::~MuQt_QQuickItem() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QQuickItem::MuQt_QQuickItem(Pointer muobj, const CallEnvironment* ce, QQuickItem * parent) + : QQuickItem(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQuickItem")); +} + +QRectF MuQt_QQuickItem::boundingRect() const +{ + if (!_env) return QQuickItem::boundingRect(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QQuickItem::boundingRect(); + } +} + +QRectF MuQt_QQuickItem::clipRect() const +{ + if (!_env) return QQuickItem::clipRect(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QQuickItem::clipRect(); + } +} + +bool MuQt_QQuickItem::contains(const QPointF & point) const +{ + if (!_env) return QQuickItem::contains(point); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,point,"qt.QPointF")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQuickItem::contains(point); + } +} + +QVariant MuQt_QQuickItem::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QQuickItem::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QQuickItem::inputMethodQuery(query); + } +} + +bool MuQt_QQuickItem::isTextureProvider() const +{ + if (!_env) return QQuickItem::isTextureProvider(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQuickItem::isTextureProvider(); + } +} + +bool MuQt_QQuickItem::childMouseEventFilter(QQuickItem * item, QEvent * event) +{ + if (!_env) return QQuickItem::childMouseEventFilter(item, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,item,"qt.QQuickItem")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQuickItem::childMouseEventFilter(item, event); + } +} + +void MuQt_QQuickItem::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QQuickItem::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::dragEnterEvent(event); + } +} + +void MuQt_QQuickItem::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QQuickItem::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::dragLeaveEvent(event); + } +} + +void MuQt_QQuickItem::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QQuickItem::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::dragMoveEvent(event); + } +} + +void MuQt_QQuickItem::dropEvent(QDropEvent * event) +{ + if (!_env) { QQuickItem::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::dropEvent(event); + } +} + +void MuQt_QQuickItem::focusInEvent(QFocusEvent * _p14) +{ + if (!_env) { QQuickItem::focusInEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::focusInEvent(_p14); + } +} + +void MuQt_QQuickItem::focusOutEvent(QFocusEvent * _p14) +{ + if (!_env) { QQuickItem::focusOutEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::focusOutEvent(_p14); + } +} + +void MuQt_QQuickItem::geometryChange(const QRectF & newGeometry, const QRectF & oldGeometry) +{ + if (!_env) { QQuickItem::geometryChange(newGeometry, oldGeometry); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,newGeometry,"qt.QRectF")); + args[2] = Value(makeqtype(c,oldGeometry,"qt.QRectF")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::geometryChange(newGeometry, oldGeometry); + } +} + +void MuQt_QQuickItem::hoverEnterEvent(QHoverEvent * event) +{ + if (!_env) { QQuickItem::hoverEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHoverEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::hoverEnterEvent(event); + } +} + +void MuQt_QQuickItem::hoverLeaveEvent(QHoverEvent * event) +{ + if (!_env) { QQuickItem::hoverLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHoverEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::hoverLeaveEvent(event); + } +} + +void MuQt_QQuickItem::hoverMoveEvent(QHoverEvent * event) +{ + if (!_env) { QQuickItem::hoverMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHoverEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::hoverMoveEvent(event); + } +} + +void MuQt_QQuickItem::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QQuickItem::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::keyPressEvent(event); + } +} + +void MuQt_QQuickItem::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QQuickItem::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::keyReleaseEvent(event); + } +} + +void MuQt_QQuickItem::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QQuickItem::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::mouseDoubleClickEvent(event); + } +} + +void MuQt_QQuickItem::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QQuickItem::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::mouseMoveEvent(event); + } +} + +void MuQt_QQuickItem::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QQuickItem::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::mousePressEvent(event); + } +} + +void MuQt_QQuickItem::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QQuickItem::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::mouseReleaseEvent(event); + } +} + +void MuQt_QQuickItem::mouseUngrabEvent() +{ + if (!_env) { QQuickItem::mouseUngrabEvent(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::mouseUngrabEvent(); + } +} + +void MuQt_QQuickItem::releaseResources() +{ + if (!_env) { QQuickItem::releaseResources(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::releaseResources(); + } +} + +void MuQt_QQuickItem::touchUngrabEvent() +{ + if (!_env) { QQuickItem::touchUngrabEvent(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::touchUngrabEvent(); + } +} + +void MuQt_QQuickItem::updatePolish() +{ + if (!_env) { QQuickItem::updatePolish(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::updatePolish(); + } +} + +void MuQt_QQuickItem::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QQuickItem::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::wheelEvent(event); + } +} + +void MuQt_QQuickItem::classBegin() +{ + if (!_env) { QQuickItem::classBegin(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::classBegin(); + } +} + +void MuQt_QQuickItem::componentComplete() +{ + if (!_env) { QQuickItem::componentComplete(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::componentComplete(); + } +} + +bool MuQt_QQuickItem::event(QEvent * ev) +{ + if (!_env) return QQuickItem::event(ev); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQuickItem::event(ev); + } +} + +bool MuQt_QQuickItem::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QQuickItem::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQuickItem::eventFilter(watched, event); + } +} + +void MuQt_QQuickItem::customEvent(QEvent * event) +{ + if (!_env) { QQuickItem::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::customEvent(event); + } +} + +void MuQt_QQuickItem::timerEvent(QTimerEvent * event) +{ + if (!_env) { QQuickItem::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickItem::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QQuickItemType::QQuickItemType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QQuickItemType::~QQuickItemType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QQuickItem_QQuickItem_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QQuickItem* w = object(widget)) + { + QQuickItemType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQuickItem"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QQuickItem_QQuickItem_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QQuickItem_QQuickItem_QQuickItem_QQuickItem_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem * arg1 = object(param_parent); + setobject(param_this, new MuQt_QQuickItem(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +bool qt_QQuickItem_acceptHoverEvents_bool_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return arg0->acceptHoverEvents(); +} + +bool qt_QQuickItem_acceptTouchEvents_bool_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return arg0->acceptTouchEvents(); +} + +int qt_QQuickItem_acceptedMouseButtons_int_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return int(arg0->acceptedMouseButtons()); +} + +Pointer qt_QQuickItem_boundingRect_QRectF_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QQuickItem::boundingRect(),"qt.QRectF") : makeqtype(c,arg0->boundingRect(),"qt.QRectF"); +} + +Pointer qt_QQuickItem_childAt_QQuickItem_QQuickItem_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + qreal arg1 = (double)(param_x); + qreal arg2 = (double)(param_y); + return makeinstance(c, arg0->childAt(arg1, arg2), "qt.QQuickItem"); +} + +Pointer qt_QQuickItem_clipRect_QRectF_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QQuickItem::clipRect(),"qt.QRectF") : makeqtype(c,arg0->clipRect(),"qt.QRectF"); +} + +bool qt_QQuickItem_contains_bool_QQuickItem_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QPointF arg1 = getqtype(param_point); + return isMuQtObject(arg0) ? arg0->QQuickItem::contains(arg1) : arg0->contains(arg1); +} + +Pointer qt_QQuickItem_cursor_QCursor_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return makeqtype(c,arg0->cursor(),"qt.QCursor"); +} + +void qt_QQuickItem_dumpItemTree_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + arg0->dumpItemTree(); +} + +void qt_QQuickItem_ensurePolished_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + arg0->ensurePolished(); +} + +bool qt_QQuickItem_filtersChildMouseEvents_bool_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return arg0->filtersChildMouseEvents(); +} + +int qt_QQuickItem_flags_int_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return int(arg0->flags()); +} + +void qt_QQuickItem_forceActiveFocus_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + arg0->forceActiveFocus(); +} + +void qt_QQuickItem_forceActiveFocus_void_QQuickItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_reason) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + Qt::FocusReason arg1 = (Qt::FocusReason)(param_reason); + arg0->forceActiveFocus(arg1); +} + +double qt_QQuickItem_implicitWidth_double_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return arg0->implicitWidth(); +} + +Pointer qt_QQuickItem_inputMethodQuery_QVariant_QQuickItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QQuickItem::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +bool qt_QQuickItem_isAncestorOf_bool_QQuickItem_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_child) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QQuickItem * arg1 = object(param_child); + return arg0->isAncestorOf(arg1); +} + +bool qt_QQuickItem_isFocusScope_bool_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return arg0->isFocusScope(); +} + +bool qt_QQuickItem_isTextureProvider_bool_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QQuickItem::isTextureProvider() : arg0->isTextureProvider(); +} + +bool qt_QQuickItem_keepMouseGrab_bool_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return arg0->keepMouseGrab(); +} + +bool qt_QQuickItem_keepTouchGrab_bool_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return arg0->keepTouchGrab(); +} + +Pointer qt_QQuickItem_mapFromGlobal_QPointF_QQuickItem_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QPointF arg1 = getqtype(param_point); + return makeqtype(c,arg0->mapFromGlobal(arg1),"qt.QPointF"); +} + +Pointer qt_QQuickItem_mapFromItem_QPointF_QQuickItem_QQuickItem_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QQuickItem * arg1 = object(param_item); + const QPointF arg2 = getqtype(param_point); + return makeqtype(c,arg0->mapFromItem(arg1, arg2),"qt.QPointF"); +} + +Pointer qt_QQuickItem_mapFromScene_QPointF_QQuickItem_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QPointF arg1 = getqtype(param_point); + return makeqtype(c,arg0->mapFromScene(arg1),"qt.QPointF"); +} + +Pointer qt_QQuickItem_mapRectFromItem_QRectF_QQuickItem_QQuickItem_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QQuickItem * arg1 = object(param_item); + const QRectF arg2 = getqtype(param_rect); + return makeqtype(c,arg0->mapRectFromItem(arg1, arg2),"qt.QRectF"); +} + +Pointer qt_QQuickItem_mapRectFromScene_QRectF_QQuickItem_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QRectF arg1 = getqtype(param_rect); + return makeqtype(c,arg0->mapRectFromScene(arg1),"qt.QRectF"); +} + +Pointer qt_QQuickItem_mapRectToItem_QRectF_QQuickItem_QQuickItem_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QQuickItem * arg1 = object(param_item); + const QRectF arg2 = getqtype(param_rect); + return makeqtype(c,arg0->mapRectToItem(arg1, arg2),"qt.QRectF"); +} + +Pointer qt_QQuickItem_mapRectToScene_QRectF_QQuickItem_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QRectF arg1 = getqtype(param_rect); + return makeqtype(c,arg0->mapRectToScene(arg1),"qt.QRectF"); +} + +Pointer qt_QQuickItem_mapToGlobal_QPointF_QQuickItem_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QPointF arg1 = getqtype(param_point); + return makeqtype(c,arg0->mapToGlobal(arg1),"qt.QPointF"); +} + +Pointer qt_QQuickItem_mapToItem_QPointF_QQuickItem_QQuickItem_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QQuickItem * arg1 = object(param_item); + const QPointF arg2 = getqtype(param_point); + return makeqtype(c,arg0->mapToItem(arg1, arg2),"qt.QPointF"); +} + +Pointer qt_QQuickItem_mapToScene_QPointF_QQuickItem_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QPointF arg1 = getqtype(param_point); + return makeqtype(c,arg0->mapToScene(arg1),"qt.QPointF"); +} + +Pointer qt_QQuickItem_nextItemInFocusChain_QQuickItem_QQuickItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_forward) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + bool arg1 = (bool)(param_forward); + return makeinstance(c, arg0->nextItemInFocusChain(arg1), "qt.QQuickItem"); +} + +void qt_QQuickItem_polish_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + arg0->polish(); +} + +Pointer qt_QQuickItem_scopedFocusItem_QQuickItem_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return makeinstance(c, arg0->scopedFocusItem(), "qt.QQuickItem"); +} + +void qt_QQuickItem_setAcceptHoverEvents_void_QQuickItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + bool arg1 = (bool)(param_enabled); + arg0->setAcceptHoverEvents(arg1); +} + +void qt_QQuickItem_setAcceptTouchEvents_void_QQuickItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + bool arg1 = (bool)(param_enabled); + arg0->setAcceptTouchEvents(arg1); +} + +void qt_QQuickItem_setAcceptedMouseButtons_void_QQuickItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_buttons) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + Qt::MouseButtons arg1 = (Qt::MouseButtons)(param_buttons); + arg0->setAcceptedMouseButtons(arg1); +} + +void qt_QQuickItem_setCursor_void_QQuickItem_QCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cursor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QCursor arg1 = getqtype(param_cursor); + arg0->setCursor(arg1); +} + +void qt_QQuickItem_setFiltersChildMouseEvents_void_QQuickItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_filter) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + bool arg1 = (bool)(param_filter); + arg0->setFiltersChildMouseEvents(arg1); +} + +void qt_QQuickItem_setFlag_void_QQuickItem_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flag, bool param_enabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QQuickItem::Flag arg1 = (QQuickItem::Flag)(param_flag); + bool arg2 = (bool)(param_enabled); + arg0->setFlag(arg1, arg2); +} + +void qt_QQuickItem_setFlags_void_QQuickItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QQuickItem::Flags arg1 = (QQuickItem::Flags)(param_flags); + arg0->setFlags(arg1); +} + +void qt_QQuickItem_setKeepMouseGrab_void_QQuickItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_keep) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + bool arg1 = (bool)(param_keep); + arg0->setKeepMouseGrab(arg1); +} + +void qt_QQuickItem_setKeepTouchGrab_void_QQuickItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_keep) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + bool arg1 = (bool)(param_keep); + arg0->setKeepTouchGrab(arg1); +} + +void qt_QQuickItem_stackAfter_void_QQuickItem_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sibling) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QQuickItem * arg1 = object(param_sibling); + arg0->stackAfter(arg1); +} + +void qt_QQuickItem_stackBefore_void_QQuickItem_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sibling) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QQuickItem * arg1 = object(param_sibling); + arg0->stackBefore(arg1); +} + +void qt_QQuickItem_unsetCursor_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + arg0->unsetCursor(); +} + +Pointer qt_QQuickItem_viewportItem_QQuickItem_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return makeinstance(c, arg0->viewportItem(), "qt.QQuickItem"); +} + +bool qt_QQuickItem_childMouseEventFilter_bool_QQuickItem_QQuickItem_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QQuickItem * arg1 = object(param_item); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QQuickItem*)arg0)->childMouseEventFilter_pub_parent(arg1, arg2) : ((MuQt_QQuickItem*)arg0)->childMouseEventFilter_pub(arg1, arg2); +} + +void qt_QQuickItem_dragEnterEvent_void_QQuickItem_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QQuickItem_dragLeaveEvent_void_QQuickItem_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QQuickItem_dragMoveEvent_void_QQuickItem_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QQuickItem_dropEvent_void_QQuickItem_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->dropEvent_pub(arg1); +} + +void qt_QQuickItem_focusInEvent_void_QQuickItem_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QQuickItem_focusOutEvent_void_QQuickItem_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QQuickItem_geometryChange_void_QQuickItem_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_newGeometry, Pointer param_oldGeometry) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + const QRectF arg1 = getqtype(param_newGeometry); + const QRectF arg2 = getqtype(param_oldGeometry); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->geometryChange_pub_parent(arg1, arg2); + else ((MuQt_QQuickItem*)arg0)->geometryChange_pub(arg1, arg2); +} + +bool qt_QQuickItem_heightValid_bool_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return ((MuQt_QQuickItem*)arg0)->heightValid_pub(); +} + +void qt_QQuickItem_hoverEnterEvent_void_QQuickItem_QHoverEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QHoverEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->hoverEnterEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->hoverEnterEvent_pub(arg1); +} + +void qt_QQuickItem_hoverLeaveEvent_void_QQuickItem_QHoverEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QHoverEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->hoverLeaveEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->hoverLeaveEvent_pub(arg1); +} + +void qt_QQuickItem_hoverMoveEvent_void_QQuickItem_QHoverEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QHoverEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->hoverMoveEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->hoverMoveEvent_pub(arg1); +} + +bool qt_QQuickItem_isComponentComplete_bool_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return ((MuQt_QQuickItem*)arg0)->isComponentComplete_pub(); +} + +void qt_QQuickItem_keyPressEvent_void_QQuickItem_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QQuickItem_keyReleaseEvent_void_QQuickItem_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QQuickItem_mouseDoubleClickEvent_void_QQuickItem_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QQuickItem_mouseMoveEvent_void_QQuickItem_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QQuickItem_mousePressEvent_void_QQuickItem_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QQuickItem_mouseReleaseEvent_void_QQuickItem_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QQuickItem_mouseUngrabEvent_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->mouseUngrabEvent_pub_parent(); + else ((MuQt_QQuickItem*)arg0)->mouseUngrabEvent_pub(); +} + +void qt_QQuickItem_releaseResources_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->releaseResources_pub_parent(); + else ((MuQt_QQuickItem*)arg0)->releaseResources_pub(); +} + +void qt_QQuickItem_touchUngrabEvent_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->touchUngrabEvent_pub_parent(); + else ((MuQt_QQuickItem*)arg0)->touchUngrabEvent_pub(); +} + +void qt_QQuickItem_updateInputMethod_void_QQuickItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_queries) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + Qt::InputMethodQueries arg1 = (Qt::InputMethodQueries)(param_queries); + ((MuQt_QQuickItem*)arg0)->updateInputMethod_pub(arg1); +} + +void qt_QQuickItem_updatePolish_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->updatePolish_pub_parent(); + else ((MuQt_QQuickItem*)arg0)->updatePolish_pub(); +} + +void qt_QQuickItem_wheelEvent_void_QQuickItem_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->wheelEvent_pub(arg1); +} + +bool qt_QQuickItem_widthValid_bool_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + return ((MuQt_QQuickItem*)arg0)->widthValid_pub(); +} + +void qt_QQuickItem_classBegin_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->classBegin_pub_parent(); + else ((MuQt_QQuickItem*)arg0)->classBegin_pub(); +} + +void qt_QQuickItem_componentComplete_void_QQuickItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->componentComplete_pub_parent(); + else ((MuQt_QQuickItem*)arg0)->componentComplete_pub(); +} + +bool qt_QQuickItem_event_bool_QQuickItem_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + return isMuQtObject(arg0) ? ((MuQt_QQuickItem*)arg0)->event_pub_parent(arg1) : ((MuQt_QQuickItem*)arg0)->event_pub(arg1); +} + +bool qt_QQuickItem_eventFilter_bool_QQuickItem_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QQuickItem::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QQuickItem_customEvent_void_QQuickItem_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->customEvent_pub(arg1); +} + +void qt_QQuickItem_timerEvent_void_QQuickItem_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickItem* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickItem*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QQuickItem*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QQuickItem0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_QQuickItem_QQuickItem_QQuickItem_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_acceptHoverEvents0, bool) +{ + NODE_RETURN(qt_QQuickItem_acceptHoverEvents_bool_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_acceptTouchEvents0, bool) +{ + NODE_RETURN(qt_QQuickItem_acceptTouchEvents_bool_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_acceptedMouseButtons0, int) +{ + NODE_RETURN(qt_QQuickItem_acceptedMouseButtons_int_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_boundingRect0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_boundingRect_QRectF_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_childAt0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_childAt_QQuickItem_QQuickItem_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double))); +} + +static NODE_IMPLEMENTATION(_n_clipRect0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_clipRect_QRectF_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contains0, bool) +{ + NODE_RETURN(qt_QQuickItem_contains_bool_QQuickItem_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cursor0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_cursor_QCursor_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dumpItemTree0, void) +{ + qt_QQuickItem_dumpItemTree_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_ensurePolished0, void) +{ + qt_QQuickItem_ensurePolished_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_filtersChildMouseEvents0, bool) +{ + NODE_RETURN(qt_QQuickItem_filtersChildMouseEvents_bool_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QQuickItem_flags_int_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_forceActiveFocus0, void) +{ + qt_QQuickItem_forceActiveFocus_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_forceActiveFocus1, void) +{ + qt_QQuickItem_forceActiveFocus_void_QQuickItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_implicitWidth0, double) +{ + NODE_RETURN(qt_QQuickItem_implicitWidth_double_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_inputMethodQuery_QVariant_QQuickItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isAncestorOf0, bool) +{ + NODE_RETURN(qt_QQuickItem_isAncestorOf_bool_QQuickItem_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isFocusScope0, bool) +{ + NODE_RETURN(qt_QQuickItem_isFocusScope_bool_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isTextureProvider0, bool) +{ + NODE_RETURN(qt_QQuickItem_isTextureProvider_bool_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keepMouseGrab0, bool) +{ + NODE_RETURN(qt_QQuickItem_keepMouseGrab_bool_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keepTouchGrab0, bool) +{ + NODE_RETURN(qt_QQuickItem_keepTouchGrab_bool_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapFromGlobal0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_mapFromGlobal_QPointF_QQuickItem_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapFromItem0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_mapFromItem_QPointF_QQuickItem_QQuickItem_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapFromScene0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_mapFromScene_QPointF_QQuickItem_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapRectFromItem0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_mapRectFromItem_QRectF_QQuickItem_QQuickItem_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapRectFromScene0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_mapRectFromScene_QRectF_QQuickItem_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapRectToItem0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_mapRectToItem_QRectF_QQuickItem_QQuickItem_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapRectToScene0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_mapRectToScene_QRectF_QQuickItem_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapToGlobal0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_mapToGlobal_QPointF_QQuickItem_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapToItem0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_mapToItem_QPointF_QQuickItem_QQuickItem_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapToScene0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_mapToScene_QPointF_QQuickItem_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nextItemInFocusChain0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_nextItemInFocusChain_QQuickItem_QQuickItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_polish0, void) +{ + qt_QQuickItem_polish_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_scopedFocusItem0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_scopedFocusItem_QQuickItem_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAcceptHoverEvents0, void) +{ + qt_QQuickItem_setAcceptHoverEvents_void_QQuickItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setAcceptTouchEvents0, void) +{ + qt_QQuickItem_setAcceptTouchEvents_void_QQuickItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setAcceptedMouseButtons0, void) +{ + qt_QQuickItem_setAcceptedMouseButtons_void_QQuickItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setCursor0, void) +{ + qt_QQuickItem_setCursor_void_QQuickItem_QCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFiltersChildMouseEvents0, void) +{ + qt_QQuickItem_setFiltersChildMouseEvents_void_QQuickItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setFlag0, void) +{ + qt_QQuickItem_setFlag_void_QQuickItem_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setFlags0, void) +{ + qt_QQuickItem_setFlags_void_QQuickItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setKeepMouseGrab0, void) +{ + qt_QQuickItem_setKeepMouseGrab_void_QQuickItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setKeepTouchGrab0, void) +{ + qt_QQuickItem_setKeepTouchGrab_void_QQuickItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_stackAfter0, void) +{ + qt_QQuickItem_stackAfter_void_QQuickItem_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_stackBefore0, void) +{ + qt_QQuickItem_stackBefore_void_QQuickItem_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_unsetCursor0, void) +{ + qt_QQuickItem_unsetCursor_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_viewportItem0, Pointer) +{ + NODE_RETURN(qt_QQuickItem_viewportItem_QQuickItem_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_childMouseEventFilter0, bool) +{ + NODE_RETURN(qt_QQuickItem_childMouseEventFilter_bool_QQuickItem_QQuickItem_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QQuickItem_dragEnterEvent_void_QQuickItem_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QQuickItem_dragLeaveEvent_void_QQuickItem_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QQuickItem_dragMoveEvent_void_QQuickItem_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QQuickItem_dropEvent_void_QQuickItem_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QQuickItem_focusInEvent_void_QQuickItem_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QQuickItem_focusOutEvent_void_QQuickItem_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_geometryChange0, void) +{ + qt_QQuickItem_geometryChange_void_QQuickItem_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_heightValid0, bool) +{ + NODE_RETURN(qt_QQuickItem_heightValid_bool_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hoverEnterEvent0, void) +{ + qt_QQuickItem_hoverEnterEvent_void_QQuickItem_QHoverEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hoverLeaveEvent0, void) +{ + qt_QQuickItem_hoverLeaveEvent_void_QQuickItem_QHoverEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hoverMoveEvent0, void) +{ + qt_QQuickItem_hoverMoveEvent_void_QQuickItem_QHoverEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isComponentComplete0, bool) +{ + NODE_RETURN(qt_QQuickItem_isComponentComplete_bool_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QQuickItem_keyPressEvent_void_QQuickItem_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QQuickItem_keyReleaseEvent_void_QQuickItem_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QQuickItem_mouseDoubleClickEvent_void_QQuickItem_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QQuickItem_mouseMoveEvent_void_QQuickItem_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QQuickItem_mousePressEvent_void_QQuickItem_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QQuickItem_mouseReleaseEvent_void_QQuickItem_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseUngrabEvent0, void) +{ + qt_QQuickItem_mouseUngrabEvent_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_releaseResources0, void) +{ + qt_QQuickItem_releaseResources_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_touchUngrabEvent0, void) +{ + qt_QQuickItem_touchUngrabEvent_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_updateInputMethod0, void) +{ + qt_QQuickItem_updateInputMethod_void_QQuickItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_updatePolish0, void) +{ + qt_QQuickItem_updatePolish_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QQuickItem_wheelEvent_void_QQuickItem_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_widthValid0, bool) +{ + NODE_RETURN(qt_QQuickItem_widthValid_bool_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_classBegin0, void) +{ + qt_QQuickItem_classBegin_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_componentComplete0, void) +{ + qt_QQuickItem_componentComplete_void_QQuickItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QQuickItem_event_bool_QQuickItem_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QQuickItem_eventFilter_bool_QQuickItem_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QQuickItem_customEvent_void_QQuickItem_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QQuickItem_timerEvent_void_QQuickItem_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QQuickItemType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QQuickItem_QQuickItem_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QQuickItem", _n_QQuickItem0, None, Compiled, qt_QQuickItem_QQuickItem_QQuickItem_QQuickItem_QQuickItem, Return, "qt.QQuickItem", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "parent", "qt.QQuickItem"), End), + new Function(c, "acceptHoverEvents", _n_acceptHoverEvents0, None, Compiled, qt_QQuickItem_acceptHoverEvents_bool_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "acceptTouchEvents", _n_acceptTouchEvents0, None, Compiled, qt_QQuickItem_acceptTouchEvents_bool_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "acceptedMouseButtons", _n_acceptedMouseButtons0, None, Compiled, qt_QQuickItem_acceptedMouseButtons_int_QQuickItem, Return, "int", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + // PROP: activeFocusOnTab (bool; QQuickItem this) + // PROP: antialiasing (bool; QQuickItem this) + // PROP: baselineOffset (double; QQuickItem this) + // MISSING: bindableHeight ("QBindable"; QQuickItem this) + // MISSING: bindableWidth ("QBindable"; QQuickItem this) + // MISSING: bindableX ("QBindable"; QQuickItem this) + // MISSING: bindableY ("QBindable"; QQuickItem this) + _func[0] = new MemberFunction(c, "boundingRect", _n_boundingRect0, None, Compiled, qt_QQuickItem_boundingRect_QRectF_QQuickItem, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "childAt", _n_childAt0, None, Compiled, qt_QQuickItem_childAt_QQuickItem_QQuickItem_double_double, Return, "qt.QQuickItem", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "x", "double"), new Param(c, "y", "double"), End), + // MISSING: childItems ("QList"; QQuickItem this) + // PROP: childrenRect (QRectF; QQuickItem this) + // PROP: clip (bool; QQuickItem this) + _func[1] = new MemberFunction(c, "clipRect", _n_clipRect0, None, Compiled, qt_QQuickItem_clipRect_QRectF_QQuickItem, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + // PROP: containmentMask (QObject; QQuickItem this) + _func[2] = new MemberFunction(c, "contains", _n_contains0, None, Compiled, qt_QQuickItem_contains_bool_QQuickItem_QPointF, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "point", "qt.QPointF"), End), + new Function(c, "cursor", _n_cursor0, None, Compiled, qt_QQuickItem_cursor_QCursor_QQuickItem, Return, "qt.QCursor", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "dumpItemTree", _n_dumpItemTree0, None, Compiled, qt_QQuickItem_dumpItemTree_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "ensurePolished", _n_ensurePolished0, None, Compiled, qt_QQuickItem_ensurePolished_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "filtersChildMouseEvents", _n_filtersChildMouseEvents0, None, Compiled, qt_QQuickItem_filtersChildMouseEvents_bool_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "flags", _n_flags0, None, Compiled, qt_QQuickItem_flags_int_QQuickItem, Return, "int", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "forceActiveFocus", _n_forceActiveFocus0, None, Compiled, qt_QQuickItem_forceActiveFocus_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "forceActiveFocus", _n_forceActiveFocus1, None, Compiled, qt_QQuickItem_forceActiveFocus_void_QQuickItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "reason", "int"), End), + // MISSING: grabToImage ("QSharedPointer"; QQuickItem this, QSize targetSize) + // PROP: hasActiveFocus (bool; QQuickItem this) + // PROP: hasFocus (bool; QQuickItem this) + // PROP: height (double; QQuickItem this) + // PROP: implicitHeight (double; QQuickItem this) + new Function(c, "implicitWidth", _n_implicitWidth0, None, Compiled, qt_QQuickItem_implicitWidth_double_QQuickItem, Return, "double", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + _func[3] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QQuickItem_inputMethodQuery_QVariant_QQuickItem_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "query", "int"), End), + new Function(c, "isAncestorOf", _n_isAncestorOf0, None, Compiled, qt_QQuickItem_isAncestorOf_bool_QQuickItem_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "child", "qt.QQuickItem"), End), + // PROP: isEnabled (bool; QQuickItem this) + new Function(c, "isFocusScope", _n_isFocusScope0, None, Compiled, qt_QQuickItem_isFocusScope_bool_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + _func[4] = new MemberFunction(c, "isTextureProvider", _n_isTextureProvider0, None, Compiled, qt_QQuickItem_isTextureProvider_bool_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + // PROP: isVisible (bool; QQuickItem this) + new Function(c, "keepMouseGrab", _n_keepMouseGrab0, None, Compiled, qt_QQuickItem_keepMouseGrab_bool_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "keepTouchGrab", _n_keepTouchGrab0, None, Compiled, qt_QQuickItem_keepTouchGrab_bool_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "mapFromGlobal", _n_mapFromGlobal0, None, Compiled, qt_QQuickItem_mapFromGlobal_QPointF_QQuickItem_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "point", "qt.QPointF"), End), + new Function(c, "mapFromItem", _n_mapFromItem0, None, Compiled, qt_QQuickItem_mapFromItem_QPointF_QQuickItem_QQuickItem_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "item", "qt.QQuickItem"), new Param(c, "point", "qt.QPointF"), End), + new Function(c, "mapFromScene", _n_mapFromScene0, None, Compiled, qt_QQuickItem_mapFromScene_QPointF_QQuickItem_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "point", "qt.QPointF"), End), + new Function(c, "mapRectFromItem", _n_mapRectFromItem0, None, Compiled, qt_QQuickItem_mapRectFromItem_QRectF_QQuickItem_QQuickItem_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "item", "qt.QQuickItem"), new Param(c, "rect", "qt.QRectF"), End), + new Function(c, "mapRectFromScene", _n_mapRectFromScene0, None, Compiled, qt_QQuickItem_mapRectFromScene_QRectF_QQuickItem_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "rect", "qt.QRectF"), End), + new Function(c, "mapRectToItem", _n_mapRectToItem0, None, Compiled, qt_QQuickItem_mapRectToItem_QRectF_QQuickItem_QQuickItem_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "item", "qt.QQuickItem"), new Param(c, "rect", "qt.QRectF"), End), + new Function(c, "mapRectToScene", _n_mapRectToScene0, None, Compiled, qt_QQuickItem_mapRectToScene_QRectF_QQuickItem_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "rect", "qt.QRectF"), End), + new Function(c, "mapToGlobal", _n_mapToGlobal0, None, Compiled, qt_QQuickItem_mapToGlobal_QPointF_QQuickItem_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "point", "qt.QPointF"), End), + new Function(c, "mapToItem", _n_mapToItem0, None, Compiled, qt_QQuickItem_mapToItem_QPointF_QQuickItem_QQuickItem_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "item", "qt.QQuickItem"), new Param(c, "point", "qt.QPointF"), End), + new Function(c, "mapToScene", _n_mapToScene0, None, Compiled, qt_QQuickItem_mapToScene_QPointF_QQuickItem_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "point", "qt.QPointF"), End), + new Function(c, "nextItemInFocusChain", _n_nextItemInFocusChain0, None, Compiled, qt_QQuickItem_nextItemInFocusChain_QQuickItem_QQuickItem_bool, Return, "qt.QQuickItem", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "forward", "bool"), End), + // PROP: opacity (double; QQuickItem this) + // PROP: parentItem (QQuickItem; QQuickItem this) + new Function(c, "polish", _n_polish0, None, Compiled, qt_QQuickItem_polish_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + // PROP: resetAntialiasing (void; QQuickItem this) + // PROP: resetHeight (void; QQuickItem this) + // PROP: resetWidth (void; QQuickItem this) + // PROP: rotation (double; QQuickItem this) + // PROP: scale (double; QQuickItem this) + new Function(c, "scopedFocusItem", _n_scopedFocusItem0, None, Compiled, qt_QQuickItem_scopedFocusItem_QQuickItem_QQuickItem, Return, "qt.QQuickItem", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "setAcceptHoverEvents", _n_setAcceptHoverEvents0, None, Compiled, qt_QQuickItem_setAcceptHoverEvents_void_QQuickItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "enabled", "bool"), End), + new Function(c, "setAcceptTouchEvents", _n_setAcceptTouchEvents0, None, Compiled, qt_QQuickItem_setAcceptTouchEvents_void_QQuickItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "enabled", "bool"), End), + new Function(c, "setAcceptedMouseButtons", _n_setAcceptedMouseButtons0, None, Compiled, qt_QQuickItem_setAcceptedMouseButtons_void_QQuickItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "buttons", "int"), End), + // PROP: setActiveFocusOnTab (void; QQuickItem this, bool _p4) + // PROP: setAntialiasing (void; QQuickItem this, bool _p4) + // PROP: setBaselineOffset (void; QQuickItem this, double _p5) + // PROP: setClip (void; QQuickItem this, bool _p4) + // PROP: setContainmentMask (void; QQuickItem this, QObject mask) + new Function(c, "setCursor", _n_setCursor0, None, Compiled, qt_QQuickItem_setCursor_void_QQuickItem_QCursor, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "cursor", "qt.QCursor"), End), + // PROP: setEnabled (void; QQuickItem this, bool _p4) + new Function(c, "setFiltersChildMouseEvents", _n_setFiltersChildMouseEvents0, None, Compiled, qt_QQuickItem_setFiltersChildMouseEvents_void_QQuickItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "filter", "bool"), End), + new Function(c, "setFlag", _n_setFlag0, None, Compiled, qt_QQuickItem_setFlag_void_QQuickItem_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "flag", "int"), new Param(c, "enabled", "bool"), End), + new Function(c, "setFlags", _n_setFlags0, None, Compiled, qt_QQuickItem_setFlags_void_QQuickItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "flags", "int"), End), + // PROP: setFocus (void; QQuickItem this, bool _p4) + // PROP: setFocus (void; QQuickItem this, bool focus, flags Qt::FocusReason reason) + // PROP: setHeight (void; QQuickItem this, double _p5) + // PROP: setImplicitHeight (void; QQuickItem this, double _p5) + // PROP: setImplicitWidth (void; QQuickItem this, double _p5) + new Function(c, "setKeepMouseGrab", _n_setKeepMouseGrab0, None, Compiled, qt_QQuickItem_setKeepMouseGrab_void_QQuickItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "keep", "bool"), End), + new Function(c, "setKeepTouchGrab", _n_setKeepTouchGrab0, None, Compiled, qt_QQuickItem_setKeepTouchGrab_void_QQuickItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "keep", "bool"), End), + // PROP: setOpacity (void; QQuickItem this, double _p5) + // PROP: setParentItem (void; QQuickItem this, QQuickItem parent) + // PROP: setRotation (void; QQuickItem this, double _p5) + // PROP: setScale (void; QQuickItem this, double _p5) + // MISSING: setSize (void; QQuickItem this, "const QSizeF &" size) + // PROP: setSmooth (void; QQuickItem this, bool _p4) + // PROP: setState (void; QQuickItem this, string _p16) + // PROP: setTransformOrigin (void; QQuickItem this, flags QQuickItem::TransformOrigin _p27) + // PROP: setVisible (void; QQuickItem this, bool _p4) + // PROP: setWidth (void; QQuickItem this, double _p5) + // PROP: setX (void; QQuickItem this, double _p5) + // PROP: setY (void; QQuickItem this, double _p5) + // PROP: setZ (void; QQuickItem this, double _p5) + // MISSING: size ("QSizeF"; QQuickItem this) + // PROP: smooth (bool; QQuickItem this) + new Function(c, "stackAfter", _n_stackAfter0, None, Compiled, qt_QQuickItem_stackAfter_void_QQuickItem_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "sibling", "qt.QQuickItem"), End), + new Function(c, "stackBefore", _n_stackBefore0, None, Compiled, qt_QQuickItem_stackBefore_void_QQuickItem_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "sibling", "qt.QQuickItem"), End), + // PROP: state (string; QQuickItem this) + // MISSING: textureProvider ("QSGTextureProvider *"; QQuickItem this) + // PROP: transformOrigin (flags QQuickItem::TransformOrigin; QQuickItem this) + new Function(c, "unsetCursor", _n_unsetCursor0, None, Compiled, qt_QQuickItem_unsetCursor_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "viewportItem", _n_viewportItem0, None, Compiled, qt_QQuickItem_viewportItem_QQuickItem_QQuickItem, Return, "qt.QQuickItem", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + // PROP: width (double; QQuickItem this) + // MISSING: window ("QQuickWindow *"; QQuickItem this) + // PROP: x (double; QQuickItem this) + // PROP: y (double; QQuickItem this) + // PROP: z (double; QQuickItem this) + _func[5] = new MemberFunction(c, "childMouseEventFilter", _n_childMouseEventFilter0, None, Compiled, qt_QQuickItem_childMouseEventFilter_bool_QQuickItem_QQuickItem_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "item", "qt.QQuickItem"), new Param(c, "event", "qt.QEvent"), End), + _func[6] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QQuickItem_dragEnterEvent_void_QQuickItem_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[7] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QQuickItem_dragLeaveEvent_void_QQuickItem_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[8] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QQuickItem_dragMoveEvent_void_QQuickItem_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[9] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QQuickItem_dropEvent_void_QQuickItem_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QDropEvent"), End), + _func[10] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QQuickItem_focusInEvent_void_QQuickItem_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "_p14", "qt.QFocusEvent"), End), + _func[11] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QQuickItem_focusOutEvent_void_QQuickItem_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "_p14", "qt.QFocusEvent"), End), + _func[12] = new MemberFunction(c, "geometryChange", _n_geometryChange0, None, Compiled, qt_QQuickItem_geometryChange_void_QQuickItem_QRectF_QRectF, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "newGeometry", "qt.QRectF"), new Param(c, "oldGeometry", "qt.QRectF"), End), + new Function(c, "heightValid", _n_heightValid0, None, Compiled, qt_QQuickItem_heightValid_bool_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + _func[13] = new MemberFunction(c, "hoverEnterEvent", _n_hoverEnterEvent0, None, Compiled, qt_QQuickItem_hoverEnterEvent_void_QQuickItem_QHoverEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QHoverEvent"), End), + _func[14] = new MemberFunction(c, "hoverLeaveEvent", _n_hoverLeaveEvent0, None, Compiled, qt_QQuickItem_hoverLeaveEvent_void_QQuickItem_QHoverEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QHoverEvent"), End), + _func[15] = new MemberFunction(c, "hoverMoveEvent", _n_hoverMoveEvent0, None, Compiled, qt_QQuickItem_hoverMoveEvent_void_QQuickItem_QHoverEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QHoverEvent"), End), + // MISSING: inputMethodEvent (void; QQuickItem this, "QInputMethodEvent *" event) // protected + new Function(c, "isComponentComplete", _n_isComponentComplete0, None, Compiled, qt_QQuickItem_isComponentComplete_bool_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + _func[16] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QQuickItem_keyPressEvent_void_QQuickItem_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[17] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QQuickItem_keyReleaseEvent_void_QQuickItem_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[18] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QQuickItem_mouseDoubleClickEvent_void_QQuickItem_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[19] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QQuickItem_mouseMoveEvent_void_QQuickItem_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[20] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QQuickItem_mousePressEvent_void_QQuickItem_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[21] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QQuickItem_mouseReleaseEvent_void_QQuickItem_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[22] = new MemberFunction(c, "mouseUngrabEvent", _n_mouseUngrabEvent0, None, Compiled, qt_QQuickItem_mouseUngrabEvent_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + _func[23] = new MemberFunction(c, "releaseResources", _n_releaseResources0, None, Compiled, qt_QQuickItem_releaseResources_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + // MISSING: touchEvent (void; QQuickItem this, "QTouchEvent *" event) // protected + _func[24] = new MemberFunction(c, "touchUngrabEvent", _n_touchUngrabEvent0, None, Compiled, qt_QQuickItem_touchUngrabEvent_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + new Function(c, "updateInputMethod", _n_updateInputMethod0, None, Compiled, qt_QQuickItem_updateInputMethod_void_QQuickItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "queries", "int", Value((int)Qt::ImQueryInput)), End), + // MISSING: updatePaintNode ("QSGNode *"; QQuickItem this, "QSGNode *" oldNode, flags QQuickItem::UpdatePaintNodeData * updatePaintNodeData) // protected + _func[25] = new MemberFunction(c, "updatePolish", _n_updatePolish0, None, Compiled, qt_QQuickItem_updatePolish_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + _func[26] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QQuickItem_wheelEvent_void_QQuickItem_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QWheelEvent"), End), + new Function(c, "widthValid", _n_widthValid0, None, Compiled, qt_QQuickItem_widthValid_bool_QQuickItem, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + _func[27] = new MemberFunction(c, "classBegin", _n_classBegin0, None, Compiled, qt_QQuickItem_classBegin_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + _func[28] = new MemberFunction(c, "componentComplete", _n_componentComplete0, None, Compiled, qt_QQuickItem_componentComplete_void_QQuickItem, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), End), + _func[29] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QQuickItem_event_bool_QQuickItem_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "ev", "qt.QEvent"), End), + _func[30] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QQuickItem_eventFilter_bool_QQuickItem_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QQuickItem this) + // MISSING: childEvent (void; QQuickItem this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QQuickItem this, "const QMetaMethod &" signal) // protected + _func[31] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QQuickItem_customEvent_void_QQuickItem_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QQuickItem this, "const QMetaMethod &" signal) // protected + _func[32] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QQuickItem_timerEvent_void_QQuickItem_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickItem"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QQuickItem::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QQuickWidgetType.cpp b/src/lib/mu/MuQt6/QQuickWidgetType.cpp new file mode 100644 index 000000000..bc6626c17 --- /dev/null +++ b/src/lib/mu/MuQt6/QQuickWidgetType.cpp @@ -0,0 +1,1413 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QQuickWidget::~MuQt_QQuickWidget() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QQuickWidget::MuQt_QQuickWidget(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QQuickWidget(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQuickWidget")); +} + +MuQt_QQuickWidget::MuQt_QQuickWidget(Pointer muobj, const CallEnvironment* ce, QQmlEngine * engine, QWidget * parent) + : QQuickWidget(engine, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQuickWidget")); +} + +MuQt_QQuickWidget::MuQt_QQuickWidget(Pointer muobj, const CallEnvironment* ce, const QUrl & source, QWidget * parent) + : QQuickWidget(source, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQuickWidget")); +} + +void MuQt_QQuickWidget::dragEnterEvent(QDragEnterEvent * e) +{ + if (!_env) { QQuickWidget::dragEnterEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::dragEnterEvent(e); + } +} + +void MuQt_QQuickWidget::dragLeaveEvent(QDragLeaveEvent * e) +{ + if (!_env) { QQuickWidget::dragLeaveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::dragLeaveEvent(e); + } +} + +void MuQt_QQuickWidget::dragMoveEvent(QDragMoveEvent * e) +{ + if (!_env) { QQuickWidget::dragMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::dragMoveEvent(e); + } +} + +void MuQt_QQuickWidget::dropEvent(QDropEvent * e) +{ + if (!_env) { QQuickWidget::dropEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::dropEvent(e); + } +} + +bool MuQt_QQuickWidget::event(QEvent * e) +{ + if (!_env) return QQuickWidget::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQuickWidget::event(e); + } +} + +void MuQt_QQuickWidget::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QQuickWidget::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::focusInEvent(event); + } +} + +bool MuQt_QQuickWidget::focusNextPrevChild(bool next) +{ + if (!_env) return QQuickWidget::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQuickWidget::focusNextPrevChild(next); + } +} + +void MuQt_QQuickWidget::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QQuickWidget::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::focusOutEvent(event); + } +} + +void MuQt_QQuickWidget::hideEvent(QHideEvent * _p13) +{ + if (!_env) { QQuickWidget::hideEvent(_p13); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p13,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::hideEvent(_p13); + } +} + +void MuQt_QQuickWidget::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QQuickWidget::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::keyPressEvent(e); + } +} + +void MuQt_QQuickWidget::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QQuickWidget::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::keyReleaseEvent(e); + } +} + +void MuQt_QQuickWidget::mouseDoubleClickEvent(QMouseEvent * e) +{ + if (!_env) { QQuickWidget::mouseDoubleClickEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::mouseDoubleClickEvent(e); + } +} + +void MuQt_QQuickWidget::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QQuickWidget::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::mouseMoveEvent(e); + } +} + +void MuQt_QQuickWidget::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QQuickWidget::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::mousePressEvent(e); + } +} + +void MuQt_QQuickWidget::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QQuickWidget::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::mouseReleaseEvent(e); + } +} + +void MuQt_QQuickWidget::paintEvent(QPaintEvent * event) +{ + if (!_env) { QQuickWidget::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::paintEvent(event); + } +} + +void MuQt_QQuickWidget::showEvent(QShowEvent * _p13) +{ + if (!_env) { QQuickWidget::showEvent(_p13); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p13,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::showEvent(_p13); + } +} + +void MuQt_QQuickWidget::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QQuickWidget::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::wheelEvent(e); + } +} + +bool MuQt_QQuickWidget::hasHeightForWidth() const +{ + if (!_env) return QQuickWidget::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QQuickWidget::hasHeightForWidth(); + } +} + +int MuQt_QQuickWidget::heightForWidth(int w) const +{ + if (!_env) return QQuickWidget::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QQuickWidget::heightForWidth(w); + } +} + +QVariant MuQt_QQuickWidget::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QQuickWidget::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QQuickWidget::inputMethodQuery(query); + } +} + +QSize MuQt_QQuickWidget::minimumSizeHint() const +{ + if (!_env) return QQuickWidget::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QQuickWidget::minimumSizeHint(); + } +} + +QSize MuQt_QQuickWidget::sizeHint() const +{ + if (!_env) return QQuickWidget::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QQuickWidget::sizeHint(); + } +} + +void MuQt_QQuickWidget::changeEvent(QEvent * event) +{ + if (!_env) { QQuickWidget::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::changeEvent(event); + } +} + +void MuQt_QQuickWidget::closeEvent(QCloseEvent * event) +{ + if (!_env) { QQuickWidget::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::closeEvent(event); + } +} + +void MuQt_QQuickWidget::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QQuickWidget::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::contextMenuEvent(event); + } +} + +void MuQt_QQuickWidget::leaveEvent(QEvent * event) +{ + if (!_env) { QQuickWidget::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::leaveEvent(event); + } +} + +void MuQt_QQuickWidget::moveEvent(QMoveEvent * event) +{ + if (!_env) { QQuickWidget::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::moveEvent(event); + } +} + +void MuQt_QQuickWidget::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QQuickWidget::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::resizeEvent(event); + } +} + +void MuQt_QQuickWidget::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QQuickWidget::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QQuickWidget::tabletEvent(event); + } +} + +int MuQt_QQuickWidget::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QQuickWidget::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QQuickWidget::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QQuickWidgetType::QQuickWidgetType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QQuickWidgetType::~QQuickWidgetType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QQuickWidget_QQuickWidget_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QQuickWidget* w = object(widget)) + { + QQuickWidgetType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QQuickWidget"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QQuickWidget_QQuickWidget_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QQuickWidget_QQuickWidget_QQuickWidget_QQuickWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QQuickWidget(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QQuickWidget_QQuickWidget_QQuickWidget_QQuickWidget_QQmlEngine_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_engine, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQmlEngine * arg1 = object(param_engine); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QQuickWidget(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QQuickWidget_QQuickWidget_QQuickWidget_QQuickWidget_QUrl_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_source, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl arg1 = getqtype(param_source); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QQuickWidget(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QQuickWidget_engine_QQmlEngine_QQuickWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + return makeinstance(c, arg0->engine(), "qt.QQmlEngine"); +} + +Pointer qt_QQuickWidget_grabFramebuffer_QImage_QQuickWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + return makeqtype(c,arg0->grabFramebuffer(),"qt.QImage"); +} + +Pointer qt_QQuickWidget_initialSize_QSize_QQuickWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + return makeqtype(c,arg0->initialSize(),"qt.QSize"); +} + +Pointer qt_QQuickWidget_rootContext_QQmlContext_QQuickWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + return makeinstance(c, arg0->rootContext(), "qt.QQmlContext"); +} + +Pointer qt_QQuickWidget_rootObject_QQuickItem_QQuickWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + return makeinstance(c, arg0->rootObject(), "qt.QQuickItem"); +} + +void qt_QQuickWidget_setClearColor_void_QQuickWidget_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + const QColor arg1 = getqtype(param_color); + arg0->setClearColor(arg1); +} + +Pointer qt_QQuickWidget_source_QUrl_QQuickWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + return makeqtype(c,arg0->source(),"qt.QUrl"); +} + +void qt_QQuickWidget_dragEnterEvent_void_QQuickWidget_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QQuickWidget_dragLeaveEvent_void_QQuickWidget_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QQuickWidget_dragMoveEvent_void_QQuickWidget_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QQuickWidget_dropEvent_void_QQuickWidget_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QQuickWidget_event_bool_QQuickWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QQuickWidget*)arg0)->event_pub_parent(arg1) : ((MuQt_QQuickWidget*)arg0)->event_pub(arg1); +} + +void qt_QQuickWidget_focusInEvent_void_QQuickWidget_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QQuickWidget_focusNextPrevChild_bool_QQuickWidget_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QQuickWidget*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QQuickWidget*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QQuickWidget_focusOutEvent_void_QQuickWidget_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QQuickWidget_hideEvent_void_QQuickWidget_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p13) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param__p13); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->hideEvent_pub(arg1); +} + +void qt_QQuickWidget_keyPressEvent_void_QQuickWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QQuickWidget_keyReleaseEvent_void_QQuickWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QQuickWidget_mouseDoubleClickEvent_void_QQuickWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QQuickWidget_mouseMoveEvent_void_QQuickWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QQuickWidget_mousePressEvent_void_QQuickWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QQuickWidget_mouseReleaseEvent_void_QQuickWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QQuickWidget_paintEvent_void_QQuickWidget_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->paintEvent_pub(arg1); +} + +void qt_QQuickWidget_showEvent_void_QQuickWidget_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p13) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param__p13); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->showEvent_pub(arg1); +} + +void qt_QQuickWidget_wheelEvent_void_QQuickWidget_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->wheelEvent_pub(arg1); +} + +bool qt_QQuickWidget_hasHeightForWidth_bool_QQuickWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QQuickWidget::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QQuickWidget_heightForWidth_int_QQuickWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QQuickWidget::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QQuickWidget_inputMethodQuery_QVariant_QQuickWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QQuickWidget::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QQuickWidget_minimumSizeHint_QSize_QQuickWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QQuickWidget::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QQuickWidget_sizeHint_QSize_QQuickWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QQuickWidget::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QQuickWidget_changeEvent_void_QQuickWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->changeEvent_pub(arg1); +} + +void qt_QQuickWidget_closeEvent_void_QQuickWidget_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->closeEvent_pub(arg1); +} + +void qt_QQuickWidget_contextMenuEvent_void_QQuickWidget_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QQuickWidget_leaveEvent_void_QQuickWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QQuickWidget_moveEvent_void_QQuickWidget_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->moveEvent_pub(arg1); +} + +void qt_QQuickWidget_resizeEvent_void_QQuickWidget_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QQuickWidget_tabletEvent_void_QQuickWidget_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QQuickWidget*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QQuickWidget*)arg0)->tabletEvent_pub(arg1); +} + +int qt_QQuickWidget_metric_int_QQuickWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QQuickWidget* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QQuickWidget*)arg0)->metric_pub_parent(arg1) : ((MuQt_QQuickWidget*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QQuickWidget0, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_QQuickWidget_QQuickWidget_QQuickWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QQuickWidget1, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_QQuickWidget_QQuickWidget_QQuickWidget_QQmlEngine_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QQuickWidget2, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_QQuickWidget_QQuickWidget_QQuickWidget_QUrl_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_engine0, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_engine_QQmlEngine_QQuickWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_grabFramebuffer0, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_grabFramebuffer_QImage_QQuickWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_initialSize0, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_initialSize_QSize_QQuickWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rootContext0, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_rootContext_QQmlContext_QQuickWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rootObject0, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_rootObject_QQuickItem_QQuickWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setClearColor0, void) +{ + qt_QQuickWidget_setClearColor_void_QQuickWidget_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_source0, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_source_QUrl_QQuickWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QQuickWidget_dragEnterEvent_void_QQuickWidget_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QQuickWidget_dragLeaveEvent_void_QQuickWidget_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QQuickWidget_dragMoveEvent_void_QQuickWidget_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QQuickWidget_dropEvent_void_QQuickWidget_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QQuickWidget_event_bool_QQuickWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QQuickWidget_focusInEvent_void_QQuickWidget_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QQuickWidget_focusNextPrevChild_bool_QQuickWidget_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QQuickWidget_focusOutEvent_void_QQuickWidget_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QQuickWidget_hideEvent_void_QQuickWidget_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QQuickWidget_keyPressEvent_void_QQuickWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QQuickWidget_keyReleaseEvent_void_QQuickWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QQuickWidget_mouseDoubleClickEvent_void_QQuickWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QQuickWidget_mouseMoveEvent_void_QQuickWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QQuickWidget_mousePressEvent_void_QQuickWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QQuickWidget_mouseReleaseEvent_void_QQuickWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QQuickWidget_paintEvent_void_QQuickWidget_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QQuickWidget_showEvent_void_QQuickWidget_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QQuickWidget_wheelEvent_void_QQuickWidget_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QQuickWidget_hasHeightForWidth_bool_QQuickWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QQuickWidget_heightForWidth_int_QQuickWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_inputMethodQuery_QVariant_QQuickWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_minimumSizeHint_QSize_QQuickWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QQuickWidget_sizeHint_QSize_QQuickWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QQuickWidget_changeEvent_void_QQuickWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QQuickWidget_closeEvent_void_QQuickWidget_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QQuickWidget_contextMenuEvent_void_QQuickWidget_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QQuickWidget_leaveEvent_void_QQuickWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QQuickWidget_moveEvent_void_QQuickWidget_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QQuickWidget_resizeEvent_void_QQuickWidget_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QQuickWidget_tabletEvent_void_QQuickWidget_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QQuickWidget_metric_int_QQuickWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QQuickWidgetType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QQuickWidget_QQuickWidget_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QQuickWidget", _n_QQuickWidget0, None, Compiled, qt_QQuickWidget_QQuickWidget_QQuickWidget_QQuickWidget_QWidget, Return, "qt.QQuickWidget", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QQuickWidget", _n_QQuickWidget1, None, Compiled, qt_QQuickWidget_QQuickWidget_QQuickWidget_QQuickWidget_QQmlEngine_QWidget, Return, "qt.QQuickWidget", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "engine", "qt.QQmlEngine"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QQuickWidget", _n_QQuickWidget2, None, Compiled, qt_QQuickWidget_QQuickWidget_QQuickWidget_QQuickWidget_QUrl_QWidget, Return, "qt.QQuickWidget", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "source", "qt.QUrl"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "engine", _n_engine0, None, Compiled, qt_QQuickWidget_engine_QQmlEngine_QQuickWidget, Return, "qt.QQmlEngine", Parameters, new Param(c, "this", "qt.QQuickWidget"), End), + // MISSING: errors ("QList"; QQuickWidget this) + // MISSING: format ("QSurfaceFormat"; QQuickWidget this) + new Function(c, "grabFramebuffer", _n_grabFramebuffer0, None, Compiled, qt_QQuickWidget_grabFramebuffer_QImage_QQuickWidget, Return, "qt.QImage", Parameters, new Param(c, "this", "qt.QQuickWidget"), End), + new Function(c, "initialSize", _n_initialSize0, None, Compiled, qt_QQuickWidget_initialSize_QSize_QQuickWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QQuickWidget"), End), + // MISSING: quickWindow ("QQuickWindow *"; QQuickWidget this) + // PROP: resizeMode (flags QQuickWidget::ResizeMode; QQuickWidget this) + new Function(c, "rootContext", _n_rootContext0, None, Compiled, qt_QQuickWidget_rootContext_QQmlContext_QQuickWidget, Return, "qt.QQmlContext", Parameters, new Param(c, "this", "qt.QQuickWidget"), End), + new Function(c, "rootObject", _n_rootObject0, None, Compiled, qt_QQuickWidget_rootObject_QQuickItem_QQuickWidget, Return, "qt.QQuickItem", Parameters, new Param(c, "this", "qt.QQuickWidget"), End), + new Function(c, "setClearColor", _n_setClearColor0, None, Compiled, qt_QQuickWidget_setClearColor_void_QQuickWidget_QColor, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "color", "qt.QColor"), End), + // MISSING: setFormat (void; QQuickWidget this, "const QSurfaceFormat &" format) + // PROP: setResizeMode (void; QQuickWidget this, flags QQuickWidget::ResizeMode _p24) + new Function(c, "source", _n_source0, None, Compiled, qt_QQuickWidget_source_QUrl_QQuickWidget, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QQuickWidget"), End), + // PROP: status (flags QQuickWidget::Status; QQuickWidget this) + _func[0] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QQuickWidget_dragEnterEvent_void_QQuickWidget_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QDragEnterEvent"), End), + _func[1] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QQuickWidget_dragLeaveEvent_void_QQuickWidget_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QDragLeaveEvent"), End), + _func[2] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QQuickWidget_dragMoveEvent_void_QQuickWidget_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QDragMoveEvent"), End), + _func[3] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QQuickWidget_dropEvent_void_QQuickWidget_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QDropEvent"), End), + _func[4] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QQuickWidget_event_bool_QQuickWidget_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QEvent"), End), + _func[5] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QQuickWidget_focusInEvent_void_QQuickWidget_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[6] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QQuickWidget_focusNextPrevChild_bool_QQuickWidget_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "next", "bool"), End), + _func[7] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QQuickWidget_focusOutEvent_void_QQuickWidget_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[8] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QQuickWidget_hideEvent_void_QQuickWidget_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "_p13", "qt.QHideEvent"), End), + _func[9] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QQuickWidget_keyPressEvent_void_QQuickWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[10] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QQuickWidget_keyReleaseEvent_void_QQuickWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[11] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QQuickWidget_mouseDoubleClickEvent_void_QQuickWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[12] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QQuickWidget_mouseMoveEvent_void_QQuickWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[13] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QQuickWidget_mousePressEvent_void_QQuickWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[14] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QQuickWidget_mouseReleaseEvent_void_QQuickWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[15] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QQuickWidget_paintEvent_void_QQuickWidget_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[16] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QQuickWidget_showEvent_void_QQuickWidget_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "_p13", "qt.QShowEvent"), End), + _func[17] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QQuickWidget_wheelEvent_void_QQuickWidget_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "e", "qt.QWheelEvent"), End), + _func[18] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QQuickWidget_hasHeightForWidth_bool_QQuickWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QQuickWidget"), End), + _func[19] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QQuickWidget_heightForWidth_int_QQuickWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "w", "int"), End), + _func[20] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QQuickWidget_inputMethodQuery_QVariant_QQuickWidget_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "query", "int"), End), + _func[21] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QQuickWidget_minimumSizeHint_QSize_QQuickWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QQuickWidget"), End), + _func[22] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QQuickWidget_sizeHint_QSize_QQuickWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QQuickWidget"), End), + // MISSING: paintEngine ("QPaintEngine *"; QQuickWidget this) + // MISSING: actionEvent (void; QQuickWidget this, "QActionEvent *" event) // protected + _func[23] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QQuickWidget_changeEvent_void_QQuickWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[24] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QQuickWidget_closeEvent_void_QQuickWidget_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[25] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QQuickWidget_contextMenuEvent_void_QQuickWidget_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "event", "qt.QContextMenuEvent"), End), + // MISSING: enterEvent (void; QQuickWidget this, "QEnterEvent *" event) // protected + // MISSING: inputMethodEvent (void; QQuickWidget this, "QInputMethodEvent *" event) // protected + _func[26] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QQuickWidget_leaveEvent_void_QQuickWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[27] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QQuickWidget_moveEvent_void_QQuickWidget_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QQuickWidget this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[28] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QQuickWidget_resizeEvent_void_QQuickWidget_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[29] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QQuickWidget_tabletEvent_void_QQuickWidget_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "event", "qt.QTabletEvent"), End), + // MISSING: initPainter (void; QQuickWidget this, "QPainter *" painter) // protected + _func[30] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QQuickWidget_metric_int_QQuickWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QQuickWidget"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QQuickWidget::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QRadialGradientType.cpp b/src/lib/mu/MuQt6/QRadialGradientType.cpp new file mode 100644 index 000000000..3a1f9cb29 --- /dev/null +++ b/src/lib/mu/MuQt6/QRadialGradientType.cpp @@ -0,0 +1,412 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QRadialGradientType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QRadialGradientType::QRadialGradientType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QRadialGradientType::~QRadialGradientType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QRadialGradientType::Instance* i = new QRadialGradientType::Instance((Class*)NODE_THIS.type()); + QRadialGradientType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QRadialGradientType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QRadialGradientType::finalizer, 0, 0, 0); +} + +void +QRadialGradientType::finalizer (void* obj, void* data) +{ + QRadialGradientType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QRadialGradient()); + return param_this; +} + +Pointer qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_QPointF_double_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_center, double param_radius, Pointer param_focalPoint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPointF arg1 = getqtype(param_center); + qreal arg2 = (double)(param_radius); + const QPointF arg3 = getqtype(param_focalPoint); + setqtype(param_this,QRadialGradient(arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_double_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_cx, double param_cy, double param_radius, double param_fx, double param_fy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg1 = (double)(param_cx); + qreal arg2 = (double)(param_cy); + qreal arg3 = (double)(param_radius); + qreal arg4 = (double)(param_fx); + qreal arg5 = (double)(param_fy); + setqtype(param_this,QRadialGradient(arg1, arg2, arg3, arg4, arg5)); + return param_this; +} + +Pointer qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_QPointF_double(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_center, double param_radius) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPointF arg1 = getqtype(param_center); + qreal arg2 = (double)(param_radius); + setqtype(param_this,QRadialGradient(arg1, arg2)); + return param_this; +} + +Pointer qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_cx, double param_cy, double param_radius) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg1 = (double)(param_cx); + qreal arg2 = (double)(param_cy); + qreal arg3 = (double)(param_radius); + setqtype(param_this,QRadialGradient(arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_QPointF_double_QPointF_double(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_center, double param_centerRadius, Pointer param_focalPoint, double param_focalRadius) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPointF arg1 = getqtype(param_center); + qreal arg2 = (double)(param_centerRadius); + const QPointF arg3 = getqtype(param_focalPoint); + qreal arg4 = (double)(param_focalRadius); + setqtype(param_this,QRadialGradient(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_double_double_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_cx, double param_cy, double param_centerRadius, double param_fx, double param_fy, double param_focalRadius) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg1 = (double)(param_cx); + qreal arg2 = (double)(param_cy); + qreal arg3 = (double)(param_centerRadius); + qreal arg4 = (double)(param_fx); + qreal arg5 = (double)(param_fy); + qreal arg6 = (double)(param_focalRadius); + setqtype(param_this,QRadialGradient(arg1, arg2, arg3, arg4, arg5, arg6)); + return param_this; +} + +Pointer qt_QRadialGradient_center_QPointF_QRadialGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + return makeqtype(c,arg0.center(),"qt.QPointF"); +} + +double qt_QRadialGradient_centerRadius_double_QRadialGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + return arg0.centerRadius(); +} + +Pointer qt_QRadialGradient_focalPoint_QPointF_QRadialGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + return makeqtype(c,arg0.focalPoint(),"qt.QPointF"); +} + +double qt_QRadialGradient_focalRadius_double_QRadialGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + return arg0.focalRadius(); +} + +double qt_QRadialGradient_radius_double_QRadialGradient(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + return arg0.radius(); +} + +void qt_QRadialGradient_setCenter_void_QRadialGradient_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_center) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_center); + arg0.setCenter(arg1); + setqtype(param_this,arg0); +} + +void qt_QRadialGradient_setCenter_void_QRadialGradient_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + qreal arg2 = (double)(param_y); + arg0.setCenter(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QRadialGradient_setCenterRadius_void_QRadialGradient_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_radius) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + qreal arg1 = (double)(param_radius); + arg0.setCenterRadius(arg1); + setqtype(param_this,arg0); +} + +void qt_QRadialGradient_setFocalPoint_void_QRadialGradient_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_focalPoint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_focalPoint); + arg0.setFocalPoint(arg1); + setqtype(param_this,arg0); +} + +void qt_QRadialGradient_setFocalPoint_void_QRadialGradient_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + qreal arg2 = (double)(param_y); + arg0.setFocalPoint(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QRadialGradient_setFocalRadius_void_QRadialGradient_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_radius) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + qreal arg1 = (double)(param_radius); + arg0.setFocalRadius(arg1); + setqtype(param_this,arg0); +} + +void qt_QRadialGradient_setRadius_void_QRadialGradient_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_radius) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadialGradient arg0 = getqtype(param_this); + qreal arg1 = (double)(param_radius); + arg0.setRadius(arg1); + setqtype(param_this,arg0); +} + + +static NODE_IMPLEMENTATION(_n_QRadialGradient0, Pointer) +{ + NODE_RETURN(qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QRadialGradient1, Pointer) +{ + NODE_RETURN(qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_QPointF_double_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, double), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QRadialGradient2, Pointer) +{ + NODE_RETURN(qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_double_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double), NODE_ARG(5, double))); +} + +static NODE_IMPLEMENTATION(_n_QRadialGradient3, Pointer) +{ + NODE_RETURN(qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_QPointF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, double))); +} + +static NODE_IMPLEMENTATION(_n_QRadialGradient4, Pointer) +{ + NODE_RETURN(qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double))); +} + +static NODE_IMPLEMENTATION(_n_QRadialGradient5, Pointer) +{ + NODE_RETURN(qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_QPointF_double_QPointF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, double), NODE_ARG(3, Pointer), NODE_ARG(4, double))); +} + +static NODE_IMPLEMENTATION(_n_QRadialGradient6, Pointer) +{ + NODE_RETURN(qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_double_double_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double), NODE_ARG(5, double), NODE_ARG(6, double))); +} + +static NODE_IMPLEMENTATION(_n_center0, Pointer) +{ + NODE_RETURN(qt_QRadialGradient_center_QPointF_QRadialGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_centerRadius0, double) +{ + NODE_RETURN(qt_QRadialGradient_centerRadius_double_QRadialGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focalPoint0, Pointer) +{ + NODE_RETURN(qt_QRadialGradient_focalPoint_QPointF_QRadialGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focalRadius0, double) +{ + NODE_RETURN(qt_QRadialGradient_focalRadius_double_QRadialGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_radius0, double) +{ + NODE_RETURN(qt_QRadialGradient_radius_double_QRadialGradient(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCenter0, void) +{ + qt_QRadialGradient_setCenter_void_QRadialGradient_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCenter1, void) +{ + qt_QRadialGradient_setCenter_void_QRadialGradient_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double)); +} + +static NODE_IMPLEMENTATION(_n_setCenterRadius0, void) +{ + qt_QRadialGradient_setCenterRadius_void_QRadialGradient_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setFocalPoint0, void) +{ + qt_QRadialGradient_setFocalPoint_void_QRadialGradient_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFocalPoint1, void) +{ + qt_QRadialGradient_setFocalPoint_void_QRadialGradient_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double)); +} + +static NODE_IMPLEMENTATION(_n_setFocalRadius0, void) +{ + qt_QRadialGradient_setFocalRadius_void_QRadialGradient_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setRadius0, void) +{ + qt_QRadialGradient_setRadius_void_QRadialGradient_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + + + +void +QRadialGradientType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QRadialGradient", _n_QRadialGradient0, None, Compiled, qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient, Return, "qt.QRadialGradient", Parameters, new Param(c, "this", "qt.QRadialGradient"), End), + new Function(c, "QRadialGradient", _n_QRadialGradient1, None, Compiled, qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_QPointF_double_QPointF, Return, "qt.QRadialGradient", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "center", "qt.QPointF"), new Param(c, "radius", "double"), new Param(c, "focalPoint", "qt.QPointF"), End), + new Function(c, "QRadialGradient", _n_QRadialGradient2, None, Compiled, qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_double_double_double_double_double, Return, "qt.QRadialGradient", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "cx", "double"), new Param(c, "cy", "double"), new Param(c, "radius", "double"), new Param(c, "fx", "double"), new Param(c, "fy", "double"), End), + new Function(c, "QRadialGradient", _n_QRadialGradient3, None, Compiled, qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_QPointF_double, Return, "qt.QRadialGradient", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "center", "qt.QPointF"), new Param(c, "radius", "double"), End), + new Function(c, "QRadialGradient", _n_QRadialGradient4, None, Compiled, qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_double_double_double, Return, "qt.QRadialGradient", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "cx", "double"), new Param(c, "cy", "double"), new Param(c, "radius", "double"), End), + new Function(c, "QRadialGradient", _n_QRadialGradient5, None, Compiled, qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_QPointF_double_QPointF_double, Return, "qt.QRadialGradient", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "center", "qt.QPointF"), new Param(c, "centerRadius", "double"), new Param(c, "focalPoint", "qt.QPointF"), new Param(c, "focalRadius", "double"), End), + new Function(c, "QRadialGradient", _n_QRadialGradient6, None, Compiled, qt_QRadialGradient_QRadialGradient_QRadialGradient_QRadialGradient_double_double_double_double_double_double, Return, "qt.QRadialGradient", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "cx", "double"), new Param(c, "cy", "double"), new Param(c, "centerRadius", "double"), new Param(c, "fx", "double"), new Param(c, "fy", "double"), new Param(c, "focalRadius", "double"), End), + new Function(c, "center", _n_center0, None, Compiled, qt_QRadialGradient_center_QPointF_QRadialGradient, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QRadialGradient"), End), + new Function(c, "centerRadius", _n_centerRadius0, None, Compiled, qt_QRadialGradient_centerRadius_double_QRadialGradient, Return, "double", Parameters, new Param(c, "this", "qt.QRadialGradient"), End), + new Function(c, "focalPoint", _n_focalPoint0, None, Compiled, qt_QRadialGradient_focalPoint_QPointF_QRadialGradient, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QRadialGradient"), End), + new Function(c, "focalRadius", _n_focalRadius0, None, Compiled, qt_QRadialGradient_focalRadius_double_QRadialGradient, Return, "double", Parameters, new Param(c, "this", "qt.QRadialGradient"), End), + new Function(c, "radius", _n_radius0, None, Compiled, qt_QRadialGradient_radius_double_QRadialGradient, Return, "double", Parameters, new Param(c, "this", "qt.QRadialGradient"), End), + new Function(c, "setCenter", _n_setCenter0, None, Compiled, qt_QRadialGradient_setCenter_void_QRadialGradient_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "center", "qt.QPointF"), End), + new Function(c, "setCenter", _n_setCenter1, None, Compiled, qt_QRadialGradient_setCenter_void_QRadialGradient_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "x", "double"), new Param(c, "y", "double"), End), + new Function(c, "setCenterRadius", _n_setCenterRadius0, None, Compiled, qt_QRadialGradient_setCenterRadius_void_QRadialGradient_double, Return, "void", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "radius", "double"), End), + new Function(c, "setFocalPoint", _n_setFocalPoint0, None, Compiled, qt_QRadialGradient_setFocalPoint_void_QRadialGradient_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "focalPoint", "qt.QPointF"), End), + new Function(c, "setFocalPoint", _n_setFocalPoint1, None, Compiled, qt_QRadialGradient_setFocalPoint_void_QRadialGradient_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "x", "double"), new Param(c, "y", "double"), End), + new Function(c, "setFocalRadius", _n_setFocalRadius0, None, Compiled, qt_QRadialGradient_setFocalRadius_void_QRadialGradient_double, Return, "void", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "radius", "double"), End), + new Function(c, "setRadius", _n_setRadius0, None, Compiled, qt_QRadialGradient_setRadius_void_QRadialGradient_double, Return, "void", Parameters, new Param(c, "this", "qt.QRadialGradient"), new Param(c, "radius", "double"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QRadioButtonType.cpp b/src/lib/mu/MuQt6/QRadioButtonType.cpp new file mode 100644 index 000000000..ac9a0fc50 --- /dev/null +++ b/src/lib/mu/MuQt6/QRadioButtonType.cpp @@ -0,0 +1,755 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QRadioButton::~MuQt_QRadioButton() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QRadioButton::MuQt_QRadioButton(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QRadioButton(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QRadioButton")); +} + +MuQt_QRadioButton::MuQt_QRadioButton(Pointer muobj, const CallEnvironment* ce, const QString & text, QWidget * parent) + : QRadioButton(text, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QRadioButton")); +} + +QSize MuQt_QRadioButton::minimumSizeHint() const +{ + if (!_env) return QRadioButton::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QRadioButton::minimumSizeHint(); + } +} + +QSize MuQt_QRadioButton::sizeHint() const +{ + if (!_env) return QRadioButton::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QRadioButton::sizeHint(); + } +} + +bool MuQt_QRadioButton::event(QEvent * e) +{ + if (!_env) return QRadioButton::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QRadioButton::event(e); + } +} + +bool MuQt_QRadioButton::hitButton(const QPoint & pos) const +{ + if (!_env) return QRadioButton::hitButton(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,pos,"qt.QPoint")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QRadioButton::hitButton(pos); + } +} + +void MuQt_QRadioButton::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QRadioButton::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::mouseMoveEvent(e); + } +} + +void MuQt_QRadioButton::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QRadioButton::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::paintEvent(_p14); + } +} + +void MuQt_QRadioButton::checkStateSet() +{ + if (!_env) { QRadioButton::checkStateSet(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::checkStateSet(); + } +} + +void MuQt_QRadioButton::nextCheckState() +{ + if (!_env) { QRadioButton::nextCheckState(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::nextCheckState(); + } +} + +void MuQt_QRadioButton::changeEvent(QEvent * e) +{ + if (!_env) { QRadioButton::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::changeEvent(e); + } +} + +void MuQt_QRadioButton::focusInEvent(QFocusEvent * e) +{ + if (!_env) { QRadioButton::focusInEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::focusInEvent(e); + } +} + +void MuQt_QRadioButton::focusOutEvent(QFocusEvent * e) +{ + if (!_env) { QRadioButton::focusOutEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::focusOutEvent(e); + } +} + +void MuQt_QRadioButton::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QRadioButton::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::keyPressEvent(e); + } +} + +void MuQt_QRadioButton::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QRadioButton::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::keyReleaseEvent(e); + } +} + +void MuQt_QRadioButton::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QRadioButton::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::mousePressEvent(e); + } +} + +void MuQt_QRadioButton::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QRadioButton::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::mouseReleaseEvent(e); + } +} + +void MuQt_QRadioButton::timerEvent(QTimerEvent * e) +{ + if (!_env) { QRadioButton::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QRadioButton::timerEvent(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QRadioButtonType::QRadioButtonType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QRadioButtonType::~QRadioButtonType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QRadioButton_QRadioButton_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QRadioButton* w = object(widget)) + { + QRadioButtonType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QRadioButton"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QRadioButton_QRadioButton_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QRadioButton_QRadioButton_QRadioButton_QRadioButton_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QRadioButton(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QRadioButton_QRadioButton_QRadioButton_QRadioButton_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QRadioButton(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QRadioButton_minimumSizeHint_QSize_QRadioButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QRadioButton::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QRadioButton_sizeHint_QSize_QRadioButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QRadioButton::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +bool qt_QRadioButton_event_bool_QRadioButton_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QRadioButton*)arg0)->event_pub_parent(arg1) : ((MuQt_QRadioButton*)arg0)->event_pub(arg1); +} + +bool qt_QRadioButton_hitButton_bool_QRadioButton_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return isMuQtObject(arg0) ? ((MuQt_QRadioButton*)arg0)->hitButton_pub_parent(arg1) : ((MuQt_QRadioButton*)arg0)->hitButton_pub(arg1); +} + +void qt_QRadioButton_mouseMoveEvent_void_QRadioButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QRadioButton*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QRadioButton_paintEvent_void_QRadioButton_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QRadioButton*)arg0)->paintEvent_pub(arg1); +} + +void qt_QRadioButton_checkStateSet_void_QRadioButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->checkStateSet_pub_parent(); + else ((MuQt_QRadioButton*)arg0)->checkStateSet_pub(); +} + +void qt_QRadioButton_nextCheckState_void_QRadioButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->nextCheckState_pub_parent(); + else ((MuQt_QRadioButton*)arg0)->nextCheckState_pub(); +} + +void qt_QRadioButton_changeEvent_void_QRadioButton_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QRadioButton*)arg0)->changeEvent_pub(arg1); +} + +void qt_QRadioButton_focusInEvent_void_QRadioButton_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QRadioButton*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QRadioButton_focusOutEvent_void_QRadioButton_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QRadioButton*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QRadioButton_keyPressEvent_void_QRadioButton_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QRadioButton*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QRadioButton_keyReleaseEvent_void_QRadioButton_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QRadioButton*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QRadioButton_mousePressEvent_void_QRadioButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QRadioButton*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QRadioButton_mouseReleaseEvent_void_QRadioButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QRadioButton*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QRadioButton_timerEvent_void_QRadioButton_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRadioButton* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QRadioButton*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QRadioButton*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QRadioButton0, Pointer) +{ + NODE_RETURN(qt_QRadioButton_QRadioButton_QRadioButton_QRadioButton_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QRadioButton1, Pointer) +{ + NODE_RETURN(qt_QRadioButton_QRadioButton_QRadioButton_QRadioButton_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QRadioButton_minimumSizeHint_QSize_QRadioButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QRadioButton_sizeHint_QSize_QRadioButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QRadioButton_event_bool_QRadioButton_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hitButton0, bool) +{ + NODE_RETURN(qt_QRadioButton_hitButton_bool_QRadioButton_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QRadioButton_mouseMoveEvent_void_QRadioButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QRadioButton_paintEvent_void_QRadioButton_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_checkStateSet0, void) +{ + qt_QRadioButton_checkStateSet_void_QRadioButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_nextCheckState0, void) +{ + qt_QRadioButton_nextCheckState_void_QRadioButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QRadioButton_changeEvent_void_QRadioButton_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QRadioButton_focusInEvent_void_QRadioButton_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QRadioButton_focusOutEvent_void_QRadioButton_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QRadioButton_keyPressEvent_void_QRadioButton_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QRadioButton_keyReleaseEvent_void_QRadioButton_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QRadioButton_mousePressEvent_void_QRadioButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QRadioButton_mouseReleaseEvent_void_QRadioButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QRadioButton_timerEvent_void_QRadioButton_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QRadioButtonType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QRadioButton_QRadioButton_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QRadioButton", _n_QRadioButton0, None, Compiled, qt_QRadioButton_QRadioButton_QRadioButton_QRadioButton_QWidget, Return, "qt.QRadioButton", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QRadioButton", _n_QRadioButton1, None, Compiled, qt_QRadioButton_QRadioButton_QRadioButton_QRadioButton_string_QWidget, Return, "qt.QRadioButton", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QWidget"), End), + _func[0] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QRadioButton_minimumSizeHint_QSize_QRadioButton, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QRadioButton"), End), + _func[1] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QRadioButton_sizeHint_QSize_QRadioButton, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QRadioButton"), End), + // MISSING: initStyleOption (void; QRadioButton this, "QStyleOptionButton *" option) // protected + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QRadioButton_event_bool_QRadioButton_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "hitButton", _n_hitButton0, None, Compiled, qt_QRadioButton_hitButton_bool_QRadioButton_QPoint, Return, "bool", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "pos", "qt.QPoint"), End), + _func[4] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QRadioButton_mouseMoveEvent_void_QRadioButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[5] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QRadioButton_paintEvent_void_QRadioButton_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "_p14", "qt.QPaintEvent"), End), + _func[6] = new MemberFunction(c, "checkStateSet", _n_checkStateSet0, None, Compiled, qt_QRadioButton_checkStateSet_void_QRadioButton, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), End), + _func[7] = new MemberFunction(c, "nextCheckState", _n_nextCheckState0, None, Compiled, qt_QRadioButton_nextCheckState_void_QRadioButton, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), End), + _func[8] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QRadioButton_changeEvent_void_QRadioButton_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "e", "qt.QEvent"), End), + _func[9] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QRadioButton_focusInEvent_void_QRadioButton_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[10] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QRadioButton_focusOutEvent_void_QRadioButton_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[11] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QRadioButton_keyPressEvent_void_QRadioButton_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[12] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QRadioButton_keyReleaseEvent_void_QRadioButton_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[13] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QRadioButton_mousePressEvent_void_QRadioButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[14] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QRadioButton_mouseReleaseEvent_void_QRadioButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[15] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QRadioButton_timerEvent_void_QRadioButton_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QRadioButton"), new Param(c, "e", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QRadioButton::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QRectFType.cpp b/src/lib/mu/MuQt6/QRectFType.cpp new file mode 100644 index 000000000..f89153a23 --- /dev/null +++ b/src/lib/mu/MuQt6/QRectFType.cpp @@ -0,0 +1,1062 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QRectFType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QRectFType::QRectFType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QRectFType::~QRectFType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QRectFType::Instance* i = new QRectFType::Instance((Class*)NODE_THIS.type()); + QRectFType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QRectFType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QRectFType::finalizer, 0, 0, 0); +} + +void +QRectFType::finalizer (void* obj, void* data) +{ + QRectFType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QRectF_QRectF_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QRectF()); + return param_this; +} + +Pointer qt_QRectF_QRectF_QRectF_QRectF_QPointF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_topLeft, Pointer param_bottomRight) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPointF arg1 = getqtype(param_topLeft); + const QPointF arg2 = getqtype(param_bottomRight); + setqtype(param_this,QRectF(arg1, arg2)); + return param_this; +} + +Pointer qt_QRectF_QRectF_QRectF_QRectF_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x, double param_y, double param_width, double param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg1 = (double)(param_x); + qreal arg2 = (double)(param_y); + qreal arg3 = (double)(param_width); + qreal arg4 = (double)(param_height); + setqtype(param_this,QRectF(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QRectF_QRectF_QRectF_QRectF_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRect arg1 = getqtype(param_rectangle); + setqtype(param_this,QRectF(arg1)); + return param_this; +} + +void qt_QRectF_adjust_void_QRectF_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_dx1, double param_dy1, double param_dx2, double param_dy2) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_dx1); + qreal arg2 = (double)(param_dy1); + qreal arg3 = (double)(param_dx2); + qreal arg4 = (double)(param_dy2); + arg0.adjust(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +Pointer qt_QRectF_adjusted_QRectF_QRectF_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_dx1, double param_dy1, double param_dx2, double param_dy2) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_dx1); + qreal arg2 = (double)(param_dy1); + qreal arg3 = (double)(param_dx2); + qreal arg4 = (double)(param_dy2); + return makeqtype(c,arg0.adjusted(arg1, arg2, arg3, arg4),"qt.QRectF"); +} + +double qt_QRectF_bottom_double_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.bottom(); +} + +Pointer qt_QRectF_bottomLeft_QPointF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return makeqtype(c,arg0.bottomLeft(),"qt.QPointF"); +} + +Pointer qt_QRectF_bottomRight_QPointF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return makeqtype(c,arg0.bottomRight(),"qt.QPointF"); +} + +Pointer qt_QRectF_center_QPointF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return makeqtype(c,arg0.center(),"qt.QPointF"); +} + +bool qt_QRectF_contains_bool_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_point); + return arg0.contains(arg1); +} + +bool qt_QRectF_contains_bool_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rectangle); + return arg0.contains(arg1); +} + +bool qt_QRectF_contains_bool_QRectF_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + qreal arg2 = (double)(param_y); + return arg0.contains(arg1, arg2); +} + +double qt_QRectF_height_double_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.height(); +} + +Pointer qt_QRectF_intersected_QRectF_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.intersected(arg1),"qt.QRectF"); +} + +bool qt_QRectF_intersects_bool_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rectangle); + return arg0.intersects(arg1); +} + +bool qt_QRectF_isEmpty_bool_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.isEmpty(); +} + +bool qt_QRectF_isNull_bool_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.isNull(); +} + +bool qt_QRectF_isValid_bool_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.isValid(); +} + +double qt_QRectF_left_double_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.left(); +} + +void qt_QRectF_moveBottom_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_y); + arg0.moveBottom(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_moveBottomLeft_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_position); + arg0.moveBottomLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_moveBottomRight_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_position); + arg0.moveBottomRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_moveCenter_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_position); + arg0.moveCenter(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_moveLeft_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + arg0.moveLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_moveRight_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + arg0.moveRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_moveTo_void_QRectF_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + qreal arg2 = (double)(param_y); + arg0.moveTo(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QRectF_moveTo_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_position); + arg0.moveTo(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_moveTop_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_y); + arg0.moveTop(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_moveTopLeft_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_position); + arg0.moveTopLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_moveTopRight_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_position); + arg0.moveTopRight(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QRectF_normalized_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return makeqtype(c,arg0.normalized(),"qt.QRectF"); +} + +double qt_QRectF_right_double_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.right(); +} + +void qt_QRectF_setBottom_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_y); + arg0.setBottom(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setBottomLeft_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_position); + arg0.setBottomLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setBottomRight_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_position); + arg0.setBottomRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setCoords_void_QRectF_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x1, double param_y1, double param_x2, double param_y2) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x1); + qreal arg2 = (double)(param_y1); + qreal arg3 = (double)(param_x2); + qreal arg4 = (double)(param_y2); + arg0.setCoords(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QRectF_setHeight_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_height); + arg0.setHeight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setLeft_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + arg0.setLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setRect_void_QRectF_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x, double param_y, double param_width, double param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + qreal arg2 = (double)(param_y); + qreal arg3 = (double)(param_width); + qreal arg4 = (double)(param_height); + arg0.setRect(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QRectF_setRight_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + arg0.setRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setTop_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_y); + arg0.setTop(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setTopLeft_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_position); + arg0.setTopLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setTopRight_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_position); + arg0.setTopRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setWidth_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_width) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_width); + arg0.setWidth(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setX_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_x); + arg0.setX(arg1); + setqtype(param_this,arg0); +} + +void qt_QRectF_setY_void_QRectF_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_y); + arg0.setY(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QRectF_toAlignedRect_QRect_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return makeqtype(c,arg0.toAlignedRect(),"qt.QRect"); +} + +Pointer qt_QRectF_toRect_QRect_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return makeqtype(c,arg0.toRect(),"qt.QRect"); +} + +double qt_QRectF_top_double_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.top(); +} + +Pointer qt_QRectF_topLeft_QPointF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return makeqtype(c,arg0.topLeft(),"qt.QPointF"); +} + +Pointer qt_QRectF_topRight_QPointF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return makeqtype(c,arg0.topRight(),"qt.QPointF"); +} + +void qt_QRectF_translate_void_QRectF_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_dx, double param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_dx); + qreal arg2 = (double)(param_dy); + arg0.translate(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QRectF_translate_void_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_offset) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_offset); + arg0.translate(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QRectF_translated_QRectF_QRectF_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_dx, double param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + qreal arg1 = (double)(param_dx); + qreal arg2 = (double)(param_dy); + return makeqtype(c,arg0.translated(arg1, arg2),"qt.QRectF"); +} + +Pointer qt_QRectF_translated_QRectF_QRectF_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_offset) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_offset); + return makeqtype(c,arg0.translated(arg1),"qt.QRectF"); +} + +Pointer qt_QRectF_transposed_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return makeqtype(c,arg0.transposed(),"qt.QRectF"); +} + +Pointer qt_QRectF_united_QRectF_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.united(arg1),"qt.QRectF"); +} + +double qt_QRectF_width_double_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.width(); +} + +double qt_QRectF_x_double_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.x(); +} + +double qt_QRectF_y_double_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + return arg0.y(); +} + +Pointer qt_QRectF_operatorAmp__QRectF_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.operator&(arg1),"qt.QRectF"); +} + +Pointer qt_QRectF_operatorPipe__QRectF_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.operator|(arg1),"qt.QRectF"); +} + +Pointer qt_QRectF_operatorPipe_EQ__QRectF_QRectF_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.operator|=(arg1),"qt.QRectF"); +} + + +static NODE_IMPLEMENTATION(_n_QRectF0, Pointer) +{ + NODE_RETURN(qt_QRectF_QRectF_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QRectF2, Pointer) +{ + NODE_RETURN(qt_QRectF_QRectF_QRectF_QRectF_QPointF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QRectF3, Pointer) +{ + NODE_RETURN(qt_QRectF_QRectF_QRectF_QRectF_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double))); +} + +static NODE_IMPLEMENTATION(_n_QRectF4, Pointer) +{ + NODE_RETURN(qt_QRectF_QRectF_QRectF_QRectF_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_adjust0, void) +{ + qt_QRectF_adjust_void_QRectF_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double)); +} + +static NODE_IMPLEMENTATION(_n_adjusted0, Pointer) +{ + NODE_RETURN(qt_QRectF_adjusted_QRectF_QRectF_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double))); +} + +static NODE_IMPLEMENTATION(_n_bottom0, double) +{ + NODE_RETURN(qt_QRectF_bottom_double_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bottomLeft0, Pointer) +{ + NODE_RETURN(qt_QRectF_bottomLeft_QPointF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bottomRight0, Pointer) +{ + NODE_RETURN(qt_QRectF_bottomRight_QPointF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_center0, Pointer) +{ + NODE_RETURN(qt_QRectF_center_QPointF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contains0, bool) +{ + NODE_RETURN(qt_QRectF_contains_bool_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contains1, bool) +{ + NODE_RETURN(qt_QRectF_contains_bool_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contains2, bool) +{ + NODE_RETURN(qt_QRectF_contains_bool_QRectF_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double))); +} + +static NODE_IMPLEMENTATION(_n_height0, double) +{ + NODE_RETURN(qt_QRectF_height_double_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intersected0, Pointer) +{ + NODE_RETURN(qt_QRectF_intersected_QRectF_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intersects0, bool) +{ + NODE_RETURN(qt_QRectF_intersects_bool_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QRectF_isEmpty_bool_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QRectF_isNull_bool_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QRectF_isValid_bool_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_left0, double) +{ + NODE_RETURN(qt_QRectF_left_double_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_moveBottom0, void) +{ + qt_QRectF_moveBottom_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_moveBottomLeft0, void) +{ + qt_QRectF_moveBottomLeft_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveBottomRight0, void) +{ + qt_QRectF_moveBottomRight_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveCenter0, void) +{ + qt_QRectF_moveCenter_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveLeft0, void) +{ + qt_QRectF_moveLeft_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_moveRight0, void) +{ + qt_QRectF_moveRight_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_moveTo0, void) +{ + qt_QRectF_moveTo_void_QRectF_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double)); +} + +static NODE_IMPLEMENTATION(_n_moveTo1, void) +{ + qt_QRectF_moveTo_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveTop0, void) +{ + qt_QRectF_moveTop_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_moveTopLeft0, void) +{ + qt_QRectF_moveTopLeft_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveTopRight0, void) +{ + qt_QRectF_moveTopRight_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_normalized0, Pointer) +{ + NODE_RETURN(qt_QRectF_normalized_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_right0, double) +{ + NODE_RETURN(qt_QRectF_right_double_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBottom0, void) +{ + qt_QRectF_setBottom_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setBottomLeft0, void) +{ + qt_QRectF_setBottomLeft_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setBottomRight0, void) +{ + qt_QRectF_setBottomRight_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCoords0, void) +{ + qt_QRectF_setCoords_void_QRectF_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double)); +} + +static NODE_IMPLEMENTATION(_n_setHeight0, void) +{ + qt_QRectF_setHeight_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setLeft0, void) +{ + qt_QRectF_setLeft_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setRect0, void) +{ + qt_QRectF_setRect_void_QRectF_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double)); +} + +static NODE_IMPLEMENTATION(_n_setRight0, void) +{ + qt_QRectF_setRight_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setTop0, void) +{ + qt_QRectF_setTop_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setTopLeft0, void) +{ + qt_QRectF_setTopLeft_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTopRight0, void) +{ + qt_QRectF_setTopRight_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setWidth0, void) +{ + qt_QRectF_setWidth_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setX0, void) +{ + qt_QRectF_setX_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setY0, void) +{ + qt_QRectF_setY_void_QRectF_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_toAlignedRect0, Pointer) +{ + NODE_RETURN(qt_QRectF_toAlignedRect_QRect_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toRect0, Pointer) +{ + NODE_RETURN(qt_QRectF_toRect_QRect_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_top0, double) +{ + NODE_RETURN(qt_QRectF_top_double_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_topLeft0, Pointer) +{ + NODE_RETURN(qt_QRectF_topLeft_QPointF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_topRight0, Pointer) +{ + NODE_RETURN(qt_QRectF_topRight_QPointF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_translate0, void) +{ + qt_QRectF_translate_void_QRectF_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double)); +} + +static NODE_IMPLEMENTATION(_n_translate1, void) +{ + qt_QRectF_translate_void_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_translated0, Pointer) +{ + NODE_RETURN(qt_QRectF_translated_QRectF_QRectF_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double))); +} + +static NODE_IMPLEMENTATION(_n_translated1, Pointer) +{ + NODE_RETURN(qt_QRectF_translated_QRectF_QRectF_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_transposed0, Pointer) +{ + NODE_RETURN(qt_QRectF_transposed_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_united0, Pointer) +{ + NODE_RETURN(qt_QRectF_united_QRectF_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_width0, double) +{ + NODE_RETURN(qt_QRectF_width_double_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_x0, double) +{ + NODE_RETURN(qt_QRectF_x_double_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_y0, double) +{ + NODE_RETURN(qt_QRectF_y_double_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorAmp_0, Pointer) +{ + NODE_RETURN(qt_QRectF_operatorAmp__QRectF_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPipe_0, Pointer) +{ + NODE_RETURN(qt_QRectF_operatorPipe__QRectF_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPipe_EQ_0, Pointer) +{ + NODE_RETURN(qt_QRectF_operatorPipe_EQ__QRectF_QRectF_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QRectFType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QRectF", _n_QRectF0, None, Compiled, qt_QRectF_QRectF_QRectF_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), End), + // MISSING: QRectF (QRectF; QRectF this, QPointF topLeft, "const QSizeF &" size) + new Function(c, "QRectF", _n_QRectF2, None, Compiled, qt_QRectF_QRectF_QRectF_QRectF_QPointF_QPointF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "topLeft", "qt.QPointF"), new Param(c, "bottomRight", "qt.QPointF"), End), + new Function(c, "QRectF", _n_QRectF3, None, Compiled, qt_QRectF_QRectF_QRectF_QRectF_double_double_double_double, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "x", "double"), new Param(c, "y", "double"), new Param(c, "width", "double"), new Param(c, "height", "double"), End), + new Function(c, "QRectF", _n_QRectF4, None, Compiled, qt_QRectF_QRectF_QRectF_QRectF_QRect, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "adjust", _n_adjust0, None, Compiled, qt_QRectF_adjust_void_QRectF_double_double_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "dx1", "double"), new Param(c, "dy1", "double"), new Param(c, "dx2", "double"), new Param(c, "dy2", "double"), End), + new Function(c, "adjusted", _n_adjusted0, None, Compiled, qt_QRectF_adjusted_QRectF_QRectF_double_double_double_double, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "dx1", "double"), new Param(c, "dy1", "double"), new Param(c, "dx2", "double"), new Param(c, "dy2", "double"), End), + new Function(c, "bottom", _n_bottom0, None, Compiled, qt_QRectF_bottom_double_QRectF, Return, "double", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "bottomLeft", _n_bottomLeft0, None, Compiled, qt_QRectF_bottomLeft_QPointF_QRectF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "bottomRight", _n_bottomRight0, None, Compiled, qt_QRectF_bottomRight_QPointF_QRectF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "center", _n_center0, None, Compiled, qt_QRectF_center_QPointF_QRectF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "contains", _n_contains0, None, Compiled, qt_QRectF_contains_bool_QRectF_QPointF, Return, "bool", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "point", "qt.QPointF"), End), + new Function(c, "contains", _n_contains1, None, Compiled, qt_QRectF_contains_bool_QRectF_QRectF, Return, "bool", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "rectangle", "qt.QRectF"), End), + new Function(c, "contains", _n_contains2, None, Compiled, qt_QRectF_contains_bool_QRectF_double_double, Return, "bool", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "x", "double"), new Param(c, "y", "double"), End), + // MISSING: getCoords (void; QRectF this, "qreal *" x1, "qreal *" y1, "qreal *" x2, "qreal *" y2) + // MISSING: getRect (void; QRectF this, "qreal *" x, "qreal *" y, "qreal *" width, "qreal *" height) + new Function(c, "height", _n_height0, None, Compiled, qt_QRectF_height_double_QRectF, Return, "double", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "intersected", _n_intersected0, None, Compiled, qt_QRectF_intersected_QRectF_QRectF_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "rectangle", "qt.QRectF"), End), + new Function(c, "intersects", _n_intersects0, None, Compiled, qt_QRectF_intersects_bool_QRectF_QRectF, Return, "bool", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "rectangle", "qt.QRectF"), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QRectF_isEmpty_bool_QRectF, Return, "bool", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QRectF_isNull_bool_QRectF, Return, "bool", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QRectF_isValid_bool_QRectF, Return, "bool", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "left", _n_left0, None, Compiled, qt_QRectF_left_double_QRectF, Return, "double", Parameters, new Param(c, "this", "qt.QRectF"), End), + // MISSING: marginsAdded (QRectF; QRectF this, "const QMarginsF &" margins) + // MISSING: marginsRemoved (QRectF; QRectF this, "const QMarginsF &" margins) + new Function(c, "moveBottom", _n_moveBottom0, None, Compiled, qt_QRectF_moveBottom_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "y", "double"), End), + new Function(c, "moveBottomLeft", _n_moveBottomLeft0, None, Compiled, qt_QRectF_moveBottomLeft_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "position", "qt.QPointF"), End), + new Function(c, "moveBottomRight", _n_moveBottomRight0, None, Compiled, qt_QRectF_moveBottomRight_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "position", "qt.QPointF"), End), + new Function(c, "moveCenter", _n_moveCenter0, None, Compiled, qt_QRectF_moveCenter_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "position", "qt.QPointF"), End), + new Function(c, "moveLeft", _n_moveLeft0, None, Compiled, qt_QRectF_moveLeft_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "x", "double"), End), + new Function(c, "moveRight", _n_moveRight0, None, Compiled, qt_QRectF_moveRight_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "x", "double"), End), + new Function(c, "moveTo", _n_moveTo0, None, Compiled, qt_QRectF_moveTo_void_QRectF_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "x", "double"), new Param(c, "y", "double"), End), + new Function(c, "moveTo", _n_moveTo1, None, Compiled, qt_QRectF_moveTo_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "position", "qt.QPointF"), End), + new Function(c, "moveTop", _n_moveTop0, None, Compiled, qt_QRectF_moveTop_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "y", "double"), End), + new Function(c, "moveTopLeft", _n_moveTopLeft0, None, Compiled, qt_QRectF_moveTopLeft_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "position", "qt.QPointF"), End), + new Function(c, "moveTopRight", _n_moveTopRight0, None, Compiled, qt_QRectF_moveTopRight_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "position", "qt.QPointF"), End), + new Function(c, "normalized", _n_normalized0, None, Compiled, qt_QRectF_normalized_QRectF_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "right", _n_right0, None, Compiled, qt_QRectF_right_double_QRectF, Return, "double", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "setBottom", _n_setBottom0, None, Compiled, qt_QRectF_setBottom_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "y", "double"), End), + new Function(c, "setBottomLeft", _n_setBottomLeft0, None, Compiled, qt_QRectF_setBottomLeft_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "position", "qt.QPointF"), End), + new Function(c, "setBottomRight", _n_setBottomRight0, None, Compiled, qt_QRectF_setBottomRight_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "position", "qt.QPointF"), End), + new Function(c, "setCoords", _n_setCoords0, None, Compiled, qt_QRectF_setCoords_void_QRectF_double_double_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "x1", "double"), new Param(c, "y1", "double"), new Param(c, "x2", "double"), new Param(c, "y2", "double"), End), + new Function(c, "setHeight", _n_setHeight0, None, Compiled, qt_QRectF_setHeight_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "height", "double"), End), + new Function(c, "setLeft", _n_setLeft0, None, Compiled, qt_QRectF_setLeft_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "x", "double"), End), + new Function(c, "setRect", _n_setRect0, None, Compiled, qt_QRectF_setRect_void_QRectF_double_double_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "x", "double"), new Param(c, "y", "double"), new Param(c, "width", "double"), new Param(c, "height", "double"), End), + new Function(c, "setRight", _n_setRight0, None, Compiled, qt_QRectF_setRight_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "x", "double"), End), + // MISSING: setSize (void; QRectF this, "const QSizeF &" size) + new Function(c, "setTop", _n_setTop0, None, Compiled, qt_QRectF_setTop_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "y", "double"), End), + new Function(c, "setTopLeft", _n_setTopLeft0, None, Compiled, qt_QRectF_setTopLeft_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "position", "qt.QPointF"), End), + new Function(c, "setTopRight", _n_setTopRight0, None, Compiled, qt_QRectF_setTopRight_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "position", "qt.QPointF"), End), + new Function(c, "setWidth", _n_setWidth0, None, Compiled, qt_QRectF_setWidth_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "width", "double"), End), + new Function(c, "setX", _n_setX0, None, Compiled, qt_QRectF_setX_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "x", "double"), End), + new Function(c, "setY", _n_setY0, None, Compiled, qt_QRectF_setY_void_QRectF_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "y", "double"), End), + // MISSING: size ("QSizeF"; QRectF this) + new Function(c, "toAlignedRect", _n_toAlignedRect0, None, Compiled, qt_QRectF_toAlignedRect_QRect_QRectF, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRectF"), End), + // MISSING: toCGRect ("CGRect"; QRectF this) + new Function(c, "toRect", _n_toRect0, None, Compiled, qt_QRectF_toRect_QRect_QRectF, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "top", _n_top0, None, Compiled, qt_QRectF_top_double_QRectF, Return, "double", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "topLeft", _n_topLeft0, None, Compiled, qt_QRectF_topLeft_QPointF_QRectF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "topRight", _n_topRight0, None, Compiled, qt_QRectF_topRight_QPointF_QRectF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "translate", _n_translate0, None, Compiled, qt_QRectF_translate_void_QRectF_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "dx", "double"), new Param(c, "dy", "double"), End), + new Function(c, "translate", _n_translate1, None, Compiled, qt_QRectF_translate_void_QRectF_QPointF, Return, "void", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "offset", "qt.QPointF"), End), + new Function(c, "translated", _n_translated0, None, Compiled, qt_QRectF_translated_QRectF_QRectF_double_double, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "dx", "double"), new Param(c, "dy", "double"), End), + new Function(c, "translated", _n_translated1, None, Compiled, qt_QRectF_translated_QRectF_QRectF_QPointF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "offset", "qt.QPointF"), End), + new Function(c, "transposed", _n_transposed0, None, Compiled, qt_QRectF_transposed_QRectF_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "united", _n_united0, None, Compiled, qt_QRectF_united_QRectF_QRectF_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "rectangle", "qt.QRectF"), End), + new Function(c, "width", _n_width0, None, Compiled, qt_QRectF_width_double_QRectF, Return, "double", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "x", _n_x0, None, Compiled, qt_QRectF_x_double_QRectF, Return, "double", Parameters, new Param(c, "this", "qt.QRectF"), End), + new Function(c, "y", _n_y0, None, Compiled, qt_QRectF_y_double_QRectF, Return, "double", Parameters, new Param(c, "this", "qt.QRectF"), End), + // MISSING: = ("QRectF & operator&"; QRectF this, QRectF rectangle) + // static functions + // MISSING: fromCGRect (QRectF; "CGRect" rect) + EndArguments); +globalScope()->addSymbols( + new Function(c, "&", _n_operatorAmp_0, Op, Compiled, qt_QRectF_operatorAmp__QRectF_QRectF_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "rectangle", "qt.QRectF"), End), + // MISSING: += (QRectF; QRectF this, "const QMarginsF &" margins) + // MISSING: -= (QRectF; QRectF this, "const QMarginsF &" margins) + new Function(c, "|", _n_operatorPipe_0, Op, Compiled, qt_QRectF_operatorPipe__QRectF_QRectF_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "rectangle", "qt.QRectF"), End), + new Function(c, "|=", _n_operatorPipe_EQ_0, Op, Compiled, qt_QRectF_operatorPipe_EQ__QRectF_QRectF_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRectF"), new Param(c, "rectangle", "qt.QRectF"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QRectType.cpp b/src/lib/mu/MuQt6/QRectType.cpp new file mode 100644 index 000000000..7959e25ad --- /dev/null +++ b/src/lib/mu/MuQt6/QRectType.cpp @@ -0,0 +1,1160 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QRectType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QRectType::QRectType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QRectType::~QRectType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QRectType::Instance* i = new QRectType::Instance((Class*)NODE_THIS.type()); + QRectType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QRectType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QRectType::finalizer, 0, 0, 0); +} + +void +QRectType::finalizer (void* obj, void* data) +{ + QRectType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QRect_QRect_QRect_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QRect()); + return param_this; +} + +Pointer qt_QRect_QRect_QRect_QRect_QPoint_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_topLeft, Pointer param_bottomRight) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg1 = getqtype(param_topLeft); + const QPoint arg2 = getqtype(param_bottomRight); + setqtype(param_this,QRect(arg1, arg2)); + return param_this; +} + +Pointer qt_QRect_QRect_QRect_QRect_QPoint_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_topLeft, Pointer param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg1 = getqtype(param_topLeft); + const QSize arg2 = getqtype(param_size); + setqtype(param_this,QRect(arg1, arg2)); + return param_this; +} + +Pointer qt_QRect_QRect_QRect_QRect_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, int param_width, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + int arg3 = (int)(param_width); + int arg4 = (int)(param_height); + setqtype(param_this,QRect(arg1, arg2, arg3, arg4)); + return param_this; +} + +void qt_QRect_adjust_void_QRect_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx1, int param_dy1, int param_dx2, int param_dy2) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_dx1); + int arg2 = (int)(param_dy1); + int arg3 = (int)(param_dx2); + int arg4 = (int)(param_dy2); + arg0.adjust(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +Pointer qt_QRect_adjusted_QRect_QRect_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx1, int param_dy1, int param_dx2, int param_dy2) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_dx1); + int arg2 = (int)(param_dy1); + int arg3 = (int)(param_dx2); + int arg4 = (int)(param_dy2); + return makeqtype(c,arg0.adjusted(arg1, arg2, arg3, arg4),"qt.QRect"); +} + +int qt_QRect_bottom_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.bottom(); +} + +Pointer qt_QRect_bottomLeft_QPoint_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return makeqtype(c,arg0.bottomLeft(),"qt.QPoint"); +} + +Pointer qt_QRect_bottomRight_QPoint_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return makeqtype(c,arg0.bottomRight(),"qt.QPoint"); +} + +Pointer qt_QRect_center_QPoint_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return makeqtype(c,arg0.center(),"qt.QPoint"); +} + +bool qt_QRect_contains_bool_QRect_QPoint_bool(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point, bool param_proper) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_point); + bool arg2 = (bool)(param_proper); + return arg0.contains(arg1, arg2); +} + +bool qt_QRect_contains_bool_QRect_QRect_bool(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle, bool param_proper) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rectangle); + bool arg2 = (bool)(param_proper); + return arg0.contains(arg1, arg2); +} + +bool qt_QRect_contains_bool_QRect_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + return arg0.contains(arg1, arg2); +} + +bool qt_QRect_contains_bool_QRect_int_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, bool param_proper) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + bool arg3 = (bool)(param_proper); + return arg0.contains(arg1, arg2, arg3); +} + +int qt_QRect_height_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.height(); +} + +Pointer qt_QRect_intersected_QRect_QRect_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.intersected(arg1),"qt.QRect"); +} + +bool qt_QRect_intersects_bool_QRect_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rectangle); + return arg0.intersects(arg1); +} + +bool qt_QRect_isEmpty_bool_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.isEmpty(); +} + +bool qt_QRect_isNull_bool_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.isNull(); +} + +bool qt_QRect_isValid_bool_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.isValid(); +} + +int qt_QRect_left_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.left(); +} + +Pointer qt_QRect_marginsAdded_QRect_QRect_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_margins) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QMargins arg1 = getqtype(param_margins); + return makeqtype(c,arg0.marginsAdded(arg1),"qt.QRect"); +} + +Pointer qt_QRect_marginsRemoved_QRect_QRect_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_margins) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QMargins arg1 = getqtype(param_margins); + return makeqtype(c,arg0.marginsRemoved(arg1),"qt.QRect"); +} + +void qt_QRect_moveBottom_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_y); + arg0.moveBottom(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_moveBottomLeft_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + arg0.moveBottomLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_moveBottomRight_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + arg0.moveBottomRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_moveCenter_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + arg0.moveCenter(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_moveLeft_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + arg0.moveLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_moveRight_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + arg0.moveRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_moveTo_void_QRect_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + arg0.moveTo(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QRect_moveTo_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + arg0.moveTo(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_moveTop_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_y); + arg0.moveTop(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_moveTopLeft_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + arg0.moveTopLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_moveTopRight_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + arg0.moveTopRight(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QRect_normalized_QRect_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return makeqtype(c,arg0.normalized(),"qt.QRect"); +} + +int qt_QRect_right_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.right(); +} + +void qt_QRect_setBottom_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_y); + arg0.setBottom(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setBottomLeft_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + arg0.setBottomLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setBottomRight_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + arg0.setBottomRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setCoords_void_QRect_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x1, int param_y1, int param_x2, int param_y2) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_x1); + int arg2 = (int)(param_y1); + int arg3 = (int)(param_x2); + int arg4 = (int)(param_y2); + arg0.setCoords(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QRect_setHeight_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_height); + arg0.setHeight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setLeft_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + arg0.setLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setRect_void_QRect_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, int param_width, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + int arg3 = (int)(param_width); + int arg4 = (int)(param_height); + arg0.setRect(arg1, arg2, arg3, arg4); + setqtype(param_this,arg0); +} + +void qt_QRect_setRight_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + arg0.setRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setSize_void_QRect_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_size); + arg0.setSize(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setTop_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_y); + arg0.setTop(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setTopLeft_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + arg0.setTopLeft(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setTopRight_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_position); + arg0.setTopRight(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setWidth_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_width); + arg0.setWidth(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setX_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + arg0.setX(arg1); + setqtype(param_this,arg0); +} + +void qt_QRect_setY_void_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_y); + arg0.setY(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QRect_size_QSize_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return makeqtype(c,arg0.size(),"qt.QSize"); +} + +Pointer qt_QRect_toRectF_QRectF_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return makeqtype(c,arg0.toRectF(),"qt.QRectF"); +} + +int qt_QRect_top_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.top(); +} + +Pointer qt_QRect_topLeft_QPoint_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return makeqtype(c,arg0.topLeft(),"qt.QPoint"); +} + +Pointer qt_QRect_topRight_QPoint_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return makeqtype(c,arg0.topRight(),"qt.QPoint"); +} + +void qt_QRect_translate_void_QRect_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + arg0.translate(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QRect_translate_void_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_offset) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_offset); + arg0.translate(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QRect_translated_QRect_QRect_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + return makeqtype(c,arg0.translated(arg1, arg2),"qt.QRect"); +} + +Pointer qt_QRect_translated_QRect_QRect_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_offset) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_offset); + return makeqtype(c,arg0.translated(arg1),"qt.QRect"); +} + +Pointer qt_QRect_transposed_QRect_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return makeqtype(c,arg0.transposed(),"qt.QRect"); +} + +Pointer qt_QRect_united_QRect_QRect_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.united(arg1),"qt.QRect"); +} + +int qt_QRect_width_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.width(); +} + +int qt_QRect_x_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.x(); +} + +int qt_QRect_y_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + return arg0.y(); +} + +Pointer qt_QRect_operatorAmp__QRect_QRect_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.operator&(arg1),"qt.QRect"); +} + +Pointer qt_QRect_operatorPlus_EQ__QRect_QRect_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_margins) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QMargins arg1 = getqtype(param_margins); + return makeqtype(c,arg0.operator+=(arg1),"qt.QRect"); +} + +Pointer qt_QRect_operatorMinus_EQ__QRect_QRect_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_margins) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QMargins arg1 = getqtype(param_margins); + return makeqtype(c,arg0.operator-=(arg1),"qt.QRect"); +} + +Pointer qt_QRect_operatorPipe__QRect_QRect_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.operator|(arg1),"qt.QRect"); +} + +Pointer qt_QRect_operatorPipe_EQ__QRect_QRect_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.operator|=(arg1),"qt.QRect"); +} + +Pointer qt_QRect_span_QRect_QPoint_QPoint(Mu::Thread& NODE_THREAD, Pointer param_p1, Pointer param_p2) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QPoint arg0 = getqtype(param_p1); + const QPoint arg1 = getqtype(param_p2); + return makeqtype(c,QRect::span(arg0, arg1),"qt.QRect"); +} + + +static NODE_IMPLEMENTATION(_n_QRect0, Pointer) +{ + NODE_RETURN(qt_QRect_QRect_QRect_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QRect1, Pointer) +{ + NODE_RETURN(qt_QRect_QRect_QRect_QRect_QPoint_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QRect2, Pointer) +{ + NODE_RETURN(qt_QRect_QRect_QRect_QRect_QPoint_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QRect3, Pointer) +{ + NODE_RETURN(qt_QRect_QRect_QRect_QRect_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_adjust0, void) +{ + qt_QRect_adjust_void_QRect_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_adjusted0, Pointer) +{ + NODE_RETURN(qt_QRect_adjusted_QRect_QRect_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_bottom0, int) +{ + NODE_RETURN(qt_QRect_bottom_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bottomLeft0, Pointer) +{ + NODE_RETURN(qt_QRect_bottomLeft_QPoint_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bottomRight0, Pointer) +{ + NODE_RETURN(qt_QRect_bottomRight_QPoint_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_center0, Pointer) +{ + NODE_RETURN(qt_QRect_center_QPoint_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contains0, bool) +{ + NODE_RETURN(qt_QRect_contains_bool_QRect_QPoint_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, bool))); +} + +static NODE_IMPLEMENTATION(_n_contains1, bool) +{ + NODE_RETURN(qt_QRect_contains_bool_QRect_QRect_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, bool))); +} + +static NODE_IMPLEMENTATION(_n_contains2, bool) +{ + NODE_RETURN(qt_QRect_contains_bool_QRect_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_contains3, bool) +{ + NODE_RETURN(qt_QRect_contains_bool_QRect_int_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, bool))); +} + +static NODE_IMPLEMENTATION(_n_height0, int) +{ + NODE_RETURN(qt_QRect_height_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intersected0, Pointer) +{ + NODE_RETURN(qt_QRect_intersected_QRect_QRect_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intersects0, bool) +{ + NODE_RETURN(qt_QRect_intersects_bool_QRect_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QRect_isEmpty_bool_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QRect_isNull_bool_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QRect_isValid_bool_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_left0, int) +{ + NODE_RETURN(qt_QRect_left_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_marginsAdded0, Pointer) +{ + NODE_RETURN(qt_QRect_marginsAdded_QRect_QRect_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_marginsRemoved0, Pointer) +{ + NODE_RETURN(qt_QRect_marginsRemoved_QRect_QRect_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_moveBottom0, void) +{ + qt_QRect_moveBottom_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_moveBottomLeft0, void) +{ + qt_QRect_moveBottomLeft_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveBottomRight0, void) +{ + qt_QRect_moveBottomRight_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveCenter0, void) +{ + qt_QRect_moveCenter_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveLeft0, void) +{ + qt_QRect_moveLeft_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_moveRight0, void) +{ + qt_QRect_moveRight_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_moveTo0, void) +{ + qt_QRect_moveTo_void_QRect_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_moveTo1, void) +{ + qt_QRect_moveTo_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveTop0, void) +{ + qt_QRect_moveTop_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_moveTopLeft0, void) +{ + qt_QRect_moveTopLeft_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveTopRight0, void) +{ + qt_QRect_moveTopRight_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_normalized0, Pointer) +{ + NODE_RETURN(qt_QRect_normalized_QRect_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_right0, int) +{ + NODE_RETURN(qt_QRect_right_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBottom0, void) +{ + qt_QRect_setBottom_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setBottomLeft0, void) +{ + qt_QRect_setBottomLeft_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setBottomRight0, void) +{ + qt_QRect_setBottomRight_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCoords0, void) +{ + qt_QRect_setCoords_void_QRect_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setHeight0, void) +{ + qt_QRect_setHeight_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setLeft0, void) +{ + qt_QRect_setLeft_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setRect0, void) +{ + qt_QRect_setRect_void_QRect_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setRight0, void) +{ + qt_QRect_setRight_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setSize0, void) +{ + qt_QRect_setSize_void_QRect_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTop0, void) +{ + qt_QRect_setTop_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setTopLeft0, void) +{ + qt_QRect_setTopLeft_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTopRight0, void) +{ + qt_QRect_setTopRight_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setWidth0, void) +{ + qt_QRect_setWidth_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setX0, void) +{ + qt_QRect_setX_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setY0, void) +{ + qt_QRect_setY_void_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_size0, Pointer) +{ + NODE_RETURN(qt_QRect_size_QSize_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toRectF0, Pointer) +{ + NODE_RETURN(qt_QRect_toRectF_QRectF_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_top0, int) +{ + NODE_RETURN(qt_QRect_top_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_topLeft0, Pointer) +{ + NODE_RETURN(qt_QRect_topLeft_QPoint_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_topRight0, Pointer) +{ + NODE_RETURN(qt_QRect_topRight_QPoint_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_translate0, void) +{ + qt_QRect_translate_void_QRect_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_translate1, void) +{ + qt_QRect_translate_void_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_translated0, Pointer) +{ + NODE_RETURN(qt_QRect_translated_QRect_QRect_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_translated1, Pointer) +{ + NODE_RETURN(qt_QRect_translated_QRect_QRect_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_transposed0, Pointer) +{ + NODE_RETURN(qt_QRect_transposed_QRect_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_united0, Pointer) +{ + NODE_RETURN(qt_QRect_united_QRect_QRect_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_width0, int) +{ + NODE_RETURN(qt_QRect_width_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_x0, int) +{ + NODE_RETURN(qt_QRect_x_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_y0, int) +{ + NODE_RETURN(qt_QRect_y_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorAmp_0, Pointer) +{ + NODE_RETURN(qt_QRect_operatorAmp__QRect_QRect_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QRect_operatorPlus_EQ__QRect_QRect_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorMinus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QRect_operatorMinus_EQ__QRect_QRect_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPipe_0, Pointer) +{ + NODE_RETURN(qt_QRect_operatorPipe__QRect_QRect_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPipe_EQ_0, Pointer) +{ + NODE_RETURN(qt_QRect_operatorPipe_EQ__QRect_QRect_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_span0, Pointer) +{ + NODE_RETURN(qt_QRect_span_QRect_QPoint_QPoint(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QRectType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QRect", _n_QRect0, None, Compiled, qt_QRect_QRect_QRect_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "QRect", _n_QRect1, None, Compiled, qt_QRect_QRect_QRect_QRect_QPoint_QPoint, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "topLeft", "qt.QPoint"), new Param(c, "bottomRight", "qt.QPoint"), End), + new Function(c, "QRect", _n_QRect2, None, Compiled, qt_QRect_QRect_QRect_QRect_QPoint_QSize, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "topLeft", "qt.QPoint"), new Param(c, "size", "qt.QSize"), End), + new Function(c, "QRect", _n_QRect3, None, Compiled, qt_QRect_QRect_QRect_QRect_int_int_int_int, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "width", "int"), new Param(c, "height", "int"), End), + new Function(c, "adjust", _n_adjust0, None, Compiled, qt_QRect_adjust_void_QRect_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "dx1", "int"), new Param(c, "dy1", "int"), new Param(c, "dx2", "int"), new Param(c, "dy2", "int"), End), + new Function(c, "adjusted", _n_adjusted0, None, Compiled, qt_QRect_adjusted_QRect_QRect_int_int_int_int, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "dx1", "int"), new Param(c, "dy1", "int"), new Param(c, "dx2", "int"), new Param(c, "dy2", "int"), End), + new Function(c, "bottom", _n_bottom0, None, Compiled, qt_QRect_bottom_int_QRect, Return, "int", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "bottomLeft", _n_bottomLeft0, None, Compiled, qt_QRect_bottomLeft_QPoint_QRect, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "bottomRight", _n_bottomRight0, None, Compiled, qt_QRect_bottomRight_QPoint_QRect, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "center", _n_center0, None, Compiled, qt_QRect_center_QPoint_QRect, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "contains", _n_contains0, None, Compiled, qt_QRect_contains_bool_QRect_QPoint_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "point", "qt.QPoint"), new Param(c, "proper", "bool"), End), + new Function(c, "contains", _n_contains1, None, Compiled, qt_QRect_contains_bool_QRect_QRect_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "rectangle", "qt.QRect"), new Param(c, "proper", "bool"), End), + new Function(c, "contains", _n_contains2, None, Compiled, qt_QRect_contains_bool_QRect_int_int, Return, "bool", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "contains", _n_contains3, None, Compiled, qt_QRect_contains_bool_QRect_int_int_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "proper", "bool"), End), + // MISSING: getCoords (void; QRect this, "int *" x1, "int *" y1, "int *" x2, "int *" y2) + // MISSING: getRect (void; QRect this, "int *" x, "int *" y, "int *" width, "int *" height) + new Function(c, "height", _n_height0, None, Compiled, qt_QRect_height_int_QRect, Return, "int", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "intersected", _n_intersected0, None, Compiled, qt_QRect_intersected_QRect_QRect_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "intersects", _n_intersects0, None, Compiled, qt_QRect_intersects_bool_QRect_QRect, Return, "bool", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QRect_isEmpty_bool_QRect, Return, "bool", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QRect_isNull_bool_QRect, Return, "bool", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QRect_isValid_bool_QRect, Return, "bool", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "left", _n_left0, None, Compiled, qt_QRect_left_int_QRect, Return, "int", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "marginsAdded", _n_marginsAdded0, None, Compiled, qt_QRect_marginsAdded_QRect_QRect_QMargins, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "margins", "qt.QMargins"), End), + new Function(c, "marginsRemoved", _n_marginsRemoved0, None, Compiled, qt_QRect_marginsRemoved_QRect_QRect_QMargins, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "margins", "qt.QMargins"), End), + new Function(c, "moveBottom", _n_moveBottom0, None, Compiled, qt_QRect_moveBottom_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "y", "int"), End), + new Function(c, "moveBottomLeft", _n_moveBottomLeft0, None, Compiled, qt_QRect_moveBottomLeft_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "moveBottomRight", _n_moveBottomRight0, None, Compiled, qt_QRect_moveBottomRight_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "moveCenter", _n_moveCenter0, None, Compiled, qt_QRect_moveCenter_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "moveLeft", _n_moveLeft0, None, Compiled, qt_QRect_moveLeft_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x", "int"), End), + new Function(c, "moveRight", _n_moveRight0, None, Compiled, qt_QRect_moveRight_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x", "int"), End), + new Function(c, "moveTo", _n_moveTo0, None, Compiled, qt_QRect_moveTo_void_QRect_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "moveTo", _n_moveTo1, None, Compiled, qt_QRect_moveTo_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "moveTop", _n_moveTop0, None, Compiled, qt_QRect_moveTop_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "y", "int"), End), + new Function(c, "moveTopLeft", _n_moveTopLeft0, None, Compiled, qt_QRect_moveTopLeft_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "moveTopRight", _n_moveTopRight0, None, Compiled, qt_QRect_moveTopRight_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "normalized", _n_normalized0, None, Compiled, qt_QRect_normalized_QRect_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "right", _n_right0, None, Compiled, qt_QRect_right_int_QRect, Return, "int", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "setBottom", _n_setBottom0, None, Compiled, qt_QRect_setBottom_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "y", "int"), End), + new Function(c, "setBottomLeft", _n_setBottomLeft0, None, Compiled, qt_QRect_setBottomLeft_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "setBottomRight", _n_setBottomRight0, None, Compiled, qt_QRect_setBottomRight_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "setCoords", _n_setCoords0, None, Compiled, qt_QRect_setCoords_void_QRect_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x1", "int"), new Param(c, "y1", "int"), new Param(c, "x2", "int"), new Param(c, "y2", "int"), End), + new Function(c, "setHeight", _n_setHeight0, None, Compiled, qt_QRect_setHeight_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "height", "int"), End), + new Function(c, "setLeft", _n_setLeft0, None, Compiled, qt_QRect_setLeft_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x", "int"), End), + new Function(c, "setRect", _n_setRect0, None, Compiled, qt_QRect_setRect_void_QRect_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "width", "int"), new Param(c, "height", "int"), End), + new Function(c, "setRight", _n_setRight0, None, Compiled, qt_QRect_setRight_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x", "int"), End), + new Function(c, "setSize", _n_setSize0, None, Compiled, qt_QRect_setSize_void_QRect_QSize, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "size", "qt.QSize"), End), + new Function(c, "setTop", _n_setTop0, None, Compiled, qt_QRect_setTop_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "y", "int"), End), + new Function(c, "setTopLeft", _n_setTopLeft0, None, Compiled, qt_QRect_setTopLeft_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "setTopRight", _n_setTopRight0, None, Compiled, qt_QRect_setTopRight_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "setWidth", _n_setWidth0, None, Compiled, qt_QRect_setWidth_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "width", "int"), End), + new Function(c, "setX", _n_setX0, None, Compiled, qt_QRect_setX_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "x", "int"), End), + new Function(c, "setY", _n_setY0, None, Compiled, qt_QRect_setY_void_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "y", "int"), End), + new Function(c, "size", _n_size0, None, Compiled, qt_QRect_size_QSize_QRect, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QRect"), End), + // MISSING: toCGRect ("CGRect"; QRect this) + new Function(c, "toRectF", _n_toRectF0, None, Compiled, qt_QRect_toRectF_QRectF_QRect, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "top", _n_top0, None, Compiled, qt_QRect_top_int_QRect, Return, "int", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "topLeft", _n_topLeft0, None, Compiled, qt_QRect_topLeft_QPoint_QRect, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "topRight", _n_topRight0, None, Compiled, qt_QRect_topRight_QPoint_QRect, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "translate", _n_translate0, None, Compiled, qt_QRect_translate_void_QRect_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + new Function(c, "translate", _n_translate1, None, Compiled, qt_QRect_translate_void_QRect_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "offset", "qt.QPoint"), End), + new Function(c, "translated", _n_translated0, None, Compiled, qt_QRect_translated_QRect_QRect_int_int, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + new Function(c, "translated", _n_translated1, None, Compiled, qt_QRect_translated_QRect_QRect_QPoint, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "offset", "qt.QPoint"), End), + new Function(c, "transposed", _n_transposed0, None, Compiled, qt_QRect_transposed_QRect_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "united", _n_united0, None, Compiled, qt_QRect_united_QRect_QRect_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "width", _n_width0, None, Compiled, qt_QRect_width_int_QRect, Return, "int", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "x", _n_x0, None, Compiled, qt_QRect_x_int_QRect, Return, "int", Parameters, new Param(c, "this", "qt.QRect"), End), + new Function(c, "y", _n_y0, None, Compiled, qt_QRect_y_int_QRect, Return, "int", Parameters, new Param(c, "this", "qt.QRect"), End), + // MISSING: = ("QRect & operator&"; QRect this, QRect rectangle) + // static functions + new Function(c, "span", _n_span0, None, Compiled, qt_QRect_span_QRect_QPoint_QPoint, Return, "qt.QRect", Parameters, new Param(c, "p1", "qt.QPoint"), new Param(c, "p2", "qt.QPoint"), End), + EndArguments); +globalScope()->addSymbols( + new Function(c, "&", _n_operatorAmp_0, Op, Compiled, qt_QRect_operatorAmp__QRect_QRect_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "+=", _n_operatorPlus_EQ_0, Op, Compiled, qt_QRect_operatorPlus_EQ__QRect_QRect_QMargins, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "margins", "qt.QMargins"), End), + new Function(c, "-=", _n_operatorMinus_EQ_0, Op, Compiled, qt_QRect_operatorMinus_EQ__QRect_QRect_QMargins, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "margins", "qt.QMargins"), End), + new Function(c, "|", _n_operatorPipe_0, Op, Compiled, qt_QRect_operatorPipe__QRect_QRect_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "|=", _n_operatorPipe_EQ_0, Op, Compiled, qt_QRect_operatorPipe_EQ__QRect_QRect_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRect"), new Param(c, "rectangle", "qt.QRect"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QRegionType.cpp b/src/lib/mu/MuQt6/QRegionType.cpp new file mode 100644 index 000000000..9c41e98c1 --- /dev/null +++ b/src/lib/mu/MuQt6/QRegionType.cpp @@ -0,0 +1,672 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QRegionType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QRegionType::QRegionType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QRegionType::~QRegionType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QRegionType::Instance* i = new QRegionType::Instance((Class*)NODE_THIS.type()); + QRegionType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QRegionType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QRegionType::finalizer, 0, 0, 0); +} + +void +QRegionType::finalizer (void* obj, void* data) +{ + QRegionType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QRegion_QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QRegion()); + return param_this; +} + +Pointer qt_QRegion_QRegion_QRegion_QRegion_int_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, int param_w, int param_h, int param_t) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + int arg3 = (int)(param_w); + int arg4 = (int)(param_h); + QRegion::RegionType arg5 = (QRegion::RegionType)(param_t); + setqtype(param_this,QRegion(arg1, arg2, arg3, arg4, arg5)); + return param_this; +} + +Pointer qt_QRegion_QRegion_QRegion_QRegion_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r, int param_t) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRect arg1 = getqtype(param_r); + QRegion::RegionType arg2 = (QRegion::RegionType)(param_t); + setqtype(param_this,QRegion(arg1, arg2)); + return param_this; +} + +Pointer qt_QRegion_QRegion_QRegion_QRegion_QBitmap(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_bm) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QBitmap arg1 = getqtype(param_bm); + setqtype(param_this,QRegion(arg1)); + return param_this; +} + +Pointer qt_QRegion_boundingRect_QRect_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + return makeqtype(c,arg0.boundingRect(),"qt.QRect"); +} + +bool qt_QRegion_contains_bool_QRegion_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_p); + return arg0.contains(arg1); +} + +bool qt_QRegion_contains_bool_QRegion_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_r); + return arg0.contains(arg1); +} + +Pointer qt_QRegion_intersected_QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.intersected(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_intersected_QRegion_QRegion_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rect); + return makeqtype(c,arg0.intersected(arg1),"qt.QRegion"); +} + +bool qt_QRegion_intersects_bool_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_region) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_region); + return arg0.intersects(arg1); +} + +bool qt_QRegion_intersects_bool_QRegion_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rect); + return arg0.intersects(arg1); +} + +bool qt_QRegion_isEmpty_bool_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + return arg0.isEmpty(); +} + +bool qt_QRegion_isNull_bool_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + return arg0.isNull(); +} + +int qt_QRegion_rectCount_int_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + return arg0.rectCount(); +} + +Pointer qt_QRegion_subtracted_QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.subtracted(arg1),"qt.QRegion"); +} + +void qt_QRegion_swap_void_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegion& arg0 = getqtype(param_this); + QRegion arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +void qt_QRegion_translate_void_QRegion_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegion& arg0 = getqtype(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + arg0.translate(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QRegion_translate_void_QRegion_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegion& arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_point); + arg0.translate(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QRegion_translated_QRegion_QRegion_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + return makeqtype(c,arg0.translated(arg1, arg2),"qt.QRegion"); +} + +Pointer qt_QRegion_translated_QRegion_QRegion_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_p); + return makeqtype(c,arg0.translated(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_united_QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.united(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_united_QRegion_QRegion_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rect); + return makeqtype(c,arg0.united(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_xored_QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.xored(arg1),"qt.QRegion"); +} + +bool qt_QRegion_operatorBang_EQ__bool_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +Pointer qt_QRegion_operatorAmp__QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator&(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_operatorAmp__QRegion_QRegion_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator&(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_operatorPlus__QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator+(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_operatorPlus__QRegion_QRegion_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator+(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_operatorPlus_EQ__QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator+=(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_operatorPlus_EQ__QRegion_QRegion_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegion& arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rect); + return makeqtype(c,arg0.operator+=(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_operatorMinus__QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator-(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_operatorMinus_EQ__QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator-=(arg1),"qt.QRegion"); +} + +bool qt_QRegion_operatorEQ_EQ__bool_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return arg0.operator==(arg1); +} + +Pointer qt_QRegion_operatorCaret__QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator^(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_operatorCaret_EQ__QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator^=(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_operatorPipe__QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator|(arg1),"qt.QRegion"); +} + +Pointer qt_QRegion_operatorPipe_EQ__QRegion_QRegion_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegion& arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_r); + return makeqtype(c,arg0.operator|=(arg1),"qt.QRegion"); +} + + +static NODE_IMPLEMENTATION(_n_QRegion0, Pointer) +{ + NODE_RETURN(qt_QRegion_QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QRegion1, Pointer) +{ + NODE_RETURN(qt_QRegion_QRegion_QRegion_QRegion_int_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_QRegion2, Pointer) +{ + NODE_RETURN(qt_QRegion_QRegion_QRegion_QRegion_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QRegion4, Pointer) +{ + NODE_RETURN(qt_QRegion_QRegion_QRegion_QRegion_QBitmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_boundingRect0, Pointer) +{ + NODE_RETURN(qt_QRegion_boundingRect_QRect_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contains0, bool) +{ + NODE_RETURN(qt_QRegion_contains_bool_QRegion_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contains1, bool) +{ + NODE_RETURN(qt_QRegion_contains_bool_QRegion_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intersected0, Pointer) +{ + NODE_RETURN(qt_QRegion_intersected_QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intersected1, Pointer) +{ + NODE_RETURN(qt_QRegion_intersected_QRegion_QRegion_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intersects0, bool) +{ + NODE_RETURN(qt_QRegion_intersects_bool_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_intersects1, bool) +{ + NODE_RETURN(qt_QRegion_intersects_bool_QRegion_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QRegion_isEmpty_bool_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QRegion_isNull_bool_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rectCount0, int) +{ + NODE_RETURN(qt_QRegion_rectCount_int_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_subtracted0, Pointer) +{ + NODE_RETURN(qt_QRegion_subtracted_QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QRegion_swap_void_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_translate0, void) +{ + qt_QRegion_translate_void_QRegion_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_translate1, void) +{ + qt_QRegion_translate_void_QRegion_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_translated0, Pointer) +{ + NODE_RETURN(qt_QRegion_translated_QRegion_QRegion_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_translated1, Pointer) +{ + NODE_RETURN(qt_QRegion_translated_QRegion_QRegion_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_united0, Pointer) +{ + NODE_RETURN(qt_QRegion_united_QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_united1, Pointer) +{ + NODE_RETURN(qt_QRegion_united_QRegion_QRegion_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_xored0, Pointer) +{ + NODE_RETURN(qt_QRegion_xored_QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QRegion_operatorBang_EQ__bool_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorAmp_0, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorAmp__QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorAmp_1, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorAmp__QRegion_QRegion_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_0, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorPlus__QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_1, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorPlus__QRegion_QRegion_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorPlus_EQ__QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_EQ_1, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorPlus_EQ__QRegion_QRegion_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorMinus_0, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorMinus__QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorMinus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorMinus_EQ__QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QRegion_operatorEQ_EQ__bool_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorCaret_0, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorCaret__QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorCaret_EQ_0, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorCaret_EQ__QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPipe_0, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorPipe__QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPipe_EQ_0, Pointer) +{ + NODE_RETURN(qt_QRegion_operatorPipe_EQ__QRegion_QRegion_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QRegionType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "RegionType", "int"), + new SymbolicConstant(c, "Rectangle", "int", Value(int(QRegion::Rectangle))), + new SymbolicConstant(c, "Ellipse", "int", Value(int(QRegion::Ellipse))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QRegion", _n_QRegion0, None, Compiled, qt_QRegion_QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), End), + new Function(c, "QRegion", _n_QRegion1, None, Compiled, qt_QRegion_QRegion_QRegion_QRegion_int_int_int_int_int, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "w", "int"), new Param(c, "h", "int"), new Param(c, "t", "int", Value((int)QRegion::Rectangle)), End), + new Function(c, "QRegion", _n_QRegion2, None, Compiled, qt_QRegion_QRegion_QRegion_QRegion_QRect_int, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRect"), new Param(c, "t", "int", Value((int)QRegion::Rectangle)), End), + // MISSING: QRegion (QRegion; QRegion this, "const QPolygon &" a, flags Qt::FillRule fillRule) + new Function(c, "QRegion", _n_QRegion4, None, Compiled, qt_QRegion_QRegion_QRegion_QRegion_QBitmap, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "bm", "qt.QBitmap"), End), + // MISSING: QRegion (QRegion; QRegion this, QRegion r) + // MISSING: QRegion (QRegion; QRegion this, "QRegion & &" other) + // MISSING: begin ("QRegion::const_iterator"; QRegion this) + new Function(c, "boundingRect", _n_boundingRect0, None, Compiled, qt_QRegion_boundingRect_QRect_QRegion, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QRegion"), End), + // MISSING: cbegin ("QRegion::const_iterator"; QRegion this) + // MISSING: cend ("QRegion::const_iterator"; QRegion this) + new Function(c, "contains", _n_contains0, None, Compiled, qt_QRegion_contains_bool_QRegion_QPoint, Return, "bool", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "p", "qt.QPoint"), End), + new Function(c, "contains", _n_contains1, None, Compiled, qt_QRegion_contains_bool_QRegion_QRect, Return, "bool", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRect"), End), + // MISSING: crbegin ("QRegion::const_reverse_iterator"; QRegion this) + // MISSING: crend ("QRegion::const_reverse_iterator"; QRegion this) + // MISSING: end ("QRegion::const_iterator"; QRegion this) + new Function(c, "intersected", _n_intersected0, None, Compiled, qt_QRegion_intersected_QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "intersected", _n_intersected1, None, Compiled, qt_QRegion_intersected_QRegion_QRegion_QRect, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "rect", "qt.QRect"), End), + new Function(c, "intersects", _n_intersects0, None, Compiled, qt_QRegion_intersects_bool_QRegion_QRegion, Return, "bool", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "region", "qt.QRegion"), End), + new Function(c, "intersects", _n_intersects1, None, Compiled, qt_QRegion_intersects_bool_QRegion_QRect, Return, "bool", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "rect", "qt.QRect"), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QRegion_isEmpty_bool_QRegion, Return, "bool", Parameters, new Param(c, "this", "qt.QRegion"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QRegion_isNull_bool_QRegion, Return, "bool", Parameters, new Param(c, "this", "qt.QRegion"), End), + // MISSING: rbegin ("QRegion::const_reverse_iterator"; QRegion this) + new Function(c, "rectCount", _n_rectCount0, None, Compiled, qt_QRegion_rectCount_int_QRegion, Return, "int", Parameters, new Param(c, "this", "qt.QRegion"), End), + // MISSING: rend ("QRegion::const_reverse_iterator"; QRegion this) + new Function(c, "subtracted", _n_subtracted0, None, Compiled, qt_QRegion_subtracted_QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QRegion_swap_void_QRegion_QRegion, Return, "void", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "other", "qt.QRegion"), End), + // MISSING: toHRGN ("HRGN"; QRegion this) + new Function(c, "translate", _n_translate0, None, Compiled, qt_QRegion_translate_void_QRegion_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + new Function(c, "translate", _n_translate1, None, Compiled, qt_QRegion_translate_void_QRegion_QPoint, Return, "void", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "point", "qt.QPoint"), End), + new Function(c, "translated", _n_translated0, None, Compiled, qt_QRegion_translated_QRegion_QRegion_int_int, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + new Function(c, "translated", _n_translated1, None, Compiled, qt_QRegion_translated_QRegion_QRegion_QPoint, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "p", "qt.QPoint"), End), + new Function(c, "united", _n_united0, None, Compiled, qt_QRegion_united_QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "united", _n_united1, None, Compiled, qt_QRegion_united_QRegion_QRegion_QRect, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "rect", "qt.QRect"), End), + new Function(c, "xored", _n_xored0, None, Compiled, qt_QRegion_xored_QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + // MISSING: QVariant ("QVariant operator"; QRegion this) + // MISSING: = ("QRegion & operator&"; QRegion this, QRegion r) + // MISSING: = ("QRegion & operator&"; QRegion this, QRect r) + // static functions + // MISSING: fromHRGN (QRegion; "HRGN" hrgn) + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QRegion_operatorBang_EQ__bool_QRegion_QRegion, Return, "bool", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "other", "qt.QRegion"), End), + new Function(c, "&", _n_operatorAmp_0, Op, Compiled, qt_QRegion_operatorAmp__QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "&", _n_operatorAmp_1, Op, Compiled, qt_QRegion_operatorAmp__QRegion_QRegion_QRect, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRect"), End), + new Function(c, "+", _n_operatorPlus_0, Op, Compiled, qt_QRegion_operatorPlus__QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "+", _n_operatorPlus_1, Op, Compiled, qt_QRegion_operatorPlus__QRegion_QRegion_QRect, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRect"), End), + new Function(c, "+=", _n_operatorPlus_EQ_0, Op, Compiled, qt_QRegion_operatorPlus_EQ__QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "+=", _n_operatorPlus_EQ_1, Op, Compiled, qt_QRegion_operatorPlus_EQ__QRegion_QRegion_QRect, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "rect", "qt.QRect"), End), + new Function(c, "-", _n_operatorMinus_0, Op, Compiled, qt_QRegion_operatorMinus__QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "-=", _n_operatorMinus_EQ_0, Op, Compiled, qt_QRegion_operatorMinus_EQ__QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + // MISSING: = (QRegion; QRegion this, QRegion r) + // MISSING: = (QRegion; QRegion this, "QRegion & &" other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QRegion_operatorEQ_EQ__bool_QRegion_QRegion, Return, "bool", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "^", _n_operatorCaret_0, Op, Compiled, qt_QRegion_operatorCaret__QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "^=", _n_operatorCaret_EQ_0, Op, Compiled, qt_QRegion_operatorCaret_EQ__QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "|", _n_operatorPipe_0, Op, Compiled, qt_QRegion_operatorPipe__QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + new Function(c, "|=", _n_operatorPipe_EQ_0, Op, Compiled, qt_QRegion_operatorPipe_EQ__QRegion_QRegion_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QRegion"), new Param(c, "r", "qt.QRegion"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QRegularExpressionType.cpp b/src/lib/mu/MuQt6/QRegularExpressionType.cpp new file mode 100644 index 000000000..d220ba1e5 --- /dev/null +++ b/src/lib/mu/MuQt6/QRegularExpressionType.cpp @@ -0,0 +1,396 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QRegularExpressionType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QRegularExpressionType::QRegularExpressionType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QRegularExpressionType::~QRegularExpressionType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QRegularExpressionType::Instance* i = new QRegularExpressionType::Instance((Class*)NODE_THIS.type()); + QRegularExpressionType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QRegularExpressionType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QRegularExpressionType::finalizer, 0, 0, 0); +} + +void +QRegularExpressionType::finalizer (void* obj, void* data) +{ + QRegularExpressionType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QRegularExpression_QRegularExpression_QRegularExpression_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QRegularExpression()); + return param_this; +} + +Pointer qt_QRegularExpression_QRegularExpression_QRegularExpression_QRegularExpression_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pattern, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_pattern); + QRegularExpression::PatternOptions arg2 = (QRegularExpression::PatternOptions)(param_options); + setqtype(param_this,QRegularExpression(arg1, arg2)); + return param_this; +} + +int qt_QRegularExpression_captureCount_int_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegularExpression& arg0 = getqtype(param_this); + return arg0.captureCount(); +} + +Pointer qt_QRegularExpression_errorString_string_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegularExpression& arg0 = getqtype(param_this); + return makestring(c,arg0.errorString()); +} + +bool qt_QRegularExpression_isValid_bool_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegularExpression& arg0 = getqtype(param_this); + return arg0.isValid(); +} + +Pointer qt_QRegularExpression_namedCaptureGroups_stringBSB_ESB__QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegularExpression& arg0 = getqtype(param_this); + return makestringlist(c,arg0.namedCaptureGroups()); +} + +void qt_QRegularExpression_optimize_void_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegularExpression& arg0 = getqtype(param_this); + arg0.optimize(); + setqtype(param_this,arg0); +} + +Pointer qt_QRegularExpression_pattern_string_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegularExpression& arg0 = getqtype(param_this); + return makestring(c,arg0.pattern()); +} + +int qt_QRegularExpression_patternOptions_int_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegularExpression& arg0 = getqtype(param_this); + return int(arg0.patternOptions()); +} + +void qt_QRegularExpression_setPattern_void_QRegularExpression_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pattern) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegularExpression& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_pattern); + arg0.setPattern(arg1); + setqtype(param_this,arg0); +} + +void qt_QRegularExpression_setPatternOptions_void_QRegularExpression_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegularExpression& arg0 = getqtype(param_this); + QRegularExpression::PatternOptions arg1 = (QRegularExpression::PatternOptions)(param_options); + arg0.setPatternOptions(arg1); + setqtype(param_this,arg0); +} + +void qt_QRegularExpression_swap_void_QRegularExpression_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRegularExpression& arg0 = getqtype(param_this); + QRegularExpression arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +bool qt_QRegularExpression_operatorBang_EQ__bool_QRegularExpression_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_re) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegularExpression& arg0 = getqtype(param_this); + const QRegularExpression arg1 = getqtype(param_re); + return arg0.operator!=(arg1); +} + +bool qt_QRegularExpression_operatorEQ_EQ__bool_QRegularExpression_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_re) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegularExpression& arg0 = getqtype(param_this); + const QRegularExpression arg1 = getqtype(param_re); + return arg0.operator==(arg1); +} + +Pointer qt_QRegularExpression_anchoredPattern_string_string(Mu::Thread& NODE_THREAD, Pointer param_expression) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_expression); + return makestring(c,QRegularExpression::anchoredPattern(arg0)); +} + +Pointer qt_QRegularExpression_escape_string_string(Mu::Thread& NODE_THREAD, Pointer param_str) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_str); + return makestring(c,QRegularExpression::escape(arg0)); +} + +Pointer qt_QRegularExpression_wildcardToRegularExpression_string_string_int(Mu::Thread& NODE_THREAD, Pointer param_pattern, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_pattern); + QRegularExpression::WildcardConversionOptions arg1 = (QRegularExpression::WildcardConversionOptions)(param_options); + return makestring(c,QRegularExpression::wildcardToRegularExpression(arg0, arg1)); +} + + +static NODE_IMPLEMENTATION(_n_QRegularExpression0, Pointer) +{ + NODE_RETURN(qt_QRegularExpression_QRegularExpression_QRegularExpression_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QRegularExpression1, Pointer) +{ + NODE_RETURN(qt_QRegularExpression_QRegularExpression_QRegularExpression_QRegularExpression_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_captureCount0, int) +{ + NODE_RETURN(qt_QRegularExpression_captureCount_int_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_errorString0, Pointer) +{ + NODE_RETURN(qt_QRegularExpression_errorString_string_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QRegularExpression_isValid_bool_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_namedCaptureGroups0, Pointer) +{ + NODE_RETURN(qt_QRegularExpression_namedCaptureGroups_stringBSB_ESB__QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_optimize0, void) +{ + qt_QRegularExpression_optimize_void_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_pattern0, Pointer) +{ + NODE_RETURN(qt_QRegularExpression_pattern_string_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_patternOptions0, int) +{ + NODE_RETURN(qt_QRegularExpression_patternOptions_int_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setPattern0, void) +{ + qt_QRegularExpression_setPattern_void_QRegularExpression_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPatternOptions0, void) +{ + qt_QRegularExpression_setPatternOptions_void_QRegularExpression_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QRegularExpression_swap_void_QRegularExpression_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QRegularExpression_operatorBang_EQ__bool_QRegularExpression_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QRegularExpression_operatorEQ_EQ__bool_QRegularExpression_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_anchoredPattern1, Pointer) +{ + NODE_RETURN(qt_QRegularExpression_anchoredPattern_string_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_escape1, Pointer) +{ + NODE_RETURN(qt_QRegularExpression_escape_string_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_wildcardToRegularExpression1, Pointer) +{ + NODE_RETURN(qt_QRegularExpression_wildcardToRegularExpression_string_string_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QRegularExpressionType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "MatchOption", "int"), + new Alias(c, "MatchOptions", "int"), + new SymbolicConstant(c, "NoMatchOption", "int", Value(int(QRegularExpression::NoMatchOption))), + new SymbolicConstant(c, "AnchoredMatchOption", "int", Value(int(QRegularExpression::AnchoredMatchOption))), + new SymbolicConstant(c, "AnchorAtOffsetMatchOption", "int", Value(int(QRegularExpression::AnchorAtOffsetMatchOption))), + new SymbolicConstant(c, "DontCheckSubjectStringMatchOption", "int", Value(int(QRegularExpression::DontCheckSubjectStringMatchOption))), + new Alias(c, "MatchType", "int"), + new SymbolicConstant(c, "NormalMatch", "int", Value(int(QRegularExpression::NormalMatch))), + new SymbolicConstant(c, "PartialPreferCompleteMatch", "int", Value(int(QRegularExpression::PartialPreferCompleteMatch))), + new SymbolicConstant(c, "PartialPreferFirstMatch", "int", Value(int(QRegularExpression::PartialPreferFirstMatch))), + new SymbolicConstant(c, "NoMatch", "int", Value(int(QRegularExpression::NoMatch))), + new Alias(c, "PatternOption", "int"), + new Alias(c, "PatternOptions", "int"), + new SymbolicConstant(c, "NoPatternOption", "int", Value(int(QRegularExpression::NoPatternOption))), + new SymbolicConstant(c, "CaseInsensitiveOption", "int", Value(int(QRegularExpression::CaseInsensitiveOption))), + new SymbolicConstant(c, "DotMatchesEverythingOption", "int", Value(int(QRegularExpression::DotMatchesEverythingOption))), + new SymbolicConstant(c, "MultilineOption", "int", Value(int(QRegularExpression::MultilineOption))), + new SymbolicConstant(c, "ExtendedPatternSyntaxOption", "int", Value(int(QRegularExpression::ExtendedPatternSyntaxOption))), + new SymbolicConstant(c, "InvertedGreedinessOption", "int", Value(int(QRegularExpression::InvertedGreedinessOption))), + new SymbolicConstant(c, "DontCaptureOption", "int", Value(int(QRegularExpression::DontCaptureOption))), + new SymbolicConstant(c, "UseUnicodePropertiesOption", "int", Value(int(QRegularExpression::UseUnicodePropertiesOption))), + new Alias(c, "WildcardConversionOption", "int"), + new Alias(c, "WildcardConversionOptions", "int"), + new SymbolicConstant(c, "DefaultWildcardConversion", "int", Value(int(QRegularExpression::DefaultWildcardConversion))), + new SymbolicConstant(c, "UnanchoredWildcardConversion", "int", Value(int(QRegularExpression::UnanchoredWildcardConversion))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QRegularExpression", _n_QRegularExpression0, None, Compiled, qt_QRegularExpression_QRegularExpression_QRegularExpression_QRegularExpression, Return, "qt.QRegularExpression", Parameters, new Param(c, "this", "qt.QRegularExpression"), End), + new Function(c, "QRegularExpression", _n_QRegularExpression1, None, Compiled, qt_QRegularExpression_QRegularExpression_QRegularExpression_QRegularExpression_string_int, Return, "qt.QRegularExpression", Parameters, new Param(c, "this", "qt.QRegularExpression"), new Param(c, "pattern", "string"), new Param(c, "options", "int", Value((int)QRegularExpression::NoPatternOption)), End), + // MISSING: QRegularExpression (QRegularExpression; QRegularExpression this, QRegularExpression re) + // MISSING: QRegularExpression (QRegularExpression; QRegularExpression this, "QRegularExpression & &" re) + new Function(c, "captureCount", _n_captureCount0, None, Compiled, qt_QRegularExpression_captureCount_int_QRegularExpression, Return, "int", Parameters, new Param(c, "this", "qt.QRegularExpression"), End), + new Function(c, "errorString", _n_errorString0, None, Compiled, qt_QRegularExpression_errorString_string_QRegularExpression, Return, "string", Parameters, new Param(c, "this", "qt.QRegularExpression"), End), + // MISSING: globalMatch ("QRegularExpressionMatchIterator"; QRegularExpression this, string subject, "qsizetype" offset, flags QRegularExpression::MatchType matchType, flags QRegularExpression::MatchOptions matchOptions) + // MISSING: globalMatchView ("QRegularExpressionMatchIterator"; QRegularExpression this, "QStringView" subjectView, "qsizetype" offset, flags QRegularExpression::MatchType matchType, flags QRegularExpression::MatchOptions matchOptions) + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QRegularExpression_isValid_bool_QRegularExpression, Return, "bool", Parameters, new Param(c, "this", "qt.QRegularExpression"), End), + // MISSING: match ("QRegularExpressionMatch"; QRegularExpression this, string subject, "qsizetype" offset, flags QRegularExpression::MatchType matchType, flags QRegularExpression::MatchOptions matchOptions) + // MISSING: matchView ("QRegularExpressionMatch"; QRegularExpression this, "QStringView" subjectView, "qsizetype" offset, flags QRegularExpression::MatchType matchType, flags QRegularExpression::MatchOptions matchOptions) + new Function(c, "namedCaptureGroups", _n_namedCaptureGroups0, None, Compiled, qt_QRegularExpression_namedCaptureGroups_stringBSB_ESB__QRegularExpression, Return, "string[]", Parameters, new Param(c, "this", "qt.QRegularExpression"), End), + new Function(c, "optimize", _n_optimize0, None, Compiled, qt_QRegularExpression_optimize_void_QRegularExpression, Return, "void", Parameters, new Param(c, "this", "qt.QRegularExpression"), End), + new Function(c, "pattern", _n_pattern0, None, Compiled, qt_QRegularExpression_pattern_string_QRegularExpression, Return, "string", Parameters, new Param(c, "this", "qt.QRegularExpression"), End), + // MISSING: patternErrorOffset ("qsizetype"; QRegularExpression this) + new Function(c, "patternOptions", _n_patternOptions0, None, Compiled, qt_QRegularExpression_patternOptions_int_QRegularExpression, Return, "int", Parameters, new Param(c, "this", "qt.QRegularExpression"), End), + new Function(c, "setPattern", _n_setPattern0, None, Compiled, qt_QRegularExpression_setPattern_void_QRegularExpression_string, Return, "void", Parameters, new Param(c, "this", "qt.QRegularExpression"), new Param(c, "pattern", "string"), End), + new Function(c, "setPatternOptions", _n_setPatternOptions0, None, Compiled, qt_QRegularExpression_setPatternOptions_void_QRegularExpression_int, Return, "void", Parameters, new Param(c, "this", "qt.QRegularExpression"), new Param(c, "options", "int"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QRegularExpression_swap_void_QRegularExpression_QRegularExpression, Return, "void", Parameters, new Param(c, "this", "qt.QRegularExpression"), new Param(c, "other", "qt.QRegularExpression"), End), + // static functions + // MISSING: anchoredPattern (string; "QStringView" expression) + new Function(c, "anchoredPattern", _n_anchoredPattern1, None, Compiled, qt_QRegularExpression_anchoredPattern_string_string, Return, "string", Parameters, new Param(c, "expression", "string"), End), + // MISSING: escape (string; "QStringView" str) + new Function(c, "escape", _n_escape1, None, Compiled, qt_QRegularExpression_escape_string_string, Return, "string", Parameters, new Param(c, "str", "string"), End), + // MISSING: fromWildcard (QRegularExpression; "QStringView" pattern, flags Qt::CaseSensitivity cs, flags QRegularExpression::WildcardConversionOptions options) + // MISSING: wildcardToRegularExpression (string; "QStringView" pattern, flags QRegularExpression::WildcardConversionOptions options) + new Function(c, "wildcardToRegularExpression", _n_wildcardToRegularExpression1, None, Compiled, qt_QRegularExpression_wildcardToRegularExpression_string_string_int, Return, "string", Parameters, new Param(c, "pattern", "string"), new Param(c, "options", "int", Value((int)QRegularExpression::DefaultWildcardConversion)), End), + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QRegularExpression_operatorBang_EQ__bool_QRegularExpression_QRegularExpression, Return, "bool", Parameters, new Param(c, "this", "qt.QRegularExpression"), new Param(c, "re", "qt.QRegularExpression"), End), + // MISSING: = (QRegularExpression; QRegularExpression this, QRegularExpression re) + // MISSING: = (QRegularExpression; QRegularExpression this, "QRegularExpression & &" re) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QRegularExpression_operatorEQ_EQ__bool_QRegularExpression_QRegularExpression, Return, "bool", Parameters, new Param(c, "this", "qt.QRegularExpression"), new Param(c, "re", "qt.QRegularExpression"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QResizeEventType.cpp b/src/lib/mu/MuQt6/QResizeEventType.cpp new file mode 100644 index 000000000..c769aabd4 --- /dev/null +++ b/src/lib/mu/MuQt6/QResizeEventType.cpp @@ -0,0 +1,147 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QResizeEventType::QResizeEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QResizeEventType::~QResizeEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QResizeEvent_QResizeEvent_QResizeEvent_QResizeEvent_QSize_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size, Pointer param_oldSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QSize arg1 = getqtype(param_size); + const QSize arg2 = getqtype(param_oldSize); + setqpointer(param_this,new QResizeEvent(arg1, arg2)); + return param_this; +} + +Pointer qt_QResizeEvent_oldSize_QSize_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QResizeEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->oldSize(),"qt.QSize"); +} + +Pointer qt_QResizeEvent_size_QSize_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QResizeEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->size(),"qt.QSize"); +} + + +static NODE_IMPLEMENTATION(_n_QResizeEvent0, Pointer) +{ + NODE_RETURN(qt_QResizeEvent_QResizeEvent_QResizeEvent_QResizeEvent_QSize_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_oldSize0, Pointer) +{ + NODE_RETURN(qt_QResizeEvent_oldSize_QSize_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_size0, Pointer) +{ + NODE_RETURN(qt_QResizeEvent_size_QSize_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QResizeEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QResizeEvent", _n_QResizeEvent0, None, Compiled, qt_QResizeEvent_QResizeEvent_QResizeEvent_QResizeEvent_QSize_QSize, Return, "qt.QResizeEvent", Parameters, new Param(c, "this", "qt.QResizeEvent"), new Param(c, "size", "qt.QSize"), new Param(c, "oldSize", "qt.QSize"), End), + new Function(c, "oldSize", _n_oldSize0, None, Compiled, qt_QResizeEvent_oldSize_QSize_QResizeEvent, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QResizeEvent"), End), + new Function(c, "size", _n_size0, None, Compiled, qt_QResizeEvent_size_QSize_QResizeEvent, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QResizeEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QScreenType.cpp b/src/lib/mu/MuQt6/QScreenType.cpp new file mode 100644 index 000000000..60bc5d562 --- /dev/null +++ b/src/lib/mu/MuQt6/QScreenType.cpp @@ -0,0 +1,463 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QScreen::~MuQt_QScreen() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +bool MuQt_QScreen::event(QEvent * e) +{ + if (!_env) return QScreen::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QScreen::event(e); + } +} + +bool MuQt_QScreen::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QScreen::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QScreen::eventFilter(watched, event); + } +} + +void MuQt_QScreen::customEvent(QEvent * event) +{ + if (!_env) { QScreen::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QScreen::customEvent(event); + } +} + +void MuQt_QScreen::timerEvent(QTimerEvent * event) +{ + if (!_env) { QScreen::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QScreen::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QScreenType::QScreenType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QScreenType::~QScreenType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QScreen_QScreen_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QScreen* w = object(widget)) + { + QScreenType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QScreen"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QScreen_QScreen_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +int qt_QScreen_angleBetween_int_QScreen_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_a, int param_b) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + Qt::ScreenOrientation arg1 = (Qt::ScreenOrientation)(param_a); + Qt::ScreenOrientation arg2 = (Qt::ScreenOrientation)(param_b); + return arg0->angleBetween(arg1, arg2); +} + +Pointer qt_QScreen_availableGeometry_QRect_QScreen(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + return makeqtype(c,arg0->availableGeometry(),"qt.QRect"); +} + +bool qt_QScreen_isLandscape_bool_QScreen_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_o) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + Qt::ScreenOrientation arg1 = (Qt::ScreenOrientation)(param_o); + return arg0->isLandscape(arg1); +} + +bool qt_QScreen_isPortrait_bool_QScreen_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_o) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + Qt::ScreenOrientation arg1 = (Qt::ScreenOrientation)(param_o); + return arg0->isPortrait(arg1); +} + +Pointer qt_QScreen_mapBetween_QRect_QScreen_int_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, int param_a, int param_b, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + Qt::ScreenOrientation arg1 = (Qt::ScreenOrientation)(param_a); + Qt::ScreenOrientation arg2 = (Qt::ScreenOrientation)(param_b); + const QRect arg3 = getqtype(param_rect); + return makeqtype(c,arg0->mapBetween(arg1, arg2, arg3),"qt.QRect"); +} + +Pointer qt_QScreen_transformBetween_QTransform_QScreen_int_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, int param_a, int param_b, Pointer param_target) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + Qt::ScreenOrientation arg1 = (Qt::ScreenOrientation)(param_a); + Qt::ScreenOrientation arg2 = (Qt::ScreenOrientation)(param_b); + const QRect arg3 = getqtype(param_target); + return makeqtype(c,arg0->transformBetween(arg1, arg2, arg3),"qt.QTransform"); +} + +Pointer qt_QScreen_virtualGeometry_QRect_QScreen(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + return makeqtype(c,arg0->virtualGeometry(),"qt.QRect"); +} + +Pointer qt_QScreen_virtualSiblingAt_QScreen_QScreen_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + QPoint arg1 = getqtype(param_point); + return makeinstance(c, arg0->virtualSiblingAt(arg1), "qt.QScreen"); +} + +Pointer qt_QScreen_virtualSize_QSize_QScreen(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + return makeqtype(c,arg0->virtualSize(),"qt.QSize"); +} + +bool qt_QScreen_event_bool_QScreen_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QScreen::event(arg1) : arg0->event(arg1); +} + +bool qt_QScreen_eventFilter_bool_QScreen_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QScreen::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QScreen_customEvent_void_QScreen_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QScreen*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QScreen*)arg0)->customEvent_pub(arg1); +} + +void qt_QScreen_timerEvent_void_QScreen_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScreen* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QScreen*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QScreen*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_angleBetween0, int) +{ + NODE_RETURN(qt_QScreen_angleBetween_int_QScreen_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_availableGeometry0, Pointer) +{ + NODE_RETURN(qt_QScreen_availableGeometry_QRect_QScreen(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isLandscape0, bool) +{ + NODE_RETURN(qt_QScreen_isLandscape_bool_QScreen_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isPortrait0, bool) +{ + NODE_RETURN(qt_QScreen_isPortrait_bool_QScreen_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_mapBetween0, Pointer) +{ + NODE_RETURN(qt_QScreen_mapBetween_QRect_QScreen_int_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_transformBetween0, Pointer) +{ + NODE_RETURN(qt_QScreen_transformBetween_QTransform_QScreen_int_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_virtualGeometry0, Pointer) +{ + NODE_RETURN(qt_QScreen_virtualGeometry_QRect_QScreen(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_virtualSiblingAt0, Pointer) +{ + NODE_RETURN(qt_QScreen_virtualSiblingAt_QScreen_QScreen_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_virtualSize0, Pointer) +{ + NODE_RETURN(qt_QScreen_virtualSize_QSize_QScreen(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QScreen_event_bool_QScreen_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QScreen_eventFilter_bool_QScreen_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QScreen_customEvent_void_QScreen_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QScreen_timerEvent_void_QScreen_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QScreenType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QScreen_QScreen_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "angleBetween", _n_angleBetween0, None, Compiled, qt_QScreen_angleBetween_int_QScreen_int_int, Return, "int", Parameters, new Param(c, "this", "qt.QScreen"), new Param(c, "a", "int"), new Param(c, "b", "int"), End), + new Function(c, "availableGeometry", _n_availableGeometry0, None, Compiled, qt_QScreen_availableGeometry_QRect_QScreen, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QScreen"), End), + // PROP: availableSize (QSize; QScreen this) + // PROP: availableVirtualGeometry (QRect; QScreen this) + // PROP: availableVirtualSize (QSize; QScreen this) + // PROP: depth (int; QScreen this) + // PROP: devicePixelRatio (double; QScreen this) + // PROP: geometry (QRect; QScreen this) + // MISSING: grabWindow (QPixmap; QScreen this, "WId" window, int x, int y, int width, int height) + // MISSING: handle ("QPlatformScreen *"; QScreen this) + new Function(c, "isLandscape", _n_isLandscape0, None, Compiled, qt_QScreen_isLandscape_bool_QScreen_int, Return, "bool", Parameters, new Param(c, "this", "qt.QScreen"), new Param(c, "o", "int"), End), + new Function(c, "isPortrait", _n_isPortrait0, None, Compiled, qt_QScreen_isPortrait_bool_QScreen_int, Return, "bool", Parameters, new Param(c, "this", "qt.QScreen"), new Param(c, "o", "int"), End), + // PROP: logicalDotsPerInch (double; QScreen this) + // PROP: logicalDotsPerInchX (double; QScreen this) + // PROP: logicalDotsPerInchY (double; QScreen this) + // PROP: manufacturer (string; QScreen this) + new Function(c, "mapBetween", _n_mapBetween0, None, Compiled, qt_QScreen_mapBetween_QRect_QScreen_int_int_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QScreen"), new Param(c, "a", "int"), new Param(c, "b", "int"), new Param(c, "rect", "qt.QRect"), End), + // PROP: model (string; QScreen this) + // PROP: name (string; QScreen this) + // PROP: nativeOrientation (flags Qt::ScreenOrientation; QScreen this) + // PROP: orientation (flags Qt::ScreenOrientation; QScreen this) + // PROP: physicalDotsPerInch (double; QScreen this) + // PROP: physicalDotsPerInchX (double; QScreen this) + // PROP: physicalDotsPerInchY (double; QScreen this) + // MISSING: physicalSize ("QSizeF"; QScreen this) + // PROP: primaryOrientation (flags Qt::ScreenOrientation; QScreen this) + // PROP: refreshRate (double; QScreen this) + // PROP: serialNumber (string; QScreen this) + // PROP: size (QSize; QScreen this) + new Function(c, "transformBetween", _n_transformBetween0, None, Compiled, qt_QScreen_transformBetween_QTransform_QScreen_int_int_QRect, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QScreen"), new Param(c, "a", "int"), new Param(c, "b", "int"), new Param(c, "target", "qt.QRect"), End), + new Function(c, "virtualGeometry", _n_virtualGeometry0, None, Compiled, qt_QScreen_virtualGeometry_QRect_QScreen, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QScreen"), End), + new Function(c, "virtualSiblingAt", _n_virtualSiblingAt0, None, Compiled, qt_QScreen_virtualSiblingAt_QScreen_QScreen_QPoint, Return, "qt.QScreen", Parameters, new Param(c, "this", "qt.QScreen"), new Param(c, "point", "qt.QPoint"), End), + // MISSING: virtualSiblings ("QList"; QScreen this) + new Function(c, "virtualSize", _n_virtualSize0, None, Compiled, qt_QScreen_virtualSize_QSize_QScreen, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QScreen"), End), + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QScreen_event_bool_QScreen_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QScreen"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QScreen_eventFilter_bool_QScreen_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QScreen"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QScreen this) + // MISSING: childEvent (void; QScreen this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QScreen this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QScreen_customEvent_void_QScreen_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScreen"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QScreen this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QScreen_timerEvent_void_QScreen_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScreen"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char* propExclusions[] = {"virtualGeometry", "virtualSize", 0}; + + populate(this, QScreen::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QScrollAreaType.cpp b/src/lib/mu/MuQt6/QScrollAreaType.cpp new file mode 100644 index 000000000..02db8673a --- /dev/null +++ b/src/lib/mu/MuQt6/QScrollAreaType.cpp @@ -0,0 +1,1022 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QScrollArea::~MuQt_QScrollArea() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QScrollArea::MuQt_QScrollArea(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QScrollArea(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QScrollArea")); +} + +bool MuQt_QScrollArea::focusNextPrevChild(bool next) +{ + if (!_env) return QScrollArea::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QScrollArea::focusNextPrevChild(next); + } +} + +QSize MuQt_QScrollArea::sizeHint() const +{ + if (!_env) return QScrollArea::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QScrollArea::sizeHint(); + } +} + +bool MuQt_QScrollArea::event(QEvent * e) +{ + if (!_env) return QScrollArea::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QScrollArea::event(e); + } +} + +bool MuQt_QScrollArea::eventFilter(QObject * o, QEvent * e) +{ + if (!_env) return QScrollArea::eventFilter(o, e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,o,"qt.QObject")); + args[2] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QScrollArea::eventFilter(o, e); + } +} + +void MuQt_QScrollArea::resizeEvent(QResizeEvent * _p15) +{ + if (!_env) { QScrollArea::resizeEvent(_p15); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p15,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::resizeEvent(_p15); + } +} + +void MuQt_QScrollArea::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QScrollArea::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::scrollContentsBy(dx, dy); + } +} + +QSize MuQt_QScrollArea::viewportSizeHint() const +{ + if (!_env) return QScrollArea::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QScrollArea::viewportSizeHint(); + } +} + +void MuQt_QScrollArea::setupViewport(QWidget * viewport) +{ + if (!_env) { QScrollArea::setupViewport(viewport); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,viewport,"qt.QWidget")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::setupViewport(viewport); + } +} + +QSize MuQt_QScrollArea::minimumSizeHint() const +{ + if (!_env) return QScrollArea::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QScrollArea::minimumSizeHint(); + } +} + +bool MuQt_QScrollArea::viewportEvent(QEvent * event) +{ + if (!_env) return QScrollArea::viewportEvent(event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QScrollArea::viewportEvent(event); + } +} + +void MuQt_QScrollArea::contextMenuEvent(QContextMenuEvent * e) +{ + if (!_env) { QScrollArea::contextMenuEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::contextMenuEvent(e); + } +} + +void MuQt_QScrollArea::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QScrollArea::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::dragEnterEvent(event); + } +} + +void MuQt_QScrollArea::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QScrollArea::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::dragLeaveEvent(event); + } +} + +void MuQt_QScrollArea::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QScrollArea::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::dragMoveEvent(event); + } +} + +void MuQt_QScrollArea::dropEvent(QDropEvent * event) +{ + if (!_env) { QScrollArea::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::dropEvent(event); + } +} + +void MuQt_QScrollArea::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QScrollArea::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::keyPressEvent(e); + } +} + +void MuQt_QScrollArea::mouseDoubleClickEvent(QMouseEvent * e) +{ + if (!_env) { QScrollArea::mouseDoubleClickEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::mouseDoubleClickEvent(e); + } +} + +void MuQt_QScrollArea::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QScrollArea::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::mouseMoveEvent(e); + } +} + +void MuQt_QScrollArea::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QScrollArea::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::mousePressEvent(e); + } +} + +void MuQt_QScrollArea::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QScrollArea::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::mouseReleaseEvent(e); + } +} + +void MuQt_QScrollArea::paintEvent(QPaintEvent * event) +{ + if (!_env) { QScrollArea::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::paintEvent(event); + } +} + +void MuQt_QScrollArea::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QScrollArea::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QScrollArea::wheelEvent(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QScrollAreaType::QScrollAreaType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QScrollAreaType::~QScrollAreaType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QScrollArea_QScrollArea_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QScrollArea* w = object(widget)) + { + QScrollAreaType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QScrollArea"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QScrollArea_QScrollArea_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QScrollArea_QScrollArea_QScrollArea_QScrollArea_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QScrollArea(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QScrollArea_ensureVisible_void_QScrollArea_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, int param_xmargin, int param_ymargin) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + int arg3 = (int)(param_xmargin); + int arg4 = (int)(param_ymargin); + arg0->ensureVisible(arg1, arg2, arg3, arg4); +} + +void qt_QScrollArea_ensureWidgetVisible_void_QScrollArea_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_childWidget, int param_xmargin, int param_ymargin) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QWidget * arg1 = object(param_childWidget); + int arg2 = (int)(param_xmargin); + int arg3 = (int)(param_ymargin); + arg0->ensureWidgetVisible(arg1, arg2, arg3); +} + +void qt_QScrollArea_setWidget_void_QScrollArea_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->setWidget(arg1); +} + +Pointer qt_QScrollArea_takeWidget_QWidget_QScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + return makeinstance(c, arg0->takeWidget(), "qt.QWidget"); +} + +Pointer qt_QScrollArea_widget_QWidget_QScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + return makeinstance(c, arg0->widget(), "qt.QWidget"); +} + +bool qt_QScrollArea_focusNextPrevChild_bool_QScrollArea_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? arg0->QScrollArea::focusNextPrevChild(arg1) : arg0->focusNextPrevChild(arg1); +} + +Pointer qt_QScrollArea_sizeHint_QSize_QScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QScrollArea::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +bool qt_QScrollArea_event_bool_QScrollArea_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QScrollArea*)arg0)->event_pub_parent(arg1) : ((MuQt_QScrollArea*)arg0)->event_pub(arg1); +} + +bool qt_QScrollArea_eventFilter_bool_QScrollArea_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_o, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QObject * arg1 = object(param_o); + QEvent * arg2 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QScrollArea*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QScrollArea*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QScrollArea_resizeEvent_void_QScrollArea_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p15) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param__p15); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QScrollArea_scrollContentsBy_void_QScrollArea_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QScrollArea*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +Pointer qt_QScrollArea_viewportSizeHint_QSize_QScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QScrollArea*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QScrollArea*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +void qt_QScrollArea_setupViewport_void_QScrollArea_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_viewport) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QWidget * arg1 = object(param_viewport); + if (isMuQtObject(arg0)) arg0->QScrollArea::setupViewport(arg1); + else arg0->setupViewport(arg1); +} + +Pointer qt_QScrollArea_minimumSizeHint_QSize_QScrollArea(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QScrollArea::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +bool qt_QScrollArea_viewportEvent_bool_QScrollArea_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QScrollArea*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QScrollArea*)arg0)->viewportEvent_pub(arg1); +} + +void qt_QScrollArea_contextMenuEvent_void_QScrollArea_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QScrollArea_dragEnterEvent_void_QScrollArea_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QScrollArea_dragLeaveEvent_void_QScrollArea_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QScrollArea_dragMoveEvent_void_QScrollArea_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QScrollArea_dropEvent_void_QScrollArea_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->dropEvent_pub(arg1); +} + +void qt_QScrollArea_keyPressEvent_void_QScrollArea_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QScrollArea_mouseDoubleClickEvent_void_QScrollArea_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QScrollArea_mouseMoveEvent_void_QScrollArea_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QScrollArea_mousePressEvent_void_QScrollArea_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QScrollArea_mouseReleaseEvent_void_QScrollArea_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QScrollArea_paintEvent_void_QScrollArea_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->paintEvent_pub(arg1); +} + +void qt_QScrollArea_wheelEvent_void_QScrollArea_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QScrollArea* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QScrollArea*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QScrollArea*)arg0)->wheelEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QScrollArea0, Pointer) +{ + NODE_RETURN(qt_QScrollArea_QScrollArea_QScrollArea_QScrollArea_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_ensureVisible0, void) +{ + qt_QScrollArea_ensureVisible_void_QScrollArea_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_ensureWidgetVisible0, void) +{ + qt_QScrollArea_ensureWidgetVisible_void_QScrollArea_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_setWidget0, void) +{ + qt_QScrollArea_setWidget_void_QScrollArea_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_takeWidget0, Pointer) +{ + NODE_RETURN(qt_QScrollArea_takeWidget_QWidget_QScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QScrollArea_widget_QWidget_QScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QScrollArea_focusNextPrevChild_bool_QScrollArea_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QScrollArea_sizeHint_QSize_QScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QScrollArea_event_bool_QScrollArea_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QScrollArea_eventFilter_bool_QScrollArea_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QScrollArea_resizeEvent_void_QScrollArea_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QScrollArea_scrollContentsBy_void_QScrollArea_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QScrollArea_viewportSizeHint_QSize_QScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setupViewport0, void) +{ + qt_QScrollArea_setupViewport_void_QScrollArea_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QScrollArea_minimumSizeHint_QSize_QScrollArea(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QScrollArea_viewportEvent_bool_QScrollArea_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QScrollArea_contextMenuEvent_void_QScrollArea_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QScrollArea_dragEnterEvent_void_QScrollArea_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QScrollArea_dragLeaveEvent_void_QScrollArea_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QScrollArea_dragMoveEvent_void_QScrollArea_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QScrollArea_dropEvent_void_QScrollArea_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QScrollArea_keyPressEvent_void_QScrollArea_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QScrollArea_mouseDoubleClickEvent_void_QScrollArea_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QScrollArea_mouseMoveEvent_void_QScrollArea_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QScrollArea_mousePressEvent_void_QScrollArea_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QScrollArea_mouseReleaseEvent_void_QScrollArea_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QScrollArea_paintEvent_void_QScrollArea_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QScrollArea_wheelEvent_void_QScrollArea_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QScrollAreaType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QScrollArea_QScrollArea_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QScrollArea", _n_QScrollArea0, None, Compiled, qt_QScrollArea_QScrollArea_QScrollArea_QScrollArea_QWidget, Return, "qt.QScrollArea", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: alignment (flags Qt::Alignment; QScrollArea this) + new Function(c, "ensureVisible", _n_ensureVisible0, None, Compiled, qt_QScrollArea_ensureVisible_void_QScrollArea_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "xmargin", "int", Value((int)50)), new Param(c, "ymargin", "int", Value((int)50)), End), + new Function(c, "ensureWidgetVisible", _n_ensureWidgetVisible0, None, Compiled, qt_QScrollArea_ensureWidgetVisible_void_QScrollArea_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "childWidget", "qt.QWidget"), new Param(c, "xmargin", "int", Value((int)50)), new Param(c, "ymargin", "int", Value((int)50)), End), + // PROP: setAlignment (void; QScrollArea this, flags Qt::Alignment _p13) + new Function(c, "setWidget", _n_setWidget0, None, Compiled, qt_QScrollArea_setWidget_void_QScrollArea_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: setWidgetResizable (void; QScrollArea this, bool resizable) + new Function(c, "takeWidget", _n_takeWidget0, None, Compiled, qt_QScrollArea_takeWidget_QWidget_QScrollArea, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QScrollArea"), End), + new Function(c, "widget", _n_widget0, None, Compiled, qt_QScrollArea_widget_QWidget_QScrollArea, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QScrollArea"), End), + // PROP: widgetResizable (bool; QScrollArea this) + _func[0] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QScrollArea_focusNextPrevChild_bool_QScrollArea_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "next", "bool"), End), + _func[1] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QScrollArea_sizeHint_QSize_QScrollArea, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QScrollArea"), End), + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QScrollArea_event_bool_QScrollArea_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QScrollArea_eventFilter_bool_QScrollArea_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "o", "qt.QObject"), new Param(c, "e", "qt.QEvent"), End), + _func[4] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QScrollArea_resizeEvent_void_QScrollArea_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "_p15", "qt.QResizeEvent"), End), + _func[5] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QScrollArea_scrollContentsBy_void_QScrollArea_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[6] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QScrollArea_viewportSizeHint_QSize_QScrollArea, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QScrollArea"), End), + _func[7] = new MemberFunction(c, "setupViewport", _n_setupViewport0, None, Compiled, qt_QScrollArea_setupViewport_void_QScrollArea_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "viewport", "qt.QWidget"), End), + _func[8] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QScrollArea_minimumSizeHint_QSize_QScrollArea, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QScrollArea"), End), + _func[9] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QScrollArea_viewportEvent_bool_QScrollArea_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "event", "qt.QEvent"), End), + _func[10] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QScrollArea_contextMenuEvent_void_QScrollArea_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "e", "qt.QContextMenuEvent"), End), + _func[11] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QScrollArea_dragEnterEvent_void_QScrollArea_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[12] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QScrollArea_dragLeaveEvent_void_QScrollArea_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[13] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QScrollArea_dragMoveEvent_void_QScrollArea_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[14] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QScrollArea_dropEvent_void_QScrollArea_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "event", "qt.QDropEvent"), End), + _func[15] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QScrollArea_keyPressEvent_void_QScrollArea_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[16] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QScrollArea_mouseDoubleClickEvent_void_QScrollArea_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[17] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QScrollArea_mouseMoveEvent_void_QScrollArea_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[18] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QScrollArea_mousePressEvent_void_QScrollArea_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[19] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QScrollArea_mouseReleaseEvent_void_QScrollArea_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[20] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QScrollArea_paintEvent_void_QScrollArea_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[21] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QScrollArea_wheelEvent_void_QScrollArea_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QScrollArea"), new Param(c, "e", "qt.QWheelEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QScrollArea::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QShortcutEventType.cpp b/src/lib/mu/MuQt6/QShortcutEventType.cpp new file mode 100644 index 000000000..4a86746f7 --- /dev/null +++ b/src/lib/mu/MuQt6/QShortcutEventType.cpp @@ -0,0 +1,133 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QShortcutEventType::QShortcutEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QShortcutEventType::~QShortcutEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +bool qt_QShortcutEvent_isAmbiguous_bool_QShortcutEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QShortcutEvent * arg0 = getqpointer(param_this); + return arg0->isAmbiguous(); +} + +Pointer qt_QShortcutEvent_key_QKeySequence_QShortcutEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QShortcutEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->key(),"qt.QKeySequence"); +} + + +static NODE_IMPLEMENTATION(_n_isAmbiguous0, bool) +{ + NODE_RETURN(qt_QShortcutEvent_isAmbiguous_bool_QShortcutEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_key0, Pointer) +{ + NODE_RETURN(qt_QShortcutEvent_key_QKeySequence_QShortcutEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QShortcutEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + // MISSING: QShortcutEvent (QShortcutEvent; QShortcutEvent this, QKeySequence key, "const QShortcut *" shortcut, bool ambiguous) + new Function(c, "isAmbiguous", _n_isAmbiguous0, None, Compiled, qt_QShortcutEvent_isAmbiguous_bool_QShortcutEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QShortcutEvent"), End), + new Function(c, "key", _n_key0, None, Compiled, qt_QShortcutEvent_key_QKeySequence_QShortcutEvent, Return, "qt.QKeySequence", Parameters, new Param(c, "this", "qt.QShortcutEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QShowEventType.cpp b/src/lib/mu/MuQt6/QShowEventType.cpp new file mode 100644 index 000000000..a5ce915a3 --- /dev/null +++ b/src/lib/mu/MuQt6/QShowEventType.cpp @@ -0,0 +1,118 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QShowEventType::QShowEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QShowEventType::~QShowEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QShowEvent_QShowEvent_QShowEvent_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqpointer(param_this,new QShowEvent()); + return param_this; +} + + +static NODE_IMPLEMENTATION(_n_QShowEvent0, Pointer) +{ + NODE_RETURN(qt_QShowEvent_QShowEvent_QShowEvent_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QShowEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QShowEvent", _n_QShowEvent0, None, Compiled, qt_QShowEvent_QShowEvent_QShowEvent_QShowEvent, Return, "qt.QShowEvent", Parameters, new Param(c, "this", "qt.QShowEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QSinglePointEventType.cpp b/src/lib/mu/MuQt6/QSinglePointEventType.cpp new file mode 100644 index 000000000..a826a853d --- /dev/null +++ b/src/lib/mu/MuQt6/QSinglePointEventType.cpp @@ -0,0 +1,212 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QSinglePointEventType::QSinglePointEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QSinglePointEventType::~QSinglePointEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +int qt_QSinglePointEvent_button_int_QSinglePointEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSinglePointEvent * arg0 = getqpointer(param_this); + return int(arg0->button()); +} + +int qt_QSinglePointEvent_buttons_int_QSinglePointEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSinglePointEvent * arg0 = getqpointer(param_this); + return int(arg0->buttons()); +} + +Pointer qt_QSinglePointEvent_globalPosition_QPointF_QSinglePointEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSinglePointEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->globalPosition(),"qt.QPointF"); +} + +Pointer qt_QSinglePointEvent_position_QPointF_QSinglePointEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSinglePointEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->position(),"qt.QPointF"); +} + +Pointer qt_QSinglePointEvent_scenePosition_QPointF_QSinglePointEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSinglePointEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->scenePosition(),"qt.QPointF"); +} + +bool qt_QSinglePointEvent_isBeginEvent_bool_QSinglePointEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSinglePointEvent * arg0 = getqpointer(param_this); + return arg0->isBeginEvent(); +} + +bool qt_QSinglePointEvent_isEndEvent_bool_QSinglePointEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSinglePointEvent * arg0 = getqpointer(param_this); + return arg0->isEndEvent(); +} + +bool qt_QSinglePointEvent_isUpdateEvent_bool_QSinglePointEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSinglePointEvent * arg0 = getqpointer(param_this); + return arg0->isUpdateEvent(); +} + + +static NODE_IMPLEMENTATION(_n_button0, int) +{ + NODE_RETURN(qt_QSinglePointEvent_button_int_QSinglePointEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_buttons0, int) +{ + NODE_RETURN(qt_QSinglePointEvent_buttons_int_QSinglePointEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_globalPosition0, Pointer) +{ + NODE_RETURN(qt_QSinglePointEvent_globalPosition_QPointF_QSinglePointEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_position0, Pointer) +{ + NODE_RETURN(qt_QSinglePointEvent_position_QPointF_QSinglePointEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scenePosition0, Pointer) +{ + NODE_RETURN(qt_QSinglePointEvent_scenePosition_QPointF_QSinglePointEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isBeginEvent0, bool) +{ + NODE_RETURN(qt_QSinglePointEvent_isBeginEvent_bool_QSinglePointEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEndEvent0, bool) +{ + NODE_RETURN(qt_QSinglePointEvent_isEndEvent_bool_QSinglePointEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isUpdateEvent0, bool) +{ + NODE_RETURN(qt_QSinglePointEvent_isUpdateEvent_bool_QSinglePointEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QSinglePointEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "button", _n_button0, None, Compiled, qt_QSinglePointEvent_button_int_QSinglePointEvent, Return, "int", Parameters, new Param(c, "this", "qt.QSinglePointEvent"), End), + new Function(c, "buttons", _n_buttons0, None, Compiled, qt_QSinglePointEvent_buttons_int_QSinglePointEvent, Return, "int", Parameters, new Param(c, "this", "qt.QSinglePointEvent"), End), + // PROP: exclusivePointGrabber (QObject; QSinglePointEvent this) + new Function(c, "globalPosition", _n_globalPosition0, None, Compiled, qt_QSinglePointEvent_globalPosition_QPointF_QSinglePointEvent, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QSinglePointEvent"), End), + new Function(c, "position", _n_position0, None, Compiled, qt_QSinglePointEvent_position_QPointF_QSinglePointEvent, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QSinglePointEvent"), End), + new Function(c, "scenePosition", _n_scenePosition0, None, Compiled, qt_QSinglePointEvent_scenePosition_QPointF_QSinglePointEvent, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QSinglePointEvent"), End), + // PROP: setExclusivePointGrabber (void; QSinglePointEvent this, QObject exclusiveGrabber) + new MemberFunction(c, "isBeginEvent", _n_isBeginEvent0, None, Compiled, qt_QSinglePointEvent_isBeginEvent_bool_QSinglePointEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QSinglePointEvent"), End), + new MemberFunction(c, "isEndEvent", _n_isEndEvent0, None, Compiled, qt_QSinglePointEvent_isEndEvent_bool_QSinglePointEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QSinglePointEvent"), End), + new MemberFunction(c, "isUpdateEvent", _n_isUpdateEvent0, None, Compiled, qt_QSinglePointEvent_isUpdateEvent_bool_QSinglePointEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QSinglePointEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QSizeType.cpp b/src/lib/mu/MuQt6/QSizeType.cpp new file mode 100644 index 000000000..693f637ad --- /dev/null +++ b/src/lib/mu/MuQt6/QSizeType.cpp @@ -0,0 +1,399 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QSizeType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QSizeType::QSizeType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QSizeType::~QSizeType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QSizeType::Instance* i = new QSizeType::Instance((Class*)NODE_THIS.type()); + QSizeType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QSizeType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QSizeType::finalizer, 0, 0, 0); +} + +void +QSizeType::finalizer (void* obj, void* data) +{ + QSizeType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QSize_QSize_QSize_QSize(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QSize()); + return param_this; +} + +Pointer qt_QSize_QSize_QSize_QSize_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_width); + int arg2 = (int)(param_height); + setqtype(param_this,QSize(arg1, arg2)); + return param_this; +} + +Pointer qt_QSize_boundedTo_QSize_QSize_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_otherSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_otherSize); + return makeqtype(c,arg0.boundedTo(arg1),"qt.QSize"); +} + +Pointer qt_QSize_expandedTo_QSize_QSize_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_otherSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_otherSize); + return makeqtype(c,arg0.expandedTo(arg1),"qt.QSize"); +} + +Pointer qt_QSize_grownBy_QSize_QSize_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_margins) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + QMargins arg1 = getqtype(param_margins); + return makeqtype(c,arg0.grownBy(arg1),"qt.QSize"); +} + +int qt_QSize_height_int_QSize(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + return arg0.height(); +} + +bool qt_QSize_isEmpty_bool_QSize(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + return arg0.isEmpty(); +} + +bool qt_QSize_isNull_bool_QSize(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + return arg0.isNull(); +} + +bool qt_QSize_isValid_bool_QSize(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + return arg0.isValid(); +} + +void qt_QSize_scale_void_QSize_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width, int param_height, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + int arg1 = (int)(param_width); + int arg2 = (int)(param_height); + Qt::AspectRatioMode arg3 = (Qt::AspectRatioMode)(param_mode); + arg0.scale(arg1, arg2, arg3); + setqtype(param_this,arg0); +} + +void qt_QSize_scale_void_QSize_QSize_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_size); + Qt::AspectRatioMode arg2 = (Qt::AspectRatioMode)(param_mode); + arg0.scale(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QSize_setHeight_void_QSize_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + int arg1 = (int)(param_height); + arg0.setHeight(arg1); + setqtype(param_this,arg0); +} + +void qt_QSize_setWidth_void_QSize_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + int arg1 = (int)(param_width); + arg0.setWidth(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QSize_shrunkBy_QSize_QSize_QMargins(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_margins) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + QMargins arg1 = getqtype(param_margins); + return makeqtype(c,arg0.shrunkBy(arg1),"qt.QSize"); +} + +void qt_QSize_transpose_void_QSize(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + arg0.transpose(); + setqtype(param_this,arg0); +} + +int qt_QSize_width_int_QSize(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + return arg0.width(); +} + +Pointer qt_QSize_operatorPlus_EQ__QSize_QSize_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_size); + return makeqtype(c,arg0.operator+=(arg1),"qt.QSize"); +} + +Pointer qt_QSize_operatorMinus_EQ__QSize_QSize_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + const QSize arg1 = getqtype(param_size); + return makeqtype(c,arg0.operator-=(arg1),"qt.QSize"); +} + +Pointer qt_QSize_operatorSlash_EQ__QSize_QSize_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_divisor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg0 = getqtype(param_this); + qreal arg1 = (double)(param_divisor); + return makeqtype(c,arg0.operator/=(arg1),"qt.QSize"); +} + + +static NODE_IMPLEMENTATION(_n_QSize0, Pointer) +{ + NODE_RETURN(qt_QSize_QSize_QSize_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QSize1, Pointer) +{ + NODE_RETURN(qt_QSize_QSize_QSize_QSize_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_boundedTo0, Pointer) +{ + NODE_RETURN(qt_QSize_boundedTo_QSize_QSize_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expandedTo0, Pointer) +{ + NODE_RETURN(qt_QSize_expandedTo_QSize_QSize_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_grownBy0, Pointer) +{ + NODE_RETURN(qt_QSize_grownBy_QSize_QSize_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_height0, int) +{ + NODE_RETURN(qt_QSize_height_int_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QSize_isEmpty_bool_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QSize_isNull_bool_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QSize_isValid_bool_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scale0, void) +{ + qt_QSize_scale_void_QSize_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_scale1, void) +{ + qt_QSize_scale_void_QSize_QSize_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setHeight0, void) +{ + qt_QSize_setHeight_void_QSize_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setWidth0, void) +{ + qt_QSize_setWidth_void_QSize_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_shrunkBy0, Pointer) +{ + NODE_RETURN(qt_QSize_shrunkBy_QSize_QSize_QMargins(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_transpose0, void) +{ + qt_QSize_transpose_void_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_width0, int) +{ + NODE_RETURN(qt_QSize_width_int_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QSize_operatorPlus_EQ__QSize_QSize_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorMinus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QSize_operatorMinus_EQ__QSize_QSize_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorSlash_EQ_0, Pointer) +{ + NODE_RETURN(qt_QSize_operatorSlash_EQ__QSize_QSize_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double))); +} + + + +void +QSizeType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QSize", _n_QSize0, None, Compiled, qt_QSize_QSize_QSize_QSize, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSize"), End), + new Function(c, "QSize", _n_QSize1, None, Compiled, qt_QSize_QSize_QSize_QSize_int_int, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "width", "int"), new Param(c, "height", "int"), End), + new Function(c, "boundedTo", _n_boundedTo0, None, Compiled, qt_QSize_boundedTo_QSize_QSize_QSize, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "otherSize", "qt.QSize"), End), + new Function(c, "expandedTo", _n_expandedTo0, None, Compiled, qt_QSize_expandedTo_QSize_QSize_QSize, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "otherSize", "qt.QSize"), End), + new Function(c, "grownBy", _n_grownBy0, None, Compiled, qt_QSize_grownBy_QSize_QSize_QMargins, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "margins", "qt.QMargins"), End), + new Function(c, "height", _n_height0, None, Compiled, qt_QSize_height_int_QSize, Return, "int", Parameters, new Param(c, "this", "qt.QSize"), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QSize_isEmpty_bool_QSize, Return, "bool", Parameters, new Param(c, "this", "qt.QSize"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QSize_isNull_bool_QSize, Return, "bool", Parameters, new Param(c, "this", "qt.QSize"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QSize_isValid_bool_QSize, Return, "bool", Parameters, new Param(c, "this", "qt.QSize"), End), + // MISSING: rheight ("int &"; QSize this) + // MISSING: rwidth ("int &"; QSize this) + new Function(c, "scale", _n_scale0, None, Compiled, qt_QSize_scale_void_QSize_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "width", "int"), new Param(c, "height", "int"), new Param(c, "mode", "int"), End), + new Function(c, "scale", _n_scale1, None, Compiled, qt_QSize_scale_void_QSize_QSize_int, Return, "void", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "size", "qt.QSize"), new Param(c, "mode", "int"), End), + new Function(c, "setHeight", _n_setHeight0, None, Compiled, qt_QSize_setHeight_void_QSize_int, Return, "void", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "height", "int"), End), + new Function(c, "setWidth", _n_setWidth0, None, Compiled, qt_QSize_setWidth_void_QSize_int, Return, "void", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "width", "int"), End), + new Function(c, "shrunkBy", _n_shrunkBy0, None, Compiled, qt_QSize_shrunkBy_QSize_QSize_QMargins, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "margins", "qt.QMargins"), End), + // MISSING: toCGSize ("CGSize"; QSize this) + // MISSING: toSizeF ("QSizeF"; QSize this) + new Function(c, "transpose", _n_transpose0, None, Compiled, qt_QSize_transpose_void_QSize, Return, "void", Parameters, new Param(c, "this", "qt.QSize"), End), + new Function(c, "width", _n_width0, None, Compiled, qt_QSize_width_int_QSize, Return, "int", Parameters, new Param(c, "this", "qt.QSize"), End), + // MISSING: = ("QSize & operator*"; QSize this, double factor) + // static functions + EndArguments); +globalScope()->addSymbols( + new Function(c, "+=", _n_operatorPlus_EQ_0, Op, Compiled, qt_QSize_operatorPlus_EQ__QSize_QSize_QSize, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "size", "qt.QSize"), End), + new Function(c, "-=", _n_operatorMinus_EQ_0, Op, Compiled, qt_QSize_operatorMinus_EQ__QSize_QSize_QSize, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "size", "qt.QSize"), End), + new Function(c, "/=", _n_operatorSlash_EQ_0, Op, Compiled, qt_QSize_operatorSlash_EQ__QSize_QSize_double, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSize"), new Param(c, "divisor", "double"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QSliderType.cpp b/src/lib/mu/MuQt6/QSliderType.cpp new file mode 100644 index 000000000..bdf7beebd --- /dev/null +++ b/src/lib/mu/MuQt6/QSliderType.cpp @@ -0,0 +1,592 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QSlider::~MuQt_QSlider() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QSlider::MuQt_QSlider(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QSlider(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSlider")); +} + +MuQt_QSlider::MuQt_QSlider(Pointer muobj, const CallEnvironment* ce, Qt::Orientation orientation, QWidget * parent) + : QSlider(orientation, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSlider")); +} + +bool MuQt_QSlider::event(QEvent * event_) +{ + if (!_env) return QSlider::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QSlider::event(event_); + } +} + +QSize MuQt_QSlider::minimumSizeHint() const +{ + if (!_env) return QSlider::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSlider::minimumSizeHint(); + } +} + +QSize MuQt_QSlider::sizeHint() const +{ + if (!_env) return QSlider::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSlider::sizeHint(); + } +} + +void MuQt_QSlider::mouseMoveEvent(QMouseEvent * ev) +{ + if (!_env) { QSlider::mouseMoveEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSlider::mouseMoveEvent(ev); + } +} + +void MuQt_QSlider::mousePressEvent(QMouseEvent * ev) +{ + if (!_env) { QSlider::mousePressEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSlider::mousePressEvent(ev); + } +} + +void MuQt_QSlider::mouseReleaseEvent(QMouseEvent * ev) +{ + if (!_env) { QSlider::mouseReleaseEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSlider::mouseReleaseEvent(ev); + } +} + +void MuQt_QSlider::paintEvent(QPaintEvent * ev) +{ + if (!_env) { QSlider::paintEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QSlider::paintEvent(ev); + } +} + +void MuQt_QSlider::changeEvent(QEvent * ev) +{ + if (!_env) { QSlider::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QSlider::changeEvent(ev); + } +} + +void MuQt_QSlider::keyPressEvent(QKeyEvent * ev) +{ + if (!_env) { QSlider::keyPressEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QSlider::keyPressEvent(ev); + } +} + +void MuQt_QSlider::timerEvent(QTimerEvent * e) +{ + if (!_env) { QSlider::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QSlider::timerEvent(e); + } +} + +void MuQt_QSlider::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QSlider::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QSlider::wheelEvent(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QSliderType::QSliderType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QSliderType::~QSliderType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QSlider_QSlider_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QSlider* w = object(widget)) + { + QSliderType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSlider"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QSlider_QSlider_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QSlider_QSlider_QSlider_QSlider_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QSlider(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QSlider_QSlider_QSlider_QSlider_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_orientation, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::Orientation arg1 = (Qt::Orientation)(param_orientation); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QSlider(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +bool qt_QSlider_event_bool_QSlider_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? arg0->QSlider::event(arg1) : arg0->event(arg1); +} + +Pointer qt_QSlider_minimumSizeHint_QSize_QSlider(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QSlider::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QSlider_sizeHint_QSize_QSlider(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QSlider::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QSlider_mouseMoveEvent_void_QSlider_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QSlider*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QSlider*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QSlider_mousePressEvent_void_QSlider_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QSlider*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QSlider*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QSlider_mouseReleaseEvent_void_QSlider_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QSlider*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QSlider*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QSlider_paintEvent_void_QSlider_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QSlider*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QSlider*)arg0)->paintEvent_pub(arg1); +} + +void qt_QSlider_changeEvent_void_QSlider_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QSlider*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QSlider*)arg0)->changeEvent_pub(arg1); +} + +void qt_QSlider_keyPressEvent_void_QSlider_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QSlider*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QSlider*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QSlider_timerEvent_void_QSlider_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QSlider*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QSlider*)arg0)->timerEvent_pub(arg1); +} + +void qt_QSlider_wheelEvent_void_QSlider_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSlider* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QSlider*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QSlider*)arg0)->wheelEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QSlider0, Pointer) +{ + NODE_RETURN(qt_QSlider_QSlider_QSlider_QSlider_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QSlider1, Pointer) +{ + NODE_RETURN(qt_QSlider_QSlider_QSlider_QSlider_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QSlider_event_bool_QSlider_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QSlider_minimumSizeHint_QSize_QSlider(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QSlider_sizeHint_QSize_QSlider(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QSlider_mouseMoveEvent_void_QSlider_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QSlider_mousePressEvent_void_QSlider_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QSlider_mouseReleaseEvent_void_QSlider_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QSlider_paintEvent_void_QSlider_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QSlider_changeEvent_void_QSlider_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QSlider_keyPressEvent_void_QSlider_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QSlider_timerEvent_void_QSlider_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QSlider_wheelEvent_void_QSlider_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QSliderType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QSlider_QSlider_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QSlider", _n_QSlider0, None, Compiled, qt_QSlider_QSlider_QSlider_QSlider_QWidget, Return, "qt.QSlider", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QSlider", _n_QSlider1, None, Compiled, qt_QSlider_QSlider_QSlider_QSlider_int_QWidget, Return, "qt.QSlider", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "orientation", "int"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: setTickInterval (void; QSlider this, int ti) + // PROP: setTickPosition (void; QSlider this, flags QSlider::TickPosition position) + // PROP: tickInterval (int; QSlider this) + // PROP: tickPosition (flags QSlider::TickPosition; QSlider this) + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QSlider_event_bool_QSlider_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "event_", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QSlider_minimumSizeHint_QSize_QSlider, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSlider"), End), + _func[2] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QSlider_sizeHint_QSize_QSlider, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSlider"), End), + // MISSING: initStyleOption (void; QSlider this, "QStyleOptionSlider *" option) // protected + _func[3] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QSlider_mouseMoveEvent_void_QSlider_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "ev", "qt.QMouseEvent"), End), + _func[4] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QSlider_mousePressEvent_void_QSlider_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "ev", "qt.QMouseEvent"), End), + _func[5] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QSlider_mouseReleaseEvent_void_QSlider_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "ev", "qt.QMouseEvent"), End), + _func[6] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QSlider_paintEvent_void_QSlider_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "ev", "qt.QPaintEvent"), End), + _func[7] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QSlider_changeEvent_void_QSlider_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "ev", "qt.QEvent"), End), + _func[8] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QSlider_keyPressEvent_void_QSlider_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "ev", "qt.QKeyEvent"), End), + _func[9] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QSlider_timerEvent_void_QSlider_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "e", "qt.QTimerEvent"), End), + _func[10] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QSlider_wheelEvent_void_QSlider_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSlider"), new Param(c, "e", "qt.QWheelEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QSlider::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QSpacerItemType.cpp b/src/lib/mu/MuQt6/QSpacerItemType.cpp new file mode 100644 index 000000000..b03149927 --- /dev/null +++ b/src/lib/mu/MuQt6/QSpacerItemType.cpp @@ -0,0 +1,661 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QSpacerItem::~MuQt_QSpacerItem() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QSpacerItem::MuQt_QSpacerItem(Pointer muobj, const CallEnvironment* ce, int w, int h, QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy) + : QSpacerItem(w, h, hPolicy, vPolicy) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSpacerItem")); +} + +Qt::Orientations MuQt_QSpacerItem::expandingDirections() const +{ + if (!_env) return QSpacerItem::expandingDirections(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::Orientations)(rval._int); + } + else + { + return QSpacerItem::expandingDirections(); + } +} + +QRect MuQt_QSpacerItem::geometry() const +{ + if (!_env) return QSpacerItem::geometry(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSpacerItem::geometry(); + } +} + +bool MuQt_QSpacerItem::isEmpty() const +{ + if (!_env) return QSpacerItem::isEmpty(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QSpacerItem::isEmpty(); + } +} + +QSize MuQt_QSpacerItem::maximumSize() const +{ + if (!_env) return QSpacerItem::maximumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSpacerItem::maximumSize(); + } +} + +QSize MuQt_QSpacerItem::minimumSize() const +{ + if (!_env) return QSpacerItem::minimumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSpacerItem::minimumSize(); + } +} + +void MuQt_QSpacerItem::setGeometry(const QRect & r) +{ + if (!_env) { QSpacerItem::setGeometry(r); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,r,"qt.QRect")); + Value rval = _env->call(F, args); + } + else + { + QSpacerItem::setGeometry(r); + } +} + +QSize MuQt_QSpacerItem::sizeHint() const +{ + if (!_env) return QSpacerItem::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSpacerItem::sizeHint(); + } +} + +QSizePolicy::ControlTypes MuQt_QSpacerItem::controlTypes() const +{ + if (!_env) return QSpacerItem::controlTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QSizePolicy::ControlTypes)(rval._int); + } + else + { + return QSpacerItem::controlTypes(); + } +} + +bool MuQt_QSpacerItem::hasHeightForWidth() const +{ + if (!_env) return QSpacerItem::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QSpacerItem::hasHeightForWidth(); + } +} + +int MuQt_QSpacerItem::heightForWidth(int _p3) const +{ + if (!_env) return QSpacerItem::heightForWidth(_p3); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(_p3); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QSpacerItem::heightForWidth(_p3); + } +} + +void MuQt_QSpacerItem::invalidate() +{ + if (!_env) { QSpacerItem::invalidate(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QSpacerItem::invalidate(); + } +} + +QLayout * MuQt_QSpacerItem::layout() +{ + if (!_env) return QSpacerItem::layout(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QSpacerItem::layout(); + } +} + +int MuQt_QSpacerItem::minimumHeightForWidth(int w) const +{ + if (!_env) return QSpacerItem::minimumHeightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QSpacerItem::minimumHeightForWidth(w); + } +} + +QWidget * MuQt_QSpacerItem::widget() const +{ + if (!_env) return QSpacerItem::widget(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QSpacerItem::widget(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QSpacerItemType::QSpacerItemType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QSpacerItemType::~QSpacerItemType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QSpacerItem_QSpacerItem_QLayoutItem(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* item = reinterpret_cast(obj); + + if (!item) + { + return 0; + } + else if (QSpacerItem* i = layoutitem(item)) + { + QSpacerItemType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSpacerItem"), false); + ClassInstance* o = ClassInstance::allocate(type); + setlayoutitem(o, i); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromLayoutItem, Pointer) +{ + NODE_RETURN( QSpacerItem_QSpacerItem_QLayoutItem(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QSpacerItem_QSpacerItem_QSpacerItem_QSpacerItem_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w, int param_h, int param_hPolicy, int param_vPolicy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_w); + int arg2 = (int)(param_h); + QSizePolicy::Policy arg3 = (QSizePolicy::Policy)(param_hPolicy); + QSizePolicy::Policy arg4 = (QSizePolicy::Policy)(param_vPolicy); + setlayoutitem(param_this, new MuQt_QSpacerItem(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2, arg3, arg4)); + return param_this; +} + +void qt_QSpacerItem_changeSize_void_QSpacerItem_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w, int param_h, int param_hPolicy, int param_vPolicy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + int arg1 = (int)(param_w); + int arg2 = (int)(param_h); + QSizePolicy::Policy arg3 = (QSizePolicy::Policy)(param_hPolicy); + QSizePolicy::Policy arg4 = (QSizePolicy::Policy)(param_vPolicy); + arg0->changeSize(arg1, arg2, arg3, arg4); +} + +int qt_QSpacerItem_expandingDirections_int_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? int(arg0->QSpacerItem::expandingDirections()) : int(arg0->expandingDirections()); +} + +Pointer qt_QSpacerItem_geometry_QRect_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeqtype(c,arg0->QSpacerItem::geometry(),"qt.QRect") : makeqtype(c,arg0->geometry(),"qt.QRect"); +} + +bool qt_QSpacerItem_isEmpty_bool_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? arg0->QSpacerItem::isEmpty() : arg0->isEmpty(); +} + +Pointer qt_QSpacerItem_maximumSize_QSize_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeqtype(c,arg0->QSpacerItem::maximumSize(),"qt.QSize") : makeqtype(c,arg0->maximumSize(),"qt.QSize"); +} + +Pointer qt_QSpacerItem_minimumSize_QSize_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeqtype(c,arg0->QSpacerItem::minimumSize(),"qt.QSize") : makeqtype(c,arg0->minimumSize(),"qt.QSize"); +} + +void qt_QSpacerItem_setGeometry_void_QSpacerItem_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + const QRect arg1 = getqtype(param_r); + if (isMuQtLayoutItem(arg0)) arg0->QSpacerItem::setGeometry(arg1); + else arg0->setGeometry(arg1); +} + +Pointer qt_QSpacerItem_sizeHint_QSize_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeqtype(c,arg0->QSpacerItem::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +int qt_QSpacerItem_controlTypes_int_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? int(arg0->QSpacerItem::controlTypes()) : int(arg0->controlTypes()); +} + +bool qt_QSpacerItem_hasHeightForWidth_bool_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? arg0->QSpacerItem::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QSpacerItem_heightForWidth_int_QSpacerItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param__p3) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + int arg1 = (int)(param__p3); + return isMuQtLayoutItem(arg0) ? arg0->QSpacerItem::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +void qt_QSpacerItem_invalidate_void_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + if (isMuQtLayoutItem(arg0)) arg0->QSpacerItem::invalidate(); + else arg0->invalidate(); +} + +Pointer qt_QSpacerItem_layout_QLayout_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeinstance(c, arg0->QSpacerItem::layout(), "qt.QLayout") : makeinstance(c, arg0->layout(), "qt.QLayout"); +} + +int qt_QSpacerItem_minimumHeightForWidth_int_QSpacerItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + int arg1 = (int)(param_w); + return isMuQtLayoutItem(arg0) ? arg0->QSpacerItem::minimumHeightForWidth(arg1) : arg0->minimumHeightForWidth(arg1); +} + +Pointer qt_QSpacerItem_widget_QWidget_QSpacerItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpacerItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeinstance(c, arg0->QSpacerItem::widget(), "qt.QWidget") : makeinstance(c, arg0->widget(), "qt.QWidget"); +} + + +static NODE_IMPLEMENTATION(_n_QSpacerItem0, Pointer) +{ + NODE_RETURN(qt_QSpacerItem_QSpacerItem_QSpacerItem_QSpacerItem_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_changeSize0, void) +{ + qt_QSpacerItem_changeSize_void_QSpacerItem_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_expandingDirections0, int) +{ + NODE_RETURN(qt_QSpacerItem_expandingDirections_int_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_geometry0, Pointer) +{ + NODE_RETURN(qt_QSpacerItem_geometry_QRect_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QSpacerItem_isEmpty_bool_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_maximumSize0, Pointer) +{ + NODE_RETURN(qt_QSpacerItem_maximumSize_QSize_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumSize0, Pointer) +{ + NODE_RETURN(qt_QSpacerItem_minimumSize_QSize_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setGeometry0, void) +{ + qt_QSpacerItem_setGeometry_void_QSpacerItem_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QSpacerItem_sizeHint_QSize_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_controlTypes0, int) +{ + NODE_RETURN(qt_QSpacerItem_controlTypes_int_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QSpacerItem_hasHeightForWidth_bool_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QSpacerItem_heightForWidth_int_QSpacerItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_invalidate0, void) +{ + qt_QSpacerItem_invalidate_void_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_layout0, Pointer) +{ + NODE_RETURN(qt_QSpacerItem_layout_QLayout_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumHeightForWidth0, int) +{ + NODE_RETURN(qt_QSpacerItem_minimumHeightForWidth_int_QSpacerItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QSpacerItem_widget_QWidget_QSpacerItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QSpacerItemType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromLayoutItem, Cast, + Compiled, QSpacerItem_QSpacerItem_QLayoutItem, + Return, ftn, + Parameters, + new Param(c, "layoutItem", "qt.QLayoutItem"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QSpacerItem", _n_QSpacerItem0, None, Compiled, qt_QSpacerItem_QSpacerItem_QSpacerItem_QSpacerItem_int_int_int_int, Return, "qt.QSpacerItem", Parameters, new Param(c, "this", "qt.QSpacerItem"), new Param(c, "w", "int"), new Param(c, "h", "int"), new Param(c, "hPolicy", "int", Value((int)QSizePolicy::Minimum)), new Param(c, "vPolicy", "int", Value((int)QSizePolicy::Minimum)), End), + new Function(c, "changeSize", _n_changeSize0, None, Compiled, qt_QSpacerItem_changeSize_void_QSpacerItem_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QSpacerItem"), new Param(c, "w", "int"), new Param(c, "h", "int"), new Param(c, "hPolicy", "int", Value((int)QSizePolicy::Minimum)), new Param(c, "vPolicy", "int", Value((int)QSizePolicy::Minimum)), End), + // MISSING: sizePolicy ("QSizePolicy"; QSpacerItem this) + _func[0] = new MemberFunction(c, "expandingDirections", _n_expandingDirections0, None, Compiled, qt_QSpacerItem_expandingDirections_int_QSpacerItem, Return, "int", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + _func[1] = new MemberFunction(c, "geometry", _n_geometry0, None, Compiled, qt_QSpacerItem_geometry_QRect_QSpacerItem, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + _func[2] = new MemberFunction(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QSpacerItem_isEmpty_bool_QSpacerItem, Return, "bool", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + _func[3] = new MemberFunction(c, "maximumSize", _n_maximumSize0, None, Compiled, qt_QSpacerItem_maximumSize_QSize_QSpacerItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + _func[4] = new MemberFunction(c, "minimumSize", _n_minimumSize0, None, Compiled, qt_QSpacerItem_minimumSize_QSize_QSpacerItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + _func[5] = new MemberFunction(c, "setGeometry", _n_setGeometry0, None, Compiled, qt_QSpacerItem_setGeometry_void_QSpacerItem_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QSpacerItem"), new Param(c, "r", "qt.QRect"), End), + _func[6] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QSpacerItem_sizeHint_QSize_QSpacerItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + // MISSING: spacerItem ("QSpacerItem *"; QSpacerItem this) + _func[7] = new MemberFunction(c, "controlTypes", _n_controlTypes0, None, Compiled, qt_QSpacerItem_controlTypes_int_QSpacerItem, Return, "int", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + _func[8] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QSpacerItem_hasHeightForWidth_bool_QSpacerItem, Return, "bool", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + _func[9] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QSpacerItem_heightForWidth_int_QSpacerItem_int, Return, "int", Parameters, new Param(c, "this", "qt.QSpacerItem"), new Param(c, "_p3", "int"), End), + _func[10] = new MemberFunction(c, "invalidate", _n_invalidate0, None, Compiled, qt_QSpacerItem_invalidate_void_QSpacerItem, Return, "void", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + _func[11] = new MemberFunction(c, "layout", _n_layout0, None, Compiled, qt_QSpacerItem_layout_QLayout_QSpacerItem, Return, "qt.QLayout", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + _func[12] = new MemberFunction(c, "minimumHeightForWidth", _n_minimumHeightForWidth0, None, Compiled, qt_QSpacerItem_minimumHeightForWidth_int_QSpacerItem_int, Return, "int", Parameters, new Param(c, "this", "qt.QSpacerItem"), new Param(c, "w", "int"), End), + _func[13] = new MemberFunction(c, "widget", _n_widget0, None, Compiled, qt_QSpacerItem_widget_QWidget_QSpacerItem, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QSpacerItem"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QSpinBoxType.cpp b/src/lib/mu/MuQt6/QSpinBoxType.cpp new file mode 100644 index 000000000..2a09f9880 --- /dev/null +++ b/src/lib/mu/MuQt6/QSpinBoxType.cpp @@ -0,0 +1,1055 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QSpinBox::~MuQt_QSpinBox() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QSpinBox::MuQt_QSpinBox(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QSpinBox(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSpinBox")); +} + +QString MuQt_QSpinBox::textFromValue(int value) const +{ + if (!_env) return QSpinBox::textFromValue(value); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(value); + Value rval = _env->call(F, args); + return qstring(rval._Pointer); + } + else + { + return QSpinBox::textFromValue(value); + } +} + +int MuQt_QSpinBox::valueFromText(const QString & text) const +{ + if (!_env) return QSpinBox::valueFromText(text); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makestring(c,text)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QSpinBox::valueFromText(text); + } +} + +bool MuQt_QSpinBox::event(QEvent * event_) +{ + if (!_env) return QSpinBox::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QSpinBox::event(event_); + } +} + +void MuQt_QSpinBox::stepBy(int steps) +{ + if (!_env) { QSpinBox::stepBy(steps); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(steps); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::stepBy(steps); + } +} + +QVariant MuQt_QSpinBox::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QSpinBox::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSpinBox::inputMethodQuery(query); + } +} + +QSize MuQt_QSpinBox::minimumSizeHint() const +{ + if (!_env) return QSpinBox::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSpinBox::minimumSizeHint(); + } +} + +QSize MuQt_QSpinBox::sizeHint() const +{ + if (!_env) return QSpinBox::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSpinBox::sizeHint(); + } +} + +QAbstractSpinBox::StepEnabled MuQt_QSpinBox::stepEnabled() const +{ + if (!_env) return QSpinBox::stepEnabled(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QAbstractSpinBox::StepEnabled)(rval._int); + } + else + { + return QSpinBox::stepEnabled(); + } +} + +void MuQt_QSpinBox::changeEvent(QEvent * event) +{ + if (!_env) { QSpinBox::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::changeEvent(event); + } +} + +void MuQt_QSpinBox::closeEvent(QCloseEvent * event) +{ + if (!_env) { QSpinBox::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::closeEvent(event); + } +} + +void MuQt_QSpinBox::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QSpinBox::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::contextMenuEvent(event); + } +} + +void MuQt_QSpinBox::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QSpinBox::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::focusInEvent(event); + } +} + +void MuQt_QSpinBox::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QSpinBox::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::focusOutEvent(event); + } +} + +void MuQt_QSpinBox::hideEvent(QHideEvent * event) +{ + if (!_env) { QSpinBox::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::hideEvent(event); + } +} + +void MuQt_QSpinBox::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QSpinBox::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::keyPressEvent(event); + } +} + +void MuQt_QSpinBox::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QSpinBox::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::keyReleaseEvent(event); + } +} + +void MuQt_QSpinBox::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QSpinBox::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::mouseMoveEvent(event); + } +} + +void MuQt_QSpinBox::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QSpinBox::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::mousePressEvent(event); + } +} + +void MuQt_QSpinBox::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QSpinBox::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::mouseReleaseEvent(event); + } +} + +void MuQt_QSpinBox::paintEvent(QPaintEvent * event) +{ + if (!_env) { QSpinBox::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::paintEvent(event); + } +} + +void MuQt_QSpinBox::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QSpinBox::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::resizeEvent(event); + } +} + +void MuQt_QSpinBox::showEvent(QShowEvent * event) +{ + if (!_env) { QSpinBox::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::showEvent(event); + } +} + +void MuQt_QSpinBox::timerEvent(QTimerEvent * event) +{ + if (!_env) { QSpinBox::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::timerEvent(event); + } +} + +void MuQt_QSpinBox::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QSpinBox::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QSpinBox::wheelEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QSpinBoxType::QSpinBoxType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QSpinBoxType::~QSpinBoxType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QSpinBox_QSpinBox_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QSpinBox* w = object(widget)) + { + QSpinBoxType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSpinBox"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QSpinBox_QSpinBox_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QSpinBox_QSpinBox_QSpinBox_QSpinBox_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QSpinBox(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QSpinBox_setRange_void_QSpinBox_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_minimum, int param_maximum) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + int arg1 = (int)(param_minimum); + int arg2 = (int)(param_maximum); + arg0->setRange(arg1, arg2); +} + +void qt_QSpinBox_setStepType_void_QSpinBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_stepType) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QAbstractSpinBox::StepType arg1 = (QAbstractSpinBox::StepType)(param_stepType); + arg0->setStepType(arg1); +} + +Pointer qt_QSpinBox_textFromValue_string_QSpinBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + int arg1 = (int)(param_value); + return isMuQtObject(arg0) ? makestring(c,((MuQt_QSpinBox*)arg0)->textFromValue_pub_parent(arg1)) : makestring(c,((MuQt_QSpinBox*)arg0)->textFromValue_pub(arg1)); +} + +int qt_QSpinBox_valueFromText_int_QSpinBox_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + return isMuQtObject(arg0) ? ((MuQt_QSpinBox*)arg0)->valueFromText_pub_parent(arg1) : ((MuQt_QSpinBox*)arg0)->valueFromText_pub(arg1); +} + +bool qt_QSpinBox_event_bool_QSpinBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QSpinBox*)arg0)->event_pub_parent(arg1) : ((MuQt_QSpinBox*)arg0)->event_pub(arg1); +} + +void qt_QSpinBox_stepBy_void_QSpinBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_steps) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + int arg1 = (int)(param_steps); + if (isMuQtObject(arg0)) arg0->QSpinBox::stepBy(arg1); + else arg0->stepBy(arg1); +} + +Pointer qt_QSpinBox_inputMethodQuery_QVariant_QSpinBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QSpinBox::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QSpinBox_minimumSizeHint_QSize_QSpinBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QSpinBox::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QSpinBox_sizeHint_QSize_QSpinBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QSpinBox::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +int qt_QSpinBox_stepEnabled_int_QSpinBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(((MuQt_QSpinBox*)arg0)->stepEnabled_pub_parent()) : int(((MuQt_QSpinBox*)arg0)->stepEnabled_pub()); +} + +void qt_QSpinBox_changeEvent_void_QSpinBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->changeEvent_pub(arg1); +} + +void qt_QSpinBox_closeEvent_void_QSpinBox_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->closeEvent_pub(arg1); +} + +void qt_QSpinBox_contextMenuEvent_void_QSpinBox_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QSpinBox_focusInEvent_void_QSpinBox_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QSpinBox_focusOutEvent_void_QSpinBox_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QSpinBox_hideEvent_void_QSpinBox_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->hideEvent_pub(arg1); +} + +void qt_QSpinBox_keyPressEvent_void_QSpinBox_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QSpinBox_keyReleaseEvent_void_QSpinBox_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QSpinBox_mouseMoveEvent_void_QSpinBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QSpinBox_mousePressEvent_void_QSpinBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QSpinBox_mouseReleaseEvent_void_QSpinBox_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QSpinBox_paintEvent_void_QSpinBox_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->paintEvent_pub(arg1); +} + +void qt_QSpinBox_resizeEvent_void_QSpinBox_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QSpinBox_showEvent_void_QSpinBox_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->showEvent_pub(arg1); +} + +void qt_QSpinBox_timerEvent_void_QSpinBox_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->timerEvent_pub(arg1); +} + +void qt_QSpinBox_wheelEvent_void_QSpinBox_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSpinBox* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSpinBox*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QSpinBox*)arg0)->wheelEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QSpinBox0, Pointer) +{ + NODE_RETURN(qt_QSpinBox_QSpinBox_QSpinBox_QSpinBox_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setRange0, void) +{ + qt_QSpinBox_setRange_void_QSpinBox_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setStepType0, void) +{ + qt_QSpinBox_setStepType_void_QSpinBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_textFromValue0, Pointer) +{ + NODE_RETURN(qt_QSpinBox_textFromValue_string_QSpinBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_valueFromText0, int) +{ + NODE_RETURN(qt_QSpinBox_valueFromText_int_QSpinBox_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QSpinBox_event_bool_QSpinBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_stepBy0, void) +{ + qt_QSpinBox_stepBy_void_QSpinBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QSpinBox_inputMethodQuery_QVariant_QSpinBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QSpinBox_minimumSizeHint_QSize_QSpinBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QSpinBox_sizeHint_QSize_QSpinBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_stepEnabled0, int) +{ + NODE_RETURN(qt_QSpinBox_stepEnabled_int_QSpinBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QSpinBox_changeEvent_void_QSpinBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QSpinBox_closeEvent_void_QSpinBox_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QSpinBox_contextMenuEvent_void_QSpinBox_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QSpinBox_focusInEvent_void_QSpinBox_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QSpinBox_focusOutEvent_void_QSpinBox_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QSpinBox_hideEvent_void_QSpinBox_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QSpinBox_keyPressEvent_void_QSpinBox_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QSpinBox_keyReleaseEvent_void_QSpinBox_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QSpinBox_mouseMoveEvent_void_QSpinBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QSpinBox_mousePressEvent_void_QSpinBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QSpinBox_mouseReleaseEvent_void_QSpinBox_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QSpinBox_paintEvent_void_QSpinBox_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QSpinBox_resizeEvent_void_QSpinBox_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QSpinBox_showEvent_void_QSpinBox_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QSpinBox_timerEvent_void_QSpinBox_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QSpinBox_wheelEvent_void_QSpinBox_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QSpinBoxType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QSpinBox_QSpinBox_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QSpinBox", _n_QSpinBox0, None, Compiled, qt_QSpinBox_QSpinBox_QSpinBox_QSpinBox_QWidget, Return, "qt.QSpinBox", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: cleanText (string; QSpinBox this) + // PROP: displayIntegerBase (int; QSpinBox this) + // PROP: maximum (int; QSpinBox this) + // PROP: minimum (int; QSpinBox this) + // PROP: prefix (string; QSpinBox this) + // PROP: setDisplayIntegerBase (void; QSpinBox this, int base) + // PROP: setMaximum (void; QSpinBox this, int max) + // PROP: setMinimum (void; QSpinBox this, int min) + // PROP: setPrefix (void; QSpinBox this, string prefix) + new Function(c, "setRange", _n_setRange0, None, Compiled, qt_QSpinBox_setRange_void_QSpinBox_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "minimum", "int"), new Param(c, "maximum", "int"), End), + // PROP: setSingleStep (void; QSpinBox this, int val) + new Function(c, "setStepType", _n_setStepType0, None, Compiled, qt_QSpinBox_setStepType_void_QSpinBox_int, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "stepType", "int"), End), + // PROP: setSuffix (void; QSpinBox this, string suffix) + // PROP: singleStep (int; QSpinBox this) + // PROP: stepType (flags QAbstractSpinBox::StepType; QSpinBox this) + // PROP: suffix (string; QSpinBox this) + // PROP: value (int; QSpinBox this) + _func[0] = new MemberFunction(c, "textFromValue", _n_textFromValue0, None, Compiled, qt_QSpinBox_textFromValue_string_QSpinBox_int, Return, "string", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "value", "int"), End), + _func[1] = new MemberFunction(c, "valueFromText", _n_valueFromText0, None, Compiled, qt_QSpinBox_valueFromText_int_QSpinBox_string, Return, "int", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "text", "string"), End), + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QSpinBox_event_bool_QSpinBox_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event_", "qt.QEvent"), End), + // MISSING: validate (flags QValidator::State; QSpinBox this, string text, "int &" pos) // protected + _func[3] = new MemberFunction(c, "stepBy", _n_stepBy0, None, Compiled, qt_QSpinBox_stepBy_void_QSpinBox_int, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "steps", "int"), End), + _func[4] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QSpinBox_inputMethodQuery_QVariant_QSpinBox_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "query", "int"), End), + _func[5] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QSpinBox_minimumSizeHint_QSize_QSpinBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSpinBox"), End), + _func[6] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QSpinBox_sizeHint_QSize_QSpinBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSpinBox"), End), + // MISSING: initStyleOption (void; QSpinBox this, "QStyleOptionSpinBox *" option) // protected + _func[7] = new MemberFunction(c, "stepEnabled", _n_stepEnabled0, None, Compiled, qt_QSpinBox_stepEnabled_int_QSpinBox, Return, "int", Parameters, new Param(c, "this", "qt.QSpinBox"), End), + _func[8] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QSpinBox_changeEvent_void_QSpinBox_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QEvent"), End), + _func[9] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QSpinBox_closeEvent_void_QSpinBox_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[10] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QSpinBox_contextMenuEvent_void_QSpinBox_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[11] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QSpinBox_focusInEvent_void_QSpinBox_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[12] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QSpinBox_focusOutEvent_void_QSpinBox_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[13] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QSpinBox_hideEvent_void_QSpinBox_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QHideEvent"), End), + _func[14] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QSpinBox_keyPressEvent_void_QSpinBox_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[15] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QSpinBox_keyReleaseEvent_void_QSpinBox_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[16] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QSpinBox_mouseMoveEvent_void_QSpinBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[17] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QSpinBox_mousePressEvent_void_QSpinBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[18] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QSpinBox_mouseReleaseEvent_void_QSpinBox_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[19] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QSpinBox_paintEvent_void_QSpinBox_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[20] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QSpinBox_resizeEvent_void_QSpinBox_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[21] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QSpinBox_showEvent_void_QSpinBox_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QShowEvent"), End), + _func[22] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QSpinBox_timerEvent_void_QSpinBox_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[23] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QSpinBox_wheelEvent_void_QSpinBox_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSpinBox"), new Param(c, "event", "qt.QWheelEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QSpinBox::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QSplitterType.cpp b/src/lib/mu/MuQt6/QSplitterType.cpp new file mode 100644 index 000000000..6914c2bf1 --- /dev/null +++ b/src/lib/mu/MuQt6/QSplitterType.cpp @@ -0,0 +1,644 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QSplitter::~MuQt_QSplitter() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QSplitter::MuQt_QSplitter(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QSplitter(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSplitter")); +} + +MuQt_QSplitter::MuQt_QSplitter(Pointer muobj, const CallEnvironment* ce, Qt::Orientation orientation, QWidget * parent) + : QSplitter(orientation, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSplitter")); +} + +QSize MuQt_QSplitter::minimumSizeHint() const +{ + if (!_env) return QSplitter::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSplitter::minimumSizeHint(); + } +} + +QSize MuQt_QSplitter::sizeHint() const +{ + if (!_env) return QSplitter::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSplitter::sizeHint(); + } +} + +void MuQt_QSplitter::changeEvent(QEvent * ev) +{ + if (!_env) { QSplitter::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QSplitter::changeEvent(ev); + } +} + +bool MuQt_QSplitter::event(QEvent * e) +{ + if (!_env) return QSplitter::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QSplitter::event(e); + } +} + +void MuQt_QSplitter::resizeEvent(QResizeEvent * _p15) +{ + if (!_env) { QSplitter::resizeEvent(_p15); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p15,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QSplitter::resizeEvent(_p15); + } +} + +void MuQt_QSplitter::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QSplitter::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QSplitter::paintEvent(_p14); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QSplitterType::QSplitterType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QSplitterType::~QSplitterType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QSplitter_QSplitter_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QSplitter* w = object(widget)) + { + QSplitterType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSplitter"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QSplitter_QSplitter_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QSplitter_QSplitter_QSplitter_QSplitter_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QSplitter(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QSplitter_QSplitter_QSplitter_QSplitter_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_orientation, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::Orientation arg1 = (Qt::Orientation)(param_orientation); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QSplitter(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +void qt_QSplitter_addWidget_void_QSplitter_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->addWidget(arg1); +} + +int qt_QSplitter_count_int_QSplitter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + return arg0->count(); +} + +int qt_QSplitter_indexOf_int_QSplitter_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + return arg0->indexOf(arg1); +} + +void qt_QSplitter_insertWidget_void_QSplitter_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_widget); + arg0->insertWidget(arg1, arg2); +} + +bool qt_QSplitter_isCollapsible_bool_QSplitter_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + int arg1 = (int)(param_index); + return arg0->isCollapsible(arg1); +} + +void qt_QSplitter_refresh_void_QSplitter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + arg0->refresh(); +} + +Pointer qt_QSplitter_replaceWidget_QWidget_QSplitter_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_widget); + return makeinstance(c, arg0->replaceWidget(arg1, arg2), "qt.QWidget"); +} + +bool qt_QSplitter_restoreState_bool_QSplitter_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_state); + return arg0->restoreState(arg1); +} + +Pointer qt_QSplitter_saveState_QByteArray_QSplitter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + return makeqtype(c,arg0->saveState(),"qt.QByteArray"); +} + +void qt_QSplitter_setCollapsible_void_QSplitter_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, bool param_collapse) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + int arg1 = (int)(param_index); + bool arg2 = (bool)(param_collapse); + arg0->setCollapsible(arg1, arg2); +} + +void qt_QSplitter_setStretchFactor_void_QSplitter_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + int arg1 = (int)(param_index); + int arg2 = (int)(param_stretch); + arg0->setStretchFactor(arg1, arg2); +} + +Pointer qt_QSplitter_widget_QWidget_QSplitter_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeinstance(c, arg0->widget(arg1), "qt.QWidget"); +} + +Pointer qt_QSplitter_minimumSizeHint_QSize_QSplitter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QSplitter::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QSplitter_sizeHint_QSize_QSplitter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QSplitter::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +int qt_QSplitter_closestLegalPosition_int_QSplitter_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_pos, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + int arg1 = (int)(param_pos); + int arg2 = (int)(param_index); + return ((MuQt_QSplitter*)arg0)->closestLegalPosition_pub(arg1, arg2); +} + +void qt_QSplitter_moveSplitter_void_QSplitter_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_pos, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + int arg1 = (int)(param_pos); + int arg2 = (int)(param_index); + ((MuQt_QSplitter*)arg0)->moveSplitter_pub(arg1, arg2); +} + +void qt_QSplitter_setRubberBand_void_QSplitter_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + int arg1 = (int)(param_pos); + ((MuQt_QSplitter*)arg0)->setRubberBand_pub(arg1); +} + +void qt_QSplitter_changeEvent_void_QSplitter_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QSplitter*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QSplitter*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QSplitter_event_bool_QSplitter_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QSplitter*)arg0)->event_pub_parent(arg1) : ((MuQt_QSplitter*)arg0)->event_pub(arg1); +} + +void qt_QSplitter_resizeEvent_void_QSplitter_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p15) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param__p15); + if (isMuQtObject(arg0)) ((MuQt_QSplitter*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QSplitter*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QSplitter_paintEvent_void_QSplitter_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSplitter* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QSplitter*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QSplitter*)arg0)->paintEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QSplitter0, Pointer) +{ + NODE_RETURN(qt_QSplitter_QSplitter_QSplitter_QSplitter_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QSplitter1, Pointer) +{ + NODE_RETURN(qt_QSplitter_QSplitter_QSplitter_QSplitter_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addWidget0, void) +{ + qt_QSplitter_addWidget_void_QSplitter_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QSplitter_count_int_QSplitter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexOf0, int) +{ + NODE_RETURN(qt_QSplitter_indexOf_int_QSplitter_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertWidget0, void) +{ + qt_QSplitter_insertWidget_void_QSplitter_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isCollapsible0, bool) +{ + NODE_RETURN(qt_QSplitter_isCollapsible_bool_QSplitter_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_refresh0, void) +{ + qt_QSplitter_refresh_void_QSplitter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_replaceWidget0, Pointer) +{ + NODE_RETURN(qt_QSplitter_replaceWidget_QWidget_QSplitter_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_restoreState0, bool) +{ + NODE_RETURN(qt_QSplitter_restoreState_bool_QSplitter_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_saveState0, Pointer) +{ + NODE_RETURN(qt_QSplitter_saveState_QByteArray_QSplitter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCollapsible0, void) +{ + qt_QSplitter_setCollapsible_void_QSplitter_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setStretchFactor0, void) +{ + qt_QSplitter_setStretchFactor_void_QSplitter_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QSplitter_widget_QWidget_QSplitter_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QSplitter_minimumSizeHint_QSize_QSplitter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QSplitter_sizeHint_QSize_QSplitter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closestLegalPosition0, int) +{ + NODE_RETURN(qt_QSplitter_closestLegalPosition_int_QSplitter_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_moveSplitter0, void) +{ + qt_QSplitter_moveSplitter_void_QSplitter_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setRubberBand0, void) +{ + qt_QSplitter_setRubberBand_void_QSplitter_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QSplitter_changeEvent_void_QSplitter_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QSplitter_event_bool_QSplitter_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QSplitter_resizeEvent_void_QSplitter_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QSplitter_paintEvent_void_QSplitter_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QSplitterType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QSplitter_QSplitter_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QSplitter", _n_QSplitter0, None, Compiled, qt_QSplitter_QSplitter_QSplitter_QSplitter_QWidget, Return, "qt.QSplitter", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QSplitter", _n_QSplitter1, None, Compiled, qt_QSplitter_QSplitter_QSplitter_QSplitter_int_QWidget, Return, "qt.QSplitter", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "orientation", "int"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addWidget", _n_addWidget0, None, Compiled, qt_QSplitter_addWidget_void_QSplitter_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: childrenCollapsible (bool; QSplitter this) + new Function(c, "count", _n_count0, None, Compiled, qt_QSplitter_count_int_QSplitter, Return, "int", Parameters, new Param(c, "this", "qt.QSplitter"), End), + // MISSING: getRange (void; QSplitter this, int index, "int *" min, "int *" max) + // MISSING: handle ("QSplitterHandle *"; QSplitter this, int index) + // PROP: handleWidth (int; QSplitter this) + new Function(c, "indexOf", _n_indexOf0, None, Compiled, qt_QSplitter_indexOf_int_QSplitter_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "insertWidget", _n_insertWidget0, None, Compiled, qt_QSplitter_insertWidget_void_QSplitter_int_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "index", "int"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "isCollapsible", _n_isCollapsible0, None, Compiled, qt_QSplitter_isCollapsible_bool_QSplitter_int, Return, "bool", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "index", "int"), End), + // PROP: opaqueResize (bool; QSplitter this) + // PROP: orientation (flags Qt::Orientation; QSplitter this) + new Function(c, "refresh", _n_refresh0, None, Compiled, qt_QSplitter_refresh_void_QSplitter, Return, "void", Parameters, new Param(c, "this", "qt.QSplitter"), End), + new Function(c, "replaceWidget", _n_replaceWidget0, None, Compiled, qt_QSplitter_replaceWidget_QWidget_QSplitter_int_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "index", "int"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "restoreState", _n_restoreState0, None, Compiled, qt_QSplitter_restoreState_bool_QSplitter_QByteArray, Return, "bool", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "state", "qt.QByteArray"), End), + new Function(c, "saveState", _n_saveState0, None, Compiled, qt_QSplitter_saveState_QByteArray_QSplitter, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QSplitter"), End), + // PROP: setChildrenCollapsible (void; QSplitter this, bool _p4) + new Function(c, "setCollapsible", _n_setCollapsible0, None, Compiled, qt_QSplitter_setCollapsible_void_QSplitter_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "index", "int"), new Param(c, "collapse", "bool"), End), + // PROP: setHandleWidth (void; QSplitter this, int _p3) + // PROP: setOpaqueResize (void; QSplitter this, bool opaque) + // PROP: setOrientation (void; QSplitter this, flags Qt::Orientation _p15) + // MISSING: setSizes (void; QSplitter this, "const QList &" list) + new Function(c, "setStretchFactor", _n_setStretchFactor0, None, Compiled, qt_QSplitter_setStretchFactor_void_QSplitter_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "index", "int"), new Param(c, "stretch", "int"), End), + // MISSING: sizes ("QList"; QSplitter this) + new Function(c, "widget", _n_widget0, None, Compiled, qt_QSplitter_widget_QWidget_QSplitter_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "index", "int"), End), + _func[0] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QSplitter_minimumSizeHint_QSize_QSplitter, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSplitter"), End), + _func[1] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QSplitter_sizeHint_QSize_QSplitter, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSplitter"), End), + new Function(c, "closestLegalPosition", _n_closestLegalPosition0, None, Compiled, qt_QSplitter_closestLegalPosition_int_QSplitter_int_int, Return, "int", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "pos", "int"), new Param(c, "index", "int"), End), + // MISSING: createHandle ("QSplitterHandle *"; QSplitter this) // protected + new Function(c, "moveSplitter", _n_moveSplitter0, None, Compiled, qt_QSplitter_moveSplitter_void_QSplitter_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "pos", "int"), new Param(c, "index", "int"), End), + new Function(c, "setRubberBand", _n_setRubberBand0, None, Compiled, qt_QSplitter_setRubberBand_void_QSplitter_int, Return, "void", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "pos", "int"), End), + _func[2] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QSplitter_changeEvent_void_QSplitter_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "ev", "qt.QEvent"), End), + // MISSING: childEvent (void; QSplitter this, "QChildEvent *" c) // protected + _func[3] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QSplitter_event_bool_QSplitter_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "e", "qt.QEvent"), End), + _func[4] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QSplitter_resizeEvent_void_QSplitter_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "_p15", "qt.QResizeEvent"), End), + // MISSING: initStyleOption (void; QSplitter this, "QStyleOptionFrame *" option) // protected + _func[5] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QSplitter_paintEvent_void_QSplitter_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSplitter"), new Param(c, "_p14", "qt.QPaintEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QSplitter::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QStackedLayoutType.cpp b/src/lib/mu/MuQt6/QStackedLayoutType.cpp new file mode 100644 index 000000000..1613074c4 --- /dev/null +++ b/src/lib/mu/MuQt6/QStackedLayoutType.cpp @@ -0,0 +1,957 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QStackedLayout::~MuQt_QStackedLayout() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QStackedLayout::MuQt_QStackedLayout(Pointer muobj, const CallEnvironment* ce) + : QStackedLayout() +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStackedLayout")); +} + +MuQt_QStackedLayout::MuQt_QStackedLayout(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QStackedLayout(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStackedLayout")); +} + +MuQt_QStackedLayout::MuQt_QStackedLayout(Pointer muobj, const CallEnvironment* ce, QLayout * parentLayout) + : QStackedLayout(parentLayout) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStackedLayout")); +} + +void MuQt_QStackedLayout::addItem(QLayoutItem * item) +{ + if (!_env) { QStackedLayout::addItem(item); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makelayoutitem(c,item,"qt.QLayoutItem")); + Value rval = _env->call(F, args); + } + else + { + QStackedLayout::addItem(item); + } +} + +int MuQt_QStackedLayout::count() const +{ + if (!_env) return QStackedLayout::count(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QStackedLayout::count(); + } +} + +bool MuQt_QStackedLayout::hasHeightForWidth() const +{ + if (!_env) return QStackedLayout::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStackedLayout::hasHeightForWidth(); + } +} + +int MuQt_QStackedLayout::heightForWidth(int width) const +{ + if (!_env) return QStackedLayout::heightForWidth(width); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(width); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QStackedLayout::heightForWidth(width); + } +} + +QLayoutItem * MuQt_QStackedLayout::itemAt(int index) const +{ + if (!_env) return QStackedLayout::itemAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QStackedLayout::itemAt(index); + } +} + +QSize MuQt_QStackedLayout::minimumSize() const +{ + if (!_env) return QStackedLayout::minimumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStackedLayout::minimumSize(); + } +} + +void MuQt_QStackedLayout::setGeometry(const QRect & rect) +{ + if (!_env) { QStackedLayout::setGeometry(rect); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + Value rval = _env->call(F, args); + } + else + { + QStackedLayout::setGeometry(rect); + } +} + +QSize MuQt_QStackedLayout::sizeHint() const +{ + if (!_env) return QStackedLayout::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStackedLayout::sizeHint(); + } +} + +QLayoutItem * MuQt_QStackedLayout::takeAt(int index) +{ + if (!_env) return QStackedLayout::takeAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QStackedLayout::takeAt(index); + } +} + +int MuQt_QStackedLayout::indexOf(const QWidget * widget) const +{ + if (!_env) return QStackedLayout::indexOf(widget); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,widget,"qt.QWidget")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QStackedLayout::indexOf(widget); + } +} + +QLayoutItem * MuQt_QStackedLayout::replaceWidget(QWidget * from, QWidget * to, Qt::FindChildOptions options) +{ + if (!_env) return QStackedLayout::replaceWidget(from, to, options); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,from,"qt.QWidget")); + args[2] = Value(makeinstance(c,to,"qt.QWidget")); + args[3] = Value(int(options)); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QStackedLayout::replaceWidget(from, to, options); + } +} + +void MuQt_QStackedLayout::setSpacing(int _p3) +{ + if (!_env) { QStackedLayout::setSpacing(_p3); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(_p3); + Value rval = _env->call(F, args); + } + else + { + QStackedLayout::setSpacing(_p3); + } +} + +int MuQt_QStackedLayout::spacing() const +{ + if (!_env) return QStackedLayout::spacing(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QStackedLayout::spacing(); + } +} + +QSizePolicy::ControlTypes MuQt_QStackedLayout::controlTypes() const +{ + if (!_env) return QStackedLayout::controlTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QSizePolicy::ControlTypes)(rval._int); + } + else + { + return QStackedLayout::controlTypes(); + } +} + +Qt::Orientations MuQt_QStackedLayout::expandingDirections() const +{ + if (!_env) return QStackedLayout::expandingDirections(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::Orientations)(rval._int); + } + else + { + return QStackedLayout::expandingDirections(); + } +} + +QRect MuQt_QStackedLayout::geometry() const +{ + if (!_env) return QStackedLayout::geometry(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStackedLayout::geometry(); + } +} + +void MuQt_QStackedLayout::invalidate() +{ + if (!_env) { QStackedLayout::invalidate(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QStackedLayout::invalidate(); + } +} + +bool MuQt_QStackedLayout::isEmpty() const +{ + if (!_env) return QStackedLayout::isEmpty(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStackedLayout::isEmpty(); + } +} + +QLayout * MuQt_QStackedLayout::layout() +{ + if (!_env) return QStackedLayout::layout(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QStackedLayout::layout(); + } +} + +QSize MuQt_QStackedLayout::maximumSize() const +{ + if (!_env) return QStackedLayout::maximumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStackedLayout::maximumSize(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QStackedLayoutType::QStackedLayoutType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QStackedLayoutType::~QStackedLayoutType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QStackedLayout_QStackedLayout_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QStackedLayout* w = object(widget)) + { + QStackedLayoutType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStackedLayout"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QStackedLayout_QStackedLayout_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QStackedLayout_QStackedLayout_QStackedLayout_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setobject(param_this, new MuQt_QStackedLayout(param_this, NODE_THREAD.process()->callEnv())); + return param_this; +} + +Pointer qt_QStackedLayout_QStackedLayout_QStackedLayout_QStackedLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QStackedLayout(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QStackedLayout_QStackedLayout_QStackedLayout_QStackedLayout_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parentLayout) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QLayout * arg1 = object(param_parentLayout); + setobject(param_this, new MuQt_QStackedLayout(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +int qt_QStackedLayout_addWidget_int_QStackedLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + return arg0->addWidget(arg1); +} + +Pointer qt_QStackedLayout_currentWidget_QWidget_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return makeinstance(c, arg0->currentWidget(), "qt.QWidget"); +} + +int qt_QStackedLayout_insertWidget_int_QStackedLayout_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_widget); + return arg0->insertWidget(arg1, arg2); +} + +Pointer qt_QStackedLayout_widget_QWidget_QStackedLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeinstance(c, arg0->widget(arg1), "qt.QWidget"); +} + +void qt_QStackedLayout_addItem_void_QStackedLayout_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + QLayoutItem * arg1 = layoutitem(param_item); + if (isMuQtObject(arg0)) arg0->QStackedLayout::addItem(arg1); + else arg0->addItem(arg1); +} + +int qt_QStackedLayout_count_int_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QStackedLayout::count() : arg0->count(); +} + +bool qt_QStackedLayout_hasHeightForWidth_bool_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QStackedLayout::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QStackedLayout_heightForWidth_int_QStackedLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + int arg1 = (int)(param_width); + return isMuQtObject(arg0) ? arg0->QStackedLayout::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QStackedLayout_itemAt_QLayoutItem_QStackedLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QStackedLayout::itemAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->itemAt(arg1), "qt.QLayoutItem"); +} + +Pointer qt_QStackedLayout_minimumSize_QSize_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStackedLayout::minimumSize(),"qt.QSize") : makeqtype(c,arg0->minimumSize(),"qt.QSize"); +} + +void qt_QStackedLayout_setGeometry_void_QStackedLayout_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + if (isMuQtObject(arg0)) arg0->QStackedLayout::setGeometry(arg1); + else arg0->setGeometry(arg1); +} + +Pointer qt_QStackedLayout_sizeHint_QSize_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStackedLayout::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QStackedLayout_takeAt_QLayoutItem_QStackedLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QStackedLayout::takeAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->takeAt(arg1), "qt.QLayoutItem"); +} + +int qt_QStackedLayout_indexOf_int_QStackedLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + const QWidget * arg1 = object(param_widget); + return isMuQtObject(arg0) ? arg0->QStackedLayout::indexOf(arg1) : arg0->indexOf(arg1); +} + +Pointer qt_QStackedLayout_replaceWidget_QLayoutItem_QStackedLayout_QWidget_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_from, Pointer param_to, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + QWidget * arg1 = object(param_from); + QWidget * arg2 = object(param_to); + Qt::FindChildOptions arg3 = (Qt::FindChildOptions)(param_options); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QStackedLayout::replaceWidget(arg1, arg2, arg3), "qt.QLayoutItem") : makelayoutitem(c, arg0->replaceWidget(arg1, arg2, arg3), "qt.QLayoutItem"); +} + +void qt_QStackedLayout_setSpacing_void_QStackedLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param__p3) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + int arg1 = (int)(param__p3); + if (isMuQtObject(arg0)) arg0->QStackedLayout::setSpacing(arg1); + else arg0->setSpacing(arg1); +} + +int qt_QStackedLayout_spacing_int_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QStackedLayout::spacing() : arg0->spacing(); +} + +int qt_QStackedLayout_controlTypes_int_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QStackedLayout::controlTypes()) : int(arg0->controlTypes()); +} + +int qt_QStackedLayout_expandingDirections_int_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QStackedLayout::expandingDirections()) : int(arg0->expandingDirections()); +} + +Pointer qt_QStackedLayout_geometry_QRect_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStackedLayout::geometry(),"qt.QRect") : makeqtype(c,arg0->geometry(),"qt.QRect"); +} + +void qt_QStackedLayout_invalidate_void_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QStackedLayout::invalidate(); + else arg0->invalidate(); +} + +bool qt_QStackedLayout_isEmpty_bool_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QStackedLayout::isEmpty() : arg0->isEmpty(); +} + +Pointer qt_QStackedLayout_layout_QLayout_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QStackedLayout::layout(), "qt.QLayout") : makeinstance(c, arg0->layout(), "qt.QLayout"); +} + +Pointer qt_QStackedLayout_maximumSize_QSize_QStackedLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStackedLayout::maximumSize(),"qt.QSize") : makeqtype(c,arg0->maximumSize(),"qt.QSize"); +} + + +static NODE_IMPLEMENTATION(_n_QStackedLayout0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_QStackedLayout_QStackedLayout_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QStackedLayout1, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_QStackedLayout_QStackedLayout_QStackedLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QStackedLayout2, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_QStackedLayout_QStackedLayout_QStackedLayout_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addWidget0, int) +{ + NODE_RETURN(qt_QStackedLayout_addWidget_int_QStackedLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentWidget0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_currentWidget_QWidget_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertWidget0, int) +{ + NODE_RETURN(qt_QStackedLayout_insertWidget_int_QStackedLayout_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_widget_QWidget_QStackedLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_addItem0, void) +{ + qt_QStackedLayout_addItem_void_QStackedLayout_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QStackedLayout_count_int_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QStackedLayout_hasHeightForWidth_bool_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QStackedLayout_heightForWidth_int_QStackedLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_itemAt0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_itemAt_QLayoutItem_QStackedLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSize0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_minimumSize_QSize_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setGeometry0, void) +{ + qt_QStackedLayout_setGeometry_void_QStackedLayout_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_sizeHint_QSize_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_takeAt0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_takeAt_QLayoutItem_QStackedLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_indexOf0, int) +{ + NODE_RETURN(qt_QStackedLayout_indexOf_int_QStackedLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_replaceWidget0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_replaceWidget_QLayoutItem_QStackedLayout_QWidget_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_setSpacing0, void) +{ + qt_QStackedLayout_setSpacing_void_QStackedLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_spacing0, int) +{ + NODE_RETURN(qt_QStackedLayout_spacing_int_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_controlTypes0, int) +{ + NODE_RETURN(qt_QStackedLayout_controlTypes_int_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expandingDirections0, int) +{ + NODE_RETURN(qt_QStackedLayout_expandingDirections_int_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_geometry0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_geometry_QRect_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_invalidate0, void) +{ + qt_QStackedLayout_invalidate_void_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QStackedLayout_isEmpty_bool_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_layout0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_layout_QLayout_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_maximumSize0, Pointer) +{ + NODE_RETURN(qt_QStackedLayout_maximumSize_QSize_QStackedLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QStackedLayoutType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QStackedLayout_QStackedLayout_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QStackedLayout", _n_QStackedLayout0, None, Compiled, qt_QStackedLayout_QStackedLayout_QStackedLayout_QStackedLayout, Return, "qt.QStackedLayout", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + new Function(c, "QStackedLayout", _n_QStackedLayout1, None, Compiled, qt_QStackedLayout_QStackedLayout_QStackedLayout_QStackedLayout_QWidget, Return, "qt.QStackedLayout", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QStackedLayout", _n_QStackedLayout2, None, Compiled, qt_QStackedLayout_QStackedLayout_QStackedLayout_QStackedLayout_QLayout, Return, "qt.QStackedLayout", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "parentLayout", "qt.QLayout"), End), + new Function(c, "addWidget", _n_addWidget0, None, Compiled, qt_QStackedLayout_addWidget_int_QStackedLayout_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: currentIndex (int; QStackedLayout this) + new Function(c, "currentWidget", _n_currentWidget0, None, Compiled, qt_QStackedLayout_currentWidget_QWidget_QStackedLayout, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + new Function(c, "insertWidget", _n_insertWidget0, None, Compiled, qt_QStackedLayout_insertWidget_int_QStackedLayout_int_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "index", "int"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: setStackingMode (void; QStackedLayout this, flags QStackedLayout::StackingMode stackingMode) + // PROP: stackingMode (flags QStackedLayout::StackingMode; QStackedLayout this) + new Function(c, "widget", _n_widget0, None, Compiled, qt_QStackedLayout_widget_QWidget_QStackedLayout_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "index", "int"), End), + _func[0] = new MemberFunction(c, "addItem", _n_addItem0, None, Compiled, qt_QStackedLayout_addItem_void_QStackedLayout_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "item", "qt.QLayoutItem"), End), + _func[1] = new MemberFunction(c, "count", _n_count0, None, Compiled, qt_QStackedLayout_count_int_QStackedLayout, Return, "int", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[2] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QStackedLayout_hasHeightForWidth_bool_QStackedLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[3] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QStackedLayout_heightForWidth_int_QStackedLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "width", "int"), End), + _func[4] = new MemberFunction(c, "itemAt", _n_itemAt0, None, Compiled, qt_QStackedLayout_itemAt_QLayoutItem_QStackedLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "index", "int"), End), + _func[5] = new MemberFunction(c, "minimumSize", _n_minimumSize0, None, Compiled, qt_QStackedLayout_minimumSize_QSize_QStackedLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[6] = new MemberFunction(c, "setGeometry", _n_setGeometry0, None, Compiled, qt_QStackedLayout_setGeometry_void_QStackedLayout_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "rect", "qt.QRect"), End), + _func[7] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QStackedLayout_sizeHint_QSize_QStackedLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[8] = new MemberFunction(c, "takeAt", _n_takeAt0, None, Compiled, qt_QStackedLayout_takeAt_QLayoutItem_QStackedLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "index", "int"), End), + _func[9] = new MemberFunction(c, "indexOf", _n_indexOf0, None, Compiled, qt_QStackedLayout_indexOf_int_QStackedLayout_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "widget", "qt.QWidget"), End), + _func[10] = new MemberFunction(c, "replaceWidget", _n_replaceWidget0, None, Compiled, qt_QStackedLayout_replaceWidget_QLayoutItem_QStackedLayout_QWidget_QWidget_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "from", "qt.QWidget"), new Param(c, "to", "qt.QWidget"), new Param(c, "options", "int", Value((int)Qt::FindChildrenRecursively)), End), + _func[11] = new MemberFunction(c, "setSpacing", _n_setSpacing0, None, Compiled, qt_QStackedLayout_setSpacing_void_QStackedLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QStackedLayout"), new Param(c, "_p3", "int"), End), + _func[12] = new MemberFunction(c, "spacing", _n_spacing0, None, Compiled, qt_QStackedLayout_spacing_int_QStackedLayout, Return, "int", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[13] = new MemberFunction(c, "controlTypes", _n_controlTypes0, None, Compiled, qt_QStackedLayout_controlTypes_int_QStackedLayout, Return, "int", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[14] = new MemberFunction(c, "expandingDirections", _n_expandingDirections0, None, Compiled, qt_QStackedLayout_expandingDirections_int_QStackedLayout, Return, "int", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[15] = new MemberFunction(c, "geometry", _n_geometry0, None, Compiled, qt_QStackedLayout_geometry_QRect_QStackedLayout, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[16] = new MemberFunction(c, "invalidate", _n_invalidate0, None, Compiled, qt_QStackedLayout_invalidate_void_QStackedLayout, Return, "void", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[17] = new MemberFunction(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QStackedLayout_isEmpty_bool_QStackedLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[18] = new MemberFunction(c, "layout", _n_layout0, None, Compiled, qt_QStackedLayout_layout_QLayout_QStackedLayout, Return, "qt.QLayout", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + _func[19] = new MemberFunction(c, "maximumSize", _n_maximumSize0, None, Compiled, qt_QStackedLayout_maximumSize_QSize_QStackedLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QStackedLayout"), End), + // MISSING: childEvent (void; QStackedLayout this, "QChildEvent *" e) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char* propExclusions[] = {"count", 0}; + + populate(this, QStackedLayout::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QStackedWidgetType.cpp b/src/lib/mu/MuQt6/QStackedWidgetType.cpp new file mode 100644 index 000000000..3bfd2ec3d --- /dev/null +++ b/src/lib/mu/MuQt6/QStackedWidgetType.cpp @@ -0,0 +1,410 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QStackedWidget::~MuQt_QStackedWidget() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QStackedWidget::MuQt_QStackedWidget(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QStackedWidget(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStackedWidget")); +} + +bool MuQt_QStackedWidget::event(QEvent * e) +{ + if (!_env) return QStackedWidget::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStackedWidget::event(e); + } +} + +QSize MuQt_QStackedWidget::sizeHint() const +{ + if (!_env) return QStackedWidget::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStackedWidget::sizeHint(); + } +} + +void MuQt_QStackedWidget::changeEvent(QEvent * ev) +{ + if (!_env) { QStackedWidget::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QStackedWidget::changeEvent(ev); + } +} + +void MuQt_QStackedWidget::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QStackedWidget::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QStackedWidget::paintEvent(_p14); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QStackedWidgetType::QStackedWidgetType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QStackedWidgetType::~QStackedWidgetType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QStackedWidget_QStackedWidget_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QStackedWidget* w = object(widget)) + { + QStackedWidgetType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStackedWidget"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QStackedWidget_QStackedWidget_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QStackedWidget_QStackedWidget_QStackedWidget_QStackedWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QStackedWidget(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +int qt_QStackedWidget_addWidget_int_QStackedWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + return arg0->addWidget(arg1); +} + +Pointer qt_QStackedWidget_currentWidget_QWidget_QStackedWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedWidget* arg0 = object(param_this); + return makeinstance(c, arg0->currentWidget(), "qt.QWidget"); +} + +int qt_QStackedWidget_indexOf_int_QStackedWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedWidget* arg0 = object(param_this); + const QWidget * arg1 = object(param_widget); + return arg0->indexOf(arg1); +} + +int qt_QStackedWidget_insertWidget_int_QStackedWidget_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_widget); + return arg0->insertWidget(arg1, arg2); +} + +void qt_QStackedWidget_removeWidget_void_QStackedWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->removeWidget(arg1); +} + +Pointer qt_QStackedWidget_widget_QWidget_QStackedWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeinstance(c, arg0->widget(arg1), "qt.QWidget"); +} + +bool qt_QStackedWidget_event_bool_QStackedWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QStackedWidget*)arg0)->event_pub_parent(arg1) : ((MuQt_QStackedWidget*)arg0)->event_pub(arg1); +} + +Pointer qt_QStackedWidget_sizeHint_QSize_QStackedWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStackedWidget::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QStackedWidget_changeEvent_void_QStackedWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QStackedWidget*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QStackedWidget*)arg0)->changeEvent_pub(arg1); +} + +void qt_QStackedWidget_paintEvent_void_QStackedWidget_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStackedWidget* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QStackedWidget*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QStackedWidget*)arg0)->paintEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QStackedWidget0, Pointer) +{ + NODE_RETURN(qt_QStackedWidget_QStackedWidget_QStackedWidget_QStackedWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addWidget0, int) +{ + NODE_RETURN(qt_QStackedWidget_addWidget_int_QStackedWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentWidget0, Pointer) +{ + NODE_RETURN(qt_QStackedWidget_currentWidget_QWidget_QStackedWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexOf0, int) +{ + NODE_RETURN(qt_QStackedWidget_indexOf_int_QStackedWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertWidget0, int) +{ + NODE_RETURN(qt_QStackedWidget_insertWidget_int_QStackedWidget_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeWidget0, void) +{ + qt_QStackedWidget_removeWidget_void_QStackedWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QStackedWidget_widget_QWidget_QStackedWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QStackedWidget_event_bool_QStackedWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QStackedWidget_sizeHint_QSize_QStackedWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QStackedWidget_changeEvent_void_QStackedWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QStackedWidget_paintEvent_void_QStackedWidget_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QStackedWidgetType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QStackedWidget_QStackedWidget_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QStackedWidget", _n_QStackedWidget0, None, Compiled, qt_QStackedWidget_QStackedWidget_QStackedWidget_QStackedWidget_QWidget, Return, "qt.QStackedWidget", Parameters, new Param(c, "this", "qt.QStackedWidget"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addWidget", _n_addWidget0, None, Compiled, qt_QStackedWidget_addWidget_int_QStackedWidget_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QStackedWidget"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: count (int; QStackedWidget this) + // PROP: currentIndex (int; QStackedWidget this) + new Function(c, "currentWidget", _n_currentWidget0, None, Compiled, qt_QStackedWidget_currentWidget_QWidget_QStackedWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QStackedWidget"), End), + new Function(c, "indexOf", _n_indexOf0, None, Compiled, qt_QStackedWidget_indexOf_int_QStackedWidget_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QStackedWidget"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "insertWidget", _n_insertWidget0, None, Compiled, qt_QStackedWidget_insertWidget_int_QStackedWidget_int_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QStackedWidget"), new Param(c, "index", "int"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "removeWidget", _n_removeWidget0, None, Compiled, qt_QStackedWidget_removeWidget_void_QStackedWidget_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QStackedWidget"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "widget", _n_widget0, None, Compiled, qt_QStackedWidget_widget_QWidget_QStackedWidget_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QStackedWidget"), new Param(c, "index", "int"), End), + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QStackedWidget_event_bool_QStackedWidget_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QStackedWidget"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QStackedWidget_sizeHint_QSize_QStackedWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QStackedWidget"), End), + // MISSING: initStyleOption (void; QStackedWidget this, "QStyleOptionFrame *" option) // protected + _func[2] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QStackedWidget_changeEvent_void_QStackedWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStackedWidget"), new Param(c, "ev", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QStackedWidget_paintEvent_void_QStackedWidget_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStackedWidget"), new Param(c, "_p14", "qt.QPaintEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QStackedWidget::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QStandardItemModelType.cpp b/src/lib/mu/MuQt6/QStandardItemModelType.cpp new file mode 100644 index 000000000..26132587f --- /dev/null +++ b/src/lib/mu/MuQt6/QStandardItemModelType.cpp @@ -0,0 +1,1765 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QStandardItemModel::~MuQt_QStandardItemModel() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QStandardItemModel::MuQt_QStandardItemModel(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QStandardItemModel(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStandardItemModel")); +} + +MuQt_QStandardItemModel::MuQt_QStandardItemModel(Pointer muobj, const CallEnvironment* ce, int rows, int columns, QObject * parent) + : QStandardItemModel(rows, columns, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStandardItemModel")); +} + +bool MuQt_QStandardItemModel::clearItemData(const QModelIndex & index) +{ + if (!_env) return QStandardItemModel::clearItemData(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::clearItemData(index); + } +} + +int MuQt_QStandardItemModel::columnCount(const QModelIndex & parent) const +{ + if (!_env) return QStandardItemModel::columnCount(parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QStandardItemModel::columnCount(parent); + } +} + +QVariant MuQt_QStandardItemModel::data(const QModelIndex & index, int role) const +{ + if (!_env) return QStandardItemModel::data(index, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(role); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStandardItemModel::data(index, role); + } +} + +bool MuQt_QStandardItemModel::dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) +{ + if (!_env) return QStandardItemModel::dropMimeData(data, action, row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,data,"qt.QMimeData")); + args[2] = Value(int(action)); + args[3] = Value(row); + args[4] = Value(column); + args[5] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::dropMimeData(data, action, row, column, parent); + } +} + +Qt::ItemFlags MuQt_QStandardItemModel::flags(const QModelIndex & index) const +{ + if (!_env) return QStandardItemModel::flags(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (Qt::ItemFlags)(rval._int); + } + else + { + return QStandardItemModel::flags(index); + } +} + +bool MuQt_QStandardItemModel::hasChildren(const QModelIndex & parent) const +{ + if (!_env) return QStandardItemModel::hasChildren(parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::hasChildren(parent); + } +} + +QVariant MuQt_QStandardItemModel::headerData(int section, Qt::Orientation orientation, int role) const +{ + if (!_env) return QStandardItemModel::headerData(section, orientation, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(section); + args[2] = Value(int(orientation)); + args[3] = Value(role); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStandardItemModel::headerData(section, orientation, role); + } +} + +QModelIndex MuQt_QStandardItemModel::index(int row, int column, const QModelIndex & parent) const +{ + if (!_env) return QStandardItemModel::index(row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(column); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStandardItemModel::index(row, column, parent); + } +} + +bool MuQt_QStandardItemModel::insertColumns(int column, int count, const QModelIndex & parent) +{ + if (!_env) return QStandardItemModel::insertColumns(column, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::insertColumns(column, count, parent); + } +} + +bool MuQt_QStandardItemModel::insertRows(int row, int count, const QModelIndex & parent) +{ + if (!_env) return QStandardItemModel::insertRows(row, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::insertRows(row, count, parent); + } +} + +QMimeData * MuQt_QStandardItemModel::mimeData(const QModelIndexList & indexes) const +{ + if (!_env) return QStandardItemModel::mimeData(indexes); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqmodelindexlist(c,indexes)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QStandardItemModel::mimeData(indexes); + } +} + +QStringList MuQt_QStandardItemModel::mimeTypes() const +{ + if (!_env) return QStandardItemModel::mimeTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QStandardItemModel::mimeTypes(); + } +} + +QModelIndex MuQt_QStandardItemModel::parent(const QModelIndex & child) const +{ + if (!_env) return QStandardItemModel::parent(child); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,child,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStandardItemModel::parent(child); + } +} + +bool MuQt_QStandardItemModel::removeColumns(int column, int count, const QModelIndex & parent) +{ + if (!_env) return QStandardItemModel::removeColumns(column, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::removeColumns(column, count, parent); + } +} + +bool MuQt_QStandardItemModel::removeRows(int row, int count, const QModelIndex & parent) +{ + if (!_env) return QStandardItemModel::removeRows(row, count, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(count); + args[3] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::removeRows(row, count, parent); + } +} + +int MuQt_QStandardItemModel::rowCount(const QModelIndex & parent) const +{ + if (!_env) return QStandardItemModel::rowCount(parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QStandardItemModel::rowCount(parent); + } +} + +bool MuQt_QStandardItemModel::setData(const QModelIndex & index, const QVariant & value, int role) +{ + if (!_env) return QStandardItemModel::setData(index, value, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,value,"qt.QVariant")); + args[3] = Value(role); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::setData(index, value, role); + } +} + +bool MuQt_QStandardItemModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant & value, int role) +{ + if (!_env) return QStandardItemModel::setHeaderData(section, orientation, value, role); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(5); + args[0] = Value(Pointer(_obj)); + args[1] = Value(section); + args[2] = Value(int(orientation)); + args[3] = Value(makeqtype(c,value,"qt.QVariant")); + args[4] = Value(role); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::setHeaderData(section, orientation, value, role); + } +} + +void MuQt_QStandardItemModel::sort(int column, Qt::SortOrder order) +{ + if (!_env) { QStandardItemModel::sort(column, order); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + args[2] = Value(int(order)); + Value rval = _env->call(F, args); + } + else + { + QStandardItemModel::sort(column, order); + } +} + +Qt::DropActions MuQt_QStandardItemModel::supportedDropActions() const +{ + if (!_env) return QStandardItemModel::supportedDropActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QStandardItemModel::supportedDropActions(); + } +} + +QModelIndex MuQt_QStandardItemModel::buddy(const QModelIndex & index) const +{ + if (!_env) return QStandardItemModel::buddy(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStandardItemModel::buddy(index); + } +} + +bool MuQt_QStandardItemModel::canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const +{ + if (!_env) return QStandardItemModel::canDropMimeData(data, action, row, column, parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,data,"qt.QMimeData")); + args[2] = Value(int(action)); + args[3] = Value(row); + args[4] = Value(column); + args[5] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::canDropMimeData(data, action, row, column, parent); + } +} + +bool MuQt_QStandardItemModel::canFetchMore(const QModelIndex & parent) const +{ + if (!_env) return QStandardItemModel::canFetchMore(parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::canFetchMore(parent); + } +} + +void MuQt_QStandardItemModel::fetchMore(const QModelIndex & parent) +{ + if (!_env) { QStandardItemModel::fetchMore(parent); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QStandardItemModel::fetchMore(parent); + } +} + +QModelIndexList MuQt_QStandardItemModel::match(const QModelIndex & start, int role, const QVariant & value, int hits, Qt::MatchFlags flags) const +{ + if (!_env) return QStandardItemModel::match(start, role, value, hits, flags); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,start,"qt.QModelIndex")); + args[2] = Value(role); + args[3] = Value(makeqtype(c,value,"qt.QVariant")); + args[4] = Value(hits); + args[5] = Value(int(flags)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QStandardItemModel::match(start, role, value, hits, flags); + } +} + +bool MuQt_QStandardItemModel::moveColumns(const QModelIndex & sourceParent, int sourceColumn, int count, const QModelIndex & destinationParent, int destinationChild) +{ + if (!_env) return QStandardItemModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,sourceParent,"qt.QModelIndex")); + args[2] = Value(sourceColumn); + args[3] = Value(count); + args[4] = Value(makeqtype(c,destinationParent,"qt.QModelIndex")); + args[5] = Value(destinationChild); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); + } +} + +bool MuQt_QStandardItemModel::moveRows(const QModelIndex & sourceParent, int sourceRow, int count, const QModelIndex & destinationParent, int destinationChild) +{ + if (!_env) return QStandardItemModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(6); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,sourceParent,"qt.QModelIndex")); + args[2] = Value(sourceRow); + args[3] = Value(count); + args[4] = Value(makeqtype(c,destinationParent,"qt.QModelIndex")); + args[5] = Value(destinationChild); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStandardItemModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); + } +} + +QModelIndex MuQt_QStandardItemModel::sibling(int row, int column, const QModelIndex & index) const +{ + if (!_env) return QStandardItemModel::sibling(row, column, index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(column); + args[3] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStandardItemModel::sibling(row, column, index); + } +} + +QSize MuQt_QStandardItemModel::span(const QModelIndex & index) const +{ + if (!_env) return QStandardItemModel::span(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStandardItemModel::span(index); + } +} + +Qt::DropActions MuQt_QStandardItemModel::supportedDragActions() const +{ + if (!_env) return QStandardItemModel::supportedDragActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QStandardItemModel::supportedDragActions(); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QStandardItemModelType::QStandardItemModelType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QStandardItemModelType::~QStandardItemModelType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QStandardItemModel_QStandardItemModel_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QStandardItemModel* w = object(widget)) + { + QStandardItemModelType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStandardItemModel"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QStandardItemModel_QStandardItemModel_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QStandardItemModel_QStandardItemModel_QStandardItemModel_QStandardItemModel_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QStandardItemModel(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QStandardItemModel_QStandardItemModel_QStandardItemModel_QStandardItemModel_int_int_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, int param_rows, int param_columns, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_rows); + int arg2 = (int)(param_columns); + QObject * arg3 = object(param_parent); + setobject(param_this, new MuQt_QStandardItemModel(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2, arg3)); + return param_this; +} + +void qt_QStandardItemModel_appendColumn_void_QStandardItemModel_qt__QStandardItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QList arg1 = qpointerlist(param_items); + arg0->appendColumn(arg1); +} + +void qt_QStandardItemModel_appendRow_void_QStandardItemModel_qt__QStandardItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QList arg1 = qpointerlist(param_items); + arg0->appendRow(arg1); +} + +void qt_QStandardItemModel_appendRow_void_QStandardItemModel_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + QStandardItem * arg1 = getqpointer(param_item); + arg0->appendRow(arg1); +} + +void qt_QStandardItemModel_clear_void_QStandardItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + arg0->clear(); +} + +Pointer qt_QStandardItemModel_findItems_qt__QStandardItemBSB_ESB__QStandardItemModel_string_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, int param_flags, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + Qt::MatchFlags arg2 = (Qt::MatchFlags)(param_flags); + int arg3 = (int)(param_column); + return makeqpointerlist(c,arg0->findItems(arg1, arg2, arg3),"qt.QStandardItem"); +} + +Pointer qt_QStandardItemModel_horizontalHeaderItem_QStandardItem_QStandardItemModel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + return makeqpointer(c,arg0->horizontalHeaderItem(arg1),"qt.QStandardItem"); +} + +Pointer qt_QStandardItemModel_indexFromItem_QModelIndex_QStandardItemModel_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QStandardItem * arg1 = getqpointer(param_item); + return makeqtype(c,arg0->indexFromItem(arg1),"qt.QModelIndex"); +} + +void qt_QStandardItemModel_insertColumn_void_QStandardItemModel_int_qt__QStandardItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + const QList arg2 = qpointerlist(param_items); + arg0->insertColumn(arg1, arg2); +} + +bool qt_QStandardItemModel_insertColumn_bool_QStandardItemModel_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->insertColumn(arg1, arg2); +} + +void qt_QStandardItemModel_insertRow_void_QStandardItemModel_int_qt__QStandardItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QList arg2 = qpointerlist(param_items); + arg0->insertRow(arg1, arg2); +} + +void qt_QStandardItemModel_insertRow_void_QStandardItemModel_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + QStandardItem * arg2 = getqpointer(param_item); + arg0->insertRow(arg1, arg2); +} + +bool qt_QStandardItemModel_insertRow_bool_QStandardItemModel_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->insertRow(arg1, arg2); +} + +Pointer qt_QStandardItemModel_invisibleRootItem_QStandardItem_QStandardItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + return makeqpointer(c,arg0->invisibleRootItem(),"qt.QStandardItem"); +} + +Pointer qt_QStandardItemModel_item_QStandardItem_QStandardItemModel_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return makeqpointer(c,arg0->item(arg1, arg2),"qt.QStandardItem"); +} + +Pointer qt_QStandardItemModel_itemFromIndex_QStandardItem_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeqpointer(c,arg0->itemFromIndex(arg1),"qt.QStandardItem"); +} + +Pointer qt_QStandardItemModel_itemPrototype_QStandardItem_QStandardItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + return makeqpointer(c,arg0->itemPrototype(),"qt.QStandardItem"); +} + +void qt_QStandardItemModel_setColumnCount_void_QStandardItemModel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_columns) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_columns); + arg0->setColumnCount(arg1); +} + +void qt_QStandardItemModel_setHorizontalHeaderItem_void_QStandardItemModel_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + QStandardItem * arg2 = getqpointer(param_item); + arg0->setHorizontalHeaderItem(arg1, arg2); +} + +void qt_QStandardItemModel_setHorizontalHeaderLabels_void_QStandardItemModel_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_labels) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_labels); + arg0->setHorizontalHeaderLabels(arg1); +} + +void qt_QStandardItemModel_setItem_void_QStandardItemModel_int_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + QStandardItem * arg3 = getqpointer(param_item); + arg0->setItem(arg1, arg2, arg3); +} + +void qt_QStandardItemModel_setItem_void_QStandardItemModel_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + QStandardItem * arg2 = getqpointer(param_item); + arg0->setItem(arg1, arg2); +} + +void qt_QStandardItemModel_setItemPrototype_void_QStandardItemModel_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QStandardItem * arg1 = getqpointer(param_item); + arg0->setItemPrototype(arg1); +} + +void qt_QStandardItemModel_setRowCount_void_QStandardItemModel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_rows) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_rows); + arg0->setRowCount(arg1); +} + +void qt_QStandardItemModel_setVerticalHeaderItem_void_QStandardItemModel_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + QStandardItem * arg2 = getqpointer(param_item); + arg0->setVerticalHeaderItem(arg1, arg2); +} + +void qt_QStandardItemModel_setVerticalHeaderLabels_void_QStandardItemModel_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_labels) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_labels); + arg0->setVerticalHeaderLabels(arg1); +} + +Pointer qt_QStandardItemModel_takeColumn_qt__QStandardItemBSB_ESB__QStandardItemModel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + return makeqpointerlist(c,arg0->takeColumn(arg1),"qt.QStandardItem"); +} + +Pointer qt_QStandardItemModel_takeHorizontalHeaderItem_QStandardItem_QStandardItemModel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + return makeqpointer(c,arg0->takeHorizontalHeaderItem(arg1),"qt.QStandardItem"); +} + +Pointer qt_QStandardItemModel_takeItem_QStandardItem_QStandardItemModel_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return makeqpointer(c,arg0->takeItem(arg1, arg2),"qt.QStandardItem"); +} + +Pointer qt_QStandardItemModel_takeRow_qt__QStandardItemBSB_ESB__QStandardItemModel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + return makeqpointerlist(c,arg0->takeRow(arg1),"qt.QStandardItem"); +} + +Pointer qt_QStandardItemModel_takeVerticalHeaderItem_QStandardItem_QStandardItemModel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + return makeqpointer(c,arg0->takeVerticalHeaderItem(arg1),"qt.QStandardItem"); +} + +Pointer qt_QStandardItemModel_verticalHeaderItem_QStandardItem_QStandardItemModel_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + return makeqpointer(c,arg0->verticalHeaderItem(arg1),"qt.QStandardItem"); +} + +bool qt_QStandardItemModel_clearItemData_bool_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::clearItemData(arg1) : arg0->clearItemData(arg1); +} + +int qt_QStandardItemModel_columnCount_int_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::columnCount(arg1) : arg0->columnCount(arg1); +} + +Pointer qt_QStandardItemModel_data_QVariant_QStandardItemModel_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + int arg2 = (int)(param_role); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStandardItemModel::data(arg1, arg2),"qt.QVariant") : makeqtype(c,arg0->data(arg1, arg2),"qt.QVariant"); +} + +bool qt_QStandardItemModel_dropMimeData_bool_QStandardItemModel_QMimeData_int_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, int param_action, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QMimeData * arg1 = object(param_data); + Qt::DropAction arg2 = (Qt::DropAction)(param_action); + int arg3 = (int)(param_row); + int arg4 = (int)(param_column); + const QModelIndex arg5 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::dropMimeData(arg1, arg2, arg3, arg4, arg5) : arg0->dropMimeData(arg1, arg2, arg3, arg4, arg5); +} + +int qt_QStandardItemModel_flags_int_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? int(arg0->QStandardItemModel::flags(arg1)) : int(arg0->flags(arg1)); +} + +bool qt_QStandardItemModel_hasChildren_bool_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::hasChildren(arg1) : arg0->hasChildren(arg1); +} + +Pointer qt_QStandardItemModel_headerData_QVariant_QStandardItemModel_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_section, int param_orientation, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_section); + Qt::Orientation arg2 = (Qt::Orientation)(param_orientation); + int arg3 = (int)(param_role); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStandardItemModel::headerData(arg1, arg2, arg3),"qt.QVariant") : makeqtype(c,arg0->headerData(arg1, arg2, arg3),"qt.QVariant"); +} + +Pointer qt_QStandardItemModel_index_QModelIndex_QStandardItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStandardItemModel::index(arg1, arg2, arg3),"qt.QModelIndex") : makeqtype(c,arg0->index(arg1, arg2, arg3),"qt.QModelIndex"); +} + +bool qt_QStandardItemModel_insertColumns_bool_QStandardItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::insertColumns(arg1, arg2, arg3) : arg0->insertColumns(arg1, arg2, arg3); +} + +bool qt_QStandardItemModel_insertRows_bool_QStandardItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::insertRows(arg1, arg2, arg3) : arg0->insertRows(arg1, arg2, arg3); +} + +Pointer qt_QStandardItemModel_mimeData_QMimeData_QStandardItemModel_qt__QModelIndexBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_indexes) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndexList arg1 = qmodelindexlist(param_indexes); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QStandardItemModel::mimeData(arg1), "qt.QMimeData") : makeinstance(c, arg0->mimeData(arg1), "qt.QMimeData"); +} + +Pointer qt_QStandardItemModel_mimeTypes_stringBSB_ESB__QStandardItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestringlist(c,arg0->QStandardItemModel::mimeTypes()) : makestringlist(c,arg0->mimeTypes()); +} + +Pointer qt_QStandardItemModel_parent_QModelIndex_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_child) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_child); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStandardItemModel::parent(arg1),"qt.QModelIndex") : makeqtype(c,arg0->parent(arg1),"qt.QModelIndex"); +} + +bool qt_QStandardItemModel_removeColumns_bool_QStandardItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::removeColumns(arg1, arg2, arg3) : arg0->removeColumns(arg1, arg2, arg3); +} + +bool qt_QStandardItemModel_removeRows_bool_QStandardItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_count, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_count); + const QModelIndex arg3 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::removeRows(arg1, arg2, arg3) : arg0->removeRows(arg1, arg2, arg3); +} + +int qt_QStandardItemModel_rowCount_int_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::rowCount(arg1) : arg0->rowCount(arg1); +} + +bool qt_QStandardItemModel_setData_bool_QStandardItemModel_QModelIndex_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_value, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + const QVariant arg2 = getqtype(param_value); + int arg3 = (int)(param_role); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::setData(arg1, arg2, arg3) : arg0->setData(arg1, arg2, arg3); +} + +bool qt_QStandardItemModel_setHeaderData_bool_QStandardItemModel_int_int_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_section, int param_orientation, Pointer param_value, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_section); + Qt::Orientation arg2 = (Qt::Orientation)(param_orientation); + const QVariant arg3 = getqtype(param_value); + int arg4 = (int)(param_role); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::setHeaderData(arg1, arg2, arg3, arg4) : arg0->setHeaderData(arg1, arg2, arg3, arg4); +} + +void qt_QStandardItemModel_sort_void_QStandardItemModel_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_order) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_column); + Qt::SortOrder arg2 = (Qt::SortOrder)(param_order); + if (isMuQtObject(arg0)) arg0->QStandardItemModel::sort(arg1, arg2); + else arg0->sort(arg1, arg2); +} + +int qt_QStandardItemModel_supportedDropActions_int_QStandardItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QStandardItemModel::supportedDropActions()) : int(arg0->supportedDropActions()); +} + +Pointer qt_QStandardItemModel_buddy_QModelIndex_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStandardItemModel::buddy(arg1),"qt.QModelIndex") : makeqtype(c,arg0->buddy(arg1),"qt.QModelIndex"); +} + +bool qt_QStandardItemModel_canDropMimeData_bool_QStandardItemModel_QMimeData_int_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, int param_action, int param_row, int param_column, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QMimeData * arg1 = object(param_data); + Qt::DropAction arg2 = (Qt::DropAction)(param_action); + int arg3 = (int)(param_row); + int arg4 = (int)(param_column); + const QModelIndex arg5 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::canDropMimeData(arg1, arg2, arg3, arg4, arg5) : arg0->canDropMimeData(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QStandardItemModel_canFetchMore_bool_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::canFetchMore(arg1) : arg0->canFetchMore(arg1); +} + +void qt_QStandardItemModel_fetchMore_void_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + if (isMuQtObject(arg0)) arg0->QStandardItemModel::fetchMore(arg1); + else arg0->fetchMore(arg1); +} + +Pointer qt_QStandardItemModel_match_qt__QModelIndexBSB_ESB__QStandardItemModel_QModelIndex_int_QVariant_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_start, int param_role, Pointer param_value, int param_hits, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_start); + int arg2 = (int)(param_role); + const QVariant arg3 = getqtype(param_value); + int arg4 = (int)(param_hits); + Qt::MatchFlags arg5 = (Qt::MatchFlags)(param_flags); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,arg0->QStandardItemModel::match(arg1, arg2, arg3, arg4, arg5)) : makeqmodelindexlist(c,arg0->match(arg1, arg2, arg3, arg4, arg5)); +} + +bool qt_QStandardItemModel_moveColumns_bool_QStandardItemModel_QModelIndex_int_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceColumn, int param_count, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceColumn); + int arg3 = (int)(param_count); + const QModelIndex arg4 = getqtype(param_destinationParent); + int arg5 = (int)(param_destinationChild); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::moveColumns(arg1, arg2, arg3, arg4, arg5) : arg0->moveColumns(arg1, arg2, arg3, arg4, arg5); +} + +bool qt_QStandardItemModel_moveRows_bool_QStandardItemModel_QModelIndex_int_int_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_sourceParent, int param_sourceRow, int param_count, Pointer param_destinationParent, int param_destinationChild) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_sourceParent); + int arg2 = (int)(param_sourceRow); + int arg3 = (int)(param_count); + const QModelIndex arg4 = getqtype(param_destinationParent); + int arg5 = (int)(param_destinationChild); + return isMuQtObject(arg0) ? arg0->QStandardItemModel::moveRows(arg1, arg2, arg3, arg4, arg5) : arg0->moveRows(arg1, arg2, arg3, arg4, arg5); +} + +Pointer qt_QStandardItemModel_sibling_QModelIndex_QStandardItemModel_int_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QModelIndex arg3 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStandardItemModel::sibling(arg1, arg2, arg3),"qt.QModelIndex") : makeqtype(c,arg0->sibling(arg1, arg2, arg3),"qt.QModelIndex"); +} + +Pointer qt_QStandardItemModel_span_QSize_QStandardItemModel_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStandardItemModel::span(arg1),"qt.QSize") : makeqtype(c,arg0->span(arg1),"qt.QSize"); +} + +int qt_QStandardItemModel_supportedDragActions_int_QStandardItemModel(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItemModel* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QStandardItemModel::supportedDragActions()) : int(arg0->supportedDragActions()); +} + + +static NODE_IMPLEMENTATION(_n_QStandardItemModel0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_QStandardItemModel_QStandardItemModel_QStandardItemModel_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QStandardItemModel1, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_QStandardItemModel_QStandardItemModel_QStandardItemModel_int_int_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_appendColumn0, void) +{ + qt_QStandardItemModel_appendColumn_void_QStandardItemModel_qt__QStandardItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_appendRow0, void) +{ + qt_QStandardItemModel_appendRow_void_QStandardItemModel_qt__QStandardItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_appendRow1, void) +{ + qt_QStandardItemModel_appendRow_void_QStandardItemModel_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QStandardItemModel_clear_void_QStandardItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_findItems0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_findItems_qt__QStandardItemBSB_ESB__QStandardItemModel_string_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_horizontalHeaderItem0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_horizontalHeaderItem_QStandardItem_QStandardItemModel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_indexFromItem0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_indexFromItem_QModelIndex_QStandardItemModel_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertColumn0, void) +{ + qt_QStandardItemModel_insertColumn_void_QStandardItemModel_int_qt__QStandardItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertColumn1, bool) +{ + NODE_RETURN(qt_QStandardItemModel_insertColumn_bool_QStandardItemModel_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertRow0, void) +{ + qt_QStandardItemModel_insertRow_void_QStandardItemModel_int_qt__QStandardItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRow1, void) +{ + qt_QStandardItemModel_insertRow_void_QStandardItemModel_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRow2, bool) +{ + NODE_RETURN(qt_QStandardItemModel_insertRow_bool_QStandardItemModel_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_invisibleRootItem0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_invisibleRootItem_QStandardItem_QStandardItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_item0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_item_QStandardItem_QStandardItemModel_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_itemFromIndex0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_itemFromIndex_QStandardItem_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemPrototype0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_itemPrototype_QStandardItem_QStandardItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setColumnCount0, void) +{ + qt_QStandardItemModel_setColumnCount_void_QStandardItemModel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setHorizontalHeaderItem0, void) +{ + qt_QStandardItemModel_setHorizontalHeaderItem_void_QStandardItemModel_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHorizontalHeaderLabels0, void) +{ + qt_QStandardItemModel_setHorizontalHeaderLabels_void_QStandardItemModel_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setItem0, void) +{ + qt_QStandardItemModel_setItem_void_QStandardItemModel_int_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setItem1, void) +{ + qt_QStandardItemModel_setItem_void_QStandardItemModel_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setItemPrototype0, void) +{ + qt_QStandardItemModel_setItemPrototype_void_QStandardItemModel_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRowCount0, void) +{ + qt_QStandardItemModel_setRowCount_void_QStandardItemModel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setVerticalHeaderItem0, void) +{ + qt_QStandardItemModel_setVerticalHeaderItem_void_QStandardItemModel_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setVerticalHeaderLabels0, void) +{ + qt_QStandardItemModel_setVerticalHeaderLabels_void_QStandardItemModel_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_takeColumn0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_takeColumn_qt__QStandardItemBSB_ESB__QStandardItemModel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_takeHorizontalHeaderItem0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_takeHorizontalHeaderItem_QStandardItem_QStandardItemModel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_takeItem0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_takeItem_QStandardItem_QStandardItemModel_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_takeRow0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_takeRow_qt__QStandardItemBSB_ESB__QStandardItemModel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_takeVerticalHeaderItem0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_takeVerticalHeaderItem_QStandardItem_QStandardItemModel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_verticalHeaderItem0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_verticalHeaderItem_QStandardItem_QStandardItemModel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_clearItemData0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_clearItemData_bool_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_columnCount0, int) +{ + NODE_RETURN(qt_QStandardItemModel_columnCount_int_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_data_QVariant_QStandardItemModel_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_dropMimeData0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_dropMimeData_bool_QStandardItemModel_QMimeData_int_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QStandardItemModel_flags_int_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasChildren0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_hasChildren_bool_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_headerData0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_headerData_QVariant_QStandardItemModel_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_index0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_index_QModelIndex_QStandardItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertColumns0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_insertColumns_bool_QStandardItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertRows0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_insertRows_bool_QStandardItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mimeData0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_mimeData_QMimeData_QStandardItemModel_qt__QModelIndexBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mimeTypes0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_mimeTypes_stringBSB_ESB__QStandardItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_parent0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_parent_QModelIndex_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeColumns0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_removeColumns_bool_QStandardItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeRows0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_removeRows_bool_QStandardItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rowCount0, int) +{ + NODE_RETURN(qt_QStandardItemModel_rowCount_int_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setData0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_setData_bool_QStandardItemModel_QModelIndex_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_setHeaderData0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_setHeaderData_bool_QStandardItemModel_int_int_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_sort0, void) +{ + qt_QStandardItemModel_sort_void_QStandardItemModel_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_supportedDropActions0, int) +{ + NODE_RETURN(qt_QStandardItemModel_supportedDropActions_int_QStandardItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_buddy0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_buddy_QModelIndex_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canDropMimeData0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_canDropMimeData_bool_QStandardItemModel_QMimeData_int_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int), NODE_ARG(5, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canFetchMore0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_canFetchMore_bool_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fetchMore0, void) +{ + qt_QStandardItemModel_fetchMore_void_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_match0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_match_qt__QModelIndexBSB_ESB__QStandardItemModel_QModelIndex_int_QVariant_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_moveColumns0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_moveColumns_bool_QStandardItemModel_QModelIndex_int_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, Pointer), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_moveRows0, bool) +{ + NODE_RETURN(qt_QStandardItemModel_moveRows_bool_QStandardItemModel_QModelIndex_int_int_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, Pointer), NODE_ARG(5, int))); +} + +static NODE_IMPLEMENTATION(_n_sibling0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_sibling_QModelIndex_QStandardItemModel_int_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_span0, Pointer) +{ + NODE_RETURN(qt_QStandardItemModel_span_QSize_QStandardItemModel_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportedDragActions0, int) +{ + NODE_RETURN(qt_QStandardItemModel_supportedDragActions_int_QStandardItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QStandardItemModelType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QStandardItemModel_QStandardItemModel_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QStandardItemModel", _n_QStandardItemModel0, None, Compiled, qt_QStandardItemModel_QStandardItemModel_QStandardItemModel_QStandardItemModel_QObject, Return, "qt.QStandardItemModel", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QStandardItemModel", _n_QStandardItemModel1, None, Compiled, qt_QStandardItemModel_QStandardItemModel_QStandardItemModel_QStandardItemModel_int_int_QObject, Return, "qt.QStandardItemModel", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "rows", "int"), new Param(c, "columns", "int"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "appendColumn", _n_appendColumn0, None, Compiled, qt_QStandardItemModel_appendColumn_void_QStandardItemModel_qt__QStandardItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "items", "qt.QStandardItem[]"), End), + new Function(c, "appendRow", _n_appendRow0, None, Compiled, qt_QStandardItemModel_appendRow_void_QStandardItemModel_qt__QStandardItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "items", "qt.QStandardItem[]"), End), + new Function(c, "appendRow", _n_appendRow1, None, Compiled, qt_QStandardItemModel_appendRow_void_QStandardItemModel_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "item", "qt.QStandardItem"), End), + // MISSING: bindableSortRole ("QBindable"; QStandardItemModel this) + new Function(c, "clear", _n_clear0, None, Compiled, qt_QStandardItemModel_clear_void_QStandardItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), End), + new Function(c, "findItems", _n_findItems0, None, Compiled, qt_QStandardItemModel_findItems_qt__QStandardItemBSB_ESB__QStandardItemModel_string_int_int, Return, "qt.QStandardItem[]", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "text", "string"), new Param(c, "flags", "int", Value((int)Qt::MatchExactly)), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "horizontalHeaderItem", _n_horizontalHeaderItem0, None, Compiled, qt_QStandardItemModel_horizontalHeaderItem_QStandardItem_QStandardItemModel_int, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "column", "int"), End), + new Function(c, "indexFromItem", _n_indexFromItem0, None, Compiled, qt_QStandardItemModel_indexFromItem_QModelIndex_QStandardItemModel_QStandardItem, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "item", "qt.QStandardItem"), End), + new Function(c, "insertColumn", _n_insertColumn0, None, Compiled, qt_QStandardItemModel_insertColumn_void_QStandardItemModel_int_qt__QStandardItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "column", "int"), new Param(c, "items", "qt.QStandardItem[]"), End), + new Function(c, "insertColumn", _n_insertColumn1, None, Compiled, qt_QStandardItemModel_insertColumn_bool_QStandardItemModel_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + new Function(c, "insertRow", _n_insertRow0, None, Compiled, qt_QStandardItemModel_insertRow_void_QStandardItemModel_int_qt__QStandardItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "items", "qt.QStandardItem[]"), End), + new Function(c, "insertRow", _n_insertRow1, None, Compiled, qt_QStandardItemModel_insertRow_void_QStandardItemModel_int_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "item", "qt.QStandardItem"), End), + new Function(c, "insertRow", _n_insertRow2, None, Compiled, qt_QStandardItemModel_insertRow_bool_QStandardItemModel_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + new Function(c, "invisibleRootItem", _n_invisibleRootItem0, None, Compiled, qt_QStandardItemModel_invisibleRootItem_QStandardItem_QStandardItemModel, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItemModel"), End), + new Function(c, "item", _n_item0, None, Compiled, qt_QStandardItemModel_item_QStandardItem_QStandardItemModel_int_int, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "itemFromIndex", _n_itemFromIndex0, None, Compiled, qt_QStandardItemModel_itemFromIndex_QStandardItem_QStandardItemModel_QModelIndex, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "itemPrototype", _n_itemPrototype0, None, Compiled, qt_QStandardItemModel_itemPrototype_QStandardItem_QStandardItemModel, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItemModel"), End), + new Function(c, "setColumnCount", _n_setColumnCount0, None, Compiled, qt_QStandardItemModel_setColumnCount_void_QStandardItemModel_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "columns", "int"), End), + new Function(c, "setHorizontalHeaderItem", _n_setHorizontalHeaderItem0, None, Compiled, qt_QStandardItemModel_setHorizontalHeaderItem_void_QStandardItemModel_int_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "column", "int"), new Param(c, "item", "qt.QStandardItem"), End), + new Function(c, "setHorizontalHeaderLabels", _n_setHorizontalHeaderLabels0, None, Compiled, qt_QStandardItemModel_setHorizontalHeaderLabels_void_QStandardItemModel_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "labels", "string[]"), End), + new Function(c, "setItem", _n_setItem0, None, Compiled, qt_QStandardItemModel_setItem_void_QStandardItemModel_int_int_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "item", "qt.QStandardItem"), End), + new Function(c, "setItem", _n_setItem1, None, Compiled, qt_QStandardItemModel_setItem_void_QStandardItemModel_int_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "item", "qt.QStandardItem"), End), + new Function(c, "setItemPrototype", _n_setItemPrototype0, None, Compiled, qt_QStandardItemModel_setItemPrototype_void_QStandardItemModel_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "item", "qt.QStandardItem"), End), + // MISSING: setItemRoleNames (void; QStandardItemModel this, "const QHash &" roleNames) + new Function(c, "setRowCount", _n_setRowCount0, None, Compiled, qt_QStandardItemModel_setRowCount_void_QStandardItemModel_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "rows", "int"), End), + // PROP: setSortRole (void; QStandardItemModel this, int role) + new Function(c, "setVerticalHeaderItem", _n_setVerticalHeaderItem0, None, Compiled, qt_QStandardItemModel_setVerticalHeaderItem_void_QStandardItemModel_int_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "item", "qt.QStandardItem"), End), + new Function(c, "setVerticalHeaderLabels", _n_setVerticalHeaderLabels0, None, Compiled, qt_QStandardItemModel_setVerticalHeaderLabels_void_QStandardItemModel_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "labels", "string[]"), End), + // PROP: sortRole (int; QStandardItemModel this) + new Function(c, "takeColumn", _n_takeColumn0, None, Compiled, qt_QStandardItemModel_takeColumn_qt__QStandardItemBSB_ESB__QStandardItemModel_int, Return, "qt.QStandardItem[]", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "column", "int"), End), + new Function(c, "takeHorizontalHeaderItem", _n_takeHorizontalHeaderItem0, None, Compiled, qt_QStandardItemModel_takeHorizontalHeaderItem_QStandardItem_QStandardItemModel_int, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "column", "int"), End), + new Function(c, "takeItem", _n_takeItem0, None, Compiled, qt_QStandardItemModel_takeItem_QStandardItem_QStandardItemModel_int_int, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "takeRow", _n_takeRow0, None, Compiled, qt_QStandardItemModel_takeRow_qt__QStandardItemBSB_ESB__QStandardItemModel_int, Return, "qt.QStandardItem[]", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), End), + new Function(c, "takeVerticalHeaderItem", _n_takeVerticalHeaderItem0, None, Compiled, qt_QStandardItemModel_takeVerticalHeaderItem_QStandardItem_QStandardItemModel_int, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), End), + new Function(c, "verticalHeaderItem", _n_verticalHeaderItem0, None, Compiled, qt_QStandardItemModel_verticalHeaderItem_QStandardItem_QStandardItemModel_int, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), End), + _func[0] = new MemberFunction(c, "clearItemData", _n_clearItemData0, None, Compiled, qt_QStandardItemModel_clearItemData_bool_QStandardItemModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[1] = new MemberFunction(c, "columnCount", _n_columnCount0, None, Compiled, qt_QStandardItemModel_columnCount_int_QStandardItemModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[2] = new MemberFunction(c, "data", _n_data0, None, Compiled, qt_QStandardItemModel_data_QVariant_QStandardItemModel_QModelIndex_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "role", "int", Value((int)Qt::DisplayRole)), End), + _func[3] = new MemberFunction(c, "dropMimeData", _n_dropMimeData0, None, Compiled, qt_QStandardItemModel_dropMimeData_bool_QStandardItemModel_QMimeData_int_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[4] = new MemberFunction(c, "flags", _n_flags0, None, Compiled, qt_QStandardItemModel_flags_int_QStandardItemModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[5] = new MemberFunction(c, "hasChildren", _n_hasChildren0, None, Compiled, qt_QStandardItemModel_hasChildren_bool_QStandardItemModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[6] = new MemberFunction(c, "headerData", _n_headerData0, None, Compiled, qt_QStandardItemModel_headerData_QVariant_QStandardItemModel_int_int_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "section", "int"), new Param(c, "orientation", "int"), new Param(c, "role", "int", Value((int)Qt::DisplayRole)), End), + _func[7] = new MemberFunction(c, "index", _n_index0, None, Compiled, qt_QStandardItemModel_index_QModelIndex_QStandardItemModel_int_int_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[8] = new MemberFunction(c, "insertColumns", _n_insertColumns0, None, Compiled, qt_QStandardItemModel_insertColumns_bool_QStandardItemModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "column", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[9] = new MemberFunction(c, "insertRows", _n_insertRows0, None, Compiled, qt_QStandardItemModel_insertRows_bool_QStandardItemModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + // MISSING: itemData ("QMap"; QStandardItemModel this, QModelIndex index) + _func[10] = new MemberFunction(c, "mimeData", _n_mimeData0, None, Compiled, qt_QStandardItemModel_mimeData_QMimeData_QStandardItemModel_qt__QModelIndexBSB_ESB_, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "indexes", "qt.QModelIndex[]"), End), + _func[11] = new MemberFunction(c, "mimeTypes", _n_mimeTypes0, None, Compiled, qt_QStandardItemModel_mimeTypes_stringBSB_ESB__QStandardItemModel, Return, "string[]", Parameters, new Param(c, "this", "qt.QStandardItemModel"), End), + // MISSING: multiData (void; QStandardItemModel this, QModelIndex index, "QModelRoleDataSpan" roleDataSpan) + _func[12] = new MemberFunction(c, "parent", _n_parent0, None, Compiled, qt_QStandardItemModel_parent_QModelIndex_QStandardItemModel_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "child", "qt.QModelIndex"), End), + _func[13] = new MemberFunction(c, "removeColumns", _n_removeColumns0, None, Compiled, qt_QStandardItemModel_removeColumns_bool_QStandardItemModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "column", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[14] = new MemberFunction(c, "removeRows", _n_removeRows0, None, Compiled, qt_QStandardItemModel_removeRows_bool_QStandardItemModel_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "count", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + // MISSING: roleNames ("QHash"; QStandardItemModel this) + _func[15] = new MemberFunction(c, "rowCount", _n_rowCount0, None, Compiled, qt_QStandardItemModel_rowCount_int_QStandardItemModel_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[16] = new MemberFunction(c, "setData", _n_setData0, None, Compiled, qt_QStandardItemModel_setData_bool_QStandardItemModel_QModelIndex_QVariant_int, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "value", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::EditRole)), End), + _func[17] = new MemberFunction(c, "setHeaderData", _n_setHeaderData0, None, Compiled, qt_QStandardItemModel_setHeaderData_bool_QStandardItemModel_int_int_QVariant_int, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "section", "int"), new Param(c, "orientation", "int"), new Param(c, "value", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::EditRole)), End), + // MISSING: setItemData (bool; QStandardItemModel this, QModelIndex index, "const QMap &" roles) + _func[18] = new MemberFunction(c, "sort", _n_sort0, None, Compiled, qt_QStandardItemModel_sort_void_QStandardItemModel_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "column", "int"), new Param(c, "order", "int", Value((int)Qt::AscendingOrder)), End), + _func[19] = new MemberFunction(c, "supportedDropActions", _n_supportedDropActions0, None, Compiled, qt_QStandardItemModel_supportedDropActions_int_QStandardItemModel, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItemModel"), End), + _func[20] = new MemberFunction(c, "buddy", _n_buddy0, None, Compiled, qt_QStandardItemModel_buddy_QModelIndex_QStandardItemModel_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[21] = new MemberFunction(c, "canDropMimeData", _n_canDropMimeData0, None, Compiled, qt_QStandardItemModel_canDropMimeData_bool_QStandardItemModel_QMimeData_int_int_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[22] = new MemberFunction(c, "canFetchMore", _n_canFetchMore0, None, Compiled, qt_QStandardItemModel_canFetchMore_bool_QStandardItemModel_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[23] = new MemberFunction(c, "fetchMore", _n_fetchMore0, None, Compiled, qt_QStandardItemModel_fetchMore_void_QStandardItemModel_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "parent", "qt.QModelIndex"), End), + _func[24] = new MemberFunction(c, "match", _n_match0, None, Compiled, qt_QStandardItemModel_match_qt__QModelIndexBSB_ESB__QStandardItemModel_QModelIndex_int_QVariant_int_int, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "start", "qt.QModelIndex"), new Param(c, "role", "int"), new Param(c, "value", "qt.QVariant"), new Param(c, "hits", "int", Value((int)1)), new Param(c, "flags", "int", Value((int)Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap))), End), + _func[25] = new MemberFunction(c, "moveColumns", _n_moveColumns0, None, Compiled, qt_QStandardItemModel_moveColumns_bool_QStandardItemModel_QModelIndex_int_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceColumn", "int"), new Param(c, "count", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + _func[26] = new MemberFunction(c, "moveRows", _n_moveRows0, None, Compiled, qt_QStandardItemModel_moveRows_bool_QStandardItemModel_QModelIndex_int_int_QModelIndex_int, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "sourceParent", "qt.QModelIndex"), new Param(c, "sourceRow", "int"), new Param(c, "count", "int"), new Param(c, "destinationParent", "qt.QModelIndex"), new Param(c, "destinationChild", "int"), End), + _func[27] = new MemberFunction(c, "sibling", _n_sibling0, None, Compiled, qt_QStandardItemModel_sibling_QModelIndex_QStandardItemModel_int_int_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "index", "qt.QModelIndex"), End), + _func[28] = new MemberFunction(c, "span", _n_span0, None, Compiled, qt_QStandardItemModel_span_QSize_QStandardItemModel_QModelIndex, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QStandardItemModel"), new Param(c, "index", "qt.QModelIndex"), End), + _func[29] = new MemberFunction(c, "supportedDragActions", _n_supportedDragActions0, None, Compiled, qt_QStandardItemModel_supportedDragActions_int_QStandardItemModel, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItemModel"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QStandardItemModel::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QStandardItemType.cpp b/src/lib/mu/MuQt6/QStandardItemType.cpp new file mode 100644 index 000000000..767c531a8 --- /dev/null +++ b/src/lib/mu/MuQt6/QStandardItemType.cpp @@ -0,0 +1,1332 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QStandardItemType::QStandardItemType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QStandardItemType::~QStandardItemType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqpointer(param_this,new QStandardItem()); + return param_this; +} + +Pointer qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + setqpointer(param_this,new QStandardItem(arg1)); + return param_this; +} + +Pointer qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + setqpointer(param_this,new QStandardItem(arg1, arg2)); + return param_this; +} + +Pointer qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_rows, int param_columns) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_rows); + int arg2 = (int)(param_columns); + setqpointer(param_this,new QStandardItem(arg1, arg2)); + return param_this; +} + +Pointer qt_QStandardItem_accessibleDescription_string_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->accessibleDescription()); +} + +Pointer qt_QStandardItem_accessibleText_string_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->accessibleText()); +} + +void qt_QStandardItem_appendColumn_void_QStandardItem_qt__QStandardItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QList arg1 = qpointerlist(param_items); + arg0->appendColumn(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_appendRow_void_QStandardItem_qt__QStandardItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QList arg1 = qpointerlist(param_items); + arg0->appendRow(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_appendRow_void_QStandardItem_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + QStandardItem * arg1 = getqpointer(param_item); + arg0->appendRow(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_appendRows_void_QStandardItem_qt__QStandardItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QList arg1 = qpointerlist(param_items); + arg0->appendRows(arg1); + setqpointer(param_this,arg0); +} + +Pointer qt_QStandardItem_background_QBrush_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->background(),"qt.QBrush"); +} + +int qt_QStandardItem_checkState_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return int(arg0->checkState()); +} + +Pointer qt_QStandardItem_child_QStandardItem_QStandardItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return makeqpointer(c,arg0->child(arg1, arg2),"qt.QStandardItem"); +} + +void qt_QStandardItem_clearData_void_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + arg0->clearData(); + setqpointer(param_this,arg0); +} + +Pointer qt_QStandardItem_clone_QStandardItem_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makeqpointer(c,arg0->clone(),"qt.QStandardItem"); +} + +int qt_QStandardItem_column_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->column(); +} + +int qt_QStandardItem_columnCount_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->columnCount(); +} + +Pointer qt_QStandardItem_data_QVariant_QStandardItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_role); + return makeqtype(c,arg0->data(arg1),"qt.QVariant"); +} + +int qt_QStandardItem_flags_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return int(arg0->flags()); +} + +Pointer qt_QStandardItem_font_QFont_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->font(),"qt.QFont"); +} + +Pointer qt_QStandardItem_foreground_QBrush_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->foreground(),"qt.QBrush"); +} + +bool qt_QStandardItem_hasChildren_bool_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->hasChildren(); +} + +Pointer qt_QStandardItem_icon_QIcon_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->icon(),"qt.QIcon"); +} + +Pointer qt_QStandardItem_index_QModelIndex_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->index(),"qt.QModelIndex"); +} + +void qt_QStandardItem_insertColumn_void_QStandardItem_int_qt__QStandardItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + const QList arg2 = qpointerlist(param_items); + arg0->insertColumn(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_insertColumns_void_QStandardItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_count) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_count); + arg0->insertColumns(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_insertRow_void_QStandardItem_int_qt__QStandardItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + const QList arg2 = qpointerlist(param_items); + arg0->insertRow(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_insertRow_void_QStandardItem_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + QStandardItem * arg2 = getqpointer(param_item); + arg0->insertRow(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_insertRows_void_QStandardItem_int_qt__QStandardItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + const QList arg2 = qpointerlist(param_items); + arg0->insertRows(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_insertRows_void_QStandardItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_count) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_count); + arg0->insertRows(arg1, arg2); + setqpointer(param_this,arg0); +} + +bool qt_QStandardItem_isAutoTristate_bool_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->isAutoTristate(); +} + +bool qt_QStandardItem_isCheckable_bool_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->isCheckable(); +} + +bool qt_QStandardItem_isDragEnabled_bool_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->isDragEnabled(); +} + +bool qt_QStandardItem_isDropEnabled_bool_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->isDropEnabled(); +} + +bool qt_QStandardItem_isEditable_bool_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->isEditable(); +} + +bool qt_QStandardItem_isEnabled_bool_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->isEnabled(); +} + +bool qt_QStandardItem_isSelectable_bool_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->isSelectable(); +} + +bool qt_QStandardItem_isUserTristate_bool_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->isUserTristate(); +} + +Pointer qt_QStandardItem_model_QStandardItemModel_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makeinstance(c,arg0->model(),"qt.QStandardItemModel"); +} + +Pointer qt_QStandardItem_parent_QStandardItem_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makeqpointer(c,arg0->parent(),"qt.QStandardItem"); +} + +void qt_QStandardItem_removeColumn_void_QStandardItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + arg0->removeColumn(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_removeColumns_void_QStandardItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_count) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_count); + arg0->removeColumns(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_removeRow_void_QStandardItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + arg0->removeRow(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_removeRows_void_QStandardItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_count) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_count); + arg0->removeRows(arg1, arg2); + setqpointer(param_this,arg0); +} + +int qt_QStandardItem_row_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->row(); +} + +int qt_QStandardItem_rowCount_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->rowCount(); +} + +void qt_QStandardItem_setAccessibleDescription_void_QStandardItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_accessibleDescription) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_accessibleDescription); + arg0->setAccessibleDescription(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setAccessibleText_void_QStandardItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_accessibleText) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_accessibleText); + arg0->setAccessibleText(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setAutoTristate_void_QStandardItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_tristate) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_tristate); + arg0->setAutoTristate(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setBackground_void_QStandardItem_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QBrush arg1 = getqtype(param_brush); + arg0->setBackground(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setCheckState_void_QStandardItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + Qt::CheckState arg1 = (Qt::CheckState)(param_state); + arg0->setCheckState(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setCheckable_void_QStandardItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_checkable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_checkable); + arg0->setCheckable(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setChild_void_QStandardItem_int_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + QStandardItem * arg3 = getqpointer(param_item); + arg0->setChild(arg1, arg2, arg3); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setChild_void_QStandardItem_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + QStandardItem * arg2 = getqpointer(param_item); + arg0->setChild(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setColumnCount_void_QStandardItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_columns) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_columns); + arg0->setColumnCount(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setData_void_QStandardItem_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_value, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QVariant arg1 = getqtype(param_value); + int arg2 = (int)(param_role); + arg0->setData(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setDragEnabled_void_QStandardItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_dragEnabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_dragEnabled); + arg0->setDragEnabled(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setDropEnabled_void_QStandardItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_dropEnabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_dropEnabled); + arg0->setDropEnabled(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setEditable_void_QStandardItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_editable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_editable); + arg0->setEditable(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setEnabled_void_QStandardItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_enabled); + arg0->setEnabled(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setFlags_void_QStandardItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + Qt::ItemFlags arg1 = (Qt::ItemFlags)(param_flags); + arg0->setFlags(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setFont_void_QStandardItem_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_font) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QFont arg1 = getqtype(param_font); + arg0->setFont(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setForeground_void_QStandardItem_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QBrush arg1 = getqtype(param_brush); + arg0->setForeground(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setIcon_void_QStandardItem_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QIcon arg1 = getqtype(param_icon); + arg0->setIcon(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setRowCount_void_QStandardItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_rows) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_rows); + arg0->setRowCount(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setSelectable_void_QStandardItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_selectable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_selectable); + arg0->setSelectable(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setSizeHint_void_QStandardItem_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QSize arg1 = getqtype(param_size); + arg0->setSizeHint(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setStatusTip_void_QStandardItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_statusTip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_statusTip); + arg0->setStatusTip(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setText_void_QStandardItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_text); + arg0->setText(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setTextAlignment_void_QStandardItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + Qt::Alignment arg1 = (Qt::Alignment)(param_alignment); + arg0->setTextAlignment(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setToolTip_void_QStandardItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_toolTip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_toolTip); + arg0->setToolTip(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setUserTristate_void_QStandardItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_tristate) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_tristate); + arg0->setUserTristate(arg1); + setqpointer(param_this,arg0); +} + +void qt_QStandardItem_setWhatsThis_void_QStandardItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_whatsThis) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_whatsThis); + arg0->setWhatsThis(arg1); + setqpointer(param_this,arg0); +} + +Pointer qt_QStandardItem_sizeHint_QSize_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QStandardItem_sortChildren_void_QStandardItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_order) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + Qt::SortOrder arg2 = (Qt::SortOrder)(param_order); + arg0->sortChildren(arg1, arg2); + setqpointer(param_this,arg0); +} + +Pointer qt_QStandardItem_statusTip_string_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->statusTip()); +} + +Pointer qt_QStandardItem_takeChild_QStandardItem_QStandardItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return makeqpointer(c,arg0->takeChild(arg1, arg2),"qt.QStandardItem"); +} + +Pointer qt_QStandardItem_takeColumn_qt__QStandardItemBSB_ESB__QStandardItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return makeqpointerlist(c,arg0->takeColumn(arg1),"qt.QStandardItem"); +} + +Pointer qt_QStandardItem_takeRow_qt__QStandardItemBSB_ESB__QStandardItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_row); + return makeqpointerlist(c,arg0->takeRow(arg1),"qt.QStandardItem"); +} + +Pointer qt_QStandardItem_text_string_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->text()); +} + +int qt_QStandardItem_textAlignment_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return int(arg0->textAlignment()); +} + +Pointer qt_QStandardItem_toolTip_string_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->toolTip()); +} + +int qt_QStandardItem_type_int_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return arg0->type(); +} + +Pointer qt_QStandardItem_whatsThis_string_QStandardItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStandardItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->whatsThis()); +} + + +static NODE_IMPLEMENTATION(_n_QStandardItem0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QStandardItem1, Pointer) +{ + NODE_RETURN(qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QStandardItem2, Pointer) +{ + NODE_RETURN(qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QStandardItem3, Pointer) +{ + NODE_RETURN(qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_accessibleDescription0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_accessibleDescription_string_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_accessibleText0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_accessibleText_string_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_appendColumn0, void) +{ + qt_QStandardItem_appendColumn_void_QStandardItem_qt__QStandardItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_appendRow0, void) +{ + qt_QStandardItem_appendRow_void_QStandardItem_qt__QStandardItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_appendRow1, void) +{ + qt_QStandardItem_appendRow_void_QStandardItem_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_appendRows0, void) +{ + qt_QStandardItem_appendRows_void_QStandardItem_qt__QStandardItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_background0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_background_QBrush_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_checkState0, int) +{ + NODE_RETURN(qt_QStandardItem_checkState_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_child0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_child_QStandardItem_QStandardItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_clearData0, void) +{ + qt_QStandardItem_clearData_void_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_clone0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_clone_QStandardItem_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_column0, int) +{ + NODE_RETURN(qt_QStandardItem_column_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_columnCount0, int) +{ + NODE_RETURN(qt_QStandardItem_columnCount_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_data_QVariant_QStandardItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QStandardItem_flags_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_font0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_font_QFont_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_foreground0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_foreground_QBrush_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasChildren0, bool) +{ + NODE_RETURN(qt_QStandardItem_hasChildren_bool_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_icon0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_icon_QIcon_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_index0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_index_QModelIndex_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertColumn0, void) +{ + qt_QStandardItem_insertColumn_void_QStandardItem_int_qt__QStandardItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertColumns0, void) +{ + qt_QStandardItem_insertColumns_void_QStandardItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_insertRow0, void) +{ + qt_QStandardItem_insertRow_void_QStandardItem_int_qt__QStandardItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRow1, void) +{ + qt_QStandardItem_insertRow_void_QStandardItem_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRows0, void) +{ + qt_QStandardItem_insertRows_void_QStandardItem_int_qt__QStandardItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertRows1, void) +{ + qt_QStandardItem_insertRows_void_QStandardItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_isAutoTristate0, bool) +{ + NODE_RETURN(qt_QStandardItem_isAutoTristate_bool_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isCheckable0, bool) +{ + NODE_RETURN(qt_QStandardItem_isCheckable_bool_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isDragEnabled0, bool) +{ + NODE_RETURN(qt_QStandardItem_isDragEnabled_bool_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isDropEnabled0, bool) +{ + NODE_RETURN(qt_QStandardItem_isDropEnabled_bool_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEditable0, bool) +{ + NODE_RETURN(qt_QStandardItem_isEditable_bool_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEnabled0, bool) +{ + NODE_RETURN(qt_QStandardItem_isEnabled_bool_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSelectable0, bool) +{ + NODE_RETURN(qt_QStandardItem_isSelectable_bool_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isUserTristate0, bool) +{ + NODE_RETURN(qt_QStandardItem_isUserTristate_bool_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_model0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_model_QStandardItemModel_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_parent0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_parent_QStandardItem_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeColumn0, void) +{ + qt_QStandardItem_removeColumn_void_QStandardItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_removeColumns0, void) +{ + qt_QStandardItem_removeColumns_void_QStandardItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_removeRow0, void) +{ + qt_QStandardItem_removeRow_void_QStandardItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_removeRows0, void) +{ + qt_QStandardItem_removeRows_void_QStandardItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_row0, int) +{ + NODE_RETURN(qt_QStandardItem_row_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rowCount0, int) +{ + NODE_RETURN(qt_QStandardItem_rowCount_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAccessibleDescription0, void) +{ + qt_QStandardItem_setAccessibleDescription_void_QStandardItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setAccessibleText0, void) +{ + qt_QStandardItem_setAccessibleText_void_QStandardItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setAutoTristate0, void) +{ + qt_QStandardItem_setAutoTristate_void_QStandardItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setBackground0, void) +{ + qt_QStandardItem_setBackground_void_QStandardItem_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCheckState0, void) +{ + qt_QStandardItem_setCheckState_void_QStandardItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setCheckable0, void) +{ + qt_QStandardItem_setCheckable_void_QStandardItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setChild0, void) +{ + qt_QStandardItem_setChild_void_QStandardItem_int_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setChild1, void) +{ + qt_QStandardItem_setChild_void_QStandardItem_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setColumnCount0, void) +{ + qt_QStandardItem_setColumnCount_void_QStandardItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setData0, void) +{ + qt_QStandardItem_setData_void_QStandardItem_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setDragEnabled0, void) +{ + qt_QStandardItem_setDragEnabled_void_QStandardItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setDropEnabled0, void) +{ + qt_QStandardItem_setDropEnabled_void_QStandardItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setEditable0, void) +{ + qt_QStandardItem_setEditable_void_QStandardItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setEnabled0, void) +{ + qt_QStandardItem_setEnabled_void_QStandardItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setFlags0, void) +{ + qt_QStandardItem_setFlags_void_QStandardItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFont0, void) +{ + qt_QStandardItem_setFont_void_QStandardItem_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setForeground0, void) +{ + qt_QStandardItem_setForeground_void_QStandardItem_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setIcon0, void) +{ + qt_QStandardItem_setIcon_void_QStandardItem_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRowCount0, void) +{ + qt_QStandardItem_setRowCount_void_QStandardItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setSelectable0, void) +{ + qt_QStandardItem_setSelectable_void_QStandardItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSizeHint0, void) +{ + qt_QStandardItem_setSizeHint_void_QStandardItem_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setStatusTip0, void) +{ + qt_QStandardItem_setStatusTip_void_QStandardItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setText0, void) +{ + qt_QStandardItem_setText_void_QStandardItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTextAlignment0, void) +{ + qt_QStandardItem_setTextAlignment_void_QStandardItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setToolTip0, void) +{ + qt_QStandardItem_setToolTip_void_QStandardItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setUserTristate0, void) +{ + qt_QStandardItem_setUserTristate_void_QStandardItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setWhatsThis0, void) +{ + qt_QStandardItem_setWhatsThis_void_QStandardItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_sizeHint_QSize_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sortChildren0, void) +{ + qt_QStandardItem_sortChildren_void_QStandardItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_statusTip0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_statusTip_string_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_takeChild0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_takeChild_QStandardItem_QStandardItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_takeColumn0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_takeColumn_qt__QStandardItemBSB_ESB__QStandardItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_takeRow0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_takeRow_qt__QStandardItemBSB_ESB__QStandardItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_text_string_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_textAlignment0, int) +{ + NODE_RETURN(qt_QStandardItem_textAlignment_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toolTip0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_toolTip_string_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_type0, int) +{ + NODE_RETURN(qt_QStandardItem_type_int_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_whatsThis0, Pointer) +{ + NODE_RETURN(qt_QStandardItem_whatsThis_string_QStandardItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QStandardItemType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + new Alias(c, "ItemType", "int"), + new SymbolicConstant(c, "Type", "int", Value(int(QStandardItem::Type))), + new SymbolicConstant(c, "UserType", "int", Value(int(QStandardItem::UserType))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QStandardItem", _n_QStandardItem0, None, Compiled, qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "QStandardItem", _n_QStandardItem1, None, Compiled, qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem_string, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "text", "string"), End), + new Function(c, "QStandardItem", _n_QStandardItem2, None, Compiled, qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem_QIcon_string, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), End), + new Function(c, "QStandardItem", _n_QStandardItem3, None, Compiled, qt_QStandardItem_QStandardItem_QStandardItem_QStandardItem_int_int, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "rows", "int"), new Param(c, "columns", "int", Value((int)1)), End), + new Function(c, "accessibleDescription", _n_accessibleDescription0, None, Compiled, qt_QStandardItem_accessibleDescription_string_QStandardItem, Return, "string", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "accessibleText", _n_accessibleText0, None, Compiled, qt_QStandardItem_accessibleText_string_QStandardItem, Return, "string", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "appendColumn", _n_appendColumn0, None, Compiled, qt_QStandardItem_appendColumn_void_QStandardItem_qt__QStandardItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "items", "qt.QStandardItem[]"), End), + new Function(c, "appendRow", _n_appendRow0, None, Compiled, qt_QStandardItem_appendRow_void_QStandardItem_qt__QStandardItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "items", "qt.QStandardItem[]"), End), + new Function(c, "appendRow", _n_appendRow1, None, Compiled, qt_QStandardItem_appendRow_void_QStandardItem_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "item", "qt.QStandardItem"), End), + new Function(c, "appendRows", _n_appendRows0, None, Compiled, qt_QStandardItem_appendRows_void_QStandardItem_qt__QStandardItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "items", "qt.QStandardItem[]"), End), + new Function(c, "background", _n_background0, None, Compiled, qt_QStandardItem_background_QBrush_QStandardItem, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "checkState", _n_checkState0, None, Compiled, qt_QStandardItem_checkState_int_QStandardItem, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "child", _n_child0, None, Compiled, qt_QStandardItem_child_QStandardItem_QStandardItem_int_int, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "clearData", _n_clearData0, None, Compiled, qt_QStandardItem_clearData_void_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new MemberFunction(c, "clone", _n_clone0, None, Compiled, qt_QStandardItem_clone_QStandardItem_QStandardItem, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "column", _n_column0, None, Compiled, qt_QStandardItem_column_int_QStandardItem, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "columnCount", _n_columnCount0, None, Compiled, qt_QStandardItem_columnCount_int_QStandardItem, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new MemberFunction(c, "data", _n_data0, None, Compiled, qt_QStandardItem_data_QVariant_QStandardItem_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "role", "int", Value((int)Qt::UserRole + 1)), End), + new Function(c, "flags", _n_flags0, None, Compiled, qt_QStandardItem_flags_int_QStandardItem, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "font", _n_font0, None, Compiled, qt_QStandardItem_font_QFont_QStandardItem, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "foreground", _n_foreground0, None, Compiled, qt_QStandardItem_foreground_QBrush_QStandardItem, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "hasChildren", _n_hasChildren0, None, Compiled, qt_QStandardItem_hasChildren_bool_QStandardItem, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "icon", _n_icon0, None, Compiled, qt_QStandardItem_icon_QIcon_QStandardItem, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "index", _n_index0, None, Compiled, qt_QStandardItem_index_QModelIndex_QStandardItem, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "insertColumn", _n_insertColumn0, None, Compiled, qt_QStandardItem_insertColumn_void_QStandardItem_int_qt__QStandardItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "column", "int"), new Param(c, "items", "qt.QStandardItem[]"), End), + new Function(c, "insertColumns", _n_insertColumns0, None, Compiled, qt_QStandardItem_insertColumns_void_QStandardItem_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "column", "int"), new Param(c, "count", "int"), End), + new Function(c, "insertRow", _n_insertRow0, None, Compiled, qt_QStandardItem_insertRow_void_QStandardItem_int_qt__QStandardItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), new Param(c, "items", "qt.QStandardItem[]"), End), + new Function(c, "insertRow", _n_insertRow1, None, Compiled, qt_QStandardItem_insertRow_void_QStandardItem_int_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), new Param(c, "item", "qt.QStandardItem"), End), + new Function(c, "insertRows", _n_insertRows0, None, Compiled, qt_QStandardItem_insertRows_void_QStandardItem_int_qt__QStandardItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), new Param(c, "items", "qt.QStandardItem[]"), End), + new Function(c, "insertRows", _n_insertRows1, None, Compiled, qt_QStandardItem_insertRows_void_QStandardItem_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), new Param(c, "count", "int"), End), + new Function(c, "isAutoTristate", _n_isAutoTristate0, None, Compiled, qt_QStandardItem_isAutoTristate_bool_QStandardItem, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "isCheckable", _n_isCheckable0, None, Compiled, qt_QStandardItem_isCheckable_bool_QStandardItem, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "isDragEnabled", _n_isDragEnabled0, None, Compiled, qt_QStandardItem_isDragEnabled_bool_QStandardItem, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "isDropEnabled", _n_isDropEnabled0, None, Compiled, qt_QStandardItem_isDropEnabled_bool_QStandardItem, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "isEditable", _n_isEditable0, None, Compiled, qt_QStandardItem_isEditable_bool_QStandardItem, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "isEnabled", _n_isEnabled0, None, Compiled, qt_QStandardItem_isEnabled_bool_QStandardItem, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "isSelectable", _n_isSelectable0, None, Compiled, qt_QStandardItem_isSelectable_bool_QStandardItem, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "isUserTristate", _n_isUserTristate0, None, Compiled, qt_QStandardItem_isUserTristate_bool_QStandardItem, Return, "bool", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "model", _n_model0, None, Compiled, qt_QStandardItem_model_QStandardItemModel_QStandardItem, Return, "qt.QStandardItemModel", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + // MISSING: multiData (void; QStandardItem this, "QModelRoleDataSpan" roleDataSpan) + new Function(c, "parent", _n_parent0, None, Compiled, qt_QStandardItem_parent_QStandardItem_QStandardItem, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + // MISSING: read (void; QStandardItem this, "QDataStream &" in) + new Function(c, "removeColumn", _n_removeColumn0, None, Compiled, qt_QStandardItem_removeColumn_void_QStandardItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "column", "int"), End), + new Function(c, "removeColumns", _n_removeColumns0, None, Compiled, qt_QStandardItem_removeColumns_void_QStandardItem_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "column", "int"), new Param(c, "count", "int"), End), + new Function(c, "removeRow", _n_removeRow0, None, Compiled, qt_QStandardItem_removeRow_void_QStandardItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), End), + new Function(c, "removeRows", _n_removeRows0, None, Compiled, qt_QStandardItem_removeRows_void_QStandardItem_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), new Param(c, "count", "int"), End), + new Function(c, "row", _n_row0, None, Compiled, qt_QStandardItem_row_int_QStandardItem, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "rowCount", _n_rowCount0, None, Compiled, qt_QStandardItem_rowCount_int_QStandardItem, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "setAccessibleDescription", _n_setAccessibleDescription0, None, Compiled, qt_QStandardItem_setAccessibleDescription_void_QStandardItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "accessibleDescription", "string"), End), + new Function(c, "setAccessibleText", _n_setAccessibleText0, None, Compiled, qt_QStandardItem_setAccessibleText_void_QStandardItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "accessibleText", "string"), End), + new Function(c, "setAutoTristate", _n_setAutoTristate0, None, Compiled, qt_QStandardItem_setAutoTristate_void_QStandardItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "tristate", "bool"), End), + new Function(c, "setBackground", _n_setBackground0, None, Compiled, qt_QStandardItem_setBackground_void_QStandardItem_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "brush", "qt.QBrush"), End), + new Function(c, "setCheckState", _n_setCheckState0, None, Compiled, qt_QStandardItem_setCheckState_void_QStandardItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "state", "int"), End), + new Function(c, "setCheckable", _n_setCheckable0, None, Compiled, qt_QStandardItem_setCheckable_void_QStandardItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "checkable", "bool"), End), + new Function(c, "setChild", _n_setChild0, None, Compiled, qt_QStandardItem_setChild_void_QStandardItem_int_int_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "item", "qt.QStandardItem"), End), + new Function(c, "setChild", _n_setChild1, None, Compiled, qt_QStandardItem_setChild_void_QStandardItem_int_QStandardItem, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), new Param(c, "item", "qt.QStandardItem"), End), + new Function(c, "setColumnCount", _n_setColumnCount0, None, Compiled, qt_QStandardItem_setColumnCount_void_QStandardItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "columns", "int"), End), + new MemberFunction(c, "setData", _n_setData0, None, Compiled, qt_QStandardItem_setData_void_QStandardItem_QVariant_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "value", "qt.QVariant"), new Param(c, "role", "int", Value((int)Qt::UserRole + 1)), End), + new Function(c, "setDragEnabled", _n_setDragEnabled0, None, Compiled, qt_QStandardItem_setDragEnabled_void_QStandardItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "dragEnabled", "bool"), End), + new Function(c, "setDropEnabled", _n_setDropEnabled0, None, Compiled, qt_QStandardItem_setDropEnabled_void_QStandardItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "dropEnabled", "bool"), End), + new Function(c, "setEditable", _n_setEditable0, None, Compiled, qt_QStandardItem_setEditable_void_QStandardItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "editable", "bool"), End), + new Function(c, "setEnabled", _n_setEnabled0, None, Compiled, qt_QStandardItem_setEnabled_void_QStandardItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "enabled", "bool"), End), + new Function(c, "setFlags", _n_setFlags0, None, Compiled, qt_QStandardItem_setFlags_void_QStandardItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "flags", "int"), End), + new Function(c, "setFont", _n_setFont0, None, Compiled, qt_QStandardItem_setFont_void_QStandardItem_QFont, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "font", "qt.QFont"), End), + new Function(c, "setForeground", _n_setForeground0, None, Compiled, qt_QStandardItem_setForeground_void_QStandardItem_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "brush", "qt.QBrush"), End), + new Function(c, "setIcon", _n_setIcon0, None, Compiled, qt_QStandardItem_setIcon_void_QStandardItem_QIcon, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "icon", "qt.QIcon"), End), + new Function(c, "setRowCount", _n_setRowCount0, None, Compiled, qt_QStandardItem_setRowCount_void_QStandardItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "rows", "int"), End), + new Function(c, "setSelectable", _n_setSelectable0, None, Compiled, qt_QStandardItem_setSelectable_void_QStandardItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "selectable", "bool"), End), + new Function(c, "setSizeHint", _n_setSizeHint0, None, Compiled, qt_QStandardItem_setSizeHint_void_QStandardItem_QSize, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "size", "qt.QSize"), End), + new Function(c, "setStatusTip", _n_setStatusTip0, None, Compiled, qt_QStandardItem_setStatusTip_void_QStandardItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "statusTip", "string"), End), + new Function(c, "setText", _n_setText0, None, Compiled, qt_QStandardItem_setText_void_QStandardItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "text", "string"), End), + new Function(c, "setTextAlignment", _n_setTextAlignment0, None, Compiled, qt_QStandardItem_setTextAlignment_void_QStandardItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "alignment", "int"), End), + new Function(c, "setToolTip", _n_setToolTip0, None, Compiled, qt_QStandardItem_setToolTip_void_QStandardItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "toolTip", "string"), End), + new Function(c, "setUserTristate", _n_setUserTristate0, None, Compiled, qt_QStandardItem_setUserTristate_void_QStandardItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "tristate", "bool"), End), + new Function(c, "setWhatsThis", _n_setWhatsThis0, None, Compiled, qt_QStandardItem_setWhatsThis_void_QStandardItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "whatsThis", "string"), End), + new Function(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QStandardItem_sizeHint_QSize_QStandardItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "sortChildren", _n_sortChildren0, None, Compiled, qt_QStandardItem_sortChildren_void_QStandardItem_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "column", "int"), new Param(c, "order", "int", Value((int)Qt::AscendingOrder)), End), + new Function(c, "statusTip", _n_statusTip0, None, Compiled, qt_QStandardItem_statusTip_string_QStandardItem, Return, "string", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "takeChild", _n_takeChild0, None, Compiled, qt_QStandardItem_takeChild_QStandardItem_QStandardItem_int_int, Return, "qt.QStandardItem", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "takeColumn", _n_takeColumn0, None, Compiled, qt_QStandardItem_takeColumn_qt__QStandardItemBSB_ESB__QStandardItem_int, Return, "qt.QStandardItem[]", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "column", "int"), End), + new Function(c, "takeRow", _n_takeRow0, None, Compiled, qt_QStandardItem_takeRow_qt__QStandardItemBSB_ESB__QStandardItem_int, Return, "qt.QStandardItem[]", Parameters, new Param(c, "this", "qt.QStandardItem"), new Param(c, "row", "int"), End), + new Function(c, "text", _n_text0, None, Compiled, qt_QStandardItem_text_string_QStandardItem, Return, "string", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "textAlignment", _n_textAlignment0, None, Compiled, qt_QStandardItem_textAlignment_int_QStandardItem, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "toolTip", _n_toolTip0, None, Compiled, qt_QStandardItem_toolTip_string_QStandardItem, Return, "string", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new MemberFunction(c, "type", _n_type0, None, Compiled, qt_QStandardItem_type_int_QStandardItem, Return, "int", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + new Function(c, "whatsThis", _n_whatsThis0, None, Compiled, qt_QStandardItem_whatsThis_string_QStandardItem, Return, "string", Parameters, new Param(c, "this", "qt.QStandardItem"), End), + // MISSING: write (void; QStandardItem this, "QDataStream &" out) + // MISSING: QStandardItem (QStandardItem; QStandardItem this, QStandardItem other) // protected + // NOT INHERITABLE PROTECTED: emitDataChanged (void; QStandardItem this) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + // MISSING: = (QStandardItem; QStandardItem this, QStandardItem other) // protected + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QStatusBarType.cpp b/src/lib/mu/MuQt6/QStatusBarType.cpp new file mode 100644 index 000000000..26584beee --- /dev/null +++ b/src/lib/mu/MuQt6/QStatusBarType.cpp @@ -0,0 +1,1375 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QStatusBar::~MuQt_QStatusBar() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QStatusBar::MuQt_QStatusBar(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QStatusBar(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStatusBar")); +} + +bool MuQt_QStatusBar::event(QEvent * e) +{ + if (!_env) return QStatusBar::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStatusBar::event(e); + } +} + +void MuQt_QStatusBar::paintEvent(QPaintEvent * event) +{ + if (!_env) { QStatusBar::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::paintEvent(event); + } +} + +void MuQt_QStatusBar::resizeEvent(QResizeEvent * e) +{ + if (!_env) { QStatusBar::resizeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::resizeEvent(e); + } +} + +void MuQt_QStatusBar::showEvent(QShowEvent * _p13) +{ + if (!_env) { QStatusBar::showEvent(_p13); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p13,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::showEvent(_p13); + } +} + +bool MuQt_QStatusBar::hasHeightForWidth() const +{ + if (!_env) return QStatusBar::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStatusBar::hasHeightForWidth(); + } +} + +int MuQt_QStatusBar::heightForWidth(int w) const +{ + if (!_env) return QStatusBar::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QStatusBar::heightForWidth(w); + } +} + +QVariant MuQt_QStatusBar::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QStatusBar::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStatusBar::inputMethodQuery(query); + } +} + +QSize MuQt_QStatusBar::minimumSizeHint() const +{ + if (!_env) return QStatusBar::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStatusBar::minimumSizeHint(); + } +} + +QSize MuQt_QStatusBar::sizeHint() const +{ + if (!_env) return QStatusBar::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QStatusBar::sizeHint(); + } +} + +void MuQt_QStatusBar::changeEvent(QEvent * event) +{ + if (!_env) { QStatusBar::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::changeEvent(event); + } +} + +void MuQt_QStatusBar::closeEvent(QCloseEvent * event) +{ + if (!_env) { QStatusBar::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::closeEvent(event); + } +} + +void MuQt_QStatusBar::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QStatusBar::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::contextMenuEvent(event); + } +} + +void MuQt_QStatusBar::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QStatusBar::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::dragEnterEvent(event); + } +} + +void MuQt_QStatusBar::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QStatusBar::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::dragLeaveEvent(event); + } +} + +void MuQt_QStatusBar::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QStatusBar::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::dragMoveEvent(event); + } +} + +void MuQt_QStatusBar::dropEvent(QDropEvent * event) +{ + if (!_env) { QStatusBar::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::dropEvent(event); + } +} + +void MuQt_QStatusBar::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QStatusBar::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::focusInEvent(event); + } +} + +bool MuQt_QStatusBar::focusNextPrevChild(bool next) +{ + if (!_env) return QStatusBar::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QStatusBar::focusNextPrevChild(next); + } +} + +void MuQt_QStatusBar::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QStatusBar::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::focusOutEvent(event); + } +} + +void MuQt_QStatusBar::hideEvent(QHideEvent * event) +{ + if (!_env) { QStatusBar::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::hideEvent(event); + } +} + +void MuQt_QStatusBar::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QStatusBar::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::keyPressEvent(event); + } +} + +void MuQt_QStatusBar::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QStatusBar::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::keyReleaseEvent(event); + } +} + +void MuQt_QStatusBar::leaveEvent(QEvent * event) +{ + if (!_env) { QStatusBar::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::leaveEvent(event); + } +} + +void MuQt_QStatusBar::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QStatusBar::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::mouseDoubleClickEvent(event); + } +} + +void MuQt_QStatusBar::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QStatusBar::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::mouseMoveEvent(event); + } +} + +void MuQt_QStatusBar::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QStatusBar::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::mousePressEvent(event); + } +} + +void MuQt_QStatusBar::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QStatusBar::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::mouseReleaseEvent(event); + } +} + +void MuQt_QStatusBar::moveEvent(QMoveEvent * event) +{ + if (!_env) { QStatusBar::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::moveEvent(event); + } +} + +void MuQt_QStatusBar::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QStatusBar::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::tabletEvent(event); + } +} + +void MuQt_QStatusBar::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QStatusBar::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QStatusBar::wheelEvent(event); + } +} + +int MuQt_QStatusBar::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QStatusBar::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QStatusBar::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QStatusBarType::QStatusBarType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QStatusBarType::~QStatusBarType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QStatusBar_QStatusBar_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QStatusBar* w = object(widget)) + { + QStatusBarType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStatusBar"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QStatusBar_QStatusBar_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QStatusBar_QStatusBar_QStatusBar_QStatusBar_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QStatusBar(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QStatusBar_addPermanentWidget_void_QStatusBar_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + int arg2 = (int)(param_stretch); + arg0->addPermanentWidget(arg1, arg2); +} + +void qt_QStatusBar_addWidget_void_QStatusBar_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + int arg2 = (int)(param_stretch); + arg0->addWidget(arg1, arg2); +} + +Pointer qt_QStatusBar_currentMessage_string_QStatusBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + return makestring(c,arg0->currentMessage()); +} + +int qt_QStatusBar_insertPermanentWidget_int_QStatusBar_int_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_widget, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_widget); + int arg3 = (int)(param_stretch); + return arg0->insertPermanentWidget(arg1, arg2, arg3); +} + +int qt_QStatusBar_insertWidget_int_QStatusBar_int_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_widget, int param_stretch) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_widget); + int arg3 = (int)(param_stretch); + return arg0->insertWidget(arg1, arg2, arg3); +} + +void qt_QStatusBar_removeWidget_void_QStatusBar_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->removeWidget(arg1); +} + +void qt_QStatusBar_hideOrShow_void_QStatusBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + ((MuQt_QStatusBar*)arg0)->hideOrShow_pub(); +} + +void qt_QStatusBar_reformat_void_QStatusBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + ((MuQt_QStatusBar*)arg0)->reformat_pub(); +} + +bool qt_QStatusBar_event_bool_QStatusBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QStatusBar*)arg0)->event_pub_parent(arg1) : ((MuQt_QStatusBar*)arg0)->event_pub(arg1); +} + +void qt_QStatusBar_paintEvent_void_QStatusBar_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->paintEvent_pub(arg1); +} + +void qt_QStatusBar_resizeEvent_void_QStatusBar_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QStatusBar_showEvent_void_QStatusBar_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p13) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param__p13); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->showEvent_pub(arg1); +} + +bool qt_QStatusBar_hasHeightForWidth_bool_QStatusBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QStatusBar::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QStatusBar_heightForWidth_int_QStatusBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QStatusBar::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QStatusBar_inputMethodQuery_QVariant_QStatusBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStatusBar::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QStatusBar_minimumSizeHint_QSize_QStatusBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStatusBar::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QStatusBar_sizeHint_QSize_QStatusBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QStatusBar::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QStatusBar_changeEvent_void_QStatusBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->changeEvent_pub(arg1); +} + +void qt_QStatusBar_closeEvent_void_QStatusBar_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->closeEvent_pub(arg1); +} + +void qt_QStatusBar_contextMenuEvent_void_QStatusBar_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QStatusBar_dragEnterEvent_void_QStatusBar_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QStatusBar_dragLeaveEvent_void_QStatusBar_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QStatusBar_dragMoveEvent_void_QStatusBar_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QStatusBar_dropEvent_void_QStatusBar_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->dropEvent_pub(arg1); +} + +void qt_QStatusBar_focusInEvent_void_QStatusBar_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QStatusBar_focusNextPrevChild_bool_QStatusBar_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QStatusBar*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QStatusBar*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QStatusBar_focusOutEvent_void_QStatusBar_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QStatusBar_hideEvent_void_QStatusBar_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->hideEvent_pub(arg1); +} + +void qt_QStatusBar_keyPressEvent_void_QStatusBar_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QStatusBar_keyReleaseEvent_void_QStatusBar_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QStatusBar_leaveEvent_void_QStatusBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QStatusBar_mouseDoubleClickEvent_void_QStatusBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QStatusBar_mouseMoveEvent_void_QStatusBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QStatusBar_mousePressEvent_void_QStatusBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QStatusBar_mouseReleaseEvent_void_QStatusBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QStatusBar_moveEvent_void_QStatusBar_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->moveEvent_pub(arg1); +} + +void qt_QStatusBar_tabletEvent_void_QStatusBar_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QStatusBar_wheelEvent_void_QStatusBar_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QStatusBar*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QStatusBar*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QStatusBar_metric_int_QStatusBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStatusBar* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QStatusBar*)arg0)->metric_pub_parent(arg1) : ((MuQt_QStatusBar*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QStatusBar0, Pointer) +{ + NODE_RETURN(qt_QStatusBar_QStatusBar_QStatusBar_QStatusBar_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addPermanentWidget0, void) +{ + qt_QStatusBar_addPermanentWidget_void_QStatusBar_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_addWidget0, void) +{ + qt_QStatusBar_addWidget_void_QStatusBar_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_currentMessage0, Pointer) +{ + NODE_RETURN(qt_QStatusBar_currentMessage_string_QStatusBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertPermanentWidget0, int) +{ + NODE_RETURN(qt_QStatusBar_insertPermanentWidget_int_QStatusBar_int_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_insertWidget0, int) +{ + NODE_RETURN(qt_QStatusBar_insertWidget_int_QStatusBar_int_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_removeWidget0, void) +{ + qt_QStatusBar_removeWidget_void_QStatusBar_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideOrShow0, void) +{ + qt_QStatusBar_hideOrShow_void_QStatusBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_reformat0, void) +{ + qt_QStatusBar_reformat_void_QStatusBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QStatusBar_event_bool_QStatusBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QStatusBar_paintEvent_void_QStatusBar_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QStatusBar_resizeEvent_void_QStatusBar_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QStatusBar_showEvent_void_QStatusBar_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QStatusBar_hasHeightForWidth_bool_QStatusBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QStatusBar_heightForWidth_int_QStatusBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QStatusBar_inputMethodQuery_QVariant_QStatusBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QStatusBar_minimumSizeHint_QSize_QStatusBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QStatusBar_sizeHint_QSize_QStatusBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QStatusBar_changeEvent_void_QStatusBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QStatusBar_closeEvent_void_QStatusBar_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QStatusBar_contextMenuEvent_void_QStatusBar_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QStatusBar_dragEnterEvent_void_QStatusBar_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QStatusBar_dragLeaveEvent_void_QStatusBar_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QStatusBar_dragMoveEvent_void_QStatusBar_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QStatusBar_dropEvent_void_QStatusBar_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QStatusBar_focusInEvent_void_QStatusBar_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QStatusBar_focusNextPrevChild_bool_QStatusBar_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QStatusBar_focusOutEvent_void_QStatusBar_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QStatusBar_hideEvent_void_QStatusBar_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QStatusBar_keyPressEvent_void_QStatusBar_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QStatusBar_keyReleaseEvent_void_QStatusBar_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QStatusBar_leaveEvent_void_QStatusBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QStatusBar_mouseDoubleClickEvent_void_QStatusBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QStatusBar_mouseMoveEvent_void_QStatusBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QStatusBar_mousePressEvent_void_QStatusBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QStatusBar_mouseReleaseEvent_void_QStatusBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QStatusBar_moveEvent_void_QStatusBar_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QStatusBar_tabletEvent_void_QStatusBar_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QStatusBar_wheelEvent_void_QStatusBar_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QStatusBar_metric_int_QStatusBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QStatusBarType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QStatusBar_QStatusBar_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QStatusBar", _n_QStatusBar0, None, Compiled, qt_QStatusBar_QStatusBar_QStatusBar_QStatusBar_QWidget, Return, "qt.QStatusBar", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addPermanentWidget", _n_addPermanentWidget0, None, Compiled, qt_QStatusBar_addPermanentWidget_void_QStatusBar_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "widget", "qt.QWidget"), new Param(c, "stretch", "int", Value((int)0)), End), + new Function(c, "addWidget", _n_addWidget0, None, Compiled, qt_QStatusBar_addWidget_void_QStatusBar_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "widget", "qt.QWidget"), new Param(c, "stretch", "int", Value((int)0)), End), + new Function(c, "currentMessage", _n_currentMessage0, None, Compiled, qt_QStatusBar_currentMessage_string_QStatusBar, Return, "string", Parameters, new Param(c, "this", "qt.QStatusBar"), End), + new Function(c, "insertPermanentWidget", _n_insertPermanentWidget0, None, Compiled, qt_QStatusBar_insertPermanentWidget_int_QStatusBar_int_QWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "index", "int"), new Param(c, "widget", "qt.QWidget"), new Param(c, "stretch", "int", Value((int)0)), End), + new Function(c, "insertWidget", _n_insertWidget0, None, Compiled, qt_QStatusBar_insertWidget_int_QStatusBar_int_QWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "index", "int"), new Param(c, "widget", "qt.QWidget"), new Param(c, "stretch", "int", Value((int)0)), End), + // PROP: isSizeGripEnabled (bool; QStatusBar this) + new Function(c, "removeWidget", _n_removeWidget0, None, Compiled, qt_QStatusBar_removeWidget_void_QStatusBar_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: setSizeGripEnabled (void; QStatusBar this, bool _p4) + new Function(c, "hideOrShow", _n_hideOrShow0, None, Compiled, qt_QStatusBar_hideOrShow_void_QStatusBar, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), End), + new Function(c, "reformat", _n_reformat0, None, Compiled, qt_QStatusBar_reformat_void_QStatusBar, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), End), + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QStatusBar_event_bool_QStatusBar_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QStatusBar_paintEvent_void_QStatusBar_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[2] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QStatusBar_resizeEvent_void_QStatusBar_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "e", "qt.QResizeEvent"), End), + _func[3] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QStatusBar_showEvent_void_QStatusBar_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "_p13", "qt.QShowEvent"), End), + _func[4] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QStatusBar_hasHeightForWidth_bool_QStatusBar, Return, "bool", Parameters, new Param(c, "this", "qt.QStatusBar"), End), + _func[5] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QStatusBar_heightForWidth_int_QStatusBar_int, Return, "int", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "w", "int"), End), + _func[6] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QStatusBar_inputMethodQuery_QVariant_QStatusBar_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "query", "int"), End), + _func[7] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QStatusBar_minimumSizeHint_QSize_QStatusBar, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QStatusBar"), End), + _func[8] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QStatusBar_sizeHint_QSize_QStatusBar, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QStatusBar"), End), + // MISSING: paintEngine ("QPaintEngine *"; QStatusBar this) + // MISSING: actionEvent (void; QStatusBar this, "QActionEvent *" event) // protected + _func[9] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QStatusBar_changeEvent_void_QStatusBar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QEvent"), End), + _func[10] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QStatusBar_closeEvent_void_QStatusBar_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[11] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QStatusBar_contextMenuEvent_void_QStatusBar_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[12] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QStatusBar_dragEnterEvent_void_QStatusBar_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[13] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QStatusBar_dragLeaveEvent_void_QStatusBar_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[14] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QStatusBar_dragMoveEvent_void_QStatusBar_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[15] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QStatusBar_dropEvent_void_QStatusBar_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QStatusBar this, "QEnterEvent *" event) // protected + _func[16] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QStatusBar_focusInEvent_void_QStatusBar_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[17] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QStatusBar_focusNextPrevChild_bool_QStatusBar_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "next", "bool"), End), + _func[18] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QStatusBar_focusOutEvent_void_QStatusBar_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[19] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QStatusBar_hideEvent_void_QStatusBar_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QStatusBar this, "QInputMethodEvent *" event) // protected + _func[20] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QStatusBar_keyPressEvent_void_QStatusBar_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[21] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QStatusBar_keyReleaseEvent_void_QStatusBar_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[22] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QStatusBar_leaveEvent_void_QStatusBar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QEvent"), End), + _func[23] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QStatusBar_mouseDoubleClickEvent_void_QStatusBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QStatusBar_mouseMoveEvent_void_QStatusBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[25] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QStatusBar_mousePressEvent_void_QStatusBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[26] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QStatusBar_mouseReleaseEvent_void_QStatusBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[27] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QStatusBar_moveEvent_void_QStatusBar_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QStatusBar this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[28] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QStatusBar_tabletEvent_void_QStatusBar_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[29] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QStatusBar_wheelEvent_void_QStatusBar_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QStatusBar this, "QPainter *" painter) // protected + _func[30] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QStatusBar_metric_int_QStatusBar_int, Return, "int", Parameters, new Param(c, "this", "qt.QStatusBar"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QStatusBar::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QStringConverterType.cpp b/src/lib/mu/MuQt6/QStringConverterType.cpp new file mode 100644 index 000000000..6f2c9a0a6 --- /dev/null +++ b/src/lib/mu/MuQt6/QStringConverterType.cpp @@ -0,0 +1,167 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QStringConverterType::QStringConverterType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QStringConverterType::~QStringConverterType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +bool qt_QStringConverter_hasError_bool_QStringConverter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStringConverter * arg0 = getqpointer(param_this); + return arg0->hasError(); +} + +bool qt_QStringConverter_isValid_bool_QStringConverter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStringConverter * arg0 = getqpointer(param_this); + return arg0->isValid(); +} + +void qt_QStringConverter_resetState_void_QStringConverter(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QStringConverter * arg0 = getqpointer(param_this); + arg0->resetState(); + setqpointer(param_this,arg0); +} + + +static NODE_IMPLEMENTATION(_n_hasError0, bool) +{ + NODE_RETURN(qt_QStringConverter_hasError_bool_QStringConverter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QStringConverter_isValid_bool_QStringConverter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resetState0, void) +{ + qt_QStringConverter_resetState_void_QStringConverter(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + + + +void +QStringConverterType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + new Alias(c, "Encoding", "int"), + new SymbolicConstant(c, "Utf8", "int", Value(int(QStringConverter::Utf8))), + new SymbolicConstant(c, "Utf16", "int", Value(int(QStringConverter::Utf16))), + new SymbolicConstant(c, "Utf16BE", "int", Value(int(QStringConverter::Utf16BE))), + new SymbolicConstant(c, "Utf16LE", "int", Value(int(QStringConverter::Utf16LE))), + new SymbolicConstant(c, "Utf32", "int", Value(int(QStringConverter::Utf32))), + new SymbolicConstant(c, "Utf32BE", "int", Value(int(QStringConverter::Utf32BE))), + new SymbolicConstant(c, "Utf32LE", "int", Value(int(QStringConverter::Utf32LE))), + new SymbolicConstant(c, "Latin1", "int", Value(int(QStringConverter::Latin1))), + new SymbolicConstant(c, "System", "int", Value(int(QStringConverter::System))), + new Alias(c, "Flag", "int"), + new Alias(c, "Flags", "int"), + new SymbolicConstant(c, "Default", "int", Value(int(QStringConverter::Flag::Default))), + new SymbolicConstant(c, "ConvertInvalidToNull", "int", Value(int(QStringConverter::Flag::ConvertInvalidToNull))), + new SymbolicConstant(c, "WriteBom", "int", Value(int(QStringConverter::Flag::WriteBom))), + new SymbolicConstant(c, "ConvertInitialBom", "int", Value(int(QStringConverter::Flag::ConvertInitialBom))), + new SymbolicConstant(c, "Stateless", "int", Value(int(QStringConverter::Flag::Stateless))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "hasError", _n_hasError0, None, Compiled, qt_QStringConverter_hasError_bool_QStringConverter, Return, "bool", Parameters, new Param(c, "this", "qt.QStringConverter"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QStringConverter_isValid_bool_QStringConverter, Return, "bool", Parameters, new Param(c, "this", "qt.QStringConverter"), End), + // MISSING: name ("const char *"; QStringConverter this) + new Function(c, "resetState", _n_resetState0, None, Compiled, qt_QStringConverter_resetState_void_QStringConverter, Return, "void", Parameters, new Param(c, "this", "qt.QStringConverter"), End), + // static functions + // MISSING: encodingForData (flags std::optional; "QByteArrayView" data, "char16_t" expectedFirstCharacter) + // MISSING: encodingForHtml (flags std::optional; "QByteArrayView" data) + // MISSING: encodingForName (flags std::optional; "const char *" name) + // MISSING: nameForEncoding ("const char *"; flags QStringConverter::Encoding e) + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QSvgWidgetType.cpp b/src/lib/mu/MuQt6/QSvgWidgetType.cpp new file mode 100644 index 000000000..0f83da02e --- /dev/null +++ b/src/lib/mu/MuQt6/QSvgWidgetType.cpp @@ -0,0 +1,1284 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QSvgWidget::~MuQt_QSvgWidget() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QSvgWidget::MuQt_QSvgWidget(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QSvgWidget(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSvgWidget")); +} + +MuQt_QSvgWidget::MuQt_QSvgWidget(Pointer muobj, const CallEnvironment* ce, const QString & file, QWidget * parent) + : QSvgWidget(file, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSvgWidget")); +} + +QSize MuQt_QSvgWidget::sizeHint() const +{ + if (!_env) return QSvgWidget::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSvgWidget::sizeHint(); + } +} + +void MuQt_QSvgWidget::paintEvent(QPaintEvent * event) +{ + if (!_env) { QSvgWidget::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::paintEvent(event); + } +} + +bool MuQt_QSvgWidget::hasHeightForWidth() const +{ + if (!_env) return QSvgWidget::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QSvgWidget::hasHeightForWidth(); + } +} + +int MuQt_QSvgWidget::heightForWidth(int w) const +{ + if (!_env) return QSvgWidget::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QSvgWidget::heightForWidth(w); + } +} + +QVariant MuQt_QSvgWidget::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QSvgWidget::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSvgWidget::inputMethodQuery(query); + } +} + +QSize MuQt_QSvgWidget::minimumSizeHint() const +{ + if (!_env) return QSvgWidget::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QSvgWidget::minimumSizeHint(); + } +} + +void MuQt_QSvgWidget::changeEvent(QEvent * event) +{ + if (!_env) { QSvgWidget::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::changeEvent(event); + } +} + +void MuQt_QSvgWidget::closeEvent(QCloseEvent * event) +{ + if (!_env) { QSvgWidget::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::closeEvent(event); + } +} + +void MuQt_QSvgWidget::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QSvgWidget::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::contextMenuEvent(event); + } +} + +void MuQt_QSvgWidget::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QSvgWidget::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::dragEnterEvent(event); + } +} + +void MuQt_QSvgWidget::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QSvgWidget::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::dragLeaveEvent(event); + } +} + +void MuQt_QSvgWidget::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QSvgWidget::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::dragMoveEvent(event); + } +} + +void MuQt_QSvgWidget::dropEvent(QDropEvent * event) +{ + if (!_env) { QSvgWidget::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::dropEvent(event); + } +} + +void MuQt_QSvgWidget::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QSvgWidget::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::focusInEvent(event); + } +} + +bool MuQt_QSvgWidget::focusNextPrevChild(bool next) +{ + if (!_env) return QSvgWidget::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QSvgWidget::focusNextPrevChild(next); + } +} + +void MuQt_QSvgWidget::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QSvgWidget::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::focusOutEvent(event); + } +} + +void MuQt_QSvgWidget::hideEvent(QHideEvent * event) +{ + if (!_env) { QSvgWidget::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::hideEvent(event); + } +} + +void MuQt_QSvgWidget::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QSvgWidget::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::keyPressEvent(event); + } +} + +void MuQt_QSvgWidget::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QSvgWidget::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::keyReleaseEvent(event); + } +} + +void MuQt_QSvgWidget::leaveEvent(QEvent * event) +{ + if (!_env) { QSvgWidget::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::leaveEvent(event); + } +} + +void MuQt_QSvgWidget::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QSvgWidget::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::mouseDoubleClickEvent(event); + } +} + +void MuQt_QSvgWidget::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QSvgWidget::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::mouseMoveEvent(event); + } +} + +void MuQt_QSvgWidget::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QSvgWidget::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::mousePressEvent(event); + } +} + +void MuQt_QSvgWidget::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QSvgWidget::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::mouseReleaseEvent(event); + } +} + +void MuQt_QSvgWidget::moveEvent(QMoveEvent * event) +{ + if (!_env) { QSvgWidget::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::moveEvent(event); + } +} + +void MuQt_QSvgWidget::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QSvgWidget::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::resizeEvent(event); + } +} + +void MuQt_QSvgWidget::showEvent(QShowEvent * event) +{ + if (!_env) { QSvgWidget::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::showEvent(event); + } +} + +void MuQt_QSvgWidget::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QSvgWidget::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::tabletEvent(event); + } +} + +void MuQt_QSvgWidget::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QSvgWidget::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QSvgWidget::wheelEvent(event); + } +} + +bool MuQt_QSvgWidget::event(QEvent * event_) +{ + if (!_env) return QSvgWidget::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QSvgWidget::event(event_); + } +} + +int MuQt_QSvgWidget::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QSvgWidget::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QSvgWidget::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QSvgWidgetType::QSvgWidgetType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QSvgWidgetType::~QSvgWidgetType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QSvgWidget_QSvgWidget_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QSvgWidget* w = object(widget)) + { + QSvgWidgetType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QSvgWidget"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QSvgWidget_QSvgWidget_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QSvgWidget_QSvgWidget_QSvgWidget_QSvgWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QSvgWidget(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QSvgWidget_QSvgWidget_QSvgWidget_QSvgWidget_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_file, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_file); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QSvgWidget(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QSvgWidget_sizeHint_QSize_QSvgWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QSvgWidget::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QSvgWidget_paintEvent_void_QSvgWidget_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->paintEvent_pub(arg1); +} + +bool qt_QSvgWidget_hasHeightForWidth_bool_QSvgWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QSvgWidget::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QSvgWidget_heightForWidth_int_QSvgWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QSvgWidget::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QSvgWidget_inputMethodQuery_QVariant_QSvgWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QSvgWidget::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QSvgWidget_minimumSizeHint_QSize_QSvgWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QSvgWidget::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +void qt_QSvgWidget_changeEvent_void_QSvgWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->changeEvent_pub(arg1); +} + +void qt_QSvgWidget_closeEvent_void_QSvgWidget_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->closeEvent_pub(arg1); +} + +void qt_QSvgWidget_contextMenuEvent_void_QSvgWidget_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QSvgWidget_dragEnterEvent_void_QSvgWidget_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QSvgWidget_dragLeaveEvent_void_QSvgWidget_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QSvgWidget_dragMoveEvent_void_QSvgWidget_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QSvgWidget_dropEvent_void_QSvgWidget_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->dropEvent_pub(arg1); +} + +void qt_QSvgWidget_focusInEvent_void_QSvgWidget_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QSvgWidget_focusNextPrevChild_bool_QSvgWidget_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QSvgWidget*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QSvgWidget*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QSvgWidget_focusOutEvent_void_QSvgWidget_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QSvgWidget_hideEvent_void_QSvgWidget_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->hideEvent_pub(arg1); +} + +void qt_QSvgWidget_keyPressEvent_void_QSvgWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QSvgWidget_keyReleaseEvent_void_QSvgWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QSvgWidget_leaveEvent_void_QSvgWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QSvgWidget_mouseDoubleClickEvent_void_QSvgWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QSvgWidget_mouseMoveEvent_void_QSvgWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QSvgWidget_mousePressEvent_void_QSvgWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QSvgWidget_mouseReleaseEvent_void_QSvgWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QSvgWidget_moveEvent_void_QSvgWidget_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->moveEvent_pub(arg1); +} + +void qt_QSvgWidget_resizeEvent_void_QSvgWidget_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QSvgWidget_showEvent_void_QSvgWidget_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->showEvent_pub(arg1); +} + +void qt_QSvgWidget_tabletEvent_void_QSvgWidget_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QSvgWidget_wheelEvent_void_QSvgWidget_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QSvgWidget*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QSvgWidget*)arg0)->wheelEvent_pub(arg1); +} + +bool qt_QSvgWidget_event_bool_QSvgWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QSvgWidget*)arg0)->event_pub_parent(arg1) : ((MuQt_QSvgWidget*)arg0)->event_pub(arg1); +} + +int qt_QSvgWidget_metric_int_QSvgWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSvgWidget* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QSvgWidget*)arg0)->metric_pub_parent(arg1) : ((MuQt_QSvgWidget*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QSvgWidget0, Pointer) +{ + NODE_RETURN(qt_QSvgWidget_QSvgWidget_QSvgWidget_QSvgWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QSvgWidget1, Pointer) +{ + NODE_RETURN(qt_QSvgWidget_QSvgWidget_QSvgWidget_QSvgWidget_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QSvgWidget_sizeHint_QSize_QSvgWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QSvgWidget_paintEvent_void_QSvgWidget_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QSvgWidget_hasHeightForWidth_bool_QSvgWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QSvgWidget_heightForWidth_int_QSvgWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QSvgWidget_inputMethodQuery_QVariant_QSvgWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QSvgWidget_minimumSizeHint_QSize_QSvgWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QSvgWidget_changeEvent_void_QSvgWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QSvgWidget_closeEvent_void_QSvgWidget_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QSvgWidget_contextMenuEvent_void_QSvgWidget_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QSvgWidget_dragEnterEvent_void_QSvgWidget_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QSvgWidget_dragLeaveEvent_void_QSvgWidget_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QSvgWidget_dragMoveEvent_void_QSvgWidget_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QSvgWidget_dropEvent_void_QSvgWidget_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QSvgWidget_focusInEvent_void_QSvgWidget_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QSvgWidget_focusNextPrevChild_bool_QSvgWidget_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QSvgWidget_focusOutEvent_void_QSvgWidget_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QSvgWidget_hideEvent_void_QSvgWidget_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QSvgWidget_keyPressEvent_void_QSvgWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QSvgWidget_keyReleaseEvent_void_QSvgWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QSvgWidget_leaveEvent_void_QSvgWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QSvgWidget_mouseDoubleClickEvent_void_QSvgWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QSvgWidget_mouseMoveEvent_void_QSvgWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QSvgWidget_mousePressEvent_void_QSvgWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QSvgWidget_mouseReleaseEvent_void_QSvgWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QSvgWidget_moveEvent_void_QSvgWidget_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QSvgWidget_resizeEvent_void_QSvgWidget_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QSvgWidget_showEvent_void_QSvgWidget_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QSvgWidget_tabletEvent_void_QSvgWidget_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QSvgWidget_wheelEvent_void_QSvgWidget_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QSvgWidget_event_bool_QSvgWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QSvgWidget_metric_int_QSvgWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QSvgWidgetType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QSvgWidget_QSvgWidget_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QSvgWidget", _n_QSvgWidget0, None, Compiled, qt_QSvgWidget_QSvgWidget_QSvgWidget_QSvgWidget_QWidget, Return, "qt.QSvgWidget", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QSvgWidget", _n_QSvgWidget1, None, Compiled, qt_QSvgWidget_QSvgWidget_QSvgWidget_QSvgWidget_string_QWidget, Return, "qt.QSvgWidget", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "file", "string"), new Param(c, "parent", "qt.QWidget"), End), + // MISSING: renderer ("QSvgRenderer *"; QSvgWidget this) + _func[0] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QSvgWidget_sizeHint_QSize_QSvgWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSvgWidget"), End), + _func[1] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QSvgWidget_paintEvent_void_QSvgWidget_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[2] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QSvgWidget_hasHeightForWidth_bool_QSvgWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QSvgWidget"), End), + _func[3] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QSvgWidget_heightForWidth_int_QSvgWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "w", "int"), End), + _func[4] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QSvgWidget_inputMethodQuery_QVariant_QSvgWidget_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "query", "int"), End), + _func[5] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QSvgWidget_minimumSizeHint_QSize_QSvgWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QSvgWidget"), End), + // MISSING: paintEngine ("QPaintEngine *"; QSvgWidget this) + // MISSING: actionEvent (void; QSvgWidget this, "QActionEvent *" event) // protected + _func[6] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QSvgWidget_changeEvent_void_QSvgWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[7] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QSvgWidget_closeEvent_void_QSvgWidget_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[8] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QSvgWidget_contextMenuEvent_void_QSvgWidget_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[9] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QSvgWidget_dragEnterEvent_void_QSvgWidget_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[10] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QSvgWidget_dragLeaveEvent_void_QSvgWidget_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[11] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QSvgWidget_dragMoveEvent_void_QSvgWidget_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[12] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QSvgWidget_dropEvent_void_QSvgWidget_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QSvgWidget this, "QEnterEvent *" event) // protected + _func[13] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QSvgWidget_focusInEvent_void_QSvgWidget_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[14] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QSvgWidget_focusNextPrevChild_bool_QSvgWidget_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "next", "bool"), End), + _func[15] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QSvgWidget_focusOutEvent_void_QSvgWidget_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[16] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QSvgWidget_hideEvent_void_QSvgWidget_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QSvgWidget this, "QInputMethodEvent *" event) // protected + _func[17] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QSvgWidget_keyPressEvent_void_QSvgWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[18] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QSvgWidget_keyReleaseEvent_void_QSvgWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[19] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QSvgWidget_leaveEvent_void_QSvgWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[20] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QSvgWidget_mouseDoubleClickEvent_void_QSvgWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[21] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QSvgWidget_mouseMoveEvent_void_QSvgWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[22] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QSvgWidget_mousePressEvent_void_QSvgWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[23] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QSvgWidget_mouseReleaseEvent_void_QSvgWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QSvgWidget_moveEvent_void_QSvgWidget_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QSvgWidget this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[25] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QSvgWidget_resizeEvent_void_QSvgWidget_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[26] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QSvgWidget_showEvent_void_QSvgWidget_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QShowEvent"), End), + _func[27] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QSvgWidget_tabletEvent_void_QSvgWidget_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[28] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QSvgWidget_wheelEvent_void_QSvgWidget_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event", "qt.QWheelEvent"), End), + _func[29] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QSvgWidget_event_bool_QSvgWidget_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "event_", "qt.QEvent"), End), + // MISSING: initPainter (void; QSvgWidget this, "QPainter *" painter) // protected + _func[30] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QSvgWidget_metric_int_QSvgWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QSvgWidget"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QSvgWidget::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTabBarType.cpp b/src/lib/mu/MuQt6/QTabBarType.cpp new file mode 100644 index 000000000..c550221e9 --- /dev/null +++ b/src/lib/mu/MuQt6/QTabBarType.cpp @@ -0,0 +1,1902 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTabBar::~MuQt_QTabBar() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTabBar::MuQt_QTabBar(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QTabBar(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTabBar")); +} + +QSize MuQt_QTabBar::minimumSizeHint() const +{ + if (!_env) return QTabBar::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTabBar::minimumSizeHint(); + } +} + +QSize MuQt_QTabBar::sizeHint() const +{ + if (!_env) return QTabBar::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTabBar::sizeHint(); + } +} + +QSize MuQt_QTabBar::minimumTabSizeHint(int index) const +{ + if (!_env) return QTabBar::minimumTabSizeHint(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTabBar::minimumTabSizeHint(index); + } +} + +void MuQt_QTabBar::tabInserted(int index) +{ + if (!_env) { QTabBar::tabInserted(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + } + else + { + QTabBar::tabInserted(index); + } +} + +void MuQt_QTabBar::tabLayoutChange() +{ + if (!_env) { QTabBar::tabLayoutChange(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTabBar::tabLayoutChange(); + } +} + +void MuQt_QTabBar::tabRemoved(int index) +{ + if (!_env) { QTabBar::tabRemoved(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + } + else + { + QTabBar::tabRemoved(index); + } +} + +QSize MuQt_QTabBar::tabSizeHint(int index) const +{ + if (!_env) return QTabBar::tabSizeHint(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTabBar::tabSizeHint(index); + } +} + +void MuQt_QTabBar::changeEvent(QEvent * event) +{ + if (!_env) { QTabBar::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::changeEvent(event); + } +} + +bool MuQt_QTabBar::event(QEvent * event_) +{ + if (!_env) return QTabBar::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTabBar::event(event_); + } +} + +void MuQt_QTabBar::hideEvent(QHideEvent * _p13) +{ + if (!_env) { QTabBar::hideEvent(_p13); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p13,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::hideEvent(_p13); + } +} + +void MuQt_QTabBar::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QTabBar::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::keyPressEvent(event); + } +} + +void MuQt_QTabBar::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QTabBar::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::mouseDoubleClickEvent(event); + } +} + +void MuQt_QTabBar::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QTabBar::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::mouseMoveEvent(event); + } +} + +void MuQt_QTabBar::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QTabBar::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::mousePressEvent(event); + } +} + +void MuQt_QTabBar::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QTabBar::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::mouseReleaseEvent(event); + } +} + +void MuQt_QTabBar::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QTabBar::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::paintEvent(_p14); + } +} + +void MuQt_QTabBar::resizeEvent(QResizeEvent * _p15) +{ + if (!_env) { QTabBar::resizeEvent(_p15); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p15,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::resizeEvent(_p15); + } +} + +void MuQt_QTabBar::showEvent(QShowEvent * _p13) +{ + if (!_env) { QTabBar::showEvent(_p13); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p13,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::showEvent(_p13); + } +} + +void MuQt_QTabBar::timerEvent(QTimerEvent * event) +{ + if (!_env) { QTabBar::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::timerEvent(event); + } +} + +void MuQt_QTabBar::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QTabBar::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::wheelEvent(event); + } +} + +bool MuQt_QTabBar::hasHeightForWidth() const +{ + if (!_env) return QTabBar::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTabBar::hasHeightForWidth(); + } +} + +int MuQt_QTabBar::heightForWidth(int w) const +{ + if (!_env) return QTabBar::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTabBar::heightForWidth(w); + } +} + +QVariant MuQt_QTabBar::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QTabBar::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTabBar::inputMethodQuery(query); + } +} + +void MuQt_QTabBar::closeEvent(QCloseEvent * event) +{ + if (!_env) { QTabBar::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::closeEvent(event); + } +} + +void MuQt_QTabBar::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QTabBar::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::contextMenuEvent(event); + } +} + +void MuQt_QTabBar::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QTabBar::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::dragEnterEvent(event); + } +} + +void MuQt_QTabBar::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QTabBar::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::dragLeaveEvent(event); + } +} + +void MuQt_QTabBar::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QTabBar::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::dragMoveEvent(event); + } +} + +void MuQt_QTabBar::dropEvent(QDropEvent * event) +{ + if (!_env) { QTabBar::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::dropEvent(event); + } +} + +void MuQt_QTabBar::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QTabBar::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::focusInEvent(event); + } +} + +bool MuQt_QTabBar::focusNextPrevChild(bool next) +{ + if (!_env) return QTabBar::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTabBar::focusNextPrevChild(next); + } +} + +void MuQt_QTabBar::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QTabBar::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::focusOutEvent(event); + } +} + +void MuQt_QTabBar::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QTabBar::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::keyReleaseEvent(event); + } +} + +void MuQt_QTabBar::leaveEvent(QEvent * event) +{ + if (!_env) { QTabBar::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::leaveEvent(event); + } +} + +void MuQt_QTabBar::moveEvent(QMoveEvent * event) +{ + if (!_env) { QTabBar::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[34]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::moveEvent(event); + } +} + +void MuQt_QTabBar::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QTabBar::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[35]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabBar::tabletEvent(event); + } +} + +int MuQt_QTabBar::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QTabBar::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[36]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTabBar::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTabBarType::QTabBarType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTabBarType::~QTabBarType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTabBar_QTabBar_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTabBar* w = object(widget)) + { + QTabBarType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTabBar"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTabBar_QTabBar_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTabBar_QTabBar_QTabBar_QTabBar_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTabBar(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QTabBar_accessibleTabName_string_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makestring(c,arg0->accessibleTabName(arg1)); +} + +int qt_QTabBar_addTab_int_QTabBar_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + return arg0->addTab(arg1); +} + +int qt_QTabBar_addTab_int_QTabBar_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + return arg0->addTab(arg1, arg2); +} + +int qt_QTabBar_insertTab_int_QTabBar_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_text); + return arg0->insertTab(arg1, arg2); +} + +int qt_QTabBar_insertTab_int_QTabBar_int_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_icon, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QIcon arg2 = getqtype(param_icon); + const QString arg3 = qstring(param_text); + return arg0->insertTab(arg1, arg2, arg3); +} + +bool qt_QTabBar_isTabEnabled_bool_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return arg0->isTabEnabled(arg1); +} + +bool qt_QTabBar_isTabVisible_bool_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return arg0->isTabVisible(arg1); +} + +void qt_QTabBar_moveTab_void_QTabBar_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_from, int param_to) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_from); + int arg2 = (int)(param_to); + arg0->moveTab(arg1, arg2); +} + +void qt_QTabBar_removeTab_void_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + arg0->removeTab(arg1); +} + +void qt_QTabBar_setAccessibleTabName_void_QTabBar_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_name); + arg0->setAccessibleTabName(arg1, arg2); +} + +void qt_QTabBar_setTabButton_void_QTabBar_int_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, int param_position, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + QTabBar::ButtonPosition arg2 = (QTabBar::ButtonPosition)(param_position); + QWidget * arg3 = object(param_widget); + arg0->setTabButton(arg1, arg2, arg3); +} + +void qt_QTabBar_setTabData_void_QTabBar_int_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_data) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QVariant arg2 = getqtype(param_data); + arg0->setTabData(arg1, arg2); +} + +void qt_QTabBar_setTabEnabled_void_QTabBar_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, bool param_enabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + bool arg2 = (bool)(param_enabled); + arg0->setTabEnabled(arg1, arg2); +} + +void qt_QTabBar_setTabIcon_void_QTabBar_int_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_icon) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QIcon arg2 = getqtype(param_icon); + arg0->setTabIcon(arg1, arg2); +} + +void qt_QTabBar_setTabText_void_QTabBar_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_text); + arg0->setTabText(arg1, arg2); +} + +void qt_QTabBar_setTabTextColor_void_QTabBar_int_QColor(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_color) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QColor arg2 = getqtype(param_color); + arg0->setTabTextColor(arg1, arg2); +} + +void qt_QTabBar_setTabToolTip_void_QTabBar_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_tip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_tip); + arg0->setTabToolTip(arg1, arg2); +} + +void qt_QTabBar_setTabVisible_void_QTabBar_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, bool param_visible) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + bool arg2 = (bool)(param_visible); + arg0->setTabVisible(arg1, arg2); +} + +void qt_QTabBar_setTabWhatsThis_void_QTabBar_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_text); + arg0->setTabWhatsThis(arg1, arg2); +} + +int qt_QTabBar_tabAt_int_QTabBar_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_position); + return arg0->tabAt(arg1); +} + +Pointer qt_QTabBar_tabButton_QWidget_QTabBar_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, int param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + QTabBar::ButtonPosition arg2 = (QTabBar::ButtonPosition)(param_position); + return makeinstance(c, arg0->tabButton(arg1, arg2), "qt.QWidget"); +} + +Pointer qt_QTabBar_tabData_QVariant_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeqtype(c,arg0->tabData(arg1),"qt.QVariant"); +} + +Pointer qt_QTabBar_tabIcon_QIcon_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeqtype(c,arg0->tabIcon(arg1),"qt.QIcon"); +} + +Pointer qt_QTabBar_tabRect_QRect_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeqtype(c,arg0->tabRect(arg1),"qt.QRect"); +} + +Pointer qt_QTabBar_tabText_string_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makestring(c,arg0->tabText(arg1)); +} + +Pointer qt_QTabBar_tabTextColor_QColor_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeqtype(c,arg0->tabTextColor(arg1),"qt.QColor"); +} + +Pointer qt_QTabBar_tabToolTip_string_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makestring(c,arg0->tabToolTip(arg1)); +} + +Pointer qt_QTabBar_tabWhatsThis_string_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makestring(c,arg0->tabWhatsThis(arg1)); +} + +Pointer qt_QTabBar_minimumSizeHint_QSize_QTabBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTabBar::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QTabBar_sizeHint_QSize_QTabBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTabBar::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QTabBar_minimumTabSizeHint_QSize_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTabBar*)arg0)->minimumTabSizeHint_pub_parent(arg1),"qt.QSize") : makeqtype(c,((MuQt_QTabBar*)arg0)->minimumTabSizeHint_pub(arg1),"qt.QSize"); +} + +void qt_QTabBar_tabInserted_void_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->tabInserted_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->tabInserted_pub(arg1); +} + +void qt_QTabBar_tabLayoutChange_void_QTabBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->tabLayoutChange_pub_parent(); + else ((MuQt_QTabBar*)arg0)->tabLayoutChange_pub(); +} + +void qt_QTabBar_tabRemoved_void_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->tabRemoved_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->tabRemoved_pub(arg1); +} + +Pointer qt_QTabBar_tabSizeHint_QSize_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTabBar*)arg0)->tabSizeHint_pub_parent(arg1),"qt.QSize") : makeqtype(c,((MuQt_QTabBar*)arg0)->tabSizeHint_pub(arg1),"qt.QSize"); +} + +void qt_QTabBar_changeEvent_void_QTabBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QTabBar_event_bool_QTabBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QTabBar*)arg0)->event_pub_parent(arg1) : ((MuQt_QTabBar*)arg0)->event_pub(arg1); +} + +void qt_QTabBar_hideEvent_void_QTabBar_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p13) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param__p13); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->hideEvent_pub(arg1); +} + +void qt_QTabBar_keyPressEvent_void_QTabBar_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QTabBar_mouseDoubleClickEvent_void_QTabBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QTabBar_mouseMoveEvent_void_QTabBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QTabBar_mousePressEvent_void_QTabBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QTabBar_mouseReleaseEvent_void_QTabBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QTabBar_paintEvent_void_QTabBar_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->paintEvent_pub(arg1); +} + +void qt_QTabBar_resizeEvent_void_QTabBar_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p15) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param__p15); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QTabBar_showEvent_void_QTabBar_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p13) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param__p13); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->showEvent_pub(arg1); +} + +void qt_QTabBar_timerEvent_void_QTabBar_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->timerEvent_pub(arg1); +} + +void qt_QTabBar_wheelEvent_void_QTabBar_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->wheelEvent_pub(arg1); +} + +bool qt_QTabBar_hasHeightForWidth_bool_QTabBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QTabBar::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QTabBar_heightForWidth_int_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QTabBar::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QTabBar_inputMethodQuery_QVariant_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTabBar::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +void qt_QTabBar_closeEvent_void_QTabBar_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->closeEvent_pub(arg1); +} + +void qt_QTabBar_contextMenuEvent_void_QTabBar_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QTabBar_dragEnterEvent_void_QTabBar_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QTabBar_dragLeaveEvent_void_QTabBar_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QTabBar_dragMoveEvent_void_QTabBar_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QTabBar_dropEvent_void_QTabBar_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->dropEvent_pub(arg1); +} + +void qt_QTabBar_focusInEvent_void_QTabBar_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QTabBar_focusNextPrevChild_bool_QTabBar_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QTabBar*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QTabBar*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QTabBar_focusOutEvent_void_QTabBar_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QTabBar_keyReleaseEvent_void_QTabBar_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QTabBar_leaveEvent_void_QTabBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QTabBar_moveEvent_void_QTabBar_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->moveEvent_pub(arg1); +} + +void qt_QTabBar_tabletEvent_void_QTabBar_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabBar*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QTabBar*)arg0)->tabletEvent_pub(arg1); +} + +int qt_QTabBar_metric_int_QTabBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabBar* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QTabBar*)arg0)->metric_pub_parent(arg1) : ((MuQt_QTabBar*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTabBar0, Pointer) +{ + NODE_RETURN(qt_QTabBar_QTabBar_QTabBar_QTabBar_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_accessibleTabName0, Pointer) +{ + NODE_RETURN(qt_QTabBar_accessibleTabName_string_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_addTab0, int) +{ + NODE_RETURN(qt_QTabBar_addTab_int_QTabBar_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addTab1, int) +{ + NODE_RETURN(qt_QTabBar_addTab_int_QTabBar_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertTab0, int) +{ + NODE_RETURN(qt_QTabBar_insertTab_int_QTabBar_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertTab1, int) +{ + NODE_RETURN(qt_QTabBar_insertTab_int_QTabBar_int_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isTabEnabled0, bool) +{ + NODE_RETURN(qt_QTabBar_isTabEnabled_bool_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isTabVisible0, bool) +{ + NODE_RETURN(qt_QTabBar_isTabVisible_bool_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_moveTab0, void) +{ + qt_QTabBar_moveTab_void_QTabBar_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_removeTab0, void) +{ + qt_QTabBar_removeTab_void_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setAccessibleTabName0, void) +{ + qt_QTabBar_setAccessibleTabName_void_QTabBar_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabButton0, void) +{ + qt_QTabBar_setTabButton_void_QTabBar_int_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabData0, void) +{ + qt_QTabBar_setTabData_void_QTabBar_int_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabEnabled0, void) +{ + qt_QTabBar_setTabEnabled_void_QTabBar_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setTabIcon0, void) +{ + qt_QTabBar_setTabIcon_void_QTabBar_int_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabText0, void) +{ + qt_QTabBar_setTabText_void_QTabBar_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabTextColor0, void) +{ + qt_QTabBar_setTabTextColor_void_QTabBar_int_QColor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabToolTip0, void) +{ + qt_QTabBar_setTabToolTip_void_QTabBar_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabVisible0, void) +{ + qt_QTabBar_setTabVisible_void_QTabBar_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setTabWhatsThis0, void) +{ + qt_QTabBar_setTabWhatsThis_void_QTabBar_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabAt0, int) +{ + NODE_RETURN(qt_QTabBar_tabAt_int_QTabBar_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_tabButton0, Pointer) +{ + NODE_RETURN(qt_QTabBar_tabButton_QWidget_QTabBar_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_tabData0, Pointer) +{ + NODE_RETURN(qt_QTabBar_tabData_QVariant_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabIcon0, Pointer) +{ + NODE_RETURN(qt_QTabBar_tabIcon_QIcon_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabRect0, Pointer) +{ + NODE_RETURN(qt_QTabBar_tabRect_QRect_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabText0, Pointer) +{ + NODE_RETURN(qt_QTabBar_tabText_string_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabTextColor0, Pointer) +{ + NODE_RETURN(qt_QTabBar_tabTextColor_QColor_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabToolTip0, Pointer) +{ + NODE_RETURN(qt_QTabBar_tabToolTip_string_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabWhatsThis0, Pointer) +{ + NODE_RETURN(qt_QTabBar_tabWhatsThis_string_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QTabBar_minimumSizeHint_QSize_QTabBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QTabBar_sizeHint_QSize_QTabBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumTabSizeHint0, Pointer) +{ + NODE_RETURN(qt_QTabBar_minimumTabSizeHint_QSize_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabInserted0, void) +{ + qt_QTabBar_tabInserted_void_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_tabLayoutChange0, void) +{ + qt_QTabBar_tabLayoutChange_void_QTabBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabRemoved0, void) +{ + qt_QTabBar_tabRemoved_void_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_tabSizeHint0, Pointer) +{ + NODE_RETURN(qt_QTabBar_tabSizeHint_QSize_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QTabBar_changeEvent_void_QTabBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTabBar_event_bool_QTabBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QTabBar_hideEvent_void_QTabBar_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QTabBar_keyPressEvent_void_QTabBar_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QTabBar_mouseDoubleClickEvent_void_QTabBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QTabBar_mouseMoveEvent_void_QTabBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QTabBar_mousePressEvent_void_QTabBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QTabBar_mouseReleaseEvent_void_QTabBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QTabBar_paintEvent_void_QTabBar_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QTabBar_resizeEvent_void_QTabBar_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QTabBar_showEvent_void_QTabBar_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QTabBar_timerEvent_void_QTabBar_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QTabBar_wheelEvent_void_QTabBar_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QTabBar_hasHeightForWidth_bool_QTabBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QTabBar_heightForWidth_int_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QTabBar_inputMethodQuery_QVariant_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QTabBar_closeEvent_void_QTabBar_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QTabBar_contextMenuEvent_void_QTabBar_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QTabBar_dragEnterEvent_void_QTabBar_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QTabBar_dragLeaveEvent_void_QTabBar_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QTabBar_dragMoveEvent_void_QTabBar_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QTabBar_dropEvent_void_QTabBar_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QTabBar_focusInEvent_void_QTabBar_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QTabBar_focusNextPrevChild_bool_QTabBar_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QTabBar_focusOutEvent_void_QTabBar_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QTabBar_keyReleaseEvent_void_QTabBar_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QTabBar_leaveEvent_void_QTabBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QTabBar_moveEvent_void_QTabBar_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QTabBar_tabletEvent_void_QTabBar_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QTabBar_metric_int_QTabBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QTabBarType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTabBar_QTabBar_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTabBar", _n_QTabBar0, None, Compiled, qt_QTabBar_QTabBar_QTabBar_QTabBar_QWidget, Return, "qt.QTabBar", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "accessibleTabName", _n_accessibleTabName0, None, Compiled, qt_QTabBar_accessibleTabName_string_QTabBar_int, Return, "string", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + new Function(c, "addTab", _n_addTab0, None, Compiled, qt_QTabBar_addTab_int_QTabBar_string, Return, "int", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "text", "string"), End), + new Function(c, "addTab", _n_addTab1, None, Compiled, qt_QTabBar_addTab_int_QTabBar_QIcon_string, Return, "int", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), End), + // PROP: autoHide (bool; QTabBar this) + // PROP: changeCurrentOnDrag (bool; QTabBar this) + // PROP: count (int; QTabBar this) + // PROP: currentIndex (int; QTabBar this) + // PROP: documentMode (bool; QTabBar this) + // PROP: drawBase (bool; QTabBar this) + // PROP: elideMode (flags Qt::TextElideMode; QTabBar this) + // PROP: expanding (bool; QTabBar this) + // PROP: iconSize (QSize; QTabBar this) + new Function(c, "insertTab", _n_insertTab0, None, Compiled, qt_QTabBar_insertTab_int_QTabBar_int_string, Return, "int", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "text", "string"), End), + new Function(c, "insertTab", _n_insertTab1, None, Compiled, qt_QTabBar_insertTab_int_QTabBar_int_QIcon_string, Return, "int", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), End), + // PROP: isMovable (bool; QTabBar this) + new Function(c, "isTabEnabled", _n_isTabEnabled0, None, Compiled, qt_QTabBar_isTabEnabled_bool_QTabBar_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + new Function(c, "isTabVisible", _n_isTabVisible0, None, Compiled, qt_QTabBar_isTabVisible_bool_QTabBar_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + new Function(c, "moveTab", _n_moveTab0, None, Compiled, qt_QTabBar_moveTab_void_QTabBar_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "from", "int"), new Param(c, "to", "int"), End), + new Function(c, "removeTab", _n_removeTab0, None, Compiled, qt_QTabBar_removeTab_void_QTabBar_int, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + // PROP: selectionBehaviorOnRemove (flags QTabBar::SelectionBehavior; QTabBar this) + new Function(c, "setAccessibleTabName", _n_setAccessibleTabName0, None, Compiled, qt_QTabBar_setAccessibleTabName_void_QTabBar_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "name", "string"), End), + // PROP: setAutoHide (void; QTabBar this, bool hide) + // PROP: setChangeCurrentOnDrag (void; QTabBar this, bool change) + // PROP: setDocumentMode (void; QTabBar this, bool set) + // PROP: setDrawBase (void; QTabBar this, bool drawTheBase) + // PROP: setElideMode (void; QTabBar this, flags Qt::TextElideMode mode) + // PROP: setExpanding (void; QTabBar this, bool enabled) + // PROP: setIconSize (void; QTabBar this, QSize size) + // PROP: setMovable (void; QTabBar this, bool movable) + // PROP: setSelectionBehaviorOnRemove (void; QTabBar this, flags QTabBar::SelectionBehavior behavior) + // PROP: setShape (void; QTabBar this, flags QTabBar::Shape shape) + new Function(c, "setTabButton", _n_setTabButton0, None, Compiled, qt_QTabBar_setTabButton_void_QTabBar_int_int_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "position", "int"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "setTabData", _n_setTabData0, None, Compiled, qt_QTabBar_setTabData_void_QTabBar_int_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "data", "qt.QVariant"), End), + new Function(c, "setTabEnabled", _n_setTabEnabled0, None, Compiled, qt_QTabBar_setTabEnabled_void_QTabBar_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "enabled", "bool"), End), + new Function(c, "setTabIcon", _n_setTabIcon0, None, Compiled, qt_QTabBar_setTabIcon_void_QTabBar_int_QIcon, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "icon", "qt.QIcon"), End), + new Function(c, "setTabText", _n_setTabText0, None, Compiled, qt_QTabBar_setTabText_void_QTabBar_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "text", "string"), End), + new Function(c, "setTabTextColor", _n_setTabTextColor0, None, Compiled, qt_QTabBar_setTabTextColor_void_QTabBar_int_QColor, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "color", "qt.QColor"), End), + new Function(c, "setTabToolTip", _n_setTabToolTip0, None, Compiled, qt_QTabBar_setTabToolTip_void_QTabBar_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "tip", "string"), End), + new Function(c, "setTabVisible", _n_setTabVisible0, None, Compiled, qt_QTabBar_setTabVisible_void_QTabBar_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "visible", "bool"), End), + new Function(c, "setTabWhatsThis", _n_setTabWhatsThis0, None, Compiled, qt_QTabBar_setTabWhatsThis_void_QTabBar_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "text", "string"), End), + // PROP: setTabsClosable (void; QTabBar this, bool closable) + // PROP: setUsesScrollButtons (void; QTabBar this, bool useButtons) + // PROP: shape (flags QTabBar::Shape; QTabBar this) + new Function(c, "tabAt", _n_tabAt0, None, Compiled, qt_QTabBar_tabAt_int_QTabBar_QPoint, Return, "int", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "position", "qt.QPoint"), End), + new Function(c, "tabButton", _n_tabButton0, None, Compiled, qt_QTabBar_tabButton_QWidget_QTabBar_int_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), new Param(c, "position", "int"), End), + new Function(c, "tabData", _n_tabData0, None, Compiled, qt_QTabBar_tabData_QVariant_QTabBar_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + new Function(c, "tabIcon", _n_tabIcon0, None, Compiled, qt_QTabBar_tabIcon_QIcon_QTabBar_int, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + new Function(c, "tabRect", _n_tabRect0, None, Compiled, qt_QTabBar_tabRect_QRect_QTabBar_int, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + new Function(c, "tabText", _n_tabText0, None, Compiled, qt_QTabBar_tabText_string_QTabBar_int, Return, "string", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + new Function(c, "tabTextColor", _n_tabTextColor0, None, Compiled, qt_QTabBar_tabTextColor_QColor_QTabBar_int, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + new Function(c, "tabToolTip", _n_tabToolTip0, None, Compiled, qt_QTabBar_tabToolTip_string_QTabBar_int, Return, "string", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + new Function(c, "tabWhatsThis", _n_tabWhatsThis0, None, Compiled, qt_QTabBar_tabWhatsThis_string_QTabBar_int, Return, "string", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + // PROP: tabsClosable (bool; QTabBar this) + // PROP: usesScrollButtons (bool; QTabBar this) + _func[0] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QTabBar_minimumSizeHint_QSize_QTabBar, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTabBar"), End), + _func[1] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QTabBar_sizeHint_QSize_QTabBar, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTabBar"), End), + // MISSING: initStyleOption (void; QTabBar this, "QStyleOptionTab *" option, int tabIndex) // protected + _func[2] = new MemberFunction(c, "minimumTabSizeHint", _n_minimumTabSizeHint0, None, Compiled, qt_QTabBar_minimumTabSizeHint_QSize_QTabBar_int, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + _func[3] = new MemberFunction(c, "tabInserted", _n_tabInserted0, None, Compiled, qt_QTabBar_tabInserted_void_QTabBar_int, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + _func[4] = new MemberFunction(c, "tabLayoutChange", _n_tabLayoutChange0, None, Compiled, qt_QTabBar_tabLayoutChange_void_QTabBar, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), End), + _func[5] = new MemberFunction(c, "tabRemoved", _n_tabRemoved0, None, Compiled, qt_QTabBar_tabRemoved_void_QTabBar_int, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + _func[6] = new MemberFunction(c, "tabSizeHint", _n_tabSizeHint0, None, Compiled, qt_QTabBar_tabSizeHint_QSize_QTabBar_int, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "index", "int"), End), + _func[7] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QTabBar_changeEvent_void_QTabBar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QEvent"), End), + _func[8] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTabBar_event_bool_QTabBar_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event_", "qt.QEvent"), End), + _func[9] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QTabBar_hideEvent_void_QTabBar_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "_p13", "qt.QHideEvent"), End), + _func[10] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QTabBar_keyPressEvent_void_QTabBar_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[11] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QTabBar_mouseDoubleClickEvent_void_QTabBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[12] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QTabBar_mouseMoveEvent_void_QTabBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[13] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QTabBar_mousePressEvent_void_QTabBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[14] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QTabBar_mouseReleaseEvent_void_QTabBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[15] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QTabBar_paintEvent_void_QTabBar_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "_p14", "qt.QPaintEvent"), End), + _func[16] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QTabBar_resizeEvent_void_QTabBar_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "_p15", "qt.QResizeEvent"), End), + _func[17] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QTabBar_showEvent_void_QTabBar_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "_p13", "qt.QShowEvent"), End), + _func[18] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QTabBar_timerEvent_void_QTabBar_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[19] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QTabBar_wheelEvent_void_QTabBar_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QWheelEvent"), End), + _func[20] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QTabBar_hasHeightForWidth_bool_QTabBar, Return, "bool", Parameters, new Param(c, "this", "qt.QTabBar"), End), + _func[21] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QTabBar_heightForWidth_int_QTabBar_int, Return, "int", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "w", "int"), End), + _func[22] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QTabBar_inputMethodQuery_QVariant_QTabBar_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "query", "int"), End), + // MISSING: paintEngine ("QPaintEngine *"; QTabBar this) + // MISSING: actionEvent (void; QTabBar this, "QActionEvent *" event) // protected + _func[23] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QTabBar_closeEvent_void_QTabBar_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[24] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QTabBar_contextMenuEvent_void_QTabBar_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[25] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QTabBar_dragEnterEvent_void_QTabBar_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[26] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QTabBar_dragLeaveEvent_void_QTabBar_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[27] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QTabBar_dragMoveEvent_void_QTabBar_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[28] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QTabBar_dropEvent_void_QTabBar_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QTabBar this, "QEnterEvent *" event) // protected + _func[29] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QTabBar_focusInEvent_void_QTabBar_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[30] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QTabBar_focusNextPrevChild_bool_QTabBar_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "next", "bool"), End), + _func[31] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QTabBar_focusOutEvent_void_QTabBar_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QTabBar this, "QInputMethodEvent *" event) // protected + _func[32] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QTabBar_keyReleaseEvent_void_QTabBar_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[33] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QTabBar_leaveEvent_void_QTabBar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QEvent"), End), + _func[34] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QTabBar_moveEvent_void_QTabBar_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QTabBar this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[35] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QTabBar_tabletEvent_void_QTabBar_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "event", "qt.QTabletEvent"), End), + // MISSING: initPainter (void; QTabBar this, "QPainter *" painter) // protected + _func[36] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QTabBar_metric_int_QTabBar_int, Return, "int", Parameters, new Param(c, "this", "qt.QTabBar"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTabBar::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTabWidgetType.cpp b/src/lib/mu/MuQt6/QTabWidgetType.cpp new file mode 100644 index 000000000..e6408a136 --- /dev/null +++ b/src/lib/mu/MuQt6/QTabWidgetType.cpp @@ -0,0 +1,1712 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTabWidget::~MuQt_QTabWidget() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTabWidget::MuQt_QTabWidget(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QTabWidget(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTabWidget")); +} + +bool MuQt_QTabWidget::hasHeightForWidth() const +{ + if (!_env) return QTabWidget::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTabWidget::hasHeightForWidth(); + } +} + +int MuQt_QTabWidget::heightForWidth(int width) const +{ + if (!_env) return QTabWidget::heightForWidth(width); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(width); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTabWidget::heightForWidth(width); + } +} + +QSize MuQt_QTabWidget::minimumSizeHint() const +{ + if (!_env) return QTabWidget::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTabWidget::minimumSizeHint(); + } +} + +QSize MuQt_QTabWidget::sizeHint() const +{ + if (!_env) return QTabWidget::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTabWidget::sizeHint(); + } +} + +void MuQt_QTabWidget::tabInserted(int index) +{ + if (!_env) { QTabWidget::tabInserted(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::tabInserted(index); + } +} + +void MuQt_QTabWidget::tabRemoved(int index) +{ + if (!_env) { QTabWidget::tabRemoved(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::tabRemoved(index); + } +} + +void MuQt_QTabWidget::changeEvent(QEvent * ev) +{ + if (!_env) { QTabWidget::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::changeEvent(ev); + } +} + +bool MuQt_QTabWidget::event(QEvent * ev) +{ + if (!_env) return QTabWidget::event(ev); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTabWidget::event(ev); + } +} + +void MuQt_QTabWidget::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QTabWidget::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::keyPressEvent(e); + } +} + +void MuQt_QTabWidget::paintEvent(QPaintEvent * event) +{ + if (!_env) { QTabWidget::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::paintEvent(event); + } +} + +void MuQt_QTabWidget::resizeEvent(QResizeEvent * e) +{ + if (!_env) { QTabWidget::resizeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::resizeEvent(e); + } +} + +void MuQt_QTabWidget::showEvent(QShowEvent * _p13) +{ + if (!_env) { QTabWidget::showEvent(_p13); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p13,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::showEvent(_p13); + } +} + +QVariant MuQt_QTabWidget::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QTabWidget::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTabWidget::inputMethodQuery(query); + } +} + +void MuQt_QTabWidget::closeEvent(QCloseEvent * event) +{ + if (!_env) { QTabWidget::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::closeEvent(event); + } +} + +void MuQt_QTabWidget::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QTabWidget::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::contextMenuEvent(event); + } +} + +void MuQt_QTabWidget::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QTabWidget::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::dragEnterEvent(event); + } +} + +void MuQt_QTabWidget::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QTabWidget::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::dragLeaveEvent(event); + } +} + +void MuQt_QTabWidget::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QTabWidget::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::dragMoveEvent(event); + } +} + +void MuQt_QTabWidget::dropEvent(QDropEvent * event) +{ + if (!_env) { QTabWidget::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::dropEvent(event); + } +} + +void MuQt_QTabWidget::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QTabWidget::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::focusInEvent(event); + } +} + +bool MuQt_QTabWidget::focusNextPrevChild(bool next) +{ + if (!_env) return QTabWidget::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTabWidget::focusNextPrevChild(next); + } +} + +void MuQt_QTabWidget::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QTabWidget::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::focusOutEvent(event); + } +} + +void MuQt_QTabWidget::hideEvent(QHideEvent * event) +{ + if (!_env) { QTabWidget::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::hideEvent(event); + } +} + +void MuQt_QTabWidget::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QTabWidget::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::keyReleaseEvent(event); + } +} + +void MuQt_QTabWidget::leaveEvent(QEvent * event) +{ + if (!_env) { QTabWidget::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::leaveEvent(event); + } +} + +void MuQt_QTabWidget::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QTabWidget::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::mouseDoubleClickEvent(event); + } +} + +void MuQt_QTabWidget::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QTabWidget::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::mouseMoveEvent(event); + } +} + +void MuQt_QTabWidget::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QTabWidget::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::mousePressEvent(event); + } +} + +void MuQt_QTabWidget::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QTabWidget::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::mouseReleaseEvent(event); + } +} + +void MuQt_QTabWidget::moveEvent(QMoveEvent * event) +{ + if (!_env) { QTabWidget::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::moveEvent(event); + } +} + +void MuQt_QTabWidget::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QTabWidget::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::tabletEvent(event); + } +} + +void MuQt_QTabWidget::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QTabWidget::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QTabWidget::wheelEvent(event); + } +} + +int MuQt_QTabWidget::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QTabWidget::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTabWidget::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTabWidgetType::QTabWidgetType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTabWidgetType::~QTabWidgetType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTabWidget_QTabWidget_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTabWidget* w = object(widget)) + { + QTabWidgetType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTabWidget"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTabWidget_QTabWidget_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTabWidget_QTabWidget_QTabWidget_QTabWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTabWidget(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +int qt_QTabWidget_addTab_int_QTabWidget_QWidget_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_page, Pointer param_label) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_page); + const QString arg2 = qstring(param_label); + return arg0->addTab(arg1, arg2); +} + +int qt_QTabWidget_addTab_int_QTabWidget_QWidget_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_page, Pointer param_icon, Pointer param_label) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_page); + const QIcon arg2 = getqtype(param_icon); + const QString arg3 = qstring(param_label); + return arg0->addTab(arg1, arg2, arg3); +} + +void qt_QTabWidget_clear_void_QTabWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + arg0->clear(); +} + +Pointer qt_QTabWidget_cornerWidget_QWidget_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_corner) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + Qt::Corner arg1 = (Qt::Corner)(param_corner); + return makeinstance(c, arg0->cornerWidget(arg1), "qt.QWidget"); +} + +Pointer qt_QTabWidget_currentWidget_QWidget_QTabWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + return makeinstance(c, arg0->currentWidget(), "qt.QWidget"); +} + +int qt_QTabWidget_indexOf_int_QTabWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + const QWidget * arg1 = object(param_w); + return arg0->indexOf(arg1); +} + +int qt_QTabWidget_insertTab_int_QTabWidget_int_QWidget_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_page, Pointer param_label) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_page); + const QString arg3 = qstring(param_label); + return arg0->insertTab(arg1, arg2, arg3); +} + +int qt_QTabWidget_insertTab_int_QTabWidget_int_QWidget_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_page, Pointer param_icon, Pointer param_label) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_page); + const QIcon arg3 = getqtype(param_icon); + const QString arg4 = qstring(param_label); + return arg0->insertTab(arg1, arg2, arg3, arg4); +} + +bool qt_QTabWidget_isTabEnabled_bool_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + return arg0->isTabEnabled(arg1); +} + +bool qt_QTabWidget_isTabVisible_bool_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + return arg0->isTabVisible(arg1); +} + +void qt_QTabWidget_removeTab_void_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + arg0->removeTab(arg1); +} + +void qt_QTabWidget_setCornerWidget_void_QTabWidget_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, int param_corner) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + Qt::Corner arg2 = (Qt::Corner)(param_corner); + arg0->setCornerWidget(arg1, arg2); +} + +void qt_QTabWidget_setTabEnabled_void_QTabWidget_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + bool arg2 = (bool)(param_enable); + arg0->setTabEnabled(arg1, arg2); +} + +void qt_QTabWidget_setTabIcon_void_QTabWidget_int_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_icon) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QIcon arg2 = getqtype(param_icon); + arg0->setTabIcon(arg1, arg2); +} + +void qt_QTabWidget_setTabText_void_QTabWidget_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_label) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_label); + arg0->setTabText(arg1, arg2); +} + +void qt_QTabWidget_setTabToolTip_void_QTabWidget_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_tip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_tip); + arg0->setTabToolTip(arg1, arg2); +} + +void qt_QTabWidget_setTabVisible_void_QTabWidget_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, bool param_visible) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + bool arg2 = (bool)(param_visible); + arg0->setTabVisible(arg1, arg2); +} + +void qt_QTabWidget_setTabWhatsThis_void_QTabWidget_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_text); + arg0->setTabWhatsThis(arg1, arg2); +} + +Pointer qt_QTabWidget_tabBar_QTabBar_QTabWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + return makeinstance(c, arg0->tabBar(), "qt.QTabBar"); +} + +Pointer qt_QTabWidget_tabIcon_QIcon_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeqtype(c,arg0->tabIcon(arg1),"qt.QIcon"); +} + +Pointer qt_QTabWidget_tabText_string_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makestring(c,arg0->tabText(arg1)); +} + +Pointer qt_QTabWidget_tabToolTip_string_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makestring(c,arg0->tabToolTip(arg1)); +} + +Pointer qt_QTabWidget_tabWhatsThis_string_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makestring(c,arg0->tabWhatsThis(arg1)); +} + +Pointer qt_QTabWidget_widget_QWidget_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeinstance(c, arg0->widget(arg1), "qt.QWidget"); +} + +bool qt_QTabWidget_hasHeightForWidth_bool_QTabWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QTabWidget::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QTabWidget_heightForWidth_int_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_width); + return isMuQtObject(arg0) ? arg0->QTabWidget::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QTabWidget_minimumSizeHint_QSize_QTabWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTabWidget::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QTabWidget_sizeHint_QSize_QTabWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTabWidget::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QTabWidget_setTabBar_void_QTabWidget_QTabBar(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_tb) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QTabBar * arg1 = object(param_tb); + ((MuQt_QTabWidget*)arg0)->setTabBar_pub(arg1); +} + +void qt_QTabWidget_tabInserted_void_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->tabInserted_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->tabInserted_pub(arg1); +} + +void qt_QTabWidget_tabRemoved_void_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->tabRemoved_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->tabRemoved_pub(arg1); +} + +void qt_QTabWidget_changeEvent_void_QTabWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QTabWidget_event_bool_QTabWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + return isMuQtObject(arg0) ? ((MuQt_QTabWidget*)arg0)->event_pub_parent(arg1) : ((MuQt_QTabWidget*)arg0)->event_pub(arg1); +} + +void qt_QTabWidget_keyPressEvent_void_QTabWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QTabWidget_paintEvent_void_QTabWidget_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->paintEvent_pub(arg1); +} + +void qt_QTabWidget_resizeEvent_void_QTabWidget_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QTabWidget_showEvent_void_QTabWidget_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p13) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param__p13); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->showEvent_pub(arg1); +} + +Pointer qt_QTabWidget_inputMethodQuery_QVariant_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTabWidget::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +void qt_QTabWidget_closeEvent_void_QTabWidget_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->closeEvent_pub(arg1); +} + +void qt_QTabWidget_contextMenuEvent_void_QTabWidget_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QTabWidget_dragEnterEvent_void_QTabWidget_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QTabWidget_dragLeaveEvent_void_QTabWidget_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QTabWidget_dragMoveEvent_void_QTabWidget_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QTabWidget_dropEvent_void_QTabWidget_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->dropEvent_pub(arg1); +} + +void qt_QTabWidget_focusInEvent_void_QTabWidget_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QTabWidget_focusNextPrevChild_bool_QTabWidget_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QTabWidget*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QTabWidget*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QTabWidget_focusOutEvent_void_QTabWidget_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QTabWidget_hideEvent_void_QTabWidget_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->hideEvent_pub(arg1); +} + +void qt_QTabWidget_keyReleaseEvent_void_QTabWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QTabWidget_leaveEvent_void_QTabWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QTabWidget_mouseDoubleClickEvent_void_QTabWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QTabWidget_mouseMoveEvent_void_QTabWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QTabWidget_mousePressEvent_void_QTabWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QTabWidget_mouseReleaseEvent_void_QTabWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QTabWidget_moveEvent_void_QTabWidget_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->moveEvent_pub(arg1); +} + +void qt_QTabWidget_tabletEvent_void_QTabWidget_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QTabWidget_wheelEvent_void_QTabWidget_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTabWidget*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QTabWidget*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QTabWidget_metric_int_QTabWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabWidget* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QTabWidget*)arg0)->metric_pub_parent(arg1) : ((MuQt_QTabWidget*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTabWidget0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_QTabWidget_QTabWidget_QTabWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addTab0, int) +{ + NODE_RETURN(qt_QTabWidget_addTab_int_QTabWidget_QWidget_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addTab1, int) +{ + NODE_RETURN(qt_QTabWidget_addTab_int_QTabWidget_QWidget_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QTabWidget_clear_void_QTabWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_cornerWidget0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_cornerWidget_QWidget_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_currentWidget0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_currentWidget_QWidget_QTabWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexOf0, int) +{ + NODE_RETURN(qt_QTabWidget_indexOf_int_QTabWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertTab0, int) +{ + NODE_RETURN(qt_QTabWidget_insertTab_int_QTabWidget_int_QWidget_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertTab1, int) +{ + NODE_RETURN(qt_QTabWidget_insertTab_int_QTabWidget_int_QWidget_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer), NODE_ARG(4, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isTabEnabled0, bool) +{ + NODE_RETURN(qt_QTabWidget_isTabEnabled_bool_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isTabVisible0, bool) +{ + NODE_RETURN(qt_QTabWidget_isTabVisible_bool_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_removeTab0, void) +{ + qt_QTabWidget_removeTab_void_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setCornerWidget0, void) +{ + qt_QTabWidget_setCornerWidget_void_QTabWidget_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setTabEnabled0, void) +{ + qt_QTabWidget_setTabEnabled_void_QTabWidget_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setTabIcon0, void) +{ + qt_QTabWidget_setTabIcon_void_QTabWidget_int_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabText0, void) +{ + qt_QTabWidget_setTabText_void_QTabWidget_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabToolTip0, void) +{ + qt_QTabWidget_setTabToolTip_void_QTabWidget_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTabVisible0, void) +{ + qt_QTabWidget_setTabVisible_void_QTabWidget_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setTabWhatsThis0, void) +{ + qt_QTabWidget_setTabWhatsThis_void_QTabWidget_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabBar0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_tabBar_QTabBar_QTabWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_tabIcon0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_tabIcon_QIcon_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabText0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_tabText_string_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabToolTip0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_tabToolTip_string_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_tabWhatsThis0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_tabWhatsThis_string_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_widget_QWidget_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QTabWidget_hasHeightForWidth_bool_QTabWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QTabWidget_heightForWidth_int_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_minimumSizeHint_QSize_QTabWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_sizeHint_QSize_QTabWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setTabBar0, void) +{ + qt_QTabWidget_setTabBar_void_QTabWidget_QTabBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabInserted0, void) +{ + qt_QTabWidget_tabInserted_void_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_tabRemoved0, void) +{ + qt_QTabWidget_tabRemoved_void_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QTabWidget_changeEvent_void_QTabWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTabWidget_event_bool_QTabWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QTabWidget_keyPressEvent_void_QTabWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QTabWidget_paintEvent_void_QTabWidget_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QTabWidget_resizeEvent_void_QTabWidget_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QTabWidget_showEvent_void_QTabWidget_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QTabWidget_inputMethodQuery_QVariant_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QTabWidget_closeEvent_void_QTabWidget_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QTabWidget_contextMenuEvent_void_QTabWidget_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QTabWidget_dragEnterEvent_void_QTabWidget_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QTabWidget_dragLeaveEvent_void_QTabWidget_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QTabWidget_dragMoveEvent_void_QTabWidget_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QTabWidget_dropEvent_void_QTabWidget_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QTabWidget_focusInEvent_void_QTabWidget_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QTabWidget_focusNextPrevChild_bool_QTabWidget_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QTabWidget_focusOutEvent_void_QTabWidget_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QTabWidget_hideEvent_void_QTabWidget_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QTabWidget_keyReleaseEvent_void_QTabWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QTabWidget_leaveEvent_void_QTabWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QTabWidget_mouseDoubleClickEvent_void_QTabWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QTabWidget_mouseMoveEvent_void_QTabWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QTabWidget_mousePressEvent_void_QTabWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QTabWidget_mouseReleaseEvent_void_QTabWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QTabWidget_moveEvent_void_QTabWidget_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QTabWidget_tabletEvent_void_QTabWidget_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QTabWidget_wheelEvent_void_QTabWidget_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QTabWidget_metric_int_QTabWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QTabWidgetType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTabWidget_QTabWidget_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTabWidget", _n_QTabWidget0, None, Compiled, qt_QTabWidget_QTabWidget_QTabWidget_QTabWidget_QWidget, Return, "qt.QTabWidget", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addTab", _n_addTab0, None, Compiled, qt_QTabWidget_addTab_int_QTabWidget_QWidget_string, Return, "int", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "page", "qt.QWidget"), new Param(c, "label", "string"), End), + new Function(c, "addTab", _n_addTab1, None, Compiled, qt_QTabWidget_addTab_int_QTabWidget_QWidget_QIcon_string, Return, "int", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "page", "qt.QWidget"), new Param(c, "icon", "qt.QIcon"), new Param(c, "label", "string"), End), + new Function(c, "clear", _n_clear0, None, Compiled, qt_QTabWidget_clear_void_QTabWidget, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), End), + new Function(c, "cornerWidget", _n_cornerWidget0, None, Compiled, qt_QTabWidget_cornerWidget_QWidget_QTabWidget_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "corner", "int", Value((int)Qt::TopRightCorner)), End), + // PROP: count (int; QTabWidget this) + // PROP: currentIndex (int; QTabWidget this) + new Function(c, "currentWidget", _n_currentWidget0, None, Compiled, qt_QTabWidget_currentWidget_QWidget_QTabWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QTabWidget"), End), + // PROP: documentMode (bool; QTabWidget this) + // PROP: elideMode (flags Qt::TextElideMode; QTabWidget this) + // PROP: iconSize (QSize; QTabWidget this) + new Function(c, "indexOf", _n_indexOf0, None, Compiled, qt_QTabWidget_indexOf_int_QTabWidget_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "w", "qt.QWidget"), End), + new Function(c, "insertTab", _n_insertTab0, None, Compiled, qt_QTabWidget_insertTab_int_QTabWidget_int_QWidget_string, Return, "int", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), new Param(c, "page", "qt.QWidget"), new Param(c, "label", "string"), End), + new Function(c, "insertTab", _n_insertTab1, None, Compiled, qt_QTabWidget_insertTab_int_QTabWidget_int_QWidget_QIcon_string, Return, "int", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), new Param(c, "page", "qt.QWidget"), new Param(c, "icon", "qt.QIcon"), new Param(c, "label", "string"), End), + // PROP: isMovable (bool; QTabWidget this) + new Function(c, "isTabEnabled", _n_isTabEnabled0, None, Compiled, qt_QTabWidget_isTabEnabled_bool_QTabWidget_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), End), + new Function(c, "isTabVisible", _n_isTabVisible0, None, Compiled, qt_QTabWidget_isTabVisible_bool_QTabWidget_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), End), + new Function(c, "removeTab", _n_removeTab0, None, Compiled, qt_QTabWidget_removeTab_void_QTabWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), End), + new Function(c, "setCornerWidget", _n_setCornerWidget0, None, Compiled, qt_QTabWidget_setCornerWidget_void_QTabWidget_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "widget", "qt.QWidget"), new Param(c, "corner", "int", Value((int)Qt::TopRightCorner)), End), + // PROP: setDocumentMode (void; QTabWidget this, bool set) + // PROP: setElideMode (void; QTabWidget this, flags Qt::TextElideMode mode) + // PROP: setIconSize (void; QTabWidget this, QSize size) + // PROP: setMovable (void; QTabWidget this, bool movable) + // PROP: setTabBarAutoHide (void; QTabWidget this, bool enabled) + new Function(c, "setTabEnabled", _n_setTabEnabled0, None, Compiled, qt_QTabWidget_setTabEnabled_void_QTabWidget_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), new Param(c, "enable", "bool"), End), + new Function(c, "setTabIcon", _n_setTabIcon0, None, Compiled, qt_QTabWidget_setTabIcon_void_QTabWidget_int_QIcon, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), new Param(c, "icon", "qt.QIcon"), End), + // PROP: setTabPosition (void; QTabWidget this, flags QTabWidget::TabPosition position) + // PROP: setTabShape (void; QTabWidget this, flags QTabWidget::TabShape s) + new Function(c, "setTabText", _n_setTabText0, None, Compiled, qt_QTabWidget_setTabText_void_QTabWidget_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), new Param(c, "label", "string"), End), + new Function(c, "setTabToolTip", _n_setTabToolTip0, None, Compiled, qt_QTabWidget_setTabToolTip_void_QTabWidget_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), new Param(c, "tip", "string"), End), + new Function(c, "setTabVisible", _n_setTabVisible0, None, Compiled, qt_QTabWidget_setTabVisible_void_QTabWidget_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), new Param(c, "visible", "bool"), End), + new Function(c, "setTabWhatsThis", _n_setTabWhatsThis0, None, Compiled, qt_QTabWidget_setTabWhatsThis_void_QTabWidget_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), new Param(c, "text", "string"), End), + // PROP: setTabsClosable (void; QTabWidget this, bool closeable) + // PROP: setUsesScrollButtons (void; QTabWidget this, bool useButtons) + new Function(c, "tabBar", _n_tabBar0, None, Compiled, qt_QTabWidget_tabBar_QTabBar_QTabWidget, Return, "qt.QTabBar", Parameters, new Param(c, "this", "qt.QTabWidget"), End), + // PROP: tabBarAutoHide (bool; QTabWidget this) + new Function(c, "tabIcon", _n_tabIcon0, None, Compiled, qt_QTabWidget_tabIcon_QIcon_QTabWidget_int, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), End), + // PROP: tabPosition (flags QTabWidget::TabPosition; QTabWidget this) + // PROP: tabShape (flags QTabWidget::TabShape; QTabWidget this) + new Function(c, "tabText", _n_tabText0, None, Compiled, qt_QTabWidget_tabText_string_QTabWidget_int, Return, "string", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), End), + new Function(c, "tabToolTip", _n_tabToolTip0, None, Compiled, qt_QTabWidget_tabToolTip_string_QTabWidget_int, Return, "string", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), End), + new Function(c, "tabWhatsThis", _n_tabWhatsThis0, None, Compiled, qt_QTabWidget_tabWhatsThis_string_QTabWidget_int, Return, "string", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), End), + // PROP: tabsClosable (bool; QTabWidget this) + // PROP: usesScrollButtons (bool; QTabWidget this) + new Function(c, "widget", _n_widget0, None, Compiled, qt_QTabWidget_widget_QWidget_QTabWidget_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), End), + _func[0] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QTabWidget_hasHeightForWidth_bool_QTabWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QTabWidget"), End), + _func[1] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QTabWidget_heightForWidth_int_QTabWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "width", "int"), End), + _func[2] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QTabWidget_minimumSizeHint_QSize_QTabWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTabWidget"), End), + _func[3] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QTabWidget_sizeHint_QSize_QTabWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTabWidget"), End), + // MISSING: initStyleOption (void; QTabWidget this, "QStyleOptionTabWidgetFrame *" option) // protected + new Function(c, "setTabBar", _n_setTabBar0, None, Compiled, qt_QTabWidget_setTabBar_void_QTabWidget_QTabBar, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "tb", "qt.QTabBar"), End), + _func[4] = new MemberFunction(c, "tabInserted", _n_tabInserted0, None, Compiled, qt_QTabWidget_tabInserted_void_QTabWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), End), + _func[5] = new MemberFunction(c, "tabRemoved", _n_tabRemoved0, None, Compiled, qt_QTabWidget_tabRemoved_void_QTabWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "index", "int"), End), + _func[6] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QTabWidget_changeEvent_void_QTabWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "ev", "qt.QEvent"), End), + _func[7] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTabWidget_event_bool_QTabWidget_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "ev", "qt.QEvent"), End), + _func[8] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QTabWidget_keyPressEvent_void_QTabWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[9] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QTabWidget_paintEvent_void_QTabWidget_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[10] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QTabWidget_resizeEvent_void_QTabWidget_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "e", "qt.QResizeEvent"), End), + _func[11] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QTabWidget_showEvent_void_QTabWidget_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "_p13", "qt.QShowEvent"), End), + _func[12] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QTabWidget_inputMethodQuery_QVariant_QTabWidget_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "query", "int"), End), + // MISSING: paintEngine ("QPaintEngine *"; QTabWidget this) + // MISSING: actionEvent (void; QTabWidget this, "QActionEvent *" event) // protected + _func[13] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QTabWidget_closeEvent_void_QTabWidget_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[14] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QTabWidget_contextMenuEvent_void_QTabWidget_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[15] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QTabWidget_dragEnterEvent_void_QTabWidget_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[16] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QTabWidget_dragLeaveEvent_void_QTabWidget_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[17] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QTabWidget_dragMoveEvent_void_QTabWidget_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[18] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QTabWidget_dropEvent_void_QTabWidget_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QTabWidget this, "QEnterEvent *" event) // protected + _func[19] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QTabWidget_focusInEvent_void_QTabWidget_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[20] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QTabWidget_focusNextPrevChild_bool_QTabWidget_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "next", "bool"), End), + _func[21] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QTabWidget_focusOutEvent_void_QTabWidget_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[22] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QTabWidget_hideEvent_void_QTabWidget_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QTabWidget this, "QInputMethodEvent *" event) // protected + _func[23] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QTabWidget_keyReleaseEvent_void_QTabWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[24] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QTabWidget_leaveEvent_void_QTabWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[25] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QTabWidget_mouseDoubleClickEvent_void_QTabWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[26] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QTabWidget_mouseMoveEvent_void_QTabWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[27] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QTabWidget_mousePressEvent_void_QTabWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[28] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QTabWidget_mouseReleaseEvent_void_QTabWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[29] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QTabWidget_moveEvent_void_QTabWidget_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QTabWidget this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[30] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QTabWidget_tabletEvent_void_QTabWidget_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[31] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QTabWidget_wheelEvent_void_QTabWidget_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QTabWidget this, "QPainter *" painter) // protected + _func[32] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QTabWidget_metric_int_QTabWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QTabWidget"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTabWidget::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTableViewType.cpp b/src/lib/mu/MuQt6/QTableViewType.cpp new file mode 100644 index 000000000..4ca4f7297 --- /dev/null +++ b/src/lib/mu/MuQt6/QTableViewType.cpp @@ -0,0 +1,1954 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTableView::~MuQt_QTableView() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTableView::MuQt_QTableView(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QTableView(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTableView")); +} + +QModelIndex MuQt_QTableView::indexAt(const QPoint & pos) const +{ + if (!_env) return QTableView::indexAt(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,pos,"qt.QPoint")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTableView::indexAt(pos); + } +} + +void MuQt_QTableView::scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) +{ + if (!_env) { QTableView::scrollTo(index, hint); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(hint)); + Value rval = _env->call(F, args); + } + else + { + QTableView::scrollTo(index, hint); + } +} + +void MuQt_QTableView::setModel(QAbstractItemModel * model) +{ + if (!_env) { QTableView::setModel(model); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,model,"qt.QAbstractItemModel")); + Value rval = _env->call(F, args); + } + else + { + QTableView::setModel(model); + } +} + +void MuQt_QTableView::setRootIndex(const QModelIndex & index) +{ + if (!_env) { QTableView::setRootIndex(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QTableView::setRootIndex(index); + } +} + +void MuQt_QTableView::setSelectionModel(QItemSelectionModel * selectionModel) +{ + if (!_env) { QTableView::setSelectionModel(selectionModel); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,selectionModel,"qt.QItemSelectionModel")); + Value rval = _env->call(F, args); + } + else + { + QTableView::setSelectionModel(selectionModel); + } +} + +QRect MuQt_QTableView::visualRect(const QModelIndex & index) const +{ + if (!_env) return QTableView::visualRect(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTableView::visualRect(index); + } +} + +void MuQt_QTableView::currentChanged(const QModelIndex & current, const QModelIndex & previous) +{ + if (!_env) { QTableView::currentChanged(current, previous); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,current,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,previous,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QTableView::currentChanged(current, previous); + } +} + +int MuQt_QTableView::horizontalOffset() const +{ + if (!_env) return QTableView::horizontalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTableView::horizontalOffset(); + } +} + +bool MuQt_QTableView::isIndexHidden(const QModelIndex & index) const +{ + if (!_env) return QTableView::isIndexHidden(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTableView::isIndexHidden(index); + } +} + +void MuQt_QTableView::paintEvent(QPaintEvent * event) +{ + if (!_env) { QTableView::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::paintEvent(event); + } +} + +void MuQt_QTableView::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QTableView::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QTableView::scrollContentsBy(dx, dy); + } +} + +QModelIndexList MuQt_QTableView::selectedIndexes() const +{ + if (!_env) return QTableView::selectedIndexes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QTableView::selectedIndexes(); + } +} + +void MuQt_QTableView::selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) +{ + if (!_env) { QTableView::selectionChanged(selected, deselected); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selected,"qt.QItemSelection")); + args[2] = Value(makeqtype(c,deselected,"qt.QItemSelection")); + Value rval = _env->call(F, args); + } + else + { + QTableView::selectionChanged(selected, deselected); + } +} + +void MuQt_QTableView::setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags flags) +{ + if (!_env) { QTableView::setSelection(rect, flags); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + args[2] = Value(int(flags)); + Value rval = _env->call(F, args); + } + else + { + QTableView::setSelection(rect, flags); + } +} + +int MuQt_QTableView::sizeHintForColumn(int column) const +{ + if (!_env) return QTableView::sizeHintForColumn(column); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTableView::sizeHintForColumn(column); + } +} + +int MuQt_QTableView::sizeHintForRow(int row) const +{ + if (!_env) return QTableView::sizeHintForRow(row); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTableView::sizeHintForRow(row); + } +} + +void MuQt_QTableView::timerEvent(QTimerEvent * event) +{ + if (!_env) { QTableView::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::timerEvent(event); + } +} + +void MuQt_QTableView::updateGeometries() +{ + if (!_env) { QTableView::updateGeometries(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTableView::updateGeometries(); + } +} + +int MuQt_QTableView::verticalOffset() const +{ + if (!_env) return QTableView::verticalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTableView::verticalOffset(); + } +} + +QSize MuQt_QTableView::viewportSizeHint() const +{ + if (!_env) return QTableView::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTableView::viewportSizeHint(); + } +} + +QRegion MuQt_QTableView::visualRegionForSelection(const QItemSelection & selection) const +{ + if (!_env) return QTableView::visualRegionForSelection(selection); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selection,"qt.QItemSelection")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTableView::visualRegionForSelection(selection); + } +} + +void MuQt_QTableView::keyboardSearch(const QString & search) +{ + if (!_env) { QTableView::keyboardSearch(search); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makestring(c,search)); + Value rval = _env->call(F, args); + } + else + { + QTableView::keyboardSearch(search); + } +} + +QVariant MuQt_QTableView::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QTableView::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTableView::inputMethodQuery(query); + } +} + +bool MuQt_QTableView::edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) +{ + if (!_env) return QTableView::edit(index, trigger, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(trigger)); + args[3] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTableView::edit(index, trigger, event); + } +} + +QItemSelectionModel::SelectionFlags MuQt_QTableView::selectionCommand(const QModelIndex & index, const QEvent * event) const +{ + if (!_env) return QTableView::selectionCommand(index, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (QItemSelectionModel::SelectionFlags)(rval._int); + } + else + { + return QTableView::selectionCommand(index, event); + } +} + +void MuQt_QTableView::startDrag(Qt::DropActions supportedActions) +{ + if (!_env) { QTableView::startDrag(supportedActions); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(supportedActions)); + Value rval = _env->call(F, args); + } + else + { + QTableView::startDrag(supportedActions); + } +} + +void MuQt_QTableView::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QTableView::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::dragEnterEvent(event); + } +} + +void MuQt_QTableView::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QTableView::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::dragLeaveEvent(event); + } +} + +void MuQt_QTableView::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QTableView::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::dragMoveEvent(event); + } +} + +void MuQt_QTableView::dropEvent(QDropEvent * event) +{ + if (!_env) { QTableView::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::dropEvent(event); + } +} + +bool MuQt_QTableView::event(QEvent * event_) +{ + if (!_env) return QTableView::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTableView::event(event_); + } +} + +bool MuQt_QTableView::eventFilter(QObject * object, QEvent * event) +{ + if (!_env) return QTableView::eventFilter(object, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,object,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTableView::eventFilter(object, event); + } +} + +void MuQt_QTableView::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QTableView::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::focusInEvent(event); + } +} + +bool MuQt_QTableView::focusNextPrevChild(bool next) +{ + if (!_env) return QTableView::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTableView::focusNextPrevChild(next); + } +} + +void MuQt_QTableView::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QTableView::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[34]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::focusOutEvent(event); + } +} + +void MuQt_QTableView::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QTableView::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[35]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::keyPressEvent(event); + } +} + +void MuQt_QTableView::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QTableView::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[36]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::mouseDoubleClickEvent(event); + } +} + +void MuQt_QTableView::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QTableView::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[37]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::mouseMoveEvent(event); + } +} + +void MuQt_QTableView::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QTableView::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[38]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::mousePressEvent(event); + } +} + +void MuQt_QTableView::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QTableView::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[39]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::mouseReleaseEvent(event); + } +} + +void MuQt_QTableView::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QTableView::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[40]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableView::resizeEvent(event); + } +} + +bool MuQt_QTableView::viewportEvent(QEvent * event) +{ + if (!_env) return QTableView::viewportEvent(event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[41]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTableView::viewportEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTableViewType::QTableViewType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTableViewType::~QTableViewType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTableView_QTableView_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTableView* w = object(widget)) + { + QTableViewType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTableView"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTableView_QTableView_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTableView_QTableView_QTableView_QTableView_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTableView(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QTableView_clearSpans_void_QTableView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + arg0->clearSpans(); +} + +int qt_QTableView_columnAt_int_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_x); + return arg0->columnAt(arg1); +} + +int qt_QTableView_columnSpan_int_QTableView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return arg0->columnSpan(arg1, arg2); +} + +int qt_QTableView_columnViewportPosition_int_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return arg0->columnViewportPosition(arg1); +} + +int qt_QTableView_columnWidth_int_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return arg0->columnWidth(arg1); +} + +Pointer qt_QTableView_horizontalHeader_QHeaderView_QTableView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + return makeinstance(c, arg0->horizontalHeader(), "qt.QHeaderView"); +} + +bool qt_QTableView_isColumnHidden_bool_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return arg0->isColumnHidden(arg1); +} + +bool qt_QTableView_isRowHidden_bool_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_row); + return arg0->isRowHidden(arg1); +} + +int qt_QTableView_rowAt_int_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_y); + return arg0->rowAt(arg1); +} + +int qt_QTableView_rowHeight_int_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_row); + return arg0->rowHeight(arg1); +} + +int qt_QTableView_rowSpan_int_QTableView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return arg0->rowSpan(arg1, arg2); +} + +int qt_QTableView_rowViewportPosition_int_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_row); + return arg0->rowViewportPosition(arg1); +} + +void qt_QTableView_setColumnHidden_void_QTableView_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, bool param_hide) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_column); + bool arg2 = (bool)(param_hide); + arg0->setColumnHidden(arg1, arg2); +} + +void qt_QTableView_setColumnWidth_void_QTableView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_width) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_width); + arg0->setColumnWidth(arg1, arg2); +} + +void qt_QTableView_setHorizontalHeader_void_QTableView_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_header) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QHeaderView * arg1 = object(param_header); + arg0->setHorizontalHeader(arg1); +} + +void qt_QTableView_setRowHeight_void_QTableView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_height) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_height); + arg0->setRowHeight(arg1, arg2); +} + +void qt_QTableView_setRowHidden_void_QTableView_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, bool param_hide) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_row); + bool arg2 = (bool)(param_hide); + arg0->setRowHidden(arg1, arg2); +} + +void qt_QTableView_setSortingEnabled_void_QTableView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + bool arg1 = (bool)(param_enable); + arg0->setSortingEnabled(arg1); +} + +void qt_QTableView_setSpan_void_QTableView_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, int param_rowSpanCount, int param_columnSpanCount) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + int arg3 = (int)(param_rowSpanCount); + int arg4 = (int)(param_columnSpanCount); + arg0->setSpan(arg1, arg2, arg3, arg4); +} + +void qt_QTableView_setVerticalHeader_void_QTableView_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_header) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QHeaderView * arg1 = object(param_header); + arg0->setVerticalHeader(arg1); +} + +Pointer qt_QTableView_verticalHeader_QHeaderView_QTableView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + return makeinstance(c, arg0->verticalHeader(), "qt.QHeaderView"); +} + +Pointer qt_QTableView_indexAt_QModelIndex_QTableView_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTableView::indexAt(arg1),"qt.QModelIndex") : makeqtype(c,arg0->indexAt(arg1),"qt.QModelIndex"); +} + +void qt_QTableView_scrollTo_void_QTableView_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_hint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::ScrollHint arg2 = (QAbstractItemView::ScrollHint)(param_hint); + if (isMuQtObject(arg0)) arg0->QTableView::scrollTo(arg1, arg2); + else arg0->scrollTo(arg1, arg2); +} + +void qt_QTableView_setModel_void_QTableView_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QAbstractItemModel * arg1 = object(param_model); + if (isMuQtObject(arg0)) arg0->QTableView::setModel(arg1); + else arg0->setModel(arg1); +} + +void qt_QTableView_setRootIndex_void_QTableView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + if (isMuQtObject(arg0)) arg0->QTableView::setRootIndex(arg1); + else arg0->setRootIndex(arg1); +} + +void qt_QTableView_setSelectionModel_void_QTableView_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selectionModel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QItemSelectionModel * arg1 = object(param_selectionModel); + if (isMuQtObject(arg0)) arg0->QTableView::setSelectionModel(arg1); + else arg0->setSelectionModel(arg1); +} + +Pointer qt_QTableView_visualRect_QRect_QTableView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTableView::visualRect(arg1),"qt.QRect") : makeqtype(c,arg0->visualRect(arg1),"qt.QRect"); +} + +void qt_QTableView_currentChanged_void_QTableView_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_current, Pointer param_previous) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_current); + const QModelIndex arg2 = getqtype(param_previous); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->currentChanged_pub_parent(arg1, arg2); + else ((MuQt_QTableView*)arg0)->currentChanged_pub(arg1, arg2); +} + +int qt_QTableView_horizontalOffset_int_QTableView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QTableView*)arg0)->horizontalOffset_pub_parent() : ((MuQt_QTableView*)arg0)->horizontalOffset_pub(); +} + +bool qt_QTableView_isIndexHidden_bool_QTableView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? ((MuQt_QTableView*)arg0)->isIndexHidden_pub_parent(arg1) : ((MuQt_QTableView*)arg0)->isIndexHidden_pub(arg1); +} + +void qt_QTableView_paintEvent_void_QTableView_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->paintEvent_pub(arg1); +} + +void qt_QTableView_scrollContentsBy_void_QTableView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QTableView*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +Pointer qt_QTableView_selectedIndexes_qt__QModelIndexBSB_ESB__QTableView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,((MuQt_QTableView*)arg0)->selectedIndexes_pub_parent()) : makeqmodelindexlist(c,((MuQt_QTableView*)arg0)->selectedIndexes_pub()); +} + +void qt_QTableView_selectionChanged_void_QTableView_QItemSelection_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selected, Pointer param_deselected) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selected); + const QItemSelection arg2 = getqtype(param_deselected); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->selectionChanged_pub_parent(arg1, arg2); + else ((MuQt_QTableView*)arg0)->selectionChanged_pub(arg1, arg2); +} + +void qt_QTableView_setSelection_void_QTableView_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_flags); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->setSelection_pub_parent(arg1, arg2); + else ((MuQt_QTableView*)arg0)->setSelection_pub(arg1, arg2); +} + +int qt_QTableView_sizeHintForColumn_int_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return isMuQtObject(arg0) ? ((MuQt_QTableView*)arg0)->sizeHintForColumn_pub_parent(arg1) : ((MuQt_QTableView*)arg0)->sizeHintForColumn_pub(arg1); +} + +int qt_QTableView_sizeHintForRow_int_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + int arg1 = (int)(param_row); + return isMuQtObject(arg0) ? ((MuQt_QTableView*)arg0)->sizeHintForRow_pub_parent(arg1) : ((MuQt_QTableView*)arg0)->sizeHintForRow_pub(arg1); +} + +void qt_QTableView_timerEvent_void_QTableView_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->timerEvent_pub(arg1); +} + +void qt_QTableView_updateGeometries_void_QTableView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->updateGeometries_pub_parent(); + else ((MuQt_QTableView*)arg0)->updateGeometries_pub(); +} + +int qt_QTableView_verticalOffset_int_QTableView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QTableView*)arg0)->verticalOffset_pub_parent() : ((MuQt_QTableView*)arg0)->verticalOffset_pub(); +} + +Pointer qt_QTableView_viewportSizeHint_QSize_QTableView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTableView*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QTableView*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +Pointer qt_QTableView_visualRegionForSelection_QRegion_QTableView_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selection); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTableView*)arg0)->visualRegionForSelection_pub_parent(arg1),"qt.QRegion") : makeqtype(c,((MuQt_QTableView*)arg0)->visualRegionForSelection_pub(arg1),"qt.QRegion"); +} + +void qt_QTableView_keyboardSearch_void_QTableView_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_search) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QString arg1 = qstring(param_search); + if (isMuQtObject(arg0)) arg0->QTableView::keyboardSearch(arg1); + else arg0->keyboardSearch(arg1); +} + +Pointer qt_QTableView_inputMethodQuery_QVariant_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTableView::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +bool qt_QTableView_edit_bool_QTableView_QModelIndex_int_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_trigger, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::EditTrigger arg2 = (QAbstractItemView::EditTrigger)(param_trigger); + QEvent * arg3 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QTableView*)arg0)->edit_pub_parent(arg1, arg2, arg3) : ((MuQt_QTableView*)arg0)->edit_pub(arg1, arg2, arg3); +} + +int qt_QTableView_selectionCommand_int_QTableView_QModelIndex_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + const QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? int(((MuQt_QTableView*)arg0)->selectionCommand_pub_parent(arg1, arg2)) : int(((MuQt_QTableView*)arg0)->selectionCommand_pub(arg1, arg2)); +} + +void qt_QTableView_startDrag_void_QTableView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_supportedActions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + Qt::DropActions arg1 = (Qt::DropActions)(param_supportedActions); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->startDrag_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->startDrag_pub(arg1); +} + +void qt_QTableView_dragEnterEvent_void_QTableView_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QTableView_dragLeaveEvent_void_QTableView_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QTableView_dragMoveEvent_void_QTableView_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QTableView_dropEvent_void_QTableView_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QTableView_event_bool_QTableView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QTableView*)arg0)->event_pub_parent(arg1) : ((MuQt_QTableView*)arg0)->event_pub(arg1); +} + +bool qt_QTableView_eventFilter_bool_QTableView_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QObject * arg1 = object(param_object); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QTableView*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QTableView*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QTableView_focusInEvent_void_QTableView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QTableView_focusNextPrevChild_bool_QTableView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QTableView*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QTableView*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QTableView_focusOutEvent_void_QTableView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QTableView_keyPressEvent_void_QTableView_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QTableView_mouseDoubleClickEvent_void_QTableView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QTableView_mouseMoveEvent_void_QTableView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QTableView_mousePressEvent_void_QTableView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QTableView_mouseReleaseEvent_void_QTableView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QTableView_resizeEvent_void_QTableView_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableView*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QTableView*)arg0)->resizeEvent_pub(arg1); +} + +bool qt_QTableView_viewportEvent_bool_QTableView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QTableView*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QTableView*)arg0)->viewportEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTableView0, Pointer) +{ + NODE_RETURN(qt_QTableView_QTableView_QTableView_QTableView_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearSpans0, void) +{ + qt_QTableView_clearSpans_void_QTableView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_columnAt0, int) +{ + NODE_RETURN(qt_QTableView_columnAt_int_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_columnSpan0, int) +{ + NODE_RETURN(qt_QTableView_columnSpan_int_QTableView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_columnViewportPosition0, int) +{ + NODE_RETURN(qt_QTableView_columnViewportPosition_int_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_columnWidth0, int) +{ + NODE_RETURN(qt_QTableView_columnWidth_int_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_horizontalHeader0, Pointer) +{ + NODE_RETURN(qt_QTableView_horizontalHeader_QHeaderView_QTableView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isColumnHidden0, bool) +{ + NODE_RETURN(qt_QTableView_isColumnHidden_bool_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isRowHidden0, bool) +{ + NODE_RETURN(qt_QTableView_isRowHidden_bool_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_rowAt0, int) +{ + NODE_RETURN(qt_QTableView_rowAt_int_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_rowHeight0, int) +{ + NODE_RETURN(qt_QTableView_rowHeight_int_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_rowSpan0, int) +{ + NODE_RETURN(qt_QTableView_rowSpan_int_QTableView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_rowViewportPosition0, int) +{ + NODE_RETURN(qt_QTableView_rowViewportPosition_int_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setColumnHidden0, void) +{ + qt_QTableView_setColumnHidden_void_QTableView_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setColumnWidth0, void) +{ + qt_QTableView_setColumnWidth_void_QTableView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setHorizontalHeader0, void) +{ + qt_QTableView_setHorizontalHeader_void_QTableView_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRowHeight0, void) +{ + qt_QTableView_setRowHeight_void_QTableView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setRowHidden0, void) +{ + qt_QTableView_setRowHidden_void_QTableView_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSortingEnabled0, void) +{ + qt_QTableView_setSortingEnabled_void_QTableView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSpan0, void) +{ + qt_QTableView_setSpan_void_QTableView_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setVerticalHeader0, void) +{ + qt_QTableView_setVerticalHeader_void_QTableView_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_verticalHeader0, Pointer) +{ + NODE_RETURN(qt_QTableView_verticalHeader_QHeaderView_QTableView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexAt0, Pointer) +{ + NODE_RETURN(qt_QTableView_indexAt_QModelIndex_QTableView_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scrollTo0, void) +{ + qt_QTableView_scrollTo_void_QTableView_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setModel0, void) +{ + qt_QTableView_setModel_void_QTableView_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRootIndex0, void) +{ + qt_QTableView_setRootIndex_void_QTableView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelectionModel0, void) +{ + qt_QTableView_setSelectionModel_void_QTableView_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_visualRect0, Pointer) +{ + NODE_RETURN(qt_QTableView_visualRect_QRect_QTableView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentChanged0, void) +{ + qt_QTableView_currentChanged_void_QTableView_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_horizontalOffset0, int) +{ + NODE_RETURN(qt_QTableView_horizontalOffset_int_QTableView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIndexHidden0, bool) +{ + NODE_RETURN(qt_QTableView_isIndexHidden_bool_QTableView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QTableView_paintEvent_void_QTableView_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QTableView_scrollContentsBy_void_QTableView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectedIndexes0, Pointer) +{ + NODE_RETURN(qt_QTableView_selectedIndexes_qt__QModelIndexBSB_ESB__QTableView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionChanged0, void) +{ + qt_QTableView_selectionChanged_void_QTableView_QItemSelection_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QTableView_setSelection_void_QTableView_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForColumn0, int) +{ + NODE_RETURN(qt_QTableView_sizeHintForColumn_int_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForRow0, int) +{ + NODE_RETURN(qt_QTableView_sizeHintForRow_int_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QTableView_timerEvent_void_QTableView_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_updateGeometries0, void) +{ + qt_QTableView_updateGeometries_void_QTableView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_verticalOffset0, int) +{ + NODE_RETURN(qt_QTableView_verticalOffset_int_QTableView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QTableView_viewportSizeHint_QSize_QTableView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualRegionForSelection0, Pointer) +{ + NODE_RETURN(qt_QTableView_visualRegionForSelection_QRegion_QTableView_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyboardSearch0, void) +{ + qt_QTableView_keyboardSearch_void_QTableView_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QTableView_inputMethodQuery_QVariant_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_edit0, bool) +{ + NODE_RETURN(qt_QTableView_edit_bool_QTableView_QModelIndex_int_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionCommand0, int) +{ + NODE_RETURN(qt_QTableView_selectionCommand_int_QTableView_QModelIndex_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_startDrag0, void) +{ + qt_QTableView_startDrag_void_QTableView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QTableView_dragEnterEvent_void_QTableView_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QTableView_dragLeaveEvent_void_QTableView_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QTableView_dragMoveEvent_void_QTableView_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QTableView_dropEvent_void_QTableView_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTableView_event_bool_QTableView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QTableView_eventFilter_bool_QTableView_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QTableView_focusInEvent_void_QTableView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QTableView_focusNextPrevChild_bool_QTableView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QTableView_focusOutEvent_void_QTableView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QTableView_keyPressEvent_void_QTableView_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QTableView_mouseDoubleClickEvent_void_QTableView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QTableView_mouseMoveEvent_void_QTableView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QTableView_mousePressEvent_void_QTableView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QTableView_mouseReleaseEvent_void_QTableView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QTableView_resizeEvent_void_QTableView_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QTableView_viewportEvent_bool_QTableView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QTableViewType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTableView_QTableView_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTableView", _n_QTableView0, None, Compiled, qt_QTableView_QTableView_QTableView_QTableView_QWidget, Return, "qt.QTableView", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "clearSpans", _n_clearSpans0, None, Compiled, qt_QTableView_clearSpans_void_QTableView, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), End), + new Function(c, "columnAt", _n_columnAt0, None, Compiled, qt_QTableView_columnAt_int_QTableView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "x", "int"), End), + new Function(c, "columnSpan", _n_columnSpan0, None, Compiled, qt_QTableView_columnSpan_int_QTableView_int_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "row", "int"), new Param(c, "column", "int"), End), + new Function(c, "columnViewportPosition", _n_columnViewportPosition0, None, Compiled, qt_QTableView_columnViewportPosition_int_QTableView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "column", "int"), End), + new Function(c, "columnWidth", _n_columnWidth0, None, Compiled, qt_QTableView_columnWidth_int_QTableView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "column", "int"), End), + // PROP: gridStyle (flags Qt::PenStyle; QTableView this) + new Function(c, "horizontalHeader", _n_horizontalHeader0, None, Compiled, qt_QTableView_horizontalHeader_QHeaderView_QTableView, Return, "qt.QHeaderView", Parameters, new Param(c, "this", "qt.QTableView"), End), + new Function(c, "isColumnHidden", _n_isColumnHidden0, None, Compiled, qt_QTableView_isColumnHidden_bool_QTableView_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "column", "int"), End), + // PROP: isCornerButtonEnabled (bool; QTableView this) + new Function(c, "isRowHidden", _n_isRowHidden0, None, Compiled, qt_QTableView_isRowHidden_bool_QTableView_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "row", "int"), End), + // PROP: isSortingEnabled (bool; QTableView this) + new Function(c, "rowAt", _n_rowAt0, None, Compiled, qt_QTableView_rowAt_int_QTableView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "y", "int"), End), + new Function(c, "rowHeight", _n_rowHeight0, None, Compiled, qt_QTableView_rowHeight_int_QTableView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "row", "int"), End), + new Function(c, "rowSpan", _n_rowSpan0, None, Compiled, qt_QTableView_rowSpan_int_QTableView_int_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "row", "int"), new Param(c, "column", "int"), End), + new Function(c, "rowViewportPosition", _n_rowViewportPosition0, None, Compiled, qt_QTableView_rowViewportPosition_int_QTableView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "row", "int"), End), + new Function(c, "setColumnHidden", _n_setColumnHidden0, None, Compiled, qt_QTableView_setColumnHidden_void_QTableView_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "column", "int"), new Param(c, "hide", "bool"), End), + new Function(c, "setColumnWidth", _n_setColumnWidth0, None, Compiled, qt_QTableView_setColumnWidth_void_QTableView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "column", "int"), new Param(c, "width", "int"), End), + // PROP: setCornerButtonEnabled (void; QTableView this, bool enable) + // PROP: setGridStyle (void; QTableView this, flags Qt::PenStyle style) + new Function(c, "setHorizontalHeader", _n_setHorizontalHeader0, None, Compiled, qt_QTableView_setHorizontalHeader_void_QTableView_QHeaderView, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "header", "qt.QHeaderView"), End), + new Function(c, "setRowHeight", _n_setRowHeight0, None, Compiled, qt_QTableView_setRowHeight_void_QTableView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "row", "int"), new Param(c, "height", "int"), End), + new Function(c, "setRowHidden", _n_setRowHidden0, None, Compiled, qt_QTableView_setRowHidden_void_QTableView_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "row", "int"), new Param(c, "hide", "bool"), End), + new Function(c, "setSortingEnabled", _n_setSortingEnabled0, None, Compiled, qt_QTableView_setSortingEnabled_void_QTableView_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "enable", "bool"), End), + new Function(c, "setSpan", _n_setSpan0, None, Compiled, qt_QTableView_setSpan_void_QTableView_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "rowSpanCount", "int"), new Param(c, "columnSpanCount", "int"), End), + new Function(c, "setVerticalHeader", _n_setVerticalHeader0, None, Compiled, qt_QTableView_setVerticalHeader_void_QTableView_QHeaderView, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "header", "qt.QHeaderView"), End), + // PROP: setWordWrap (void; QTableView this, bool on) + // PROP: showGrid (bool; QTableView this) + new Function(c, "verticalHeader", _n_verticalHeader0, None, Compiled, qt_QTableView_verticalHeader_QHeaderView_QTableView, Return, "qt.QHeaderView", Parameters, new Param(c, "this", "qt.QTableView"), End), + // PROP: wordWrap (bool; QTableView this) + _func[0] = new MemberFunction(c, "indexAt", _n_indexAt0, None, Compiled, qt_QTableView_indexAt_QModelIndex_QTableView_QPoint, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "pos", "qt.QPoint"), End), + _func[1] = new MemberFunction(c, "scrollTo", _n_scrollTo0, None, Compiled, qt_QTableView_scrollTo_void_QTableView_QModelIndex_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "hint", "int", Value((int)QAbstractItemView::EnsureVisible)), End), + _func[2] = new MemberFunction(c, "setModel", _n_setModel0, None, Compiled, qt_QTableView_setModel_void_QTableView_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "model", "qt.QAbstractItemModel"), End), + _func[3] = new MemberFunction(c, "setRootIndex", _n_setRootIndex0, None, Compiled, qt_QTableView_setRootIndex_void_QTableView_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[4] = new MemberFunction(c, "setSelectionModel", _n_setSelectionModel0, None, Compiled, qt_QTableView_setSelectionModel_void_QTableView_QItemSelectionModel, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "selectionModel", "qt.QItemSelectionModel"), End), + _func[5] = new MemberFunction(c, "visualRect", _n_visualRect0, None, Compiled, qt_QTableView_visualRect_QRect_QTableView_QModelIndex, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[6] = new MemberFunction(c, "currentChanged", _n_currentChanged0, None, Compiled, qt_QTableView_currentChanged_void_QTableView_QModelIndex_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "current", "qt.QModelIndex"), new Param(c, "previous", "qt.QModelIndex"), End), + _func[7] = new MemberFunction(c, "horizontalOffset", _n_horizontalOffset0, None, Compiled, qt_QTableView_horizontalOffset_int_QTableView, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), End), + // MISSING: initViewItemOption (void; QTableView this, "QStyleOptionViewItem *" option) // protected + _func[8] = new MemberFunction(c, "isIndexHidden", _n_isIndexHidden0, None, Compiled, qt_QTableView_isIndexHidden_bool_QTableView_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[9] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QTableView_paintEvent_void_QTableView_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[10] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QTableView_scrollContentsBy_void_QTableView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[11] = new MemberFunction(c, "selectedIndexes", _n_selectedIndexes0, None, Compiled, qt_QTableView_selectedIndexes_qt__QModelIndexBSB_ESB__QTableView, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QTableView"), End), + _func[12] = new MemberFunction(c, "selectionChanged", _n_selectionChanged0, None, Compiled, qt_QTableView_selectionChanged_void_QTableView_QItemSelection_QItemSelection, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "selected", "qt.QItemSelection"), new Param(c, "deselected", "qt.QItemSelection"), End), + _func[13] = new MemberFunction(c, "setSelection", _n_setSelection0, None, Compiled, qt_QTableView_setSelection_void_QTableView_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "rect", "qt.QRect"), new Param(c, "flags", "int"), End), + _func[14] = new MemberFunction(c, "sizeHintForColumn", _n_sizeHintForColumn0, None, Compiled, qt_QTableView_sizeHintForColumn_int_QTableView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "column", "int"), End), + _func[15] = new MemberFunction(c, "sizeHintForRow", _n_sizeHintForRow0, None, Compiled, qt_QTableView_sizeHintForRow_int_QTableView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "row", "int"), End), + _func[16] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QTableView_timerEvent_void_QTableView_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[17] = new MemberFunction(c, "updateGeometries", _n_updateGeometries0, None, Compiled, qt_QTableView_updateGeometries_void_QTableView, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), End), + _func[18] = new MemberFunction(c, "verticalOffset", _n_verticalOffset0, None, Compiled, qt_QTableView_verticalOffset_int_QTableView, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), End), + _func[19] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QTableView_viewportSizeHint_QSize_QTableView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTableView"), End), + _func[20] = new MemberFunction(c, "visualRegionForSelection", _n_visualRegionForSelection0, None, Compiled, qt_QTableView_visualRegionForSelection_QRegion_QTableView_QItemSelection, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "selection", "qt.QItemSelection"), End), + // MISSING: itemDelegateForIndex ("QAbstractItemDelegate *"; QTableView this, QModelIndex index) + _func[21] = new MemberFunction(c, "keyboardSearch", _n_keyboardSearch0, None, Compiled, qt_QTableView_keyboardSearch_void_QTableView_string, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "search", "string"), End), + _func[22] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QTableView_inputMethodQuery_QVariant_QTableView_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "query", "int"), End), + _func[23] = new MemberFunction(c, "edit", _n_edit0, None, Compiled, qt_QTableView_edit_bool_QTableView_QModelIndex_int_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "trigger", "int"), new Param(c, "event", "qt.QEvent"), End), + _func[24] = new MemberFunction(c, "selectionCommand", _n_selectionCommand0, None, Compiled, qt_QTableView_selectionCommand_int_QTableView_QModelIndex_QEvent, Return, "int", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "event", "qt.QEvent"), End), + _func[25] = new MemberFunction(c, "startDrag", _n_startDrag0, None, Compiled, qt_QTableView_startDrag_void_QTableView_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "supportedActions", "int"), End), + _func[26] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QTableView_dragEnterEvent_void_QTableView_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[27] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QTableView_dragLeaveEvent_void_QTableView_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[28] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QTableView_dragMoveEvent_void_QTableView_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[29] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QTableView_dropEvent_void_QTableView_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QDropEvent"), End), + _func[30] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTableView_event_bool_QTableView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event_", "qt.QEvent"), End), + _func[31] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QTableView_eventFilter_bool_QTableView_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "object", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + _func[32] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QTableView_focusInEvent_void_QTableView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[33] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QTableView_focusNextPrevChild_bool_QTableView_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "next", "bool"), End), + _func[34] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QTableView_focusOutEvent_void_QTableView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QTableView this, "QInputMethodEvent *" event) // protected + _func[35] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QTableView_keyPressEvent_void_QTableView_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[36] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QTableView_mouseDoubleClickEvent_void_QTableView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[37] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QTableView_mouseMoveEvent_void_QTableView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[38] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QTableView_mousePressEvent_void_QTableView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[39] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QTableView_mouseReleaseEvent_void_QTableView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[40] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QTableView_resizeEvent_void_QTableView_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[41] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QTableView_viewportEvent_bool_QTableView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTableView"), new Param(c, "event", "qt.QEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTableView::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTableWidgetItemType.cpp b/src/lib/mu/MuQt6/QTableWidgetItemType.cpp new file mode 100644 index 000000000..d5140df7f --- /dev/null +++ b/src/lib/mu/MuQt6/QTableWidgetItemType.cpp @@ -0,0 +1,631 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QTableWidgetItemType::QTableWidgetItemType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QTableWidgetItemType::~QTableWidgetItemType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_type); + setqpointer(param_this,new QTableWidgetItem(arg1)); + return param_this; +} + +Pointer qt_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + int arg2 = (int)(param_type); + setqpointer(param_this,new QTableWidgetItem(arg1, arg2)); + return param_this; +} + +Pointer qt_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QIcon_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + int arg3 = (int)(param_type); + setqpointer(param_this,new QTableWidgetItem(arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QTableWidgetItem_background_QBrush_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->background(),"qt.QBrush"); +} + +int qt_QTableWidgetItem_checkState_int_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return int(arg0->checkState()); +} + +Pointer qt_QTableWidgetItem_clone_QTableWidgetItem_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makeqpointer(c,arg0->clone(),"qt.QTableWidgetItem"); +} + +int qt_QTableWidgetItem_column_int_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return arg0->column(); +} + +Pointer qt_QTableWidgetItem_data_QVariant_QTableWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_role); + return makeqtype(c,arg0->data(arg1),"qt.QVariant"); +} + +int qt_QTableWidgetItem_flags_int_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return int(arg0->flags()); +} + +Pointer qt_QTableWidgetItem_font_QFont_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->font(),"qt.QFont"); +} + +Pointer qt_QTableWidgetItem_foreground_QBrush_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->foreground(),"qt.QBrush"); +} + +Pointer qt_QTableWidgetItem_icon_QIcon_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->icon(),"qt.QIcon"); +} + +bool qt_QTableWidgetItem_isSelected_bool_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return arg0->isSelected(); +} + +int qt_QTableWidgetItem_row_int_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return arg0->row(); +} + +void qt_QTableWidgetItem_setBackground_void_QTableWidgetItem_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + const QBrush arg1 = getqtype(param_brush); + arg0->setBackground(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setCheckState_void_QTableWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + Qt::CheckState arg1 = (Qt::CheckState)(param_state); + arg0->setCheckState(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setData_void_QTableWidgetItem_int_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_role); + const QVariant arg2 = getqtype(param_value); + arg0->setData(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setFlags_void_QTableWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + Qt::ItemFlags arg1 = (Qt::ItemFlags)(param_flags); + arg0->setFlags(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setFont_void_QTableWidgetItem_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_font) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + const QFont arg1 = getqtype(param_font); + arg0->setFont(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setForeground_void_QTableWidgetItem_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + const QBrush arg1 = getqtype(param_brush); + arg0->setForeground(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setIcon_void_QTableWidgetItem_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + const QIcon arg1 = getqtype(param_icon); + arg0->setIcon(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setSelected_void_QTableWidgetItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_select) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_select); + arg0->setSelected(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setSizeHint_void_QTableWidgetItem_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + const QSize arg1 = getqtype(param_size); + arg0->setSizeHint(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setStatusTip_void_QTableWidgetItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_statusTip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_statusTip); + arg0->setStatusTip(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setText_void_QTableWidgetItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_text); + arg0->setText(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setTextAlignment_void_QTableWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + Qt::Alignment arg1 = (Qt::Alignment)(param_alignment); + arg0->setTextAlignment(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setToolTip_void_QTableWidgetItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_toolTip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_toolTip); + arg0->setToolTip(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTableWidgetItem_setWhatsThis_void_QTableWidgetItem_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_whatsThis) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_whatsThis); + arg0->setWhatsThis(arg1); + setqpointer(param_this,arg0); +} + +Pointer qt_QTableWidgetItem_sizeHint_QSize_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QTableWidgetItem_statusTip_string_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->statusTip()); +} + +Pointer qt_QTableWidgetItem_tableWidget_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makeinstance(c,arg0->tableWidget(),"qt.QTableWidget"); +} + +Pointer qt_QTableWidgetItem_text_string_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->text()); +} + +int qt_QTableWidgetItem_textAlignment_int_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return arg0->textAlignment(); +} + +Pointer qt_QTableWidgetItem_toolTip_string_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->toolTip()); +} + +int qt_QTableWidgetItem_type_int_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return arg0->type(); +} + +Pointer qt_QTableWidgetItem_whatsThis_string_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidgetItem * arg0 = getqpointer(param_this); + return makestring(c,arg0->whatsThis()); +} + + +static NODE_IMPLEMENTATION(_n_QTableWidgetItem0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_QTableWidgetItem1, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QTableWidgetItem2, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QIcon_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_background0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_background_QBrush_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_checkState0, int) +{ + NODE_RETURN(qt_QTableWidgetItem_checkState_int_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clone0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_clone_QTableWidgetItem_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_column0, int) +{ + NODE_RETURN(qt_QTableWidgetItem_column_int_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_data_QVariant_QTableWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QTableWidgetItem_flags_int_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_font0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_font_QFont_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_foreground0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_foreground_QBrush_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_icon0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_icon_QIcon_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSelected0, bool) +{ + NODE_RETURN(qt_QTableWidgetItem_isSelected_bool_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_row0, int) +{ + NODE_RETURN(qt_QTableWidgetItem_row_int_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBackground0, void) +{ + qt_QTableWidgetItem_setBackground_void_QTableWidgetItem_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCheckState0, void) +{ + qt_QTableWidgetItem_setCheckState_void_QTableWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setData0, void) +{ + qt_QTableWidgetItem_setData_void_QTableWidgetItem_int_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFlags0, void) +{ + qt_QTableWidgetItem_setFlags_void_QTableWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFont0, void) +{ + qt_QTableWidgetItem_setFont_void_QTableWidgetItem_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setForeground0, void) +{ + qt_QTableWidgetItem_setForeground_void_QTableWidgetItem_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setIcon0, void) +{ + qt_QTableWidgetItem_setIcon_void_QTableWidgetItem_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelected0, void) +{ + qt_QTableWidgetItem_setSelected_void_QTableWidgetItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSizeHint0, void) +{ + qt_QTableWidgetItem_setSizeHint_void_QTableWidgetItem_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setStatusTip0, void) +{ + qt_QTableWidgetItem_setStatusTip_void_QTableWidgetItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setText0, void) +{ + qt_QTableWidgetItem_setText_void_QTableWidgetItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTextAlignment0, void) +{ + qt_QTableWidgetItem_setTextAlignment_void_QTableWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setToolTip0, void) +{ + qt_QTableWidgetItem_setToolTip_void_QTableWidgetItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setWhatsThis0, void) +{ + qt_QTableWidgetItem_setWhatsThis_void_QTableWidgetItem_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_sizeHint_QSize_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_statusTip0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_statusTip_string_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_tableWidget0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_tableWidget_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_text_string_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_textAlignment0, int) +{ + NODE_RETURN(qt_QTableWidgetItem_textAlignment_int_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toolTip0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_toolTip_string_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_type0, int) +{ + NODE_RETURN(qt_QTableWidgetItem_type_int_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_whatsThis0, Pointer) +{ + NODE_RETURN(qt_QTableWidgetItem_whatsThis_string_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QTableWidgetItemType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + new Alias(c, "ItemType", "int"), + new SymbolicConstant(c, "Type", "int", Value(int(QTableWidgetItem::Type))), + new SymbolicConstant(c, "UserType", "int", Value(int(QTableWidgetItem::UserType))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QTableWidgetItem", _n_QTableWidgetItem0, None, Compiled, qt_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_int, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "type", "int", Value((int)QTableWidgetItem::Type)), End), + new Function(c, "QTableWidgetItem", _n_QTableWidgetItem1, None, Compiled, qt_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_string_int, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "text", "string"), new Param(c, "type", "int", Value((int)QTableWidgetItem::Type)), End), + new Function(c, "QTableWidgetItem", _n_QTableWidgetItem2, None, Compiled, qt_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QTableWidgetItem_QIcon_string_int, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), new Param(c, "type", "int", Value((int)QTableWidgetItem::Type)), End), + // MISSING: QTableWidgetItem (QTableWidgetItem; QTableWidgetItem this, QTableWidgetItem other) + new Function(c, "background", _n_background0, None, Compiled, qt_QTableWidgetItem_background_QBrush_QTableWidgetItem, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "checkState", _n_checkState0, None, Compiled, qt_QTableWidgetItem_checkState_int_QTableWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new MemberFunction(c, "clone", _n_clone0, None, Compiled, qt_QTableWidgetItem_clone_QTableWidgetItem_QTableWidgetItem, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "column", _n_column0, None, Compiled, qt_QTableWidgetItem_column_int_QTableWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new MemberFunction(c, "data", _n_data0, None, Compiled, qt_QTableWidgetItem_data_QVariant_QTableWidgetItem_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "role", "int"), End), + new Function(c, "flags", _n_flags0, None, Compiled, qt_QTableWidgetItem_flags_int_QTableWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "font", _n_font0, None, Compiled, qt_QTableWidgetItem_font_QFont_QTableWidgetItem, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "foreground", _n_foreground0, None, Compiled, qt_QTableWidgetItem_foreground_QBrush_QTableWidgetItem, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "icon", _n_icon0, None, Compiled, qt_QTableWidgetItem_icon_QIcon_QTableWidgetItem, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "isSelected", _n_isSelected0, None, Compiled, qt_QTableWidgetItem_isSelected_bool_QTableWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + // MISSING: read (void; QTableWidgetItem this, "QDataStream &" in) + new Function(c, "row", _n_row0, None, Compiled, qt_QTableWidgetItem_row_int_QTableWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "setBackground", _n_setBackground0, None, Compiled, qt_QTableWidgetItem_setBackground_void_QTableWidgetItem_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "brush", "qt.QBrush"), End), + new Function(c, "setCheckState", _n_setCheckState0, None, Compiled, qt_QTableWidgetItem_setCheckState_void_QTableWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "state", "int"), End), + new MemberFunction(c, "setData", _n_setData0, None, Compiled, qt_QTableWidgetItem_setData_void_QTableWidgetItem_int_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "role", "int"), new Param(c, "value", "qt.QVariant"), End), + new Function(c, "setFlags", _n_setFlags0, None, Compiled, qt_QTableWidgetItem_setFlags_void_QTableWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "flags", "int"), End), + new Function(c, "setFont", _n_setFont0, None, Compiled, qt_QTableWidgetItem_setFont_void_QTableWidgetItem_QFont, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "font", "qt.QFont"), End), + new Function(c, "setForeground", _n_setForeground0, None, Compiled, qt_QTableWidgetItem_setForeground_void_QTableWidgetItem_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "brush", "qt.QBrush"), End), + new Function(c, "setIcon", _n_setIcon0, None, Compiled, qt_QTableWidgetItem_setIcon_void_QTableWidgetItem_QIcon, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "icon", "qt.QIcon"), End), + new Function(c, "setSelected", _n_setSelected0, None, Compiled, qt_QTableWidgetItem_setSelected_void_QTableWidgetItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "select", "bool"), End), + new Function(c, "setSizeHint", _n_setSizeHint0, None, Compiled, qt_QTableWidgetItem_setSizeHint_void_QTableWidgetItem_QSize, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "size", "qt.QSize"), End), + new Function(c, "setStatusTip", _n_setStatusTip0, None, Compiled, qt_QTableWidgetItem_setStatusTip_void_QTableWidgetItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "statusTip", "string"), End), + new Function(c, "setText", _n_setText0, None, Compiled, qt_QTableWidgetItem_setText_void_QTableWidgetItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "text", "string"), End), + new Function(c, "setTextAlignment", _n_setTextAlignment0, None, Compiled, qt_QTableWidgetItem_setTextAlignment_void_QTableWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "alignment", "int"), End), + new Function(c, "setToolTip", _n_setToolTip0, None, Compiled, qt_QTableWidgetItem_setToolTip_void_QTableWidgetItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "toolTip", "string"), End), + new Function(c, "setWhatsThis", _n_setWhatsThis0, None, Compiled, qt_QTableWidgetItem_setWhatsThis_void_QTableWidgetItem_string, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), new Param(c, "whatsThis", "string"), End), + new Function(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QTableWidgetItem_sizeHint_QSize_QTableWidgetItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "statusTip", _n_statusTip0, None, Compiled, qt_QTableWidgetItem_statusTip_string_QTableWidgetItem, Return, "string", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "tableWidget", _n_tableWidget0, None, Compiled, qt_QTableWidgetItem_tableWidget_QTableWidget_QTableWidgetItem, Return, "qt.QTableWidget", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "text", _n_text0, None, Compiled, qt_QTableWidgetItem_text_string_QTableWidgetItem, Return, "string", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "textAlignment", _n_textAlignment0, None, Compiled, qt_QTableWidgetItem_textAlignment_int_QTableWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "toolTip", _n_toolTip0, None, Compiled, qt_QTableWidgetItem_toolTip_string_QTableWidgetItem, Return, "string", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "type", _n_type0, None, Compiled, qt_QTableWidgetItem_type_int_QTableWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + new Function(c, "whatsThis", _n_whatsThis0, None, Compiled, qt_QTableWidgetItem_whatsThis_string_QTableWidgetItem, Return, "string", Parameters, new Param(c, "this", "qt.QTableWidgetItem"), End), + // MISSING: write (void; QTableWidgetItem this, "QDataStream &" out) + // static functions + EndArguments); +globalScope()->addSymbols( + // MISSING: = (QTableWidgetItem; QTableWidgetItem this, QTableWidgetItem other) + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTableWidgetType.cpp b/src/lib/mu/MuQt6/QTableWidgetType.cpp new file mode 100644 index 000000000..3c0c7f031 --- /dev/null +++ b/src/lib/mu/MuQt6/QTableWidgetType.cpp @@ -0,0 +1,1740 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTableWidget::~MuQt_QTableWidget() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTableWidget::MuQt_QTableWidget(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QTableWidget(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTableWidget")); +} + +MuQt_QTableWidget::MuQt_QTableWidget(Pointer muobj, const CallEnvironment* ce, int rows, int columns, QWidget * parent) + : QTableWidget(rows, columns, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTableWidget")); +} + +bool MuQt_QTableWidget::dropMimeData(int row, int column, const QMimeData * data, Qt::DropAction action) +{ + if (!_env) return QTableWidget::dropMimeData(row, column, data, action); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(5); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + args[2] = Value(column); + args[3] = Value(makeinstance(c,data,"qt.QMimeData")); + args[4] = Value(int(action)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTableWidget::dropMimeData(row, column, data, action); + } +} + +QMimeData * MuQt_QTableWidget::mimeData(const QList & items) const +{ + if (!_env) return QTableWidget::mimeData(items); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointerlist(c,items,"qt.QTableWidgetItem")); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QTableWidget::mimeData(items); + } +} + +QStringList MuQt_QTableWidget::mimeTypes() const +{ + if (!_env) return QTableWidget::mimeTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QTableWidget::mimeTypes(); + } +} + +Qt::DropActions MuQt_QTableWidget::supportedDropActions() const +{ + if (!_env) return QTableWidget::supportedDropActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QTableWidget::supportedDropActions(); + } +} + +void MuQt_QTableWidget::dropEvent(QDropEvent * event) +{ + if (!_env) { QTableWidget::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::dropEvent(event); + } +} + +bool MuQt_QTableWidget::event(QEvent * e) +{ + if (!_env) return QTableWidget::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTableWidget::event(e); + } +} + +QModelIndex MuQt_QTableWidget::indexAt(const QPoint & pos) const +{ + if (!_env) return QTableWidget::indexAt(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,pos,"qt.QPoint")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTableWidget::indexAt(pos); + } +} + +void MuQt_QTableWidget::scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) +{ + if (!_env) { QTableWidget::scrollTo(index, hint); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(hint)); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::scrollTo(index, hint); + } +} + +void MuQt_QTableWidget::setRootIndex(const QModelIndex & index) +{ + if (!_env) { QTableWidget::setRootIndex(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::setRootIndex(index); + } +} + +void MuQt_QTableWidget::setSelectionModel(QItemSelectionModel * selectionModel) +{ + if (!_env) { QTableWidget::setSelectionModel(selectionModel); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,selectionModel,"qt.QItemSelectionModel")); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::setSelectionModel(selectionModel); + } +} + +QRect MuQt_QTableWidget::visualRect(const QModelIndex & index) const +{ + if (!_env) return QTableWidget::visualRect(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTableWidget::visualRect(index); + } +} + +void MuQt_QTableWidget::currentChanged(const QModelIndex & current, const QModelIndex & previous) +{ + if (!_env) { QTableWidget::currentChanged(current, previous); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,current,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,previous,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::currentChanged(current, previous); + } +} + +int MuQt_QTableWidget::horizontalOffset() const +{ + if (!_env) return QTableWidget::horizontalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTableWidget::horizontalOffset(); + } +} + +bool MuQt_QTableWidget::isIndexHidden(const QModelIndex & index) const +{ + if (!_env) return QTableWidget::isIndexHidden(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTableWidget::isIndexHidden(index); + } +} + +void MuQt_QTableWidget::paintEvent(QPaintEvent * event) +{ + if (!_env) { QTableWidget::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::paintEvent(event); + } +} + +void MuQt_QTableWidget::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QTableWidget::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::scrollContentsBy(dx, dy); + } +} + +QModelIndexList MuQt_QTableWidget::selectedIndexes() const +{ + if (!_env) return QTableWidget::selectedIndexes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QTableWidget::selectedIndexes(); + } +} + +void MuQt_QTableWidget::selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) +{ + if (!_env) { QTableWidget::selectionChanged(selected, deselected); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selected,"qt.QItemSelection")); + args[2] = Value(makeqtype(c,deselected,"qt.QItemSelection")); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::selectionChanged(selected, deselected); + } +} + +void MuQt_QTableWidget::setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags flags) +{ + if (!_env) { QTableWidget::setSelection(rect, flags); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + args[2] = Value(int(flags)); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::setSelection(rect, flags); + } +} + +int MuQt_QTableWidget::sizeHintForColumn(int column) const +{ + if (!_env) return QTableWidget::sizeHintForColumn(column); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTableWidget::sizeHintForColumn(column); + } +} + +int MuQt_QTableWidget::sizeHintForRow(int row) const +{ + if (!_env) return QTableWidget::sizeHintForRow(row); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTableWidget::sizeHintForRow(row); + } +} + +void MuQt_QTableWidget::timerEvent(QTimerEvent * event) +{ + if (!_env) { QTableWidget::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::timerEvent(event); + } +} + +void MuQt_QTableWidget::updateGeometries() +{ + if (!_env) { QTableWidget::updateGeometries(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTableWidget::updateGeometries(); + } +} + +int MuQt_QTableWidget::verticalOffset() const +{ + if (!_env) return QTableWidget::verticalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTableWidget::verticalOffset(); + } +} + +QSize MuQt_QTableWidget::viewportSizeHint() const +{ + if (!_env) return QTableWidget::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTableWidget::viewportSizeHint(); + } +} + +QRegion MuQt_QTableWidget::visualRegionForSelection(const QItemSelection & selection) const +{ + if (!_env) return QTableWidget::visualRegionForSelection(selection); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selection,"qt.QItemSelection")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTableWidget::visualRegionForSelection(selection); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTableWidgetType::QTableWidgetType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTableWidgetType::~QTableWidgetType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTableWidget_QTableWidget_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTableWidget* w = object(widget)) + { + QTableWidgetType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTableWidget"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTableWidget_QTableWidget_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTableWidget_QTableWidget_QTableWidget_QTableWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTableWidget(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QTableWidget_QTableWidget_QTableWidget_QTableWidget_int_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_rows, int param_columns, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_rows); + int arg2 = (int)(param_columns); + QWidget * arg3 = object(param_parent); + setobject(param_this, new MuQt_QTableWidget(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QTableWidget_cellWidget_QWidget_QTableWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return makeinstance(c, arg0->cellWidget(arg1, arg2), "qt.QWidget"); +} + +void qt_QTableWidget_closePersistentEditor_void_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QTableWidgetItem * arg1 = getqpointer(param_item); + arg0->closePersistentEditor(arg1); +} + +int qt_QTableWidget_column_int_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QTableWidgetItem * arg1 = getqpointer(param_item); + return arg0->column(arg1); +} + +int qt_QTableWidget_columnCount_int_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return arg0->columnCount(); +} + +int qt_QTableWidget_currentColumn_int_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return arg0->currentColumn(); +} + +Pointer qt_QTableWidget_currentItem_QTableWidgetItem_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return makeqpointer(c,arg0->currentItem(),"qt.QTableWidgetItem"); +} + +int qt_QTableWidget_currentRow_int_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return arg0->currentRow(); +} + +void qt_QTableWidget_editItem_void_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QTableWidgetItem * arg1 = getqpointer(param_item); + arg0->editItem(arg1); +} + +Pointer qt_QTableWidget_findItems_qt__QTableWidgetItemBSB_ESB__QTableWidget_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + Qt::MatchFlags arg2 = (Qt::MatchFlags)(param_flags); + return makeqpointerlist(c,arg0->findItems(arg1, arg2),"qt.QTableWidgetItem"); +} + +Pointer qt_QTableWidget_horizontalHeaderItem_QTableWidgetItem_QTableWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_column); + return makeqpointer(c,arg0->horizontalHeaderItem(arg1),"qt.QTableWidgetItem"); +} + +Pointer qt_QTableWidget_indexFromItem_QModelIndex_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QTableWidgetItem * arg1 = getqpointer(param_item); + return makeqtype(c,arg0->indexFromItem(arg1),"qt.QModelIndex"); +} + +bool qt_QTableWidget_isPersistentEditorOpen_bool_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QTableWidgetItem * arg1 = getqpointer(param_item); + return arg0->isPersistentEditorOpen(arg1); +} + +Pointer qt_QTableWidget_item_QTableWidgetItem_QTableWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return makeqpointer(c,arg0->item(arg1, arg2),"qt.QTableWidgetItem"); +} + +Pointer qt_QTableWidget_itemAt_QTableWidgetItem_QTableWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_point); + return makeqpointer(c,arg0->itemAt(arg1),"qt.QTableWidgetItem"); +} + +Pointer qt_QTableWidget_itemAt_QTableWidgetItem_QTableWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_ax, int param_ay) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_ax); + int arg2 = (int)(param_ay); + return makeqpointer(c,arg0->itemAt(arg1, arg2),"qt.QTableWidgetItem"); +} + +Pointer qt_QTableWidget_itemFromIndex_QTableWidgetItem_QTableWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeqpointer(c,arg0->itemFromIndex(arg1),"qt.QTableWidgetItem"); +} + +Pointer qt_QTableWidget_itemPrototype_QTableWidgetItem_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return makeqpointer(c,arg0->itemPrototype(),"qt.QTableWidgetItem"); +} + +Pointer qt_QTableWidget_items_qt__QTableWidgetItemBSB_ESB__QTableWidget_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QMimeData * arg1 = object(param_data); + return makeqpointerlist(c,arg0->items(arg1),"qt.QTableWidgetItem"); +} + +void qt_QTableWidget_openPersistentEditor_void_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QTableWidgetItem * arg1 = getqpointer(param_item); + arg0->openPersistentEditor(arg1); +} + +void qt_QTableWidget_removeCellWidget_void_QTableWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + arg0->removeCellWidget(arg1, arg2); +} + +int qt_QTableWidget_row_int_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QTableWidgetItem * arg1 = getqpointer(param_item); + return arg0->row(arg1); +} + +int qt_QTableWidget_rowCount_int_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return arg0->rowCount(); +} + +Pointer qt_QTableWidget_selectedItems_qt__QTableWidgetItemBSB_ESB__QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return makeqpointerlist(c,arg0->selectedItems(),"qt.QTableWidgetItem"); +} + +void qt_QTableWidget_setCellWidget_void_QTableWidget_int_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + QWidget * arg3 = object(param_widget); + arg0->setCellWidget(arg1, arg2, arg3); +} + +void qt_QTableWidget_setColumnCount_void_QTableWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_columns) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_columns); + arg0->setColumnCount(arg1); +} + +void qt_QTableWidget_setCurrentCell_void_QTableWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + arg0->setCurrentCell(arg1, arg2); +} + +void qt_QTableWidget_setCurrentCell_void_QTableWidget_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + QItemSelectionModel::SelectionFlags arg3 = (QItemSelectionModel::SelectionFlags)(param_command); + arg0->setCurrentCell(arg1, arg2, arg3); +} + +void qt_QTableWidget_setCurrentItem_void_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QTableWidgetItem * arg1 = getqpointer(param_item); + arg0->setCurrentItem(arg1); +} + +void qt_QTableWidget_setCurrentItem_void_QTableWidget_QTableWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QTableWidgetItem * arg1 = getqpointer(param_item); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_command); + arg0->setCurrentItem(arg1, arg2); +} + +void qt_QTableWidget_setHorizontalHeaderItem_void_QTableWidget_int_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_column); + QTableWidgetItem * arg2 = getqpointer(param_item); + arg0->setHorizontalHeaderItem(arg1, arg2); +} + +void qt_QTableWidget_setHorizontalHeaderLabels_void_QTableWidget_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_labels) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_labels); + arg0->setHorizontalHeaderLabels(arg1); +} + +void qt_QTableWidget_setItem_void_QTableWidget_int_int_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + QTableWidgetItem * arg3 = getqpointer(param_item); + arg0->setItem(arg1, arg2, arg3); +} + +void qt_QTableWidget_setItemPrototype_void_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QTableWidgetItem * arg1 = getqpointer(param_item); + arg0->setItemPrototype(arg1); +} + +void qt_QTableWidget_setRowCount_void_QTableWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_rows) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_rows); + arg0->setRowCount(arg1); +} + +void qt_QTableWidget_setVerticalHeaderItem_void_QTableWidget_int_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + QTableWidgetItem * arg2 = getqpointer(param_item); + arg0->setVerticalHeaderItem(arg1, arg2); +} + +void qt_QTableWidget_setVerticalHeaderLabels_void_QTableWidget_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_labels) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_labels); + arg0->setVerticalHeaderLabels(arg1); +} + +void qt_QTableWidget_sortItems_void_QTableWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_order) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_column); + Qt::SortOrder arg2 = (Qt::SortOrder)(param_order); + arg0->sortItems(arg1, arg2); +} + +Pointer qt_QTableWidget_takeHorizontalHeaderItem_QTableWidgetItem_QTableWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_column); + return makeqpointer(c,arg0->takeHorizontalHeaderItem(arg1),"qt.QTableWidgetItem"); +} + +Pointer qt_QTableWidget_takeItem_QTableWidgetItem_QTableWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + return makeqpointer(c,arg0->takeItem(arg1, arg2),"qt.QTableWidgetItem"); +} + +Pointer qt_QTableWidget_takeVerticalHeaderItem_QTableWidgetItem_QTableWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + return makeqpointer(c,arg0->takeVerticalHeaderItem(arg1),"qt.QTableWidgetItem"); +} + +Pointer qt_QTableWidget_verticalHeaderItem_QTableWidgetItem_QTableWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + return makeqpointer(c,arg0->verticalHeaderItem(arg1),"qt.QTableWidgetItem"); +} + +int qt_QTableWidget_visualColumn_int_QTableWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalColumn) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_logicalColumn); + return arg0->visualColumn(arg1); +} + +Pointer qt_QTableWidget_visualItemRect_QRect_QTableWidget_QTableWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QTableWidgetItem * arg1 = getqpointer(param_item); + return makeqtype(c,arg0->visualItemRect(arg1),"qt.QRect"); +} + +int qt_QTableWidget_visualRow_int_QTableWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_logicalRow) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_logicalRow); + return arg0->visualRow(arg1); +} + +bool qt_QTableWidget_dropMimeData_bool_QTableWidget_int_int_QMimeData_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_data, int param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + const QMimeData * arg3 = object(param_data); + Qt::DropAction arg4 = (Qt::DropAction)(param_action); + return isMuQtObject(arg0) ? ((MuQt_QTableWidget*)arg0)->dropMimeData_pub_parent(arg1, arg2, arg3, arg4) : ((MuQt_QTableWidget*)arg0)->dropMimeData_pub(arg1, arg2, arg3, arg4); +} + +Pointer qt_QTableWidget_mimeData_QMimeData_QTableWidget_qt__QTableWidgetItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QList arg1 = qpointerlist(param_items); + return isMuQtObject(arg0) ? makeinstance(c, ((MuQt_QTableWidget*)arg0)->mimeData_pub_parent(arg1), "qt.QMimeData") : makeinstance(c, ((MuQt_QTableWidget*)arg0)->mimeData_pub(arg1), "qt.QMimeData"); +} + +Pointer qt_QTableWidget_mimeTypes_stringBSB_ESB__QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestringlist(c,((MuQt_QTableWidget*)arg0)->mimeTypes_pub_parent()) : makestringlist(c,((MuQt_QTableWidget*)arg0)->mimeTypes_pub()); +} + +int qt_QTableWidget_supportedDropActions_int_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(((MuQt_QTableWidget*)arg0)->supportedDropActions_pub_parent()) : int(((MuQt_QTableWidget*)arg0)->supportedDropActions_pub()); +} + +void qt_QTableWidget_dropEvent_void_QTableWidget_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableWidget*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QTableWidget*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QTableWidget_event_bool_QTableWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QTableWidget*)arg0)->event_pub_parent(arg1) : ((MuQt_QTableWidget*)arg0)->event_pub(arg1); +} + +Pointer qt_QTableWidget_indexAt_QModelIndex_QTableWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTableWidget::indexAt(arg1),"qt.QModelIndex") : makeqtype(c,arg0->indexAt(arg1),"qt.QModelIndex"); +} + +void qt_QTableWidget_scrollTo_void_QTableWidget_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_hint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::ScrollHint arg2 = (QAbstractItemView::ScrollHint)(param_hint); + if (isMuQtObject(arg0)) arg0->QTableWidget::scrollTo(arg1, arg2); + else arg0->scrollTo(arg1, arg2); +} + +void qt_QTableWidget_setRootIndex_void_QTableWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + if (isMuQtObject(arg0)) arg0->QTableWidget::setRootIndex(arg1); + else arg0->setRootIndex(arg1); +} + +void qt_QTableWidget_setSelectionModel_void_QTableWidget_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selectionModel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QItemSelectionModel * arg1 = object(param_selectionModel); + if (isMuQtObject(arg0)) arg0->QTableWidget::setSelectionModel(arg1); + else arg0->setSelectionModel(arg1); +} + +Pointer qt_QTableWidget_visualRect_QRect_QTableWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTableWidget::visualRect(arg1),"qt.QRect") : makeqtype(c,arg0->visualRect(arg1),"qt.QRect"); +} + +void qt_QTableWidget_currentChanged_void_QTableWidget_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_current, Pointer param_previous) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_current); + const QModelIndex arg2 = getqtype(param_previous); + if (isMuQtObject(arg0)) ((MuQt_QTableWidget*)arg0)->currentChanged_pub_parent(arg1, arg2); + else ((MuQt_QTableWidget*)arg0)->currentChanged_pub(arg1, arg2); +} + +int qt_QTableWidget_horizontalOffset_int_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QTableWidget*)arg0)->horizontalOffset_pub_parent() : ((MuQt_QTableWidget*)arg0)->horizontalOffset_pub(); +} + +bool qt_QTableWidget_isIndexHidden_bool_QTableWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? ((MuQt_QTableWidget*)arg0)->isIndexHidden_pub_parent(arg1) : ((MuQt_QTableWidget*)arg0)->isIndexHidden_pub(arg1); +} + +void qt_QTableWidget_paintEvent_void_QTableWidget_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableWidget*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QTableWidget*)arg0)->paintEvent_pub(arg1); +} + +void qt_QTableWidget_scrollContentsBy_void_QTableWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QTableWidget*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QTableWidget*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +Pointer qt_QTableWidget_selectedIndexes_qt__QModelIndexBSB_ESB__QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,((MuQt_QTableWidget*)arg0)->selectedIndexes_pub_parent()) : makeqmodelindexlist(c,((MuQt_QTableWidget*)arg0)->selectedIndexes_pub()); +} + +void qt_QTableWidget_selectionChanged_void_QTableWidget_QItemSelection_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selected, Pointer param_deselected) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selected); + const QItemSelection arg2 = getqtype(param_deselected); + if (isMuQtObject(arg0)) ((MuQt_QTableWidget*)arg0)->selectionChanged_pub_parent(arg1, arg2); + else ((MuQt_QTableWidget*)arg0)->selectionChanged_pub(arg1, arg2); +} + +void qt_QTableWidget_setSelection_void_QTableWidget_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_flags); + if (isMuQtObject(arg0)) ((MuQt_QTableWidget*)arg0)->setSelection_pub_parent(arg1, arg2); + else ((MuQt_QTableWidget*)arg0)->setSelection_pub(arg1, arg2); +} + +int qt_QTableWidget_sizeHintForColumn_int_QTableWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_column); + return isMuQtObject(arg0) ? ((MuQt_QTableWidget*)arg0)->sizeHintForColumn_pub_parent(arg1) : ((MuQt_QTableWidget*)arg0)->sizeHintForColumn_pub(arg1); +} + +int qt_QTableWidget_sizeHintForRow_int_QTableWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + int arg1 = (int)(param_row); + return isMuQtObject(arg0) ? ((MuQt_QTableWidget*)arg0)->sizeHintForRow_pub_parent(arg1) : ((MuQt_QTableWidget*)arg0)->sizeHintForRow_pub(arg1); +} + +void qt_QTableWidget_timerEvent_void_QTableWidget_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTableWidget*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QTableWidget*)arg0)->timerEvent_pub(arg1); +} + +void qt_QTableWidget_updateGeometries_void_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QTableWidget*)arg0)->updateGeometries_pub_parent(); + else ((MuQt_QTableWidget*)arg0)->updateGeometries_pub(); +} + +int qt_QTableWidget_verticalOffset_int_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QTableWidget*)arg0)->verticalOffset_pub_parent() : ((MuQt_QTableWidget*)arg0)->verticalOffset_pub(); +} + +Pointer qt_QTableWidget_viewportSizeHint_QSize_QTableWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTableWidget*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QTableWidget*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +Pointer qt_QTableWidget_visualRegionForSelection_QRegion_QTableWidget_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTableWidget* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selection); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTableWidget*)arg0)->visualRegionForSelection_pub_parent(arg1),"qt.QRegion") : makeqtype(c,((MuQt_QTableWidget*)arg0)->visualRegionForSelection_pub(arg1),"qt.QRegion"); +} + + +static NODE_IMPLEMENTATION(_n_QTableWidget0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_QTableWidget_QTableWidget_QTableWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTableWidget1, Pointer) +{ + NODE_RETURN(qt_QTableWidget_QTableWidget_QTableWidget_QTableWidget_int_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cellWidget0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_cellWidget_QWidget_QTableWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_closePersistentEditor0, void) +{ + qt_QTableWidget_closePersistentEditor_void_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_column0, int) +{ + NODE_RETURN(qt_QTableWidget_column_int_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_columnCount0, int) +{ + NODE_RETURN(qt_QTableWidget_columnCount_int_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentColumn0, int) +{ + NODE_RETURN(qt_QTableWidget_currentColumn_int_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentItem0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_currentItem_QTableWidgetItem_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentRow0, int) +{ + NODE_RETURN(qt_QTableWidget_currentRow_int_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_editItem0, void) +{ + qt_QTableWidget_editItem_void_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_findItems0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_findItems_qt__QTableWidgetItemBSB_ESB__QTableWidget_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_horizontalHeaderItem0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_horizontalHeaderItem_QTableWidgetItem_QTableWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_indexFromItem0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_indexFromItem_QModelIndex_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isPersistentEditorOpen0, bool) +{ + NODE_RETURN(qt_QTableWidget_isPersistentEditorOpen_bool_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_item0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_item_QTableWidgetItem_QTableWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_itemAt0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_itemAt_QTableWidgetItem_QTableWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemAt1, Pointer) +{ + NODE_RETURN(qt_QTableWidget_itemAt_QTableWidgetItem_QTableWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_itemFromIndex0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_itemFromIndex_QTableWidgetItem_QTableWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemPrototype0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_itemPrototype_QTableWidgetItem_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_items0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_items_qt__QTableWidgetItemBSB_ESB__QTableWidget_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_openPersistentEditor0, void) +{ + qt_QTableWidget_openPersistentEditor_void_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removeCellWidget0, void) +{ + qt_QTableWidget_removeCellWidget_void_QTableWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_row0, int) +{ + NODE_RETURN(qt_QTableWidget_row_int_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rowCount0, int) +{ + NODE_RETURN(qt_QTableWidget_rowCount_int_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectedItems0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_selectedItems_qt__QTableWidgetItemBSB_ESB__QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCellWidget0, void) +{ + qt_QTableWidget_setCellWidget_void_QTableWidget_int_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setColumnCount0, void) +{ + qt_QTableWidget_setColumnCount_void_QTableWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setCurrentCell0, void) +{ + qt_QTableWidget_setCurrentCell_void_QTableWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setCurrentCell1, void) +{ + qt_QTableWidget_setCurrentCell_void_QTableWidget_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_setCurrentItem0, void) +{ + qt_QTableWidget_setCurrentItem_void_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCurrentItem1, void) +{ + qt_QTableWidget_setCurrentItem_void_QTableWidget_QTableWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setHorizontalHeaderItem0, void) +{ + qt_QTableWidget_setHorizontalHeaderItem_void_QTableWidget_int_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHorizontalHeaderLabels0, void) +{ + qt_QTableWidget_setHorizontalHeaderLabels_void_QTableWidget_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setItem0, void) +{ + qt_QTableWidget_setItem_void_QTableWidget_int_int_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setItemPrototype0, void) +{ + qt_QTableWidget_setItemPrototype_void_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRowCount0, void) +{ + qt_QTableWidget_setRowCount_void_QTableWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setVerticalHeaderItem0, void) +{ + qt_QTableWidget_setVerticalHeaderItem_void_QTableWidget_int_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setVerticalHeaderLabels0, void) +{ + qt_QTableWidget_setVerticalHeaderLabels_void_QTableWidget_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sortItems0, void) +{ + qt_QTableWidget_sortItems_void_QTableWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_takeHorizontalHeaderItem0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_takeHorizontalHeaderItem_QTableWidgetItem_QTableWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_takeItem0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_takeItem_QTableWidgetItem_QTableWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_takeVerticalHeaderItem0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_takeVerticalHeaderItem_QTableWidgetItem_QTableWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_verticalHeaderItem0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_verticalHeaderItem_QTableWidgetItem_QTableWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_visualColumn0, int) +{ + NODE_RETURN(qt_QTableWidget_visualColumn_int_QTableWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_visualItemRect0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_visualItemRect_QRect_QTableWidget_QTableWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualRow0, int) +{ + NODE_RETURN(qt_QTableWidget_visualRow_int_QTableWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_dropMimeData0, bool) +{ + NODE_RETURN(qt_QTableWidget_dropMimeData_bool_QTableWidget_int_int_QMimeData_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_mimeData0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_mimeData_QMimeData_QTableWidget_qt__QTableWidgetItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mimeTypes0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_mimeTypes_stringBSB_ESB__QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportedDropActions0, int) +{ + NODE_RETURN(qt_QTableWidget_supportedDropActions_int_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QTableWidget_dropEvent_void_QTableWidget_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTableWidget_event_bool_QTableWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexAt0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_indexAt_QModelIndex_QTableWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scrollTo0, void) +{ + qt_QTableWidget_scrollTo_void_QTableWidget_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setRootIndex0, void) +{ + qt_QTableWidget_setRootIndex_void_QTableWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelectionModel0, void) +{ + qt_QTableWidget_setSelectionModel_void_QTableWidget_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_visualRect0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_visualRect_QRect_QTableWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentChanged0, void) +{ + qt_QTableWidget_currentChanged_void_QTableWidget_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_horizontalOffset0, int) +{ + NODE_RETURN(qt_QTableWidget_horizontalOffset_int_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIndexHidden0, bool) +{ + NODE_RETURN(qt_QTableWidget_isIndexHidden_bool_QTableWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QTableWidget_paintEvent_void_QTableWidget_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QTableWidget_scrollContentsBy_void_QTableWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectedIndexes0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_selectedIndexes_qt__QModelIndexBSB_ESB__QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionChanged0, void) +{ + qt_QTableWidget_selectionChanged_void_QTableWidget_QItemSelection_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QTableWidget_setSelection_void_QTableWidget_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForColumn0, int) +{ + NODE_RETURN(qt_QTableWidget_sizeHintForColumn_int_QTableWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForRow0, int) +{ + NODE_RETURN(qt_QTableWidget_sizeHintForRow_int_QTableWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QTableWidget_timerEvent_void_QTableWidget_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_updateGeometries0, void) +{ + qt_QTableWidget_updateGeometries_void_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_verticalOffset0, int) +{ + NODE_RETURN(qt_QTableWidget_verticalOffset_int_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_viewportSizeHint_QSize_QTableWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualRegionForSelection0, Pointer) +{ + NODE_RETURN(qt_QTableWidget_visualRegionForSelection_QRegion_QTableWidget_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QTableWidgetType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTableWidget_QTableWidget_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTableWidget", _n_QTableWidget0, None, Compiled, qt_QTableWidget_QTableWidget_QTableWidget_QTableWidget_QWidget, Return, "qt.QTableWidget", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QTableWidget", _n_QTableWidget1, None, Compiled, qt_QTableWidget_QTableWidget_QTableWidget_QTableWidget_int_int_QWidget, Return, "qt.QTableWidget", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "rows", "int"), new Param(c, "columns", "int"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "cellWidget", _n_cellWidget0, None, Compiled, qt_QTableWidget_cellWidget_QWidget_QTableWidget_int_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), new Param(c, "column", "int"), End), + new Function(c, "closePersistentEditor", _n_closePersistentEditor0, None, Compiled, qt_QTableWidget_closePersistentEditor_void_QTableWidget_QTableWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "column", _n_column0, None, Compiled, qt_QTableWidget_column_int_QTableWidget_QTableWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "columnCount", _n_columnCount0, None, Compiled, qt_QTableWidget_columnCount_int_QTableWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + new Function(c, "currentColumn", _n_currentColumn0, None, Compiled, qt_QTableWidget_currentColumn_int_QTableWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + new Function(c, "currentItem", _n_currentItem0, None, Compiled, qt_QTableWidget_currentItem_QTableWidgetItem_QTableWidget, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + new Function(c, "currentRow", _n_currentRow0, None, Compiled, qt_QTableWidget_currentRow_int_QTableWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + new Function(c, "editItem", _n_editItem0, None, Compiled, qt_QTableWidget_editItem_void_QTableWidget_QTableWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "findItems", _n_findItems0, None, Compiled, qt_QTableWidget_findItems_qt__QTableWidgetItemBSB_ESB__QTableWidget_string_int, Return, "qt.QTableWidgetItem[]", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "text", "string"), new Param(c, "flags", "int"), End), + new Function(c, "horizontalHeaderItem", _n_horizontalHeaderItem0, None, Compiled, qt_QTableWidget_horizontalHeaderItem_QTableWidgetItem_QTableWidget_int, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "column", "int"), End), + new Function(c, "indexFromItem", _n_indexFromItem0, None, Compiled, qt_QTableWidget_indexFromItem_QModelIndex_QTableWidget_QTableWidgetItem, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "isPersistentEditorOpen", _n_isPersistentEditorOpen0, None, Compiled, qt_QTableWidget_isPersistentEditorOpen_bool_QTableWidget_QTableWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "item", _n_item0, None, Compiled, qt_QTableWidget_item_QTableWidgetItem_QTableWidget_int_int, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), new Param(c, "column", "int"), End), + new Function(c, "itemAt", _n_itemAt0, None, Compiled, qt_QTableWidget_itemAt_QTableWidgetItem_QTableWidget_QPoint, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "point", "qt.QPoint"), End), + new Function(c, "itemAt", _n_itemAt1, None, Compiled, qt_QTableWidget_itemAt_QTableWidgetItem_QTableWidget_int_int, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "ax", "int"), new Param(c, "ay", "int"), End), + new Function(c, "itemFromIndex", _n_itemFromIndex0, None, Compiled, qt_QTableWidget_itemFromIndex_QTableWidgetItem_QTableWidget_QModelIndex, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "itemPrototype", _n_itemPrototype0, None, Compiled, qt_QTableWidget_itemPrototype_QTableWidgetItem_QTableWidget, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + new Function(c, "items", _n_items0, None, Compiled, qt_QTableWidget_items_qt__QTableWidgetItemBSB_ESB__QTableWidget_QMimeData, Return, "qt.QTableWidgetItem[]", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "data", "qt.QMimeData"), End), + new Function(c, "openPersistentEditor", _n_openPersistentEditor0, None, Compiled, qt_QTableWidget_openPersistentEditor_void_QTableWidget_QTableWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "removeCellWidget", _n_removeCellWidget0, None, Compiled, qt_QTableWidget_removeCellWidget_void_QTableWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), new Param(c, "column", "int"), End), + new Function(c, "row", _n_row0, None, Compiled, qt_QTableWidget_row_int_QTableWidget_QTableWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "rowCount", _n_rowCount0, None, Compiled, qt_QTableWidget_rowCount_int_QTableWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + new Function(c, "selectedItems", _n_selectedItems0, None, Compiled, qt_QTableWidget_selectedItems_qt__QTableWidgetItemBSB_ESB__QTableWidget, Return, "qt.QTableWidgetItem[]", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + // MISSING: selectedRanges ("QList"; QTableWidget this) + new Function(c, "setCellWidget", _n_setCellWidget0, None, Compiled, qt_QTableWidget_setCellWidget_void_QTableWidget_int_int_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "setColumnCount", _n_setColumnCount0, None, Compiled, qt_QTableWidget_setColumnCount_void_QTableWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "columns", "int"), End), + new Function(c, "setCurrentCell", _n_setCurrentCell0, None, Compiled, qt_QTableWidget_setCurrentCell_void_QTableWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), new Param(c, "column", "int"), End), + new Function(c, "setCurrentCell", _n_setCurrentCell1, None, Compiled, qt_QTableWidget_setCurrentCell_void_QTableWidget_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "command", "int"), End), + new Function(c, "setCurrentItem", _n_setCurrentItem0, None, Compiled, qt_QTableWidget_setCurrentItem_void_QTableWidget_QTableWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "setCurrentItem", _n_setCurrentItem1, None, Compiled, qt_QTableWidget_setCurrentItem_void_QTableWidget_QTableWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), new Param(c, "command", "int"), End), + new Function(c, "setHorizontalHeaderItem", _n_setHorizontalHeaderItem0, None, Compiled, qt_QTableWidget_setHorizontalHeaderItem_void_QTableWidget_int_QTableWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "column", "int"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "setHorizontalHeaderLabels", _n_setHorizontalHeaderLabels0, None, Compiled, qt_QTableWidget_setHorizontalHeaderLabels_void_QTableWidget_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "labels", "string[]"), End), + new Function(c, "setItem", _n_setItem0, None, Compiled, qt_QTableWidget_setItem_void_QTableWidget_int_int_QTableWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "setItemPrototype", _n_setItemPrototype0, None, Compiled, qt_QTableWidget_setItemPrototype_void_QTableWidget_QTableWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), End), + // MISSING: setRangeSelected (void; QTableWidget this, "const QTableWidgetSelectionRange &" range, bool select) + new Function(c, "setRowCount", _n_setRowCount0, None, Compiled, qt_QTableWidget_setRowCount_void_QTableWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "rows", "int"), End), + new Function(c, "setVerticalHeaderItem", _n_setVerticalHeaderItem0, None, Compiled, qt_QTableWidget_setVerticalHeaderItem_void_QTableWidget_int_QTableWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "setVerticalHeaderLabels", _n_setVerticalHeaderLabels0, None, Compiled, qt_QTableWidget_setVerticalHeaderLabels_void_QTableWidget_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "labels", "string[]"), End), + new Function(c, "sortItems", _n_sortItems0, None, Compiled, qt_QTableWidget_sortItems_void_QTableWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "column", "int"), new Param(c, "order", "int", Value((int)Qt::AscendingOrder)), End), + new Function(c, "takeHorizontalHeaderItem", _n_takeHorizontalHeaderItem0, None, Compiled, qt_QTableWidget_takeHorizontalHeaderItem_QTableWidgetItem_QTableWidget_int, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "column", "int"), End), + new Function(c, "takeItem", _n_takeItem0, None, Compiled, qt_QTableWidget_takeItem_QTableWidgetItem_QTableWidget_int_int, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), new Param(c, "column", "int"), End), + new Function(c, "takeVerticalHeaderItem", _n_takeVerticalHeaderItem0, None, Compiled, qt_QTableWidget_takeVerticalHeaderItem_QTableWidgetItem_QTableWidget_int, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), End), + new Function(c, "verticalHeaderItem", _n_verticalHeaderItem0, None, Compiled, qt_QTableWidget_verticalHeaderItem_QTableWidgetItem_QTableWidget_int, Return, "qt.QTableWidgetItem", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), End), + new Function(c, "visualColumn", _n_visualColumn0, None, Compiled, qt_QTableWidget_visualColumn_int_QTableWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "logicalColumn", "int"), End), + new Function(c, "visualItemRect", _n_visualItemRect0, None, Compiled, qt_QTableWidget_visualItemRect_QRect_QTableWidget_QTableWidgetItem, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "item", "qt.QTableWidgetItem"), End), + new Function(c, "visualRow", _n_visualRow0, None, Compiled, qt_QTableWidget_visualRow_int_QTableWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "logicalRow", "int"), End), + _func[0] = new MemberFunction(c, "dropMimeData", _n_dropMimeData0, None, Compiled, qt_QTableWidget_dropMimeData_bool_QTableWidget_int_int_QMimeData_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), new Param(c, "column", "int"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), End), + _func[1] = new MemberFunction(c, "mimeData", _n_mimeData0, None, Compiled, qt_QTableWidget_mimeData_QMimeData_QTableWidget_qt__QTableWidgetItemBSB_ESB_, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "items", "qt.QTableWidgetItem[]"), End), + _func[2] = new MemberFunction(c, "mimeTypes", _n_mimeTypes0, None, Compiled, qt_QTableWidget_mimeTypes_stringBSB_ESB__QTableWidget, Return, "string[]", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + _func[3] = new MemberFunction(c, "supportedDropActions", _n_supportedDropActions0, None, Compiled, qt_QTableWidget_supportedDropActions_int_QTableWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + _func[4] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QTableWidget_dropEvent_void_QTableWidget_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "event", "qt.QDropEvent"), End), + _func[5] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTableWidget_event_bool_QTableWidget_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "e", "qt.QEvent"), End), + _func[6] = new MemberFunction(c, "indexAt", _n_indexAt0, None, Compiled, qt_QTableWidget_indexAt_QModelIndex_QTableWidget_QPoint, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "pos", "qt.QPoint"), End), + _func[7] = new MemberFunction(c, "scrollTo", _n_scrollTo0, None, Compiled, qt_QTableWidget_scrollTo_void_QTableWidget_QModelIndex_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "hint", "int", Value((int)QAbstractItemView::EnsureVisible)), End), + _func[8] = new MemberFunction(c, "setRootIndex", _n_setRootIndex0, None, Compiled, qt_QTableWidget_setRootIndex_void_QTableWidget_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "index", "qt.QModelIndex"), End), + _func[9] = new MemberFunction(c, "setSelectionModel", _n_setSelectionModel0, None, Compiled, qt_QTableWidget_setSelectionModel_void_QTableWidget_QItemSelectionModel, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "selectionModel", "qt.QItemSelectionModel"), End), + _func[10] = new MemberFunction(c, "visualRect", _n_visualRect0, None, Compiled, qt_QTableWidget_visualRect_QRect_QTableWidget_QModelIndex, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "index", "qt.QModelIndex"), End), + _func[11] = new MemberFunction(c, "currentChanged", _n_currentChanged0, None, Compiled, qt_QTableWidget_currentChanged_void_QTableWidget_QModelIndex_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "current", "qt.QModelIndex"), new Param(c, "previous", "qt.QModelIndex"), End), + _func[12] = new MemberFunction(c, "horizontalOffset", _n_horizontalOffset0, None, Compiled, qt_QTableWidget_horizontalOffset_int_QTableWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + // MISSING: initViewItemOption (void; QTableWidget this, "QStyleOptionViewItem *" option) // protected + _func[13] = new MemberFunction(c, "isIndexHidden", _n_isIndexHidden0, None, Compiled, qt_QTableWidget_isIndexHidden_bool_QTableWidget_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "index", "qt.QModelIndex"), End), + _func[14] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QTableWidget_paintEvent_void_QTableWidget_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[15] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QTableWidget_scrollContentsBy_void_QTableWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[16] = new MemberFunction(c, "selectedIndexes", _n_selectedIndexes0, None, Compiled, qt_QTableWidget_selectedIndexes_qt__QModelIndexBSB_ESB__QTableWidget, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + _func[17] = new MemberFunction(c, "selectionChanged", _n_selectionChanged0, None, Compiled, qt_QTableWidget_selectionChanged_void_QTableWidget_QItemSelection_QItemSelection, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "selected", "qt.QItemSelection"), new Param(c, "deselected", "qt.QItemSelection"), End), + _func[18] = new MemberFunction(c, "setSelection", _n_setSelection0, None, Compiled, qt_QTableWidget_setSelection_void_QTableWidget_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "rect", "qt.QRect"), new Param(c, "flags", "int"), End), + _func[19] = new MemberFunction(c, "sizeHintForColumn", _n_sizeHintForColumn0, None, Compiled, qt_QTableWidget_sizeHintForColumn_int_QTableWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "column", "int"), End), + _func[20] = new MemberFunction(c, "sizeHintForRow", _n_sizeHintForRow0, None, Compiled, qt_QTableWidget_sizeHintForRow_int_QTableWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "row", "int"), End), + _func[21] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QTableWidget_timerEvent_void_QTableWidget_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[22] = new MemberFunction(c, "updateGeometries", _n_updateGeometries0, None, Compiled, qt_QTableWidget_updateGeometries_void_QTableWidget, Return, "void", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + _func[23] = new MemberFunction(c, "verticalOffset", _n_verticalOffset0, None, Compiled, qt_QTableWidget_verticalOffset_int_QTableWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + _func[24] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QTableWidget_viewportSizeHint_QSize_QTableWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTableWidget"), End), + _func[25] = new MemberFunction(c, "visualRegionForSelection", _n_visualRegionForSelection0, None, Compiled, qt_QTableWidget_visualRegionForSelection_QRegion_QTableWidget_QItemSelection, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QTableWidget"), new Param(c, "selection", "qt.QItemSelection"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTableWidget::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTabletEventType.cpp b/src/lib/mu/MuQt6/QTabletEventType.cpp new file mode 100644 index 000000000..8d0fc7174 --- /dev/null +++ b/src/lib/mu/MuQt6/QTabletEventType.cpp @@ -0,0 +1,184 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QTabletEventType::QTabletEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QTabletEventType::~QTabletEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +double qt_QTabletEvent_pressure_double_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabletEvent * arg0 = getqpointer(param_this); + return arg0->pressure(); +} + +double qt_QTabletEvent_rotation_double_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabletEvent * arg0 = getqpointer(param_this); + return arg0->rotation(); +} + +double qt_QTabletEvent_tangentialPressure_double_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabletEvent * arg0 = getqpointer(param_this); + return arg0->tangentialPressure(); +} + +double qt_QTabletEvent_xTilt_double_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabletEvent * arg0 = getqpointer(param_this); + return arg0->xTilt(); +} + +double qt_QTabletEvent_yTilt_double_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabletEvent * arg0 = getqpointer(param_this); + return arg0->yTilt(); +} + +double qt_QTabletEvent_z_double_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTabletEvent * arg0 = getqpointer(param_this); + return arg0->z(); +} + + +static NODE_IMPLEMENTATION(_n_pressure0, double) +{ + NODE_RETURN(qt_QTabletEvent_pressure_double_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rotation0, double) +{ + NODE_RETURN(qt_QTabletEvent_rotation_double_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_tangentialPressure0, double) +{ + NODE_RETURN(qt_QTabletEvent_tangentialPressure_double_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_xTilt0, double) +{ + NODE_RETURN(qt_QTabletEvent_xTilt_double_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_yTilt0, double) +{ + NODE_RETURN(qt_QTabletEvent_yTilt_double_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_z0, double) +{ + NODE_RETURN(qt_QTabletEvent_z_double_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QTabletEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + // MISSING: QTabletEvent (QTabletEvent; QTabletEvent this, flags QEvent::Type type, "const QPointingDevice *" dev, QPointF pos, QPointF globalPos, double pressure, float xTilt, float yTilt, float tangentialPressure, double rotation, float z, flags Qt::KeyboardModifiers keyState, flags Qt::MouseButton button, flags Qt::MouseButtons buttons) + new Function(c, "pressure", _n_pressure0, None, Compiled, qt_QTabletEvent_pressure_double_QTabletEvent, Return, "double", Parameters, new Param(c, "this", "qt.QTabletEvent"), End), + new Function(c, "rotation", _n_rotation0, None, Compiled, qt_QTabletEvent_rotation_double_QTabletEvent, Return, "double", Parameters, new Param(c, "this", "qt.QTabletEvent"), End), + new Function(c, "tangentialPressure", _n_tangentialPressure0, None, Compiled, qt_QTabletEvent_tangentialPressure_double_QTabletEvent, Return, "double", Parameters, new Param(c, "this", "qt.QTabletEvent"), End), + new Function(c, "xTilt", _n_xTilt0, None, Compiled, qt_QTabletEvent_xTilt_double_QTabletEvent, Return, "double", Parameters, new Param(c, "this", "qt.QTabletEvent"), End), + new Function(c, "yTilt", _n_yTilt0, None, Compiled, qt_QTabletEvent_yTilt_double_QTabletEvent, Return, "double", Parameters, new Param(c, "this", "qt.QTabletEvent"), End), + new Function(c, "z", _n_z0, None, Compiled, qt_QTabletEvent_z_double_QTabletEvent, Return, "double", Parameters, new Param(c, "this", "qt.QTabletEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTcpServerType.cpp b/src/lib/mu/MuQt6/QTcpServerType.cpp new file mode 100644 index 000000000..0be3127a2 --- /dev/null +++ b/src/lib/mu/MuQt6/QTcpServerType.cpp @@ -0,0 +1,563 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTcpServer::~MuQt_QTcpServer() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTcpServer::MuQt_QTcpServer(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QTcpServer(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTcpServer")); +} + +bool MuQt_QTcpServer::hasPendingConnections() const +{ + if (!_env) return QTcpServer::hasPendingConnections(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTcpServer::hasPendingConnections(); + } +} + +QTcpSocket * MuQt_QTcpServer::nextPendingConnection() +{ + if (!_env) return QTcpServer::nextPendingConnection(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QTcpServer::nextPendingConnection(); + } +} + +bool MuQt_QTcpServer::event(QEvent * e) +{ + if (!_env) return QTcpServer::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTcpServer::event(e); + } +} + +bool MuQt_QTcpServer::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QTcpServer::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTcpServer::eventFilter(watched, event); + } +} + +void MuQt_QTcpServer::customEvent(QEvent * event) +{ + if (!_env) { QTcpServer::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTcpServer::customEvent(event); + } +} + +void MuQt_QTcpServer::timerEvent(QTimerEvent * event) +{ + if (!_env) { QTcpServer::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QTcpServer::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTcpServerType::QTcpServerType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTcpServerType::~QTcpServerType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTcpServer_QTcpServer_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTcpServer* w = object(widget)) + { + QTcpServerType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTcpServer"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTcpServer_QTcpServer_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTcpServer_QTcpServer_QTcpServer_QTcpServer_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTcpServer(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QTcpServer_close_void_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + arg0->close(); +} + +Pointer qt_QTcpServer_errorString_string_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + return makestring(c,arg0->errorString()); +} + +bool qt_QTcpServer_hasPendingConnections_bool_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QTcpServer::hasPendingConnections() : arg0->hasPendingConnections(); +} + +bool qt_QTcpServer_isListening_bool_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + return arg0->isListening(); +} + +int qt_QTcpServer_listenBacklogSize_int_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + return arg0->listenBacklogSize(); +} + +int qt_QTcpServer_maxPendingConnections_int_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + return arg0->maxPendingConnections(); +} + +Pointer qt_QTcpServer_nextPendingConnection_QTcpSocket_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, arg0->QTcpServer::nextPendingConnection(), "qt.QTcpSocket") : makeinstance(c, arg0->nextPendingConnection(), "qt.QTcpSocket"); +} + +void qt_QTcpServer_pauseAccepting_void_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + arg0->pauseAccepting(); +} + +void qt_QTcpServer_resumeAccepting_void_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + arg0->resumeAccepting(); +} + +Pointer qt_QTcpServer_serverAddress_QHostAddress_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + return makeqtype(c,arg0->serverAddress(),"qt.QHostAddress"); +} + +int qt_QTcpServer_serverError_int_QTcpServer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + return int(arg0->serverError()); +} + +void qt_QTcpServer_setListenBacklogSize_void_QTcpServer_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + int arg1 = (int)(param_size); + arg0->setListenBacklogSize(arg1); +} + +void qt_QTcpServer_setMaxPendingConnections_void_QTcpServer_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_numConnections) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + int arg1 = (int)(param_numConnections); + arg0->setMaxPendingConnections(arg1); +} + +void qt_QTcpServer_addPendingConnection_void_QTcpServer_QTcpSocket(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_socket) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + QTcpSocket * arg1 = object(param_socket); + ((MuQt_QTcpServer*)arg0)->addPendingConnection_pub(arg1); +} + +bool qt_QTcpServer_event_bool_QTcpServer_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QTcpServer::event(arg1) : arg0->event(arg1); +} + +bool qt_QTcpServer_eventFilter_bool_QTcpServer_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QTcpServer::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QTcpServer_customEvent_void_QTcpServer_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTcpServer*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QTcpServer*)arg0)->customEvent_pub(arg1); +} + +void qt_QTcpServer_timerEvent_void_QTcpServer_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpServer* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTcpServer*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QTcpServer*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTcpServer0, Pointer) +{ + NODE_RETURN(qt_QTcpServer_QTcpServer_QTcpServer_QTcpServer_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_close0, void) +{ + qt_QTcpServer_close_void_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_errorString0, Pointer) +{ + NODE_RETURN(qt_QTcpServer_errorString_string_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasPendingConnections0, bool) +{ + NODE_RETURN(qt_QTcpServer_hasPendingConnections_bool_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isListening0, bool) +{ + NODE_RETURN(qt_QTcpServer_isListening_bool_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_listenBacklogSize0, int) +{ + NODE_RETURN(qt_QTcpServer_listenBacklogSize_int_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_maxPendingConnections0, int) +{ + NODE_RETURN(qt_QTcpServer_maxPendingConnections_int_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nextPendingConnection0, Pointer) +{ + NODE_RETURN(qt_QTcpServer_nextPendingConnection_QTcpSocket_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pauseAccepting0, void) +{ + qt_QTcpServer_pauseAccepting_void_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resumeAccepting0, void) +{ + qt_QTcpServer_resumeAccepting_void_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_serverAddress0, Pointer) +{ + NODE_RETURN(qt_QTcpServer_serverAddress_QHostAddress_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_serverError0, int) +{ + NODE_RETURN(qt_QTcpServer_serverError_int_QTcpServer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setListenBacklogSize0, void) +{ + qt_QTcpServer_setListenBacklogSize_void_QTcpServer_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setMaxPendingConnections0, void) +{ + qt_QTcpServer_setMaxPendingConnections_void_QTcpServer_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_addPendingConnection0, void) +{ + qt_QTcpServer_addPendingConnection_void_QTcpServer_QTcpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTcpServer_event_bool_QTcpServer_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QTcpServer_eventFilter_bool_QTcpServer_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QTcpServer_customEvent_void_QTcpServer_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QTcpServer_timerEvent_void_QTcpServer_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QTcpServerType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTcpServer_QTcpServer_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTcpServer", _n_QTcpServer0, None, Compiled, qt_QTcpServer_QTcpServer_QTcpServer_QTcpServer_QObject, Return, "qt.QTcpServer", Parameters, new Param(c, "this", "qt.QTcpServer"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "close", _n_close0, None, Compiled, qt_QTcpServer_close_void_QTcpServer, Return, "void", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + new Function(c, "errorString", _n_errorString0, None, Compiled, qt_QTcpServer_errorString_string_QTcpServer, Return, "string", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + _func[0] = new MemberFunction(c, "hasPendingConnections", _n_hasPendingConnections0, None, Compiled, qt_QTcpServer_hasPendingConnections_bool_QTcpServer, Return, "bool", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + new Function(c, "isListening", _n_isListening0, None, Compiled, qt_QTcpServer_isListening_bool_QTcpServer, Return, "bool", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + // MISSING: listen (bool; QTcpServer this, QHostAddress address, "quint16" port) + new Function(c, "listenBacklogSize", _n_listenBacklogSize0, None, Compiled, qt_QTcpServer_listenBacklogSize_int_QTcpServer, Return, "int", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + new Function(c, "maxPendingConnections", _n_maxPendingConnections0, None, Compiled, qt_QTcpServer_maxPendingConnections_int_QTcpServer, Return, "int", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + _func[1] = new MemberFunction(c, "nextPendingConnection", _n_nextPendingConnection0, None, Compiled, qt_QTcpServer_nextPendingConnection_QTcpSocket_QTcpServer, Return, "qt.QTcpSocket", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + new Function(c, "pauseAccepting", _n_pauseAccepting0, None, Compiled, qt_QTcpServer_pauseAccepting_void_QTcpServer, Return, "void", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + // MISSING: proxy ("QNetworkProxy"; QTcpServer this) + new Function(c, "resumeAccepting", _n_resumeAccepting0, None, Compiled, qt_QTcpServer_resumeAccepting_void_QTcpServer, Return, "void", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + new Function(c, "serverAddress", _n_serverAddress0, None, Compiled, qt_QTcpServer_serverAddress_QHostAddress_QTcpServer, Return, "qt.QHostAddress", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + new Function(c, "serverError", _n_serverError0, None, Compiled, qt_QTcpServer_serverError_int_QTcpServer, Return, "int", Parameters, new Param(c, "this", "qt.QTcpServer"), End), + // MISSING: serverPort ("quint16"; QTcpServer this) + new Function(c, "setListenBacklogSize", _n_setListenBacklogSize0, None, Compiled, qt_QTcpServer_setListenBacklogSize_void_QTcpServer_int, Return, "void", Parameters, new Param(c, "this", "qt.QTcpServer"), new Param(c, "size", "int"), End), + new Function(c, "setMaxPendingConnections", _n_setMaxPendingConnections0, None, Compiled, qt_QTcpServer_setMaxPendingConnections_void_QTcpServer_int, Return, "void", Parameters, new Param(c, "this", "qt.QTcpServer"), new Param(c, "numConnections", "int"), End), + // MISSING: setProxy (void; QTcpServer this, "const QNetworkProxy &" networkProxy) + // MISSING: setSocketDescriptor (bool; QTcpServer this, "qintptr" socketDescriptor) + // MISSING: socketDescriptor ("qintptr"; QTcpServer this) + // MISSING: waitForNewConnection (bool; QTcpServer this, int msec, "bool *" timedOut) + new Function(c, "addPendingConnection", _n_addPendingConnection0, None, Compiled, qt_QTcpServer_addPendingConnection_void_QTcpServer_QTcpSocket, Return, "void", Parameters, new Param(c, "this", "qt.QTcpServer"), new Param(c, "socket", "qt.QTcpSocket"), End), + // MISSING: incomingConnection (void; QTcpServer this, "qintptr" socketDescriptor) // protected + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTcpServer_event_bool_QTcpServer_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTcpServer"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QTcpServer_eventFilter_bool_QTcpServer_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTcpServer"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QTcpServer this) + // MISSING: childEvent (void; QTcpServer this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QTcpServer this, "const QMetaMethod &" signal) // protected + _func[4] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QTcpServer_customEvent_void_QTcpServer_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTcpServer"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QTcpServer this, "const QMetaMethod &" signal) // protected + _func[5] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QTcpServer_timerEvent_void_QTcpServer_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTcpServer"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTcpServer::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTcpSocketType.cpp b/src/lib/mu/MuQt6/QTcpSocketType.cpp new file mode 100644 index 000000000..1e5738636 --- /dev/null +++ b/src/lib/mu/MuQt6/QTcpSocketType.cpp @@ -0,0 +1,659 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTcpSocket::~MuQt_QTcpSocket() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTcpSocket::MuQt_QTcpSocket(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QTcpSocket(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTcpSocket")); +} + +void MuQt_QTcpSocket::disconnectFromHost() +{ + if (!_env) { QTcpSocket::disconnectFromHost(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTcpSocket::disconnectFromHost(); + } +} + +void MuQt_QTcpSocket::resume() +{ + if (!_env) { QTcpSocket::resume(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTcpSocket::resume(); + } +} + +void MuQt_QTcpSocket::setReadBufferSize(qint64 size) +{ + if (!_env) { QTcpSocket::setReadBufferSize(size); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(size); + Value rval = _env->call(F, args); + } + else + { + QTcpSocket::setReadBufferSize(size); + } +} + +void MuQt_QTcpSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant & value) +{ + if (!_env) { QTcpSocket::setSocketOption(option, value); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(option)); + args[2] = Value(makeqtype(c,value,"qt.QVariant")); + Value rval = _env->call(F, args); + } + else + { + QTcpSocket::setSocketOption(option, value); + } +} + +QVariant MuQt_QTcpSocket::socketOption(QAbstractSocket::SocketOption option) +{ + if (!_env) return QTcpSocket::socketOption(option); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(option)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTcpSocket::socketOption(option); + } +} + +bool MuQt_QTcpSocket::waitForConnected(int msecs) +{ + if (!_env) return QTcpSocket::waitForConnected(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTcpSocket::waitForConnected(msecs); + } +} + +bool MuQt_QTcpSocket::waitForDisconnected(int msecs) +{ + if (!_env) return QTcpSocket::waitForDisconnected(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTcpSocket::waitForDisconnected(msecs); + } +} + +qint64 MuQt_QTcpSocket::bytesAvailable() const +{ + if (!_env) return QTcpSocket::bytesAvailable(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QTcpSocket::bytesAvailable(); + } +} + +qint64 MuQt_QTcpSocket::bytesToWrite() const +{ + if (!_env) return QTcpSocket::bytesToWrite(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QTcpSocket::bytesToWrite(); + } +} + +void MuQt_QTcpSocket::close() +{ + if (!_env) { QTcpSocket::close(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTcpSocket::close(); + } +} + +bool MuQt_QTcpSocket::isSequential() const +{ + if (!_env) return QTcpSocket::isSequential(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTcpSocket::isSequential(); + } +} + +bool MuQt_QTcpSocket::waitForBytesWritten(int msecs) +{ + if (!_env) return QTcpSocket::waitForBytesWritten(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTcpSocket::waitForBytesWritten(msecs); + } +} + +bool MuQt_QTcpSocket::waitForReadyRead(int msecs) +{ + if (!_env) return QTcpSocket::waitForReadyRead(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTcpSocket::waitForReadyRead(msecs); + } +} + +qint64 MuQt_QTcpSocket::skipData(qint64 maxSize) +{ + if (!_env) return QTcpSocket::skipData(maxSize); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(maxSize); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QTcpSocket::skipData(maxSize); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTcpSocketType::QTcpSocketType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTcpSocketType::~QTcpSocketType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTcpSocket_QTcpSocket_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTcpSocket* w = object(widget)) + { + QTcpSocketType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTcpSocket"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTcpSocket_QTcpSocket_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTcpSocket_QTcpSocket_QTcpSocket_QTcpSocket_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTcpSocket(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QTcpSocket_disconnectFromHost_void_QTcpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QTcpSocket::disconnectFromHost(); + else arg0->disconnectFromHost(); +} + +void qt_QTcpSocket_resume_void_QTcpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QTcpSocket::resume(); + else arg0->resume(); +} + +void qt_QTcpSocket_setReadBufferSize_void_QTcpSocket_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + qint64 arg1 = (int64)(param_size); + if (isMuQtObject(arg0)) arg0->QTcpSocket::setReadBufferSize(arg1); + else arg0->setReadBufferSize(arg1); +} + +void qt_QTcpSocket_setSocketOption_void_QTcpSocket_int_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + QAbstractSocket::SocketOption arg1 = (QAbstractSocket::SocketOption)(param_option); + const QVariant arg2 = getqtype(param_value); + if (isMuQtObject(arg0)) arg0->QTcpSocket::setSocketOption(arg1, arg2); + else arg0->setSocketOption(arg1, arg2); +} + +Pointer qt_QTcpSocket_socketOption_QVariant_QTcpSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + QAbstractSocket::SocketOption arg1 = (QAbstractSocket::SocketOption)(param_option); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTcpSocket::socketOption(arg1),"qt.QVariant") : makeqtype(c,arg0->socketOption(arg1),"qt.QVariant"); +} + +bool qt_QTcpSocket_waitForConnected_bool_QTcpSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QTcpSocket::waitForConnected(arg1) : arg0->waitForConnected(arg1); +} + +bool qt_QTcpSocket_waitForDisconnected_bool_QTcpSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QTcpSocket::waitForDisconnected(arg1) : arg0->waitForDisconnected(arg1); +} + +int64 qt_QTcpSocket_bytesAvailable_int64_QTcpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QTcpSocket::bytesAvailable() : arg0->bytesAvailable(); +} + +int64 qt_QTcpSocket_bytesToWrite_int64_QTcpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QTcpSocket::bytesToWrite() : arg0->bytesToWrite(); +} + +void qt_QTcpSocket_close_void_QTcpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QTcpSocket::close(); + else arg0->close(); +} + +bool qt_QTcpSocket_isSequential_bool_QTcpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QTcpSocket::isSequential() : arg0->isSequential(); +} + +bool qt_QTcpSocket_waitForBytesWritten_bool_QTcpSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QTcpSocket::waitForBytesWritten(arg1) : arg0->waitForBytesWritten(arg1); +} + +bool qt_QTcpSocket_waitForReadyRead_bool_QTcpSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QTcpSocket::waitForReadyRead(arg1) : arg0->waitForReadyRead(arg1); +} + +int64 qt_QTcpSocket_skipData_int64_QTcpSocket_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTcpSocket* arg0 = object(param_this); + qint64 arg1 = (int64)(param_maxSize); + return isMuQtObject(arg0) ? ((MuQt_QTcpSocket*)arg0)->skipData_pub_parent(arg1) : ((MuQt_QTcpSocket*)arg0)->skipData_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTcpSocket0, Pointer) +{ + NODE_RETURN(qt_QTcpSocket_QTcpSocket_QTcpSocket_QTcpSocket_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_disconnectFromHost0, void) +{ + qt_QTcpSocket_disconnectFromHost_void_QTcpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resume0, void) +{ + qt_QTcpSocket_resume_void_QTcpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setReadBufferSize0, void) +{ + qt_QTcpSocket_setReadBufferSize_void_QTcpSocket_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64)); +} + +static NODE_IMPLEMENTATION(_n_setSocketOption0, void) +{ + qt_QTcpSocket_setSocketOption_void_QTcpSocket_int_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_socketOption0, Pointer) +{ + NODE_RETURN(qt_QTcpSocket_socketOption_QVariant_QTcpSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForConnected0, bool) +{ + NODE_RETURN(qt_QTcpSocket_waitForConnected_bool_QTcpSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForDisconnected0, bool) +{ + NODE_RETURN(qt_QTcpSocket_waitForDisconnected_bool_QTcpSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_bytesAvailable0, int64) +{ + NODE_RETURN(qt_QTcpSocket_bytesAvailable_int64_QTcpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesToWrite0, int64) +{ + NODE_RETURN(qt_QTcpSocket_bytesToWrite_int64_QTcpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_close0, void) +{ + qt_QTcpSocket_close_void_QTcpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isSequential0, bool) +{ + NODE_RETURN(qt_QTcpSocket_isSequential_bool_QTcpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_waitForBytesWritten0, bool) +{ + NODE_RETURN(qt_QTcpSocket_waitForBytesWritten_bool_QTcpSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForReadyRead0, bool) +{ + NODE_RETURN(qt_QTcpSocket_waitForReadyRead_bool_QTcpSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_skipData0, int64) +{ + NODE_RETURN(qt_QTcpSocket_skipData_int64_QTcpSocket_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + + + +void +QTcpSocketType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTcpSocket_QTcpSocket_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTcpSocket", _n_QTcpSocket0, None, Compiled, qt_QTcpSocket_QTcpSocket_QTcpSocket_QTcpSocket_QObject, Return, "qt.QTcpSocket", Parameters, new Param(c, "this", "qt.QTcpSocket"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: bind (bool; QTcpSocket this, QHostAddress address, "quint16" port, flags QAbstractSocket::BindMode mode) + // MISSING: connectToHost (void; QTcpSocket this, string hostName, "quint16" port, flags QIODeviceBase::OpenMode openMode, flags QAbstractSocket::NetworkLayerProtocol protocol) + _func[0] = new MemberFunction(c, "disconnectFromHost", _n_disconnectFromHost0, None, Compiled, qt_QTcpSocket_disconnectFromHost_void_QTcpSocket, Return, "void", Parameters, new Param(c, "this", "qt.QTcpSocket"), End), + _func[1] = new MemberFunction(c, "resume", _n_resume0, None, Compiled, qt_QTcpSocket_resume_void_QTcpSocket, Return, "void", Parameters, new Param(c, "this", "qt.QTcpSocket"), End), + _func[2] = new MemberFunction(c, "setReadBufferSize", _n_setReadBufferSize0, None, Compiled, qt_QTcpSocket_setReadBufferSize_void_QTcpSocket_int64, Return, "void", Parameters, new Param(c, "this", "qt.QTcpSocket"), new Param(c, "size", "int64"), End), + // MISSING: setSocketDescriptor (bool; QTcpSocket this, "qintptr" socketDescriptor, flags QAbstractSocket::SocketState socketState, flags QIODeviceBase::OpenMode openMode) + _func[3] = new MemberFunction(c, "setSocketOption", _n_setSocketOption0, None, Compiled, qt_QTcpSocket_setSocketOption_void_QTcpSocket_int_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QTcpSocket"), new Param(c, "option", "int"), new Param(c, "value", "qt.QVariant"), End), + // MISSING: socketDescriptor ("qintptr"; QTcpSocket this) + _func[4] = new MemberFunction(c, "socketOption", _n_socketOption0, None, Compiled, qt_QTcpSocket_socketOption_QVariant_QTcpSocket_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTcpSocket"), new Param(c, "option", "int"), End), + _func[5] = new MemberFunction(c, "waitForConnected", _n_waitForConnected0, None, Compiled, qt_QTcpSocket_waitForConnected_bool_QTcpSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTcpSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[6] = new MemberFunction(c, "waitForDisconnected", _n_waitForDisconnected0, None, Compiled, qt_QTcpSocket_waitForDisconnected_bool_QTcpSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTcpSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[7] = new MemberFunction(c, "bytesAvailable", _n_bytesAvailable0, None, Compiled, qt_QTcpSocket_bytesAvailable_int64_QTcpSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QTcpSocket"), End), + _func[8] = new MemberFunction(c, "bytesToWrite", _n_bytesToWrite0, None, Compiled, qt_QTcpSocket_bytesToWrite_int64_QTcpSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QTcpSocket"), End), + _func[9] = new MemberFunction(c, "close", _n_close0, None, Compiled, qt_QTcpSocket_close_void_QTcpSocket, Return, "void", Parameters, new Param(c, "this", "qt.QTcpSocket"), End), + _func[10] = new MemberFunction(c, "isSequential", _n_isSequential0, None, Compiled, qt_QTcpSocket_isSequential_bool_QTcpSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QTcpSocket"), End), + _func[11] = new MemberFunction(c, "waitForBytesWritten", _n_waitForBytesWritten0, None, Compiled, qt_QTcpSocket_waitForBytesWritten_bool_QTcpSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTcpSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[12] = new MemberFunction(c, "waitForReadyRead", _n_waitForReadyRead0, None, Compiled, qt_QTcpSocket_waitForReadyRead_bool_QTcpSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTcpSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + // MISSING: readData (int64; QTcpSocket this, "char *" data, int64 maxSize) // protected + // MISSING: readLineData (int64; QTcpSocket this, "char *" data, int64 maxlen) // protected + _func[13] = new MemberFunction(c, "skipData", _n_skipData0, None, Compiled, qt_QTcpSocket_skipData_int64_QTcpSocket_int64, Return, "int64", Parameters, new Param(c, "this", "qt.QTcpSocket"), new Param(c, "maxSize", "int64"), End), + // MISSING: writeData (int64; QTcpSocket this, "const char *" data, int64 size) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTcpSocket::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTextBlockType.cpp b/src/lib/mu/MuQt6/QTextBlockType.cpp new file mode 100644 index 000000000..1038d0f23 --- /dev/null +++ b/src/lib/mu/MuQt6/QTextBlockType.cpp @@ -0,0 +1,474 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QTextBlockType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QTextBlockType::QTextBlockType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QTextBlockType::~QTextBlockType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QTextBlockType::Instance* i = new QTextBlockType::Instance((Class*)NODE_THIS.type()); + QTextBlockType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QTextBlockType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QTextBlockType::finalizer, 0, 0, 0); +} + +void +QTextBlockType::finalizer (void* obj, void* data) +{ + QTextBlockType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +int qt_QTextBlock_blockFormatIndex_int_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.blockFormatIndex(); +} + +int qt_QTextBlock_blockNumber_int_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.blockNumber(); +} + +int qt_QTextBlock_charFormatIndex_int_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.charFormatIndex(); +} + +void qt_QTextBlock_clearLayout_void_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + arg0.clearLayout(); + setqtype(param_this,arg0); +} + +bool qt_QTextBlock_contains_bool_QTextBlock_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + int arg1 = (int)(param_position); + return arg0.contains(arg1); +} + +Pointer qt_QTextBlock_document_QTextDocument_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return makeinstance(c, arg0.document(), "qt.QTextDocument"); +} + +int qt_QTextBlock_firstLineNumber_int_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.firstLineNumber(); +} + +bool qt_QTextBlock_isValid_bool_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.isValid(); +} + +bool qt_QTextBlock_isVisible_bool_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.isVisible(); +} + +int qt_QTextBlock_length_int_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.length(); +} + +int qt_QTextBlock_lineCount_int_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.lineCount(); +} + +Pointer qt_QTextBlock_next_QTextBlock_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return makeqtype(c,arg0.next(),"qt.QTextBlock"); +} + +int qt_QTextBlock_position_int_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.position(); +} + +Pointer qt_QTextBlock_previous_QTextBlock_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return makeqtype(c,arg0.previous(),"qt.QTextBlock"); +} + +int qt_QTextBlock_revision_int_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.revision(); +} + +void qt_QTextBlock_setLineCount_void_QTextBlock_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_count) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + int arg1 = (int)(param_count); + arg0.setLineCount(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextBlock_setRevision_void_QTextBlock_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_rev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + int arg1 = (int)(param_rev); + arg0.setRevision(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextBlock_setUserState_void_QTextBlock_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + int arg1 = (int)(param_state); + arg0.setUserState(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextBlock_setVisible_void_QTextBlock_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_visible) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + bool arg1 = (bool)(param_visible); + arg0.setVisible(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QTextBlock_text_string_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return makestring(c,arg0.text()); +} + +int qt_QTextBlock_textDirection_int_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return int(arg0.textDirection()); +} + +int qt_QTextBlock_userState_int_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + return arg0.userState(); +} + +bool qt_QTextBlock_operatorBang_EQ__bool_QTextBlock_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + const QTextBlock arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +bool qt_QTextBlock_operatorLT__bool_QTextBlock_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + const QTextBlock arg1 = getqtype(param_other); + return arg0.operator<(arg1); +} + +bool qt_QTextBlock_operatorEQ_EQ__bool_QTextBlock_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBlock arg0 = getqtype(param_this); + const QTextBlock arg1 = getqtype(param_other); + return arg0.operator==(arg1); +} + + +static NODE_IMPLEMENTATION(_n_blockFormatIndex0, int) +{ + NODE_RETURN(qt_QTextBlock_blockFormatIndex_int_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_blockNumber0, int) +{ + NODE_RETURN(qt_QTextBlock_blockNumber_int_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_charFormatIndex0, int) +{ + NODE_RETURN(qt_QTextBlock_charFormatIndex_int_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearLayout0, void) +{ + qt_QTextBlock_clearLayout_void_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contains0, bool) +{ + NODE_RETURN(qt_QTextBlock_contains_bool_QTextBlock_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_document0, Pointer) +{ + NODE_RETURN(qt_QTextBlock_document_QTextDocument_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_firstLineNumber0, int) +{ + NODE_RETURN(qt_QTextBlock_firstLineNumber_int_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QTextBlock_isValid_bool_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isVisible0, bool) +{ + NODE_RETURN(qt_QTextBlock_isVisible_bool_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_length0, int) +{ + NODE_RETURN(qt_QTextBlock_length_int_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_lineCount0, int) +{ + NODE_RETURN(qt_QTextBlock_lineCount_int_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_next0, Pointer) +{ + NODE_RETURN(qt_QTextBlock_next_QTextBlock_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_position0, int) +{ + NODE_RETURN(qt_QTextBlock_position_int_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_previous0, Pointer) +{ + NODE_RETURN(qt_QTextBlock_previous_QTextBlock_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_revision0, int) +{ + NODE_RETURN(qt_QTextBlock_revision_int_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setLineCount0, void) +{ + qt_QTextBlock_setLineCount_void_QTextBlock_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setRevision0, void) +{ + qt_QTextBlock_setRevision_void_QTextBlock_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setUserState0, void) +{ + qt_QTextBlock_setUserState_void_QTextBlock_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setVisible0, void) +{ + qt_QTextBlock_setVisible_void_QTextBlock_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QTextBlock_text_string_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_textDirection0, int) +{ + NODE_RETURN(qt_QTextBlock_textDirection_int_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_userState0, int) +{ + NODE_RETURN(qt_QTextBlock_userState_int_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QTextBlock_operatorBang_EQ__bool_QTextBlock_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorLT_0, bool) +{ + NODE_RETURN(qt_QTextBlock_operatorLT__bool_QTextBlock_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QTextBlock_operatorEQ_EQ__bool_QTextBlock_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QTextBlockType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + // MISSING: QTextBlock (QTextBlock; QTextBlock this, QTextBlock other) + // MISSING: begin ("QTextBlock::iterator"; QTextBlock this) + // MISSING: blockFormat ("QTextBlockFormat"; QTextBlock this) + new Function(c, "blockFormatIndex", _n_blockFormatIndex0, None, Compiled, qt_QTextBlock_blockFormatIndex_int_QTextBlock, Return, "int", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "blockNumber", _n_blockNumber0, None, Compiled, qt_QTextBlock_blockNumber_int_QTextBlock, Return, "int", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + // MISSING: charFormat ("QTextCharFormat"; QTextBlock this) + new Function(c, "charFormatIndex", _n_charFormatIndex0, None, Compiled, qt_QTextBlock_charFormatIndex_int_QTextBlock, Return, "int", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "clearLayout", _n_clearLayout0, None, Compiled, qt_QTextBlock_clearLayout_void_QTextBlock, Return, "void", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "contains", _n_contains0, None, Compiled, qt_QTextBlock_contains_bool_QTextBlock_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBlock"), new Param(c, "position", "int"), End), + new Function(c, "document", _n_document0, None, Compiled, qt_QTextBlock_document_QTextDocument_QTextBlock, Return, "qt.QTextDocument", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + // MISSING: end ("QTextBlock::iterator"; QTextBlock this) + new Function(c, "firstLineNumber", _n_firstLineNumber0, None, Compiled, qt_QTextBlock_firstLineNumber_int_QTextBlock, Return, "int", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QTextBlock_isValid_bool_QTextBlock, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "isVisible", _n_isVisible0, None, Compiled, qt_QTextBlock_isVisible_bool_QTextBlock, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + // MISSING: layout ("QTextLayout *"; QTextBlock this) + new Function(c, "length", _n_length0, None, Compiled, qt_QTextBlock_length_int_QTextBlock, Return, "int", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "lineCount", _n_lineCount0, None, Compiled, qt_QTextBlock_lineCount_int_QTextBlock, Return, "int", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "next", _n_next0, None, Compiled, qt_QTextBlock_next_QTextBlock_QTextBlock, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "position", _n_position0, None, Compiled, qt_QTextBlock_position_int_QTextBlock, Return, "int", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "previous", _n_previous0, None, Compiled, qt_QTextBlock_previous_QTextBlock_QTextBlock, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "revision", _n_revision0, None, Compiled, qt_QTextBlock_revision_int_QTextBlock, Return, "int", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "setLineCount", _n_setLineCount0, None, Compiled, qt_QTextBlock_setLineCount_void_QTextBlock_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextBlock"), new Param(c, "count", "int"), End), + new Function(c, "setRevision", _n_setRevision0, None, Compiled, qt_QTextBlock_setRevision_void_QTextBlock_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextBlock"), new Param(c, "rev", "int"), End), + // MISSING: setUserData (void; QTextBlock this, "QTextBlockUserData *" data) + new Function(c, "setUserState", _n_setUserState0, None, Compiled, qt_QTextBlock_setUserState_void_QTextBlock_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextBlock"), new Param(c, "state", "int"), End), + new Function(c, "setVisible", _n_setVisible0, None, Compiled, qt_QTextBlock_setVisible_void_QTextBlock_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTextBlock"), new Param(c, "visible", "bool"), End), + new Function(c, "text", _n_text0, None, Compiled, qt_QTextBlock_text_string_QTextBlock, Return, "string", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + new Function(c, "textDirection", _n_textDirection0, None, Compiled, qt_QTextBlock_textDirection_int_QTextBlock, Return, "int", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + // MISSING: textList ("QTextList *"; QTextBlock this) + // MISSING: userData ("QTextBlockUserData *"; QTextBlock this) + new Function(c, "userState", _n_userState0, None, Compiled, qt_QTextBlock_userState_int_QTextBlock, Return, "int", Parameters, new Param(c, "this", "qt.QTextBlock"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QTextBlock_operatorBang_EQ__bool_QTextBlock_QTextBlock, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBlock"), new Param(c, "other", "qt.QTextBlock"), End), + new Function(c, "<", _n_operatorLT_0, Op, Compiled, qt_QTextBlock_operatorLT__bool_QTextBlock_QTextBlock, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBlock"), new Param(c, "other", "qt.QTextBlock"), End), + // MISSING: = (QTextBlock; QTextBlock this, QTextBlock other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QTextBlock_operatorEQ_EQ__bool_QTextBlock_QTextBlock, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBlock"), new Param(c, "other", "qt.QTextBlock"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTextBrowserType.cpp b/src/lib/mu/MuQt6/QTextBrowserType.cpp new file mode 100644 index 000000000..b8907947c --- /dev/null +++ b/src/lib/mu/MuQt6/QTextBrowserType.cpp @@ -0,0 +1,1212 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +MuQt_QTextBrowser::MuQt_QTextBrowser(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QTextBrowser(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTextBrowser")); +} + +QVariant MuQt_QTextBrowser::loadResource(int type, const QUrl & name) +{ + if (!_env) return QTextBrowser::loadResource(type, name); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(type); + args[2] = Value(makeqtype(c,name,"qt.QUrl")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTextBrowser::loadResource(type, name); + } +} + +void MuQt_QTextBrowser::doSetSource(const QUrl & url, QTextDocument::ResourceType type) +{ + if (!_env) { QTextBrowser::doSetSource(url, type); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,url,"qt.QUrl")); + args[2] = Value(int(type)); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::doSetSource(url, type); + } +} + +bool MuQt_QTextBrowser::event(QEvent * e) +{ + if (!_env) return QTextBrowser::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTextBrowser::event(e); + } +} + +bool MuQt_QTextBrowser::focusNextPrevChild(bool next) +{ + if (!_env) return QTextBrowser::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTextBrowser::focusNextPrevChild(next); + } +} + +void MuQt_QTextBrowser::focusOutEvent(QFocusEvent * ev) +{ + if (!_env) { QTextBrowser::focusOutEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::focusOutEvent(ev); + } +} + +void MuQt_QTextBrowser::keyPressEvent(QKeyEvent * ev) +{ + if (!_env) { QTextBrowser::keyPressEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::keyPressEvent(ev); + } +} + +void MuQt_QTextBrowser::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QTextBrowser::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::mouseMoveEvent(e); + } +} + +void MuQt_QTextBrowser::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QTextBrowser::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::mousePressEvent(e); + } +} + +void MuQt_QTextBrowser::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QTextBrowser::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::mouseReleaseEvent(e); + } +} + +void MuQt_QTextBrowser::paintEvent(QPaintEvent * e) +{ + if (!_env) { QTextBrowser::paintEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::paintEvent(e); + } +} + +QVariant MuQt_QTextBrowser::inputMethodQuery(Qt::InputMethodQuery property) const +{ + if (!_env) return QTextBrowser::inputMethodQuery(property); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(property)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTextBrowser::inputMethodQuery(property); + } +} + +bool MuQt_QTextBrowser::canInsertFromMimeData(const QMimeData * source) const +{ + if (!_env) return QTextBrowser::canInsertFromMimeData(source); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,source,"qt.QMimeData")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTextBrowser::canInsertFromMimeData(source); + } +} + +QMimeData * MuQt_QTextBrowser::createMimeDataFromSelection() const +{ + if (!_env) return QTextBrowser::createMimeDataFromSelection(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QTextBrowser::createMimeDataFromSelection(); + } +} + +void MuQt_QTextBrowser::insertFromMimeData(const QMimeData * source) +{ + if (!_env) { QTextBrowser::insertFromMimeData(source); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,source,"qt.QMimeData")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::insertFromMimeData(source); + } +} + +void MuQt_QTextBrowser::changeEvent(QEvent * e) +{ + if (!_env) { QTextBrowser::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::changeEvent(e); + } +} + +void MuQt_QTextBrowser::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QTextBrowser::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::contextMenuEvent(event); + } +} + +void MuQt_QTextBrowser::dragEnterEvent(QDragEnterEvent * e) +{ + if (!_env) { QTextBrowser::dragEnterEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::dragEnterEvent(e); + } +} + +void MuQt_QTextBrowser::dragLeaveEvent(QDragLeaveEvent * e) +{ + if (!_env) { QTextBrowser::dragLeaveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::dragLeaveEvent(e); + } +} + +void MuQt_QTextBrowser::dragMoveEvent(QDragMoveEvent * e) +{ + if (!_env) { QTextBrowser::dragMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::dragMoveEvent(e); + } +} + +void MuQt_QTextBrowser::dropEvent(QDropEvent * e) +{ + if (!_env) { QTextBrowser::dropEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::dropEvent(e); + } +} + +void MuQt_QTextBrowser::focusInEvent(QFocusEvent * e) +{ + if (!_env) { QTextBrowser::focusInEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::focusInEvent(e); + } +} + +void MuQt_QTextBrowser::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QTextBrowser::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::keyReleaseEvent(e); + } +} + +void MuQt_QTextBrowser::mouseDoubleClickEvent(QMouseEvent * e) +{ + if (!_env) { QTextBrowser::mouseDoubleClickEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::mouseDoubleClickEvent(e); + } +} + +void MuQt_QTextBrowser::resizeEvent(QResizeEvent * e) +{ + if (!_env) { QTextBrowser::resizeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::resizeEvent(e); + } +} + +void MuQt_QTextBrowser::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QTextBrowser::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::scrollContentsBy(dx, dy); + } +} + +void MuQt_QTextBrowser::showEvent(QShowEvent * _p13) +{ + if (!_env) { QTextBrowser::showEvent(_p13); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p13,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::showEvent(_p13); + } +} + +void MuQt_QTextBrowser::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QTextBrowser::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextBrowser::wheelEvent(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTextBrowserType::QTextBrowserType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTextBrowserType::~QTextBrowserType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTextBrowser_QTextBrowser_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTextBrowser* w = object(widget)) + { + QTextBrowserType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTextBrowser"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTextBrowser_QTextBrowser_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTextBrowser_QTextBrowser_QTextBrowser_QTextBrowser_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTextBrowser(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +int qt_QTextBrowser_backwardHistoryCount_int_QTextBrowser(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + return arg0->backwardHistoryCount(); +} + +void qt_QTextBrowser_clearHistory_void_QTextBrowser(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + arg0->clearHistory(); +} + +int qt_QTextBrowser_forwardHistoryCount_int_QTextBrowser(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + return arg0->forwardHistoryCount(); +} + +Pointer qt_QTextBrowser_historyTitle_string_QTextBrowser_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_i) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + int arg1 = (int)(param_i); + return makestring(c,arg0->historyTitle(arg1)); +} + +Pointer qt_QTextBrowser_historyUrl_QUrl_QTextBrowser_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_i) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + int arg1 = (int)(param_i); + return makeqtype(c,arg0->historyUrl(arg1),"qt.QUrl"); +} + +bool qt_QTextBrowser_isBackwardAvailable_bool_QTextBrowser(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + return arg0->isBackwardAvailable(); +} + +bool qt_QTextBrowser_isForwardAvailable_bool_QTextBrowser(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + return arg0->isForwardAvailable(); +} + +Pointer qt_QTextBrowser_loadResource_QVariant_QTextBrowser_int_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + int arg1 = (int)(param_type); + const QUrl arg2 = getqtype(param_name); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTextBrowser::loadResource(arg1, arg2),"qt.QVariant") : makeqtype(c,arg0->loadResource(arg1, arg2),"qt.QVariant"); +} + +void qt_QTextBrowser_doSetSource_void_QTextBrowser_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_url); + QTextDocument::ResourceType arg2 = (QTextDocument::ResourceType)(param_type); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->doSetSource_pub_parent(arg1, arg2); + else ((MuQt_QTextBrowser*)arg0)->doSetSource_pub(arg1, arg2); +} + +bool qt_QTextBrowser_event_bool_QTextBrowser_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QTextBrowser*)arg0)->event_pub_parent(arg1) : ((MuQt_QTextBrowser*)arg0)->event_pub(arg1); +} + +bool qt_QTextBrowser_focusNextPrevChild_bool_QTextBrowser_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QTextBrowser*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QTextBrowser*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QTextBrowser_focusOutEvent_void_QTextBrowser_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QTextBrowser_keyPressEvent_void_QTextBrowser_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QTextBrowser_mouseMoveEvent_void_QTextBrowser_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QTextBrowser_mousePressEvent_void_QTextBrowser_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QTextBrowser_mouseReleaseEvent_void_QTextBrowser_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QTextBrowser_paintEvent_void_QTextBrowser_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->paintEvent_pub(arg1); +} + +Pointer qt_QTextBrowser_inputMethodQuery_QVariant_QTextBrowser_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_property) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_property); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTextBrowser::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +bool qt_QTextBrowser_canInsertFromMimeData_bool_QTextBrowser_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_source) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + const QMimeData * arg1 = object(param_source); + return isMuQtObject(arg0) ? ((MuQt_QTextBrowser*)arg0)->canInsertFromMimeData_pub_parent(arg1) : ((MuQt_QTextBrowser*)arg0)->canInsertFromMimeData_pub(arg1); +} + +Pointer qt_QTextBrowser_createMimeDataFromSelection_QMimeData_QTextBrowser(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, ((MuQt_QTextBrowser*)arg0)->createMimeDataFromSelection_pub_parent(), "qt.QMimeData") : makeinstance(c, ((MuQt_QTextBrowser*)arg0)->createMimeDataFromSelection_pub(), "qt.QMimeData"); +} + +void qt_QTextBrowser_insertFromMimeData_void_QTextBrowser_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_source) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + const QMimeData * arg1 = object(param_source); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->insertFromMimeData_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->insertFromMimeData_pub(arg1); +} + +void qt_QTextBrowser_changeEvent_void_QTextBrowser_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->changeEvent_pub(arg1); +} + +void qt_QTextBrowser_contextMenuEvent_void_QTextBrowser_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QTextBrowser_dragEnterEvent_void_QTextBrowser_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QTextBrowser_dragLeaveEvent_void_QTextBrowser_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QTextBrowser_dragMoveEvent_void_QTextBrowser_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QTextBrowser_dropEvent_void_QTextBrowser_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->dropEvent_pub(arg1); +} + +void qt_QTextBrowser_focusInEvent_void_QTextBrowser_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QTextBrowser_keyReleaseEvent_void_QTextBrowser_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QTextBrowser_mouseDoubleClickEvent_void_QTextBrowser_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QTextBrowser_resizeEvent_void_QTextBrowser_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QTextBrowser_scrollContentsBy_void_QTextBrowser_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QTextBrowser*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +void qt_QTextBrowser_showEvent_void_QTextBrowser_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p13) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param__p13); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->showEvent_pub(arg1); +} + +void qt_QTextBrowser_wheelEvent_void_QTextBrowser_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextBrowser* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextBrowser*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QTextBrowser*)arg0)->wheelEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTextBrowser0, Pointer) +{ + NODE_RETURN(qt_QTextBrowser_QTextBrowser_QTextBrowser_QTextBrowser_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_backwardHistoryCount0, int) +{ + NODE_RETURN(qt_QTextBrowser_backwardHistoryCount_int_QTextBrowser(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearHistory0, void) +{ + qt_QTextBrowser_clearHistory_void_QTextBrowser(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_forwardHistoryCount0, int) +{ + NODE_RETURN(qt_QTextBrowser_forwardHistoryCount_int_QTextBrowser(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_historyTitle0, Pointer) +{ + NODE_RETURN(qt_QTextBrowser_historyTitle_string_QTextBrowser_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_historyUrl0, Pointer) +{ + NODE_RETURN(qt_QTextBrowser_historyUrl_QUrl_QTextBrowser_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isBackwardAvailable0, bool) +{ + NODE_RETURN(qt_QTextBrowser_isBackwardAvailable_bool_QTextBrowser(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isForwardAvailable0, bool) +{ + NODE_RETURN(qt_QTextBrowser_isForwardAvailable_bool_QTextBrowser(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_loadResource0, Pointer) +{ + NODE_RETURN(qt_QTextBrowser_loadResource_QVariant_QTextBrowser_int_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_doSetSource0, void) +{ + qt_QTextBrowser_doSetSource_void_QTextBrowser_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTextBrowser_event_bool_QTextBrowser_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QTextBrowser_focusNextPrevChild_bool_QTextBrowser_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QTextBrowser_focusOutEvent_void_QTextBrowser_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QTextBrowser_keyPressEvent_void_QTextBrowser_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QTextBrowser_mouseMoveEvent_void_QTextBrowser_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QTextBrowser_mousePressEvent_void_QTextBrowser_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QTextBrowser_mouseReleaseEvent_void_QTextBrowser_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QTextBrowser_paintEvent_void_QTextBrowser_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QTextBrowser_inputMethodQuery_QVariant_QTextBrowser_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_canInsertFromMimeData0, bool) +{ + NODE_RETURN(qt_QTextBrowser_canInsertFromMimeData_bool_QTextBrowser_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createMimeDataFromSelection0, Pointer) +{ + NODE_RETURN(qt_QTextBrowser_createMimeDataFromSelection_QMimeData_QTextBrowser(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertFromMimeData0, void) +{ + qt_QTextBrowser_insertFromMimeData_void_QTextBrowser_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QTextBrowser_changeEvent_void_QTextBrowser_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QTextBrowser_contextMenuEvent_void_QTextBrowser_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QTextBrowser_dragEnterEvent_void_QTextBrowser_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QTextBrowser_dragLeaveEvent_void_QTextBrowser_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QTextBrowser_dragMoveEvent_void_QTextBrowser_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QTextBrowser_dropEvent_void_QTextBrowser_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QTextBrowser_focusInEvent_void_QTextBrowser_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QTextBrowser_keyReleaseEvent_void_QTextBrowser_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QTextBrowser_mouseDoubleClickEvent_void_QTextBrowser_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QTextBrowser_resizeEvent_void_QTextBrowser_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QTextBrowser_scrollContentsBy_void_QTextBrowser_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QTextBrowser_showEvent_void_QTextBrowser_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QTextBrowser_wheelEvent_void_QTextBrowser_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QTextBrowserType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTextBrowser_QTextBrowser_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTextBrowser", _n_QTextBrowser0, None, Compiled, qt_QTextBrowser_QTextBrowser_QTextBrowser_QTextBrowser_QWidget, Return, "qt.QTextBrowser", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "backwardHistoryCount", _n_backwardHistoryCount0, None, Compiled, qt_QTextBrowser_backwardHistoryCount_int_QTextBrowser, Return, "int", Parameters, new Param(c, "this", "qt.QTextBrowser"), End), + new Function(c, "clearHistory", _n_clearHistory0, None, Compiled, qt_QTextBrowser_clearHistory_void_QTextBrowser, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), End), + new Function(c, "forwardHistoryCount", _n_forwardHistoryCount0, None, Compiled, qt_QTextBrowser_forwardHistoryCount_int_QTextBrowser, Return, "int", Parameters, new Param(c, "this", "qt.QTextBrowser"), End), + new Function(c, "historyTitle", _n_historyTitle0, None, Compiled, qt_QTextBrowser_historyTitle_string_QTextBrowser_int, Return, "string", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "i", "int"), End), + new Function(c, "historyUrl", _n_historyUrl0, None, Compiled, qt_QTextBrowser_historyUrl_QUrl_QTextBrowser_int, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "i", "int"), End), + new Function(c, "isBackwardAvailable", _n_isBackwardAvailable0, None, Compiled, qt_QTextBrowser_isBackwardAvailable_bool_QTextBrowser, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBrowser"), End), + new Function(c, "isForwardAvailable", _n_isForwardAvailable0, None, Compiled, qt_QTextBrowser_isForwardAvailable_bool_QTextBrowser, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBrowser"), End), + // PROP: openExternalLinks (bool; QTextBrowser this) + // PROP: openLinks (bool; QTextBrowser this) + // PROP: searchPaths (string[]; QTextBrowser this) + // PROP: setOpenExternalLinks (void; QTextBrowser this, bool open) + // PROP: setOpenLinks (void; QTextBrowser this, bool open) + // PROP: setSearchPaths (void; QTextBrowser this, string[] paths) + // PROP: source (QUrl; QTextBrowser this) + // PROP: sourceType (flags QTextDocument::ResourceType; QTextBrowser this) + _func[0] = new MemberFunction(c, "loadResource", _n_loadResource0, None, Compiled, qt_QTextBrowser_loadResource_QVariant_QTextBrowser_int_QUrl, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "type", "int"), new Param(c, "name", "qt.QUrl"), End), + _func[1] = new MemberFunction(c, "doSetSource", _n_doSetSource0, None, Compiled, qt_QTextBrowser_doSetSource_void_QTextBrowser_QUrl_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "url", "qt.QUrl"), new Param(c, "type", "int", Value((int)QTextDocument::UnknownResource)), End), + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTextBrowser_event_bool_QTextBrowser_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QTextBrowser_focusNextPrevChild_bool_QTextBrowser_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "next", "bool"), End), + _func[4] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QTextBrowser_focusOutEvent_void_QTextBrowser_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "ev", "qt.QFocusEvent"), End), + _func[5] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QTextBrowser_keyPressEvent_void_QTextBrowser_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "ev", "qt.QKeyEvent"), End), + _func[6] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QTextBrowser_mouseMoveEvent_void_QTextBrowser_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[7] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QTextBrowser_mousePressEvent_void_QTextBrowser_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[8] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QTextBrowser_mouseReleaseEvent_void_QTextBrowser_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[9] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QTextBrowser_paintEvent_void_QTextBrowser_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QPaintEvent"), End), + _func[10] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QTextBrowser_inputMethodQuery_QVariant_QTextBrowser_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "property", "int"), End), + _func[11] = new MemberFunction(c, "canInsertFromMimeData", _n_canInsertFromMimeData0, None, Compiled, qt_QTextBrowser_canInsertFromMimeData_bool_QTextBrowser_QMimeData, Return, "bool", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "source", "qt.QMimeData"), End), + _func[12] = new MemberFunction(c, "createMimeDataFromSelection", _n_createMimeDataFromSelection0, None, Compiled, qt_QTextBrowser_createMimeDataFromSelection_QMimeData_QTextBrowser, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QTextBrowser"), End), + _func[13] = new MemberFunction(c, "insertFromMimeData", _n_insertFromMimeData0, None, Compiled, qt_QTextBrowser_insertFromMimeData_void_QTextBrowser_QMimeData, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "source", "qt.QMimeData"), End), + _func[14] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QTextBrowser_changeEvent_void_QTextBrowser_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QEvent"), End), + _func[15] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QTextBrowser_contextMenuEvent_void_QTextBrowser_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[16] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QTextBrowser_dragEnterEvent_void_QTextBrowser_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QDragEnterEvent"), End), + _func[17] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QTextBrowser_dragLeaveEvent_void_QTextBrowser_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QDragLeaveEvent"), End), + _func[18] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QTextBrowser_dragMoveEvent_void_QTextBrowser_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QDragMoveEvent"), End), + _func[19] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QTextBrowser_dropEvent_void_QTextBrowser_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QDropEvent"), End), + _func[20] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QTextBrowser_focusInEvent_void_QTextBrowser_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QTextBrowser this, "QInputMethodEvent *" e) // protected + _func[21] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QTextBrowser_keyReleaseEvent_void_QTextBrowser_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[22] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QTextBrowser_mouseDoubleClickEvent_void_QTextBrowser_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[23] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QTextBrowser_resizeEvent_void_QTextBrowser_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QResizeEvent"), End), + _func[24] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QTextBrowser_scrollContentsBy_void_QTextBrowser_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[25] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QTextBrowser_showEvent_void_QTextBrowser_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "_p13", "qt.QShowEvent"), End), + _func[26] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QTextBrowser_wheelEvent_void_QTextBrowser_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextBrowser"), new Param(c, "e", "qt.QWheelEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTextBrowser::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTextCursorType.cpp b/src/lib/mu/MuQt6/QTextCursorType.cpp new file mode 100644 index 000000000..9378434f7 --- /dev/null +++ b/src/lib/mu/MuQt6/QTextCursorType.cpp @@ -0,0 +1,887 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QTextCursorType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QTextCursorType::QTextCursorType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QTextCursorType::~QTextCursorType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QTextCursorType::Instance* i = new QTextCursorType::Instance((Class*)NODE_THIS.type()); + QTextCursorType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QTextCursorType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QTextCursorType::finalizer, 0, 0, 0); +} + +void +QTextCursorType::finalizer (void* obj, void* data) +{ + QTextCursorType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QTextCursor_QTextCursor_QTextCursor_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QTextCursor()); + return param_this; +} + +Pointer qt_QTextCursor_QTextCursor_QTextCursor_QTextCursor_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_document) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument * arg1 = object(param_document); + setqtype(param_this,QTextCursor(arg1)); + return param_this; +} + +Pointer qt_QTextCursor_QTextCursor_QTextCursor_QTextCursor_QTextBlock(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_block) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextBlock arg1 = getqtype(param_block); + setqtype(param_this,QTextCursor(arg1)); + return param_this; +} + +int qt_QTextCursor_anchor_int_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.anchor(); +} + +bool qt_QTextCursor_atBlockEnd_bool_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.atBlockEnd(); +} + +bool qt_QTextCursor_atBlockStart_bool_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.atBlockStart(); +} + +bool qt_QTextCursor_atEnd_bool_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.atEnd(); +} + +bool qt_QTextCursor_atStart_bool_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.atStart(); +} + +void qt_QTextCursor_beginEditBlock_void_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + arg0.beginEditBlock(); + setqtype(param_this,arg0); +} + +Pointer qt_QTextCursor_block_QTextBlock_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return makeqtype(c,arg0.block(),"qt.QTextBlock"); +} + +int qt_QTextCursor_blockNumber_int_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.blockNumber(); +} + +void qt_QTextCursor_clearSelection_void_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + arg0.clearSelection(); + setqtype(param_this,arg0); +} + +int qt_QTextCursor_columnNumber_int_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.columnNumber(); +} + +void qt_QTextCursor_deleteChar_void_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + arg0.deleteChar(); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_deletePreviousChar_void_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + arg0.deletePreviousChar(); + setqtype(param_this,arg0); +} + +Pointer qt_QTextCursor_document_QTextDocument_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return makeinstance(c, arg0.document(), "qt.QTextDocument"); +} + +void qt_QTextCursor_endEditBlock_void_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + arg0.endEditBlock(); + setqtype(param_this,arg0); +} + +bool qt_QTextCursor_hasComplexSelection_bool_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.hasComplexSelection(); +} + +bool qt_QTextCursor_hasSelection_bool_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.hasSelection(); +} + +void qt_QTextCursor_insertBlock_void_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + arg0.insertBlock(); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_insertHtml_void_QTextCursor_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_html) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_html); + arg0.insertHtml(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_insertImage_void_QTextCursor_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_name); + arg0.insertImage(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_insertImage_void_QTextCursor_QImage_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_image, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + const QImage arg1 = getqtype(param_image); + const QString arg2 = qstring(param_name); + arg0.insertImage(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_insertMarkdown_void_QTextCursor_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_markdown, int param_features) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_markdown); + QTextDocument::MarkdownFeatures arg2 = (QTextDocument::MarkdownFeatures)(param_features); + arg0.insertMarkdown(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_insertText_void_QTextCursor_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_text); + arg0.insertText(arg1); + setqtype(param_this,arg0); +} + +bool qt_QTextCursor_isCopyOf_bool_QTextCursor_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + const QTextCursor arg1 = getqtype(param_other); + return arg0.isCopyOf(arg1); +} + +bool qt_QTextCursor_isNull_bool_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.isNull(); +} + +void qt_QTextCursor_joinPreviousEditBlock_void_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + arg0.joinPreviousEditBlock(); + setqtype(param_this,arg0); +} + +bool qt_QTextCursor_keepPositionOnInsert_bool_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.keepPositionOnInsert(); +} + +bool qt_QTextCursor_movePosition_bool_QTextCursor_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_operation, int param_mode, int param_n) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + QTextCursor::MoveOperation arg1 = (QTextCursor::MoveOperation)(param_operation); + QTextCursor::MoveMode arg2 = (QTextCursor::MoveMode)(param_mode); + int arg3 = (int)(param_n); + return arg0.movePosition(arg1, arg2, arg3); +} + +int qt_QTextCursor_position_int_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.position(); +} + +int qt_QTextCursor_positionInBlock_int_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.positionInBlock(); +} + +void qt_QTextCursor_removeSelectedText_void_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + arg0.removeSelectedText(); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_select_void_QTextCursor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_selection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + QTextCursor::SelectionType arg1 = (QTextCursor::SelectionType)(param_selection); + arg0.select(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QTextCursor_selectedText_string_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return makestring(c,arg0.selectedText()); +} + +int qt_QTextCursor_selectionEnd_int_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.selectionEnd(); +} + +int qt_QTextCursor_selectionStart_int_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.selectionStart(); +} + +void qt_QTextCursor_setKeepPositionOnInsert_void_QTextCursor_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_b) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_b); + arg0.setKeepPositionOnInsert(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_setPosition_void_QTextCursor_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_pos, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + int arg1 = (int)(param_pos); + QTextCursor::MoveMode arg2 = (QTextCursor::MoveMode)(param_m); + arg0.setPosition(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_setVerticalMovementX_void_QTextCursor_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + int arg1 = (int)(param_x); + arg0.setVerticalMovementX(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_setVisualNavigation_void_QTextCursor_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_b) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + bool arg1 = (bool)(param_b); + arg0.setVisualNavigation(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextCursor_swap_void_QTextCursor_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextCursor& arg0 = getqtype(param_this); + QTextCursor arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +int qt_QTextCursor_verticalMovementX_int_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.verticalMovementX(); +} + +bool qt_QTextCursor_visualNavigation_bool_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + return arg0.visualNavigation(); +} + +bool qt_QTextCursor_operatorBang_EQ__bool_QTextCursor_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + const QTextCursor arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +bool qt_QTextCursor_operatorLT__bool_QTextCursor_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + const QTextCursor arg1 = getqtype(param_other); + return arg0.operator<(arg1); +} + +bool qt_QTextCursor_operatorLT_EQ__bool_QTextCursor_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + const QTextCursor arg1 = getqtype(param_other); + return arg0.operator<=(arg1); +} + +bool qt_QTextCursor_operatorEQ_EQ__bool_QTextCursor_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + const QTextCursor arg1 = getqtype(param_other); + return arg0.operator==(arg1); +} + +bool qt_QTextCursor_operatorGT__bool_QTextCursor_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + const QTextCursor arg1 = getqtype(param_other); + return arg0.operator>(arg1); +} + +bool qt_QTextCursor_operatorGT_EQ__bool_QTextCursor_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QTextCursor& arg0 = getqtype(param_this); + const QTextCursor arg1 = getqtype(param_other); + return arg0.operator>=(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTextCursor0, Pointer) +{ + NODE_RETURN(qt_QTextCursor_QTextCursor_QTextCursor_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTextCursor1, Pointer) +{ + NODE_RETURN(qt_QTextCursor_QTextCursor_QTextCursor_QTextCursor_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTextCursor3, Pointer) +{ + NODE_RETURN(qt_QTextCursor_QTextCursor_QTextCursor_QTextCursor_QTextBlock(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_anchor0, int) +{ + NODE_RETURN(qt_QTextCursor_anchor_int_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_atBlockEnd0, bool) +{ + NODE_RETURN(qt_QTextCursor_atBlockEnd_bool_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_atBlockStart0, bool) +{ + NODE_RETURN(qt_QTextCursor_atBlockStart_bool_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_atEnd0, bool) +{ + NODE_RETURN(qt_QTextCursor_atEnd_bool_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_atStart0, bool) +{ + NODE_RETURN(qt_QTextCursor_atStart_bool_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_beginEditBlock0, void) +{ + qt_QTextCursor_beginEditBlock_void_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_block0, Pointer) +{ + NODE_RETURN(qt_QTextCursor_block_QTextBlock_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_blockNumber0, int) +{ + NODE_RETURN(qt_QTextCursor_blockNumber_int_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearSelection0, void) +{ + qt_QTextCursor_clearSelection_void_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_columnNumber0, int) +{ + NODE_RETURN(qt_QTextCursor_columnNumber_int_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_deleteChar0, void) +{ + qt_QTextCursor_deleteChar_void_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_deletePreviousChar0, void) +{ + qt_QTextCursor_deletePreviousChar_void_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_document0, Pointer) +{ + NODE_RETURN(qt_QTextCursor_document_QTextDocument_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_endEditBlock0, void) +{ + qt_QTextCursor_endEditBlock_void_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasComplexSelection0, bool) +{ + NODE_RETURN(qt_QTextCursor_hasComplexSelection_bool_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasSelection0, bool) +{ + NODE_RETURN(qt_QTextCursor_hasSelection_bool_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertBlock0, void) +{ + qt_QTextCursor_insertBlock_void_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertHtml0, void) +{ + qt_QTextCursor_insertHtml_void_QTextCursor_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertImage2, void) +{ + qt_QTextCursor_insertImage_void_QTextCursor_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertImage3, void) +{ + qt_QTextCursor_insertImage_void_QTextCursor_QImage_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertMarkdown0, void) +{ + qt_QTextCursor_insertMarkdown_void_QTextCursor_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_insertText0, void) +{ + qt_QTextCursor_insertText_void_QTextCursor_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isCopyOf0, bool) +{ + NODE_RETURN(qt_QTextCursor_isCopyOf_bool_QTextCursor_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QTextCursor_isNull_bool_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_joinPreviousEditBlock0, void) +{ + qt_QTextCursor_joinPreviousEditBlock_void_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keepPositionOnInsert0, bool) +{ + NODE_RETURN(qt_QTextCursor_keepPositionOnInsert_bool_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_movePosition0, bool) +{ + NODE_RETURN(qt_QTextCursor_movePosition_bool_QTextCursor_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_position0, int) +{ + NODE_RETURN(qt_QTextCursor_position_int_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_positionInBlock0, int) +{ + NODE_RETURN(qt_QTextCursor_positionInBlock_int_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeSelectedText0, void) +{ + qt_QTextCursor_removeSelectedText_void_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_select0, void) +{ + qt_QTextCursor_select_void_QTextCursor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_selectedText0, Pointer) +{ + NODE_RETURN(qt_QTextCursor_selectedText_string_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionEnd0, int) +{ + NODE_RETURN(qt_QTextCursor_selectionEnd_int_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionStart0, int) +{ + NODE_RETURN(qt_QTextCursor_selectionStart_int_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setKeepPositionOnInsert0, void) +{ + qt_QTextCursor_setKeepPositionOnInsert_void_QTextCursor_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setPosition0, void) +{ + qt_QTextCursor_setPosition_void_QTextCursor_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setVerticalMovementX0, void) +{ + qt_QTextCursor_setVerticalMovementX_void_QTextCursor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setVisualNavigation0, void) +{ + qt_QTextCursor_setVisualNavigation_void_QTextCursor_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QTextCursor_swap_void_QTextCursor_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_verticalMovementX0, int) +{ + NODE_RETURN(qt_QTextCursor_verticalMovementX_int_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualNavigation0, bool) +{ + NODE_RETURN(qt_QTextCursor_visualNavigation_bool_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QTextCursor_operatorBang_EQ__bool_QTextCursor_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorLT_0, bool) +{ + NODE_RETURN(qt_QTextCursor_operatorLT__bool_QTextCursor_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorLT_EQ_0, bool) +{ + NODE_RETURN(qt_QTextCursor_operatorLT_EQ__bool_QTextCursor_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QTextCursor_operatorEQ_EQ__bool_QTextCursor_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorGT_0, bool) +{ + NODE_RETURN(qt_QTextCursor_operatorGT__bool_QTextCursor_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorGT_EQ_0, bool) +{ + NODE_RETURN(qt_QTextCursor_operatorGT_EQ__bool_QTextCursor_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QTextCursorType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "MoveMode", "int"), + new SymbolicConstant(c, "MoveAnchor", "int", Value(int(QTextCursor::MoveAnchor))), + new SymbolicConstant(c, "KeepAnchor", "int", Value(int(QTextCursor::KeepAnchor))), + new Alias(c, "MoveOperation", "int"), + new SymbolicConstant(c, "NoMove", "int", Value(int(QTextCursor::NoMove))), + new SymbolicConstant(c, "Start", "int", Value(int(QTextCursor::Start))), + new SymbolicConstant(c, "StartOfLine", "int", Value(int(QTextCursor::StartOfLine))), + new SymbolicConstant(c, "StartOfBlock", "int", Value(int(QTextCursor::StartOfBlock))), + new SymbolicConstant(c, "StartOfWord", "int", Value(int(QTextCursor::StartOfWord))), + new SymbolicConstant(c, "PreviousBlock", "int", Value(int(QTextCursor::PreviousBlock))), + new SymbolicConstant(c, "PreviousCharacter", "int", Value(int(QTextCursor::PreviousCharacter))), + new SymbolicConstant(c, "PreviousWord", "int", Value(int(QTextCursor::PreviousWord))), + new SymbolicConstant(c, "Up", "int", Value(int(QTextCursor::Up))), + new SymbolicConstant(c, "Left", "int", Value(int(QTextCursor::Left))), + new SymbolicConstant(c, "WordLeft", "int", Value(int(QTextCursor::WordLeft))), + new SymbolicConstant(c, "End", "int", Value(int(QTextCursor::End))), + new SymbolicConstant(c, "EndOfLine", "int", Value(int(QTextCursor::EndOfLine))), + new SymbolicConstant(c, "EndOfWord", "int", Value(int(QTextCursor::EndOfWord))), + new SymbolicConstant(c, "EndOfBlock", "int", Value(int(QTextCursor::EndOfBlock))), + new SymbolicConstant(c, "NextBlock", "int", Value(int(QTextCursor::NextBlock))), + new SymbolicConstant(c, "NextCharacter", "int", Value(int(QTextCursor::NextCharacter))), + new SymbolicConstant(c, "NextWord", "int", Value(int(QTextCursor::NextWord))), + new SymbolicConstant(c, "Down", "int", Value(int(QTextCursor::Down))), + new SymbolicConstant(c, "Right", "int", Value(int(QTextCursor::Right))), + new SymbolicConstant(c, "WordRight", "int", Value(int(QTextCursor::WordRight))), + new SymbolicConstant(c, "NextCell", "int", Value(int(QTextCursor::NextCell))), + new SymbolicConstant(c, "PreviousCell", "int", Value(int(QTextCursor::PreviousCell))), + new SymbolicConstant(c, "NextRow", "int", Value(int(QTextCursor::NextRow))), + new SymbolicConstant(c, "PreviousRow", "int", Value(int(QTextCursor::PreviousRow))), + new Alias(c, "SelectionType", "int"), + new SymbolicConstant(c, "Document", "int", Value(int(QTextCursor::Document))), + new SymbolicConstant(c, "BlockUnderCursor", "int", Value(int(QTextCursor::BlockUnderCursor))), + new SymbolicConstant(c, "LineUnderCursor", "int", Value(int(QTextCursor::LineUnderCursor))), + new SymbolicConstant(c, "WordUnderCursor", "int", Value(int(QTextCursor::WordUnderCursor))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QTextCursor", _n_QTextCursor0, None, Compiled, qt_QTextCursor_QTextCursor_QTextCursor_QTextCursor, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "QTextCursor", _n_QTextCursor1, None, Compiled, qt_QTextCursor_QTextCursor_QTextCursor_QTextCursor_QTextDocument, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "document", "qt.QTextDocument"), End), + // MISSING: QTextCursor (QTextCursor; QTextCursor this, "QTextFrame *" frame) + new Function(c, "QTextCursor", _n_QTextCursor3, None, Compiled, qt_QTextCursor_QTextCursor_QTextCursor_QTextCursor_QTextBlock, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "block", "qt.QTextBlock"), End), + // MISSING: QTextCursor (QTextCursor; QTextCursor this, QTextCursor cursor) + new Function(c, "anchor", _n_anchor0, None, Compiled, qt_QTextCursor_anchor_int_QTextCursor, Return, "int", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "atBlockEnd", _n_atBlockEnd0, None, Compiled, qt_QTextCursor_atBlockEnd_bool_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "atBlockStart", _n_atBlockStart0, None, Compiled, qt_QTextCursor_atBlockStart_bool_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "atEnd", _n_atEnd0, None, Compiled, qt_QTextCursor_atEnd_bool_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "atStart", _n_atStart0, None, Compiled, qt_QTextCursor_atStart_bool_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "beginEditBlock", _n_beginEditBlock0, None, Compiled, qt_QTextCursor_beginEditBlock_void_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "block", _n_block0, None, Compiled, qt_QTextCursor_block_QTextBlock_QTextCursor, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + // MISSING: blockCharFormat ("QTextCharFormat"; QTextCursor this) + // MISSING: blockFormat ("QTextBlockFormat"; QTextCursor this) + new Function(c, "blockNumber", _n_blockNumber0, None, Compiled, qt_QTextCursor_blockNumber_int_QTextCursor, Return, "int", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + // MISSING: charFormat ("QTextCharFormat"; QTextCursor this) + new Function(c, "clearSelection", _n_clearSelection0, None, Compiled, qt_QTextCursor_clearSelection_void_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "columnNumber", _n_columnNumber0, None, Compiled, qt_QTextCursor_columnNumber_int_QTextCursor, Return, "int", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + // MISSING: createList ("QTextList *"; QTextCursor this, "const QTextListFormat &" format) + // MISSING: createList ("QTextList *"; QTextCursor this, flags QTextListFormat::Style style) + // MISSING: currentFrame ("QTextFrame *"; QTextCursor this) + // MISSING: currentList ("QTextList *"; QTextCursor this) + // MISSING: currentTable ("QTextTable *"; QTextCursor this) + new Function(c, "deleteChar", _n_deleteChar0, None, Compiled, qt_QTextCursor_deleteChar_void_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "deletePreviousChar", _n_deletePreviousChar0, None, Compiled, qt_QTextCursor_deletePreviousChar_void_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "document", _n_document0, None, Compiled, qt_QTextCursor_document_QTextDocument_QTextCursor, Return, "qt.QTextDocument", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "endEditBlock", _n_endEditBlock0, None, Compiled, qt_QTextCursor_endEditBlock_void_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "hasComplexSelection", _n_hasComplexSelection0, None, Compiled, qt_QTextCursor_hasComplexSelection_bool_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "hasSelection", _n_hasSelection0, None, Compiled, qt_QTextCursor_hasSelection_bool_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "insertBlock", _n_insertBlock0, None, Compiled, qt_QTextCursor_insertBlock_void_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + // MISSING: insertBlock (void; QTextCursor this, "const QTextBlockFormat &" format) + // MISSING: insertBlock (void; QTextCursor this, "const QTextBlockFormat &" format, "const QTextCharFormat &" charFormat) + // MISSING: insertFragment (void; QTextCursor this, "const QTextDocumentFragment &" fragment) + // MISSING: insertFrame ("QTextFrame *"; QTextCursor this, "const QTextFrameFormat &" format) + new Function(c, "insertHtml", _n_insertHtml0, None, Compiled, qt_QTextCursor_insertHtml_void_QTextCursor_string, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "html", "string"), End), + // MISSING: insertImage (void; QTextCursor this, "const QTextImageFormat &" format) + // MISSING: insertImage (void; QTextCursor this, "const QTextImageFormat &" format, flags QTextFrameFormat::Position alignment) + new Function(c, "insertImage", _n_insertImage2, None, Compiled, qt_QTextCursor_insertImage_void_QTextCursor_string, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "name", "string"), End), + new Function(c, "insertImage", _n_insertImage3, None, Compiled, qt_QTextCursor_insertImage_void_QTextCursor_QImage_string, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "image", "qt.QImage"), new Param(c, "name", "string"), End), + // MISSING: insertList ("QTextList *"; QTextCursor this, "const QTextListFormat &" format) + // MISSING: insertList ("QTextList *"; QTextCursor this, flags QTextListFormat::Style style) + new Function(c, "insertMarkdown", _n_insertMarkdown0, None, Compiled, qt_QTextCursor_insertMarkdown_void_QTextCursor_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "markdown", "string"), new Param(c, "features", "int", Value((int)QTextDocument::MarkdownDialectGitHub)), End), + // MISSING: insertTable ("QTextTable *"; QTextCursor this, int rows, int columns, "const QTextTableFormat &" format) + // MISSING: insertTable ("QTextTable *"; QTextCursor this, int rows, int columns) + new Function(c, "insertText", _n_insertText0, None, Compiled, qt_QTextCursor_insertText_void_QTextCursor_string, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "text", "string"), End), + // MISSING: insertText (void; QTextCursor this, string text, "const QTextCharFormat &" format) + new Function(c, "isCopyOf", _n_isCopyOf0, None, Compiled, qt_QTextCursor_isCopyOf_bool_QTextCursor_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "other", "qt.QTextCursor"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QTextCursor_isNull_bool_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "joinPreviousEditBlock", _n_joinPreviousEditBlock0, None, Compiled, qt_QTextCursor_joinPreviousEditBlock_void_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "keepPositionOnInsert", _n_keepPositionOnInsert0, None, Compiled, qt_QTextCursor_keepPositionOnInsert_bool_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + // MISSING: mergeBlockCharFormat (void; QTextCursor this, "const QTextCharFormat &" modifier) + // MISSING: mergeBlockFormat (void; QTextCursor this, "const QTextBlockFormat &" modifier) + // MISSING: mergeCharFormat (void; QTextCursor this, "const QTextCharFormat &" modifier) + new Function(c, "movePosition", _n_movePosition0, None, Compiled, qt_QTextCursor_movePosition_bool_QTextCursor_int_int_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "operation", "int"), new Param(c, "mode", "int", Value((int)QTextCursor::MoveAnchor)), new Param(c, "n", "int", Value((int)1)), End), + new Function(c, "position", _n_position0, None, Compiled, qt_QTextCursor_position_int_QTextCursor, Return, "int", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "positionInBlock", _n_positionInBlock0, None, Compiled, qt_QTextCursor_positionInBlock_int_QTextCursor, Return, "int", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "removeSelectedText", _n_removeSelectedText0, None, Compiled, qt_QTextCursor_removeSelectedText_void_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "select", _n_select0, None, Compiled, qt_QTextCursor_select_void_QTextCursor_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "selection", "int"), End), + // MISSING: selectedTableCells (void; QTextCursor this, "int *" firstRow, "int *" numRows, "int *" firstColumn, "int *" numColumns) + new Function(c, "selectedText", _n_selectedText0, None, Compiled, qt_QTextCursor_selectedText_string_QTextCursor, Return, "string", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + // MISSING: selection ("QTextDocumentFragment"; QTextCursor this) + new Function(c, "selectionEnd", _n_selectionEnd0, None, Compiled, qt_QTextCursor_selectionEnd_int_QTextCursor, Return, "int", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "selectionStart", _n_selectionStart0, None, Compiled, qt_QTextCursor_selectionStart_int_QTextCursor, Return, "int", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + // MISSING: setBlockCharFormat (void; QTextCursor this, "const QTextCharFormat &" format) + // MISSING: setBlockFormat (void; QTextCursor this, "const QTextBlockFormat &" format) + // MISSING: setCharFormat (void; QTextCursor this, "const QTextCharFormat &" format) + new Function(c, "setKeepPositionOnInsert", _n_setKeepPositionOnInsert0, None, Compiled, qt_QTextCursor_setKeepPositionOnInsert_void_QTextCursor_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "b", "bool"), End), + new Function(c, "setPosition", _n_setPosition0, None, Compiled, qt_QTextCursor_setPosition_void_QTextCursor_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "pos", "int"), new Param(c, "m", "int", Value((int)QTextCursor::MoveAnchor)), End), + new Function(c, "setVerticalMovementX", _n_setVerticalMovementX0, None, Compiled, qt_QTextCursor_setVerticalMovementX_void_QTextCursor_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "x", "int"), End), + new Function(c, "setVisualNavigation", _n_setVisualNavigation0, None, Compiled, qt_QTextCursor_setVisualNavigation_void_QTextCursor_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "b", "bool"), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QTextCursor_swap_void_QTextCursor_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "other", "qt.QTextCursor"), End), + new Function(c, "verticalMovementX", _n_verticalMovementX0, None, Compiled, qt_QTextCursor_verticalMovementX_int_QTextCursor, Return, "int", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + new Function(c, "visualNavigation", _n_visualNavigation0, None, Compiled, qt_QTextCursor_visualNavigation_bool_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QTextCursor_operatorBang_EQ__bool_QTextCursor_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "other", "qt.QTextCursor"), End), + new Function(c, "<", _n_operatorLT_0, Op, Compiled, qt_QTextCursor_operatorLT__bool_QTextCursor_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "other", "qt.QTextCursor"), End), + new Function(c, "<=", _n_operatorLT_EQ_0, Op, Compiled, qt_QTextCursor_operatorLT_EQ__bool_QTextCursor_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "other", "qt.QTextCursor"), End), + // MISSING: = (QTextCursor; QTextCursor this, QTextCursor cursor) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QTextCursor_operatorEQ_EQ__bool_QTextCursor_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "other", "qt.QTextCursor"), End), + new Function(c, ">", _n_operatorGT_0, Op, Compiled, qt_QTextCursor_operatorGT__bool_QTextCursor_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "other", "qt.QTextCursor"), End), + new Function(c, ">=", _n_operatorGT_EQ_0, Op, Compiled, qt_QTextCursor_operatorGT_EQ__bool_QTextCursor_QTextCursor, Return, "bool", Parameters, new Param(c, "this", "qt.QTextCursor"), new Param(c, "other", "qt.QTextCursor"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTextDocumentType.cpp b/src/lib/mu/MuQt6/QTextDocumentType.cpp new file mode 100644 index 000000000..cf7d9402d --- /dev/null +++ b/src/lib/mu/MuQt6/QTextDocumentType.cpp @@ -0,0 +1,1108 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTextDocument::~MuQt_QTextDocument() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTextDocument::MuQt_QTextDocument(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QTextDocument(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTextDocument")); +} + +MuQt_QTextDocument::MuQt_QTextDocument(Pointer muobj, const CallEnvironment* ce, const QString & text, QObject * parent) + : QTextDocument(text, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTextDocument")); +} + +void MuQt_QTextDocument::clear() +{ + if (!_env) { QTextDocument::clear(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTextDocument::clear(); + } +} + +QVariant MuQt_QTextDocument::loadResource(int type, const QUrl & name) +{ + if (!_env) return QTextDocument::loadResource(type, name); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(type); + args[2] = Value(makeqtype(c,name,"qt.QUrl")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTextDocument::loadResource(type, name); + } +} + +bool MuQt_QTextDocument::event(QEvent * e) +{ + if (!_env) return QTextDocument::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTextDocument::event(e); + } +} + +bool MuQt_QTextDocument::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QTextDocument::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTextDocument::eventFilter(watched, event); + } +} + +void MuQt_QTextDocument::customEvent(QEvent * event) +{ + if (!_env) { QTextDocument::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextDocument::customEvent(event); + } +} + +void MuQt_QTextDocument::timerEvent(QTimerEvent * event) +{ + if (!_env) { QTextDocument::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextDocument::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTextDocumentType::QTextDocumentType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTextDocumentType::~QTextDocumentType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTextDocument_QTextDocument_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTextDocument* w = object(widget)) + { + QTextDocumentType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTextDocument"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTextDocument_QTextDocument_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTextDocument_QTextDocument_QTextDocument_QTextDocument_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTextDocument(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QTextDocument_QTextDocument_QTextDocument_QTextDocument_string_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QTextDocument(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +void qt_QTextDocument_addResource_void_QTextDocument_int_QUrl_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type, Pointer param_name, Pointer param_resource) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + int arg1 = (int)(param_type); + const QUrl arg2 = getqtype(param_name); + const QVariant arg3 = getqtype(param_resource); + arg0->addResource(arg1, arg2, arg3); +} + +void qt_QTextDocument_adjustSize_void_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + arg0->adjustSize(); +} + +int qt_QTextDocument_availableRedoSteps_int_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->availableRedoSteps(); +} + +int qt_QTextDocument_availableUndoSteps_int_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->availableUndoSteps(); +} + +double qt_QTextDocument_baselineOffset_double_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->baselineOffset(); +} + +Pointer qt_QTextDocument_begin_QTextBlock_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return makeqtype(c,arg0->begin(),"qt.QTextBlock"); +} + +int qt_QTextDocument_characterCount_int_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->characterCount(); +} + +void qt_QTextDocument_clear_void_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QTextDocument::clear(); + else arg0->clear(); +} + +void qt_QTextDocument_clearUndoRedoStacks_void_QTextDocument_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_stacksToClear) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + QTextDocument::Stacks arg1 = (QTextDocument::Stacks)(param_stacksToClear); + arg0->clearUndoRedoStacks(arg1); +} + +Pointer qt_QTextDocument_clone_QTextDocument_QTextDocument_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + QObject * arg1 = object(param_parent); + return makeinstance(c, arg0->clone(arg1), "qt.QTextDocument"); +} + +int qt_QTextDocument_defaultCursorMoveStyle_int_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return int(arg0->defaultCursorMoveStyle()); +} + +Pointer qt_QTextDocument_defaultFont_QFont_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return makeqtype(c,arg0->defaultFont(),"qt.QFont"); +} + +Pointer qt_QTextDocument_defaultTextOption_QTextOption_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return makeqtype(c,arg0->defaultTextOption(),"qt.QTextOption"); +} + +Pointer qt_QTextDocument_end_QTextBlock_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return makeqtype(c,arg0->end(),"qt.QTextBlock"); +} + +Pointer qt_QTextDocument_find_QTextCursor_QTextDocument_string_QTextCursor_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_subString, Pointer param_cursor, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + const QString arg1 = qstring(param_subString); + const QTextCursor arg2 = getqtype(param_cursor); + QTextDocument::FindFlags arg3 = (QTextDocument::FindFlags)(param_options); + return makeqtype(c,arg0->find(arg1, arg2, arg3),"qt.QTextCursor"); +} + +Pointer qt_QTextDocument_find_QTextCursor_QTextDocument_string_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_subString, int param_position, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + const QString arg1 = qstring(param_subString); + int arg2 = (int)(param_position); + QTextDocument::FindFlags arg3 = (QTextDocument::FindFlags)(param_options); + return makeqtype(c,arg0->find(arg1, arg2, arg3),"qt.QTextCursor"); +} + +Pointer qt_QTextDocument_find_QTextCursor_QTextDocument_QRegularExpression_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_expr, int param_from, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + const QRegularExpression arg1 = getqtype(param_expr); + int arg2 = (int)(param_from); + QTextDocument::FindFlags arg3 = (QTextDocument::FindFlags)(param_options); + return makeqtype(c,arg0->find(arg1, arg2, arg3),"qt.QTextCursor"); +} + +Pointer qt_QTextDocument_find_QTextCursor_QTextDocument_QRegularExpression_QTextCursor_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_expr, Pointer param_cursor, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + const QRegularExpression arg1 = getqtype(param_expr); + const QTextCursor arg2 = getqtype(param_cursor); + QTextDocument::FindFlags arg3 = (QTextDocument::FindFlags)(param_options); + return makeqtype(c,arg0->find(arg1, arg2, arg3),"qt.QTextCursor"); +} + +Pointer qt_QTextDocument_findBlock_QTextBlock_QTextDocument_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + int arg1 = (int)(param_pos); + return makeqtype(c,arg0->findBlock(arg1),"qt.QTextBlock"); +} + +Pointer qt_QTextDocument_findBlockByLineNumber_QTextBlock_QTextDocument_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_lineNumber) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + int arg1 = (int)(param_lineNumber); + return makeqtype(c,arg0->findBlockByLineNumber(arg1),"qt.QTextBlock"); +} + +Pointer qt_QTextDocument_findBlockByNumber_QTextBlock_QTextDocument_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_blockNumber) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + int arg1 = (int)(param_blockNumber); + return makeqtype(c,arg0->findBlockByNumber(arg1),"qt.QTextBlock"); +} + +Pointer qt_QTextDocument_firstBlock_QTextBlock_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return makeqtype(c,arg0->firstBlock(),"qt.QTextBlock"); +} + +double qt_QTextDocument_idealWidth_double_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->idealWidth(); +} + +bool qt_QTextDocument_isEmpty_bool_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->isEmpty(); +} + +bool qt_QTextDocument_isRedoAvailable_bool_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->isRedoAvailable(); +} + +bool qt_QTextDocument_isUndoAvailable_bool_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->isUndoAvailable(); +} + +Pointer qt_QTextDocument_lastBlock_QTextBlock_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return makeqtype(c,arg0->lastBlock(),"qt.QTextBlock"); +} + +int qt_QTextDocument_lineCount_int_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->lineCount(); +} + +void qt_QTextDocument_markContentsDirty_void_QTextDocument_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_position, int param_length) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + int arg1 = (int)(param_position); + int arg2 = (int)(param_length); + arg0->markContentsDirty(arg1, arg2); +} + +Pointer qt_QTextDocument_metaInformation_string_QTextDocument_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_info) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + QTextDocument::MetaInformation arg1 = (QTextDocument::MetaInformation)(param_info); + return makestring(c,arg0->metaInformation(arg1)); +} + +int qt_QTextDocument_pageCount_int_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->pageCount(); +} + +Pointer qt_QTextDocument_resource_QVariant_QTextDocument_int_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + int arg1 = (int)(param_type); + const QUrl arg2 = getqtype(param_name); + return makeqtype(c,arg0->resource(arg1, arg2),"qt.QVariant"); +} + +int qt_QTextDocument_revision_int_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->revision(); +} + +void qt_QTextDocument_setBaselineOffset_void_QTextDocument_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_baseline) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + qreal arg1 = (double)(param_baseline); + arg0->setBaselineOffset(arg1); +} + +void qt_QTextDocument_setDefaultCursorMoveStyle_void_QTextDocument_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_style) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + Qt::CursorMoveStyle arg1 = (Qt::CursorMoveStyle)(param_style); + arg0->setDefaultCursorMoveStyle(arg1); +} + +void qt_QTextDocument_setDefaultFont_void_QTextDocument_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_font) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + const QFont arg1 = getqtype(param_font); + arg0->setDefaultFont(arg1); +} + +void qt_QTextDocument_setDefaultTextOption_void_QTextDocument_QTextOption(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_option) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + const QTextOption arg1 = getqtype(param_option); + arg0->setDefaultTextOption(arg1); +} + +void qt_QTextDocument_setHtml_void_QTextDocument_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_html) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + const QString arg1 = qstring(param_html); + arg0->setHtml(arg1); +} + +void qt_QTextDocument_setIndentWidth_void_QTextDocument_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_width) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + qreal arg1 = (double)(param_width); + arg0->setIndentWidth(arg1); +} + +void qt_QTextDocument_setMetaInformation_void_QTextDocument_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_info, Pointer param_string) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + QTextDocument::MetaInformation arg1 = (QTextDocument::MetaInformation)(param_info); + const QString arg2 = qstring(param_string); + arg0->setMetaInformation(arg1, arg2); +} + +void qt_QTextDocument_setPlainText_void_QTextDocument_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + arg0->setPlainText(arg1); +} + +void qt_QTextDocument_setSubScriptBaseline_void_QTextDocument_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_baseline) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + qreal arg1 = (double)(param_baseline); + arg0->setSubScriptBaseline(arg1); +} + +void qt_QTextDocument_setSuperScriptBaseline_void_QTextDocument_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_baseline) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + qreal arg1 = (double)(param_baseline); + arg0->setSuperScriptBaseline(arg1); +} + +double qt_QTextDocument_subScriptBaseline_double_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->subScriptBaseline(); +} + +double qt_QTextDocument_superScriptBaseline_double_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return arg0->superScriptBaseline(); +} + +Pointer qt_QTextDocument_toHtml_string_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return makestring(c,arg0->toHtml()); +} + +Pointer qt_QTextDocument_toPlainText_string_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return makestring(c,arg0->toPlainText()); +} + +Pointer qt_QTextDocument_toRawText_string_QTextDocument(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + return makestring(c,arg0->toRawText()); +} + +Pointer qt_QTextDocument_loadResource_QVariant_QTextDocument_int_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + int arg1 = (int)(param_type); + const QUrl arg2 = getqtype(param_name); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTextDocument*)arg0)->loadResource_pub_parent(arg1, arg2),"qt.QVariant") : makeqtype(c,((MuQt_QTextDocument*)arg0)->loadResource_pub(arg1, arg2),"qt.QVariant"); +} + +bool qt_QTextDocument_event_bool_QTextDocument_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QTextDocument::event(arg1) : arg0->event(arg1); +} + +bool qt_QTextDocument_eventFilter_bool_QTextDocument_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QTextDocument::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QTextDocument_customEvent_void_QTextDocument_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTextDocument*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QTextDocument*)arg0)->customEvent_pub(arg1); +} + +void qt_QTextDocument_timerEvent_void_QTextDocument_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextDocument* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTextDocument*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QTextDocument*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTextDocument0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_QTextDocument_QTextDocument_QTextDocument_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTextDocument1, Pointer) +{ + NODE_RETURN(qt_QTextDocument_QTextDocument_QTextDocument_QTextDocument_string_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addResource0, void) +{ + qt_QTextDocument_addResource_void_QTextDocument_int_QUrl_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_adjustSize0, void) +{ + qt_QTextDocument_adjustSize_void_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_availableRedoSteps0, int) +{ + NODE_RETURN(qt_QTextDocument_availableRedoSteps_int_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_availableUndoSteps0, int) +{ + NODE_RETURN(qt_QTextDocument_availableUndoSteps_int_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_baselineOffset0, double) +{ + NODE_RETURN(qt_QTextDocument_baselineOffset_double_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_begin0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_begin_QTextBlock_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_characterCount0, int) +{ + NODE_RETURN(qt_QTextDocument_characterCount_int_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QTextDocument_clear_void_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_clearUndoRedoStacks0, void) +{ + qt_QTextDocument_clearUndoRedoStacks_void_QTextDocument_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_clone0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_clone_QTextDocument_QTextDocument_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_defaultCursorMoveStyle0, int) +{ + NODE_RETURN(qt_QTextDocument_defaultCursorMoveStyle_int_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_defaultFont0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_defaultFont_QFont_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_defaultTextOption0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_defaultTextOption_QTextOption_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_end0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_end_QTextBlock_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_find0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_find_QTextCursor_QTextDocument_string_QTextCursor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_find1, Pointer) +{ + NODE_RETURN(qt_QTextDocument_find_QTextCursor_QTextDocument_string_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_find2, Pointer) +{ + NODE_RETURN(qt_QTextDocument_find_QTextCursor_QTextDocument_QRegularExpression_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_find3, Pointer) +{ + NODE_RETURN(qt_QTextDocument_find_QTextCursor_QTextDocument_QRegularExpression_QTextCursor_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_findBlock0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_findBlock_QTextBlock_QTextDocument_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_findBlockByLineNumber0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_findBlockByLineNumber_QTextBlock_QTextDocument_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_findBlockByNumber0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_findBlockByNumber_QTextBlock_QTextDocument_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_firstBlock0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_firstBlock_QTextBlock_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_idealWidth0, double) +{ + NODE_RETURN(qt_QTextDocument_idealWidth_double_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QTextDocument_isEmpty_bool_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRedoAvailable0, bool) +{ + NODE_RETURN(qt_QTextDocument_isRedoAvailable_bool_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isUndoAvailable0, bool) +{ + NODE_RETURN(qt_QTextDocument_isUndoAvailable_bool_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_lastBlock0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_lastBlock_QTextBlock_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_lineCount0, int) +{ + NODE_RETURN(qt_QTextDocument_lineCount_int_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_markContentsDirty0, void) +{ + qt_QTextDocument_markContentsDirty_void_QTextDocument_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_metaInformation0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_metaInformation_string_QTextDocument_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_pageCount0, int) +{ + NODE_RETURN(qt_QTextDocument_pageCount_int_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_resource0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_resource_QVariant_QTextDocument_int_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_revision0, int) +{ + NODE_RETURN(qt_QTextDocument_revision_int_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setBaselineOffset0, void) +{ + qt_QTextDocument_setBaselineOffset_void_QTextDocument_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setDefaultCursorMoveStyle0, void) +{ + qt_QTextDocument_setDefaultCursorMoveStyle_void_QTextDocument_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setDefaultFont0, void) +{ + qt_QTextDocument_setDefaultFont_void_QTextDocument_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setDefaultTextOption0, void) +{ + qt_QTextDocument_setDefaultTextOption_void_QTextDocument_QTextOption(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHtml0, void) +{ + qt_QTextDocument_setHtml_void_QTextDocument_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setIndentWidth0, void) +{ + qt_QTextDocument_setIndentWidth_void_QTextDocument_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setMetaInformation0, void) +{ + qt_QTextDocument_setMetaInformation_void_QTextDocument_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPlainText0, void) +{ + qt_QTextDocument_setPlainText_void_QTextDocument_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSubScriptBaseline0, void) +{ + qt_QTextDocument_setSubScriptBaseline_void_QTextDocument_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setSuperScriptBaseline0, void) +{ + qt_QTextDocument_setSuperScriptBaseline_void_QTextDocument_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_subScriptBaseline0, double) +{ + NODE_RETURN(qt_QTextDocument_subScriptBaseline_double_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_superScriptBaseline0, double) +{ + NODE_RETURN(qt_QTextDocument_superScriptBaseline_double_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toHtml0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_toHtml_string_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toPlainText0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_toPlainText_string_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toRawText0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_toRawText_string_QTextDocument(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_loadResource0, Pointer) +{ + NODE_RETURN(qt_QTextDocument_loadResource_QVariant_QTextDocument_int_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTextDocument_event_bool_QTextDocument_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QTextDocument_eventFilter_bool_QTextDocument_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QTextDocument_customEvent_void_QTextDocument_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QTextDocument_timerEvent_void_QTextDocument_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QTextDocumentType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTextDocument_QTextDocument_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTextDocument", _n_QTextDocument0, None, Compiled, qt_QTextDocument_QTextDocument_QTextDocument_QTextDocument_QObject, Return, "qt.QTextDocument", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QTextDocument", _n_QTextDocument1, None, Compiled, qt_QTextDocument_QTextDocument_QTextDocument_QTextDocument_string_QObject, Return, "qt.QTextDocument", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "addResource", _n_addResource0, None, Compiled, qt_QTextDocument_addResource_void_QTextDocument_int_QUrl_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "type", "int"), new Param(c, "name", "qt.QUrl"), new Param(c, "resource", "qt.QVariant"), End), + new Function(c, "adjustSize", _n_adjustSize0, None, Compiled, qt_QTextDocument_adjustSize_void_QTextDocument, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // MISSING: allFormats ("QList"; QTextDocument this) + new Function(c, "availableRedoSteps", _n_availableRedoSteps0, None, Compiled, qt_QTextDocument_availableRedoSteps_int_QTextDocument, Return, "int", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "availableUndoSteps", _n_availableUndoSteps0, None, Compiled, qt_QTextDocument_availableUndoSteps_int_QTextDocument, Return, "int", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // PROP: baseUrl (QUrl; QTextDocument this) + new Function(c, "baselineOffset", _n_baselineOffset0, None, Compiled, qt_QTextDocument_baselineOffset_double_QTextDocument, Return, "double", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "begin", _n_begin0, None, Compiled, qt_QTextDocument_begin_QTextBlock_QTextDocument, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // PROP: blockCount (int; QTextDocument this) + // MISSING: characterAt ("QChar"; QTextDocument this, int pos) + new Function(c, "characterCount", _n_characterCount0, None, Compiled, qt_QTextDocument_characterCount_int_QTextDocument, Return, "int", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + _func[0] = new MemberFunction(c, "clear", _n_clear0, None, Compiled, qt_QTextDocument_clear_void_QTextDocument, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "clearUndoRedoStacks", _n_clearUndoRedoStacks0, None, Compiled, qt_QTextDocument_clearUndoRedoStacks_void_QTextDocument_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "stacksToClear", "int", Value((int)QTextDocument::UndoAndRedoStacks)), End), + new Function(c, "clone", _n_clone0, None, Compiled, qt_QTextDocument_clone_QTextDocument_QTextDocument_QObject, Return, "qt.QTextDocument", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "defaultCursorMoveStyle", _n_defaultCursorMoveStyle0, None, Compiled, qt_QTextDocument_defaultCursorMoveStyle_int_QTextDocument, Return, "int", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "defaultFont", _n_defaultFont0, None, Compiled, qt_QTextDocument_defaultFont_QFont_QTextDocument, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // PROP: defaultStyleSheet (string; QTextDocument this) + new Function(c, "defaultTextOption", _n_defaultTextOption0, None, Compiled, qt_QTextDocument_defaultTextOption_QTextOption_QTextDocument, Return, "qt.QTextOption", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // MISSING: documentLayout ("QAbstractTextDocumentLayout *"; QTextDocument this) + // PROP: documentMargin (double; QTextDocument this) + new Function(c, "end", _n_end0, None, Compiled, qt_QTextDocument_end_QTextBlock_QTextDocument, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "find", _n_find0, None, Compiled, qt_QTextDocument_find_QTextCursor_QTextDocument_string_QTextCursor_int, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "subString", "string"), new Param(c, "cursor", "qt.QTextCursor"), new Param(c, "options", "int", Value((int)QTextDocument::FindFlags())), End), + new Function(c, "find", _n_find1, None, Compiled, qt_QTextDocument_find_QTextCursor_QTextDocument_string_int_int, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "subString", "string"), new Param(c, "position", "int", Value((int)0)), new Param(c, "options", "int", Value((int)QTextDocument::FindFlags())), End), + new Function(c, "find", _n_find2, None, Compiled, qt_QTextDocument_find_QTextCursor_QTextDocument_QRegularExpression_int_int, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "expr", "qt.QRegularExpression"), new Param(c, "from", "int", Value((int)0)), new Param(c, "options", "int", Value((int)QTextDocument::FindFlags())), End), + new Function(c, "find", _n_find3, None, Compiled, qt_QTextDocument_find_QTextCursor_QTextDocument_QRegularExpression_QTextCursor_int, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "expr", "qt.QRegularExpression"), new Param(c, "cursor", "qt.QTextCursor"), new Param(c, "options", "int", Value((int)QTextDocument::FindFlags())), End), + new Function(c, "findBlock", _n_findBlock0, None, Compiled, qt_QTextDocument_findBlock_QTextBlock_QTextDocument_int, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "pos", "int"), End), + new Function(c, "findBlockByLineNumber", _n_findBlockByLineNumber0, None, Compiled, qt_QTextDocument_findBlockByLineNumber_QTextBlock_QTextDocument_int, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "lineNumber", "int"), End), + new Function(c, "findBlockByNumber", _n_findBlockByNumber0, None, Compiled, qt_QTextDocument_findBlockByNumber_QTextBlock_QTextDocument_int, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "blockNumber", "int"), End), + new Function(c, "firstBlock", _n_firstBlock0, None, Compiled, qt_QTextDocument_firstBlock_QTextBlock_QTextDocument, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "idealWidth", _n_idealWidth0, None, Compiled, qt_QTextDocument_idealWidth_double_QTextDocument, Return, "double", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // PROP: indentWidth (double; QTextDocument this) + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QTextDocument_isEmpty_bool_QTextDocument, Return, "bool", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // PROP: isLayoutEnabled (bool; QTextDocument this) + // PROP: isModified (bool; QTextDocument this) + new Function(c, "isRedoAvailable", _n_isRedoAvailable0, None, Compiled, qt_QTextDocument_isRedoAvailable_bool_QTextDocument, Return, "bool", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "isUndoAvailable", _n_isUndoAvailable0, None, Compiled, qt_QTextDocument_isUndoAvailable_bool_QTextDocument, Return, "bool", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // PROP: isUndoRedoEnabled (bool; QTextDocument this) + new Function(c, "lastBlock", _n_lastBlock0, None, Compiled, qt_QTextDocument_lastBlock_QTextBlock_QTextDocument, Return, "qt.QTextBlock", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "lineCount", _n_lineCount0, None, Compiled, qt_QTextDocument_lineCount_int_QTextDocument, Return, "int", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "markContentsDirty", _n_markContentsDirty0, None, Compiled, qt_QTextDocument_markContentsDirty_void_QTextDocument_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "position", "int"), new Param(c, "length", "int"), End), + // PROP: maximumBlockCount (int; QTextDocument this) + new Function(c, "metaInformation", _n_metaInformation0, None, Compiled, qt_QTextDocument_metaInformation_string_QTextDocument_int, Return, "string", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "info", "int"), End), + // MISSING: object ("QTextObject *"; QTextDocument this, int objectIndex) + // MISSING: objectForFormat ("QTextObject *"; QTextDocument this, "const QTextFormat &" f) + new Function(c, "pageCount", _n_pageCount0, None, Compiled, qt_QTextDocument_pageCount_int_QTextDocument, Return, "int", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // MISSING: pageSize ("QSizeF"; QTextDocument this) + // MISSING: print (void; QTextDocument this, "QPagedPaintDevice *" printer) + new Function(c, "resource", _n_resource0, None, Compiled, qt_QTextDocument_resource_QVariant_QTextDocument_int_QUrl, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "type", "int"), new Param(c, "name", "qt.QUrl"), End), + new Function(c, "revision", _n_revision0, None, Compiled, qt_QTextDocument_revision_int_QTextDocument, Return, "int", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // MISSING: rootFrame ("QTextFrame *"; QTextDocument this) + // PROP: setBaseUrl (void; QTextDocument this, QUrl url) + new Function(c, "setBaselineOffset", _n_setBaselineOffset0, None, Compiled, qt_QTextDocument_setBaselineOffset_void_QTextDocument_double, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "baseline", "double"), End), + new Function(c, "setDefaultCursorMoveStyle", _n_setDefaultCursorMoveStyle0, None, Compiled, qt_QTextDocument_setDefaultCursorMoveStyle_void_QTextDocument_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "style", "int"), End), + new Function(c, "setDefaultFont", _n_setDefaultFont0, None, Compiled, qt_QTextDocument_setDefaultFont_void_QTextDocument_QFont, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "font", "qt.QFont"), End), + // PROP: setDefaultStyleSheet (void; QTextDocument this, string sheet) + new Function(c, "setDefaultTextOption", _n_setDefaultTextOption0, None, Compiled, qt_QTextDocument_setDefaultTextOption_void_QTextDocument_QTextOption, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "option", "qt.QTextOption"), End), + // MISSING: setDocumentLayout (void; QTextDocument this, "QAbstractTextDocumentLayout *" layout) + // PROP: setDocumentMargin (void; QTextDocument this, double margin) + new Function(c, "setHtml", _n_setHtml0, None, Compiled, qt_QTextDocument_setHtml_void_QTextDocument_string, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "html", "string"), End), + new Function(c, "setIndentWidth", _n_setIndentWidth0, None, Compiled, qt_QTextDocument_setIndentWidth_void_QTextDocument_double, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "width", "double"), End), + // PROP: setLayoutEnabled (void; QTextDocument this, bool b) + // PROP: setMaximumBlockCount (void; QTextDocument this, int maximum) + new Function(c, "setMetaInformation", _n_setMetaInformation0, None, Compiled, qt_QTextDocument_setMetaInformation_void_QTextDocument_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "info", "int"), new Param(c, "string", "string"), End), + // MISSING: setPageSize (void; QTextDocument this, "const QSizeF &" size) + new Function(c, "setPlainText", _n_setPlainText0, None, Compiled, qt_QTextDocument_setPlainText_void_QTextDocument_string, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "text", "string"), End), + new Function(c, "setSubScriptBaseline", _n_setSubScriptBaseline0, None, Compiled, qt_QTextDocument_setSubScriptBaseline_void_QTextDocument_double, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "baseline", "double"), End), + new Function(c, "setSuperScriptBaseline", _n_setSuperScriptBaseline0, None, Compiled, qt_QTextDocument_setSuperScriptBaseline_void_QTextDocument_double, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "baseline", "double"), End), + // PROP: setTextWidth (void; QTextDocument this, double width) + // PROP: setUndoRedoEnabled (void; QTextDocument this, bool enable) + // PROP: setUseDesignMetrics (void; QTextDocument this, bool b) + // MISSING: size ("QSizeF"; QTextDocument this) + new Function(c, "subScriptBaseline", _n_subScriptBaseline0, None, Compiled, qt_QTextDocument_subScriptBaseline_double_QTextDocument, Return, "double", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "superScriptBaseline", _n_superScriptBaseline0, None, Compiled, qt_QTextDocument_superScriptBaseline_double_QTextDocument, Return, "double", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // PROP: textWidth (double; QTextDocument this) + new Function(c, "toHtml", _n_toHtml0, None, Compiled, qt_QTextDocument_toHtml_string_QTextDocument, Return, "string", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "toPlainText", _n_toPlainText0, None, Compiled, qt_QTextDocument_toPlainText_string_QTextDocument, Return, "string", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + new Function(c, "toRawText", _n_toRawText0, None, Compiled, qt_QTextDocument_toRawText_string_QTextDocument, Return, "string", Parameters, new Param(c, "this", "qt.QTextDocument"), End), + // PROP: useDesignMetrics (bool; QTextDocument this) + // MISSING: createObject ("QTextObject *"; QTextDocument this, "const QTextFormat &" format) // protected + _func[1] = new MemberFunction(c, "loadResource", _n_loadResource0, None, Compiled, qt_QTextDocument_loadResource_QVariant_QTextDocument_int_QUrl, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "type", "int"), new Param(c, "name", "qt.QUrl"), End), + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTextDocument_event_bool_QTextDocument_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QTextDocument_eventFilter_bool_QTextDocument_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QTextDocument this) + // MISSING: childEvent (void; QTextDocument this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QTextDocument this, "const QMetaMethod &" signal) // protected + _func[4] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QTextDocument_customEvent_void_QTextDocument_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QTextDocument this, "const QMetaMethod &" signal) // protected + _func[5] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QTextDocument_timerEvent_void_QTextDocument_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextDocument"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTextDocument::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTextEditType.cpp b/src/lib/mu/MuQt6/QTextEditType.cpp new file mode 100644 index 000000000..fbe1fc335 --- /dev/null +++ b/src/lib/mu/MuQt6/QTextEditType.cpp @@ -0,0 +1,1632 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTextEdit::~MuQt_QTextEdit() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTextEdit::MuQt_QTextEdit(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QTextEdit(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTextEdit")); +} + +MuQt_QTextEdit::MuQt_QTextEdit(Pointer muobj, const CallEnvironment* ce, const QString & text, QWidget * parent) + : QTextEdit(text, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTextEdit")); +} + +QVariant MuQt_QTextEdit::loadResource(int type, const QUrl & name) +{ + if (!_env) return QTextEdit::loadResource(type, name); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(type); + args[2] = Value(makeqtype(c,name,"qt.QUrl")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTextEdit::loadResource(type, name); + } +} + +QVariant MuQt_QTextEdit::inputMethodQuery(Qt::InputMethodQuery property) const +{ + if (!_env) return QTextEdit::inputMethodQuery(property); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(property)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTextEdit::inputMethodQuery(property); + } +} + +bool MuQt_QTextEdit::canInsertFromMimeData(const QMimeData * source) const +{ + if (!_env) return QTextEdit::canInsertFromMimeData(source); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,source,"qt.QMimeData")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTextEdit::canInsertFromMimeData(source); + } +} + +QMimeData * MuQt_QTextEdit::createMimeDataFromSelection() const +{ + if (!_env) return QTextEdit::createMimeDataFromSelection(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QTextEdit::createMimeDataFromSelection(); + } +} + +void MuQt_QTextEdit::insertFromMimeData(const QMimeData * source) +{ + if (!_env) { QTextEdit::insertFromMimeData(source); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,source,"qt.QMimeData")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::insertFromMimeData(source); + } +} + +void MuQt_QTextEdit::changeEvent(QEvent * e) +{ + if (!_env) { QTextEdit::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::changeEvent(e); + } +} + +void MuQt_QTextEdit::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QTextEdit::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::contextMenuEvent(event); + } +} + +void MuQt_QTextEdit::dragEnterEvent(QDragEnterEvent * e) +{ + if (!_env) { QTextEdit::dragEnterEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::dragEnterEvent(e); + } +} + +void MuQt_QTextEdit::dragLeaveEvent(QDragLeaveEvent * e) +{ + if (!_env) { QTextEdit::dragLeaveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::dragLeaveEvent(e); + } +} + +void MuQt_QTextEdit::dragMoveEvent(QDragMoveEvent * e) +{ + if (!_env) { QTextEdit::dragMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::dragMoveEvent(e); + } +} + +void MuQt_QTextEdit::dropEvent(QDropEvent * e) +{ + if (!_env) { QTextEdit::dropEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::dropEvent(e); + } +} + +void MuQt_QTextEdit::focusInEvent(QFocusEvent * e) +{ + if (!_env) { QTextEdit::focusInEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::focusInEvent(e); + } +} + +bool MuQt_QTextEdit::focusNextPrevChild(bool next) +{ + if (!_env) return QTextEdit::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTextEdit::focusNextPrevChild(next); + } +} + +void MuQt_QTextEdit::focusOutEvent(QFocusEvent * e) +{ + if (!_env) { QTextEdit::focusOutEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::focusOutEvent(e); + } +} + +void MuQt_QTextEdit::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QTextEdit::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::keyPressEvent(e); + } +} + +void MuQt_QTextEdit::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QTextEdit::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::keyReleaseEvent(e); + } +} + +void MuQt_QTextEdit::mouseDoubleClickEvent(QMouseEvent * e) +{ + if (!_env) { QTextEdit::mouseDoubleClickEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::mouseDoubleClickEvent(e); + } +} + +void MuQt_QTextEdit::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QTextEdit::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::mouseMoveEvent(e); + } +} + +void MuQt_QTextEdit::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QTextEdit::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::mousePressEvent(e); + } +} + +void MuQt_QTextEdit::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QTextEdit::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::mouseReleaseEvent(e); + } +} + +void MuQt_QTextEdit::paintEvent(QPaintEvent * event) +{ + if (!_env) { QTextEdit::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::paintEvent(event); + } +} + +void MuQt_QTextEdit::resizeEvent(QResizeEvent * e) +{ + if (!_env) { QTextEdit::resizeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::resizeEvent(e); + } +} + +void MuQt_QTextEdit::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QTextEdit::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::scrollContentsBy(dx, dy); + } +} + +void MuQt_QTextEdit::showEvent(QShowEvent * _p13) +{ + if (!_env) { QTextEdit::showEvent(_p13); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p13,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::showEvent(_p13); + } +} + +void MuQt_QTextEdit::wheelEvent(QWheelEvent * e) +{ + if (!_env) { QTextEdit::wheelEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::wheelEvent(e); + } +} + +void MuQt_QTextEdit::setupViewport(QWidget * viewport) +{ + if (!_env) { QTextEdit::setupViewport(viewport); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,viewport,"qt.QWidget")); + Value rval = _env->call(F, args); + } + else + { + QTextEdit::setupViewport(viewport); + } +} + +QSize MuQt_QTextEdit::minimumSizeHint() const +{ + if (!_env) return QTextEdit::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTextEdit::minimumSizeHint(); + } +} + +QSize MuQt_QTextEdit::sizeHint() const +{ + if (!_env) return QTextEdit::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTextEdit::sizeHint(); + } +} + +bool MuQt_QTextEdit::viewportEvent(QEvent * event) +{ + if (!_env) return QTextEdit::viewportEvent(event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTextEdit::viewportEvent(event); + } +} + +QSize MuQt_QTextEdit::viewportSizeHint() const +{ + if (!_env) return QTextEdit::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTextEdit::viewportSizeHint(); + } +} + +bool MuQt_QTextEdit::event(QEvent * event_) +{ + if (!_env) return QTextEdit::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTextEdit::event(event_); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTextEditType::QTextEditType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTextEditType::~QTextEditType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTextEdit_QTextEdit_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTextEdit* w = object(widget)) + { + QTextEditType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTextEdit"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTextEdit_QTextEdit_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTextEdit_QTextEdit_QTextEdit_QTextEdit_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTextEdit(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QTextEdit_QTextEdit_QTextEdit_QTextEdit_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_text); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QTextEdit(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +int qt_QTextEdit_alignment_int_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return int(arg0->alignment()); +} + +Pointer qt_QTextEdit_anchorAt_string_QTextEdit_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return makestring(c,arg0->anchorAt(arg1)); +} + +bool qt_QTextEdit_canPaste_bool_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return arg0->canPaste(); +} + +Pointer qt_QTextEdit_createStandardContextMenu_QMenu_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return makeinstance(c, arg0->createStandardContextMenu(), "qt.QMenu"); +} + +Pointer qt_QTextEdit_createStandardContextMenu_QMenu_QTextEdit_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_position) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_position); + return makeinstance(c, arg0->createStandardContextMenu(arg1), "qt.QMenu"); +} + +Pointer qt_QTextEdit_currentFont_QFont_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return makeqtype(c,arg0->currentFont(),"qt.QFont"); +} + +Pointer qt_QTextEdit_cursorForPosition_QTextCursor_QTextEdit_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return makeqtype(c,arg0->cursorForPosition(arg1),"qt.QTextCursor"); +} + +Pointer qt_QTextEdit_cursorRect_QRect_QTextEdit_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cursor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + const QTextCursor arg1 = getqtype(param_cursor); + return makeqtype(c,arg0->cursorRect(arg1),"qt.QRect"); +} + +Pointer qt_QTextEdit_cursorRect_QRect_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return makeqtype(c,arg0->cursorRect(),"qt.QRect"); +} + +void qt_QTextEdit_ensureCursorVisible_void_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + arg0->ensureCursorVisible(); +} + +bool qt_QTextEdit_find_bool_QTextEdit_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_exp, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + const QString arg1 = qstring(param_exp); + QTextDocument::FindFlags arg2 = (QTextDocument::FindFlags)(param_options); + return arg0->find(arg1, arg2); +} + +bool qt_QTextEdit_find_bool_QTextEdit_QRegularExpression_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_exp, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + const QRegularExpression arg1 = getqtype(param_exp); + QTextDocument::FindFlags arg2 = (QTextDocument::FindFlags)(param_options); + return arg0->find(arg1, arg2); +} + +Pointer qt_QTextEdit_fontFamily_string_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return makestring(c,arg0->fontFamily()); +} + +bool qt_QTextEdit_fontItalic_bool_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return arg0->fontItalic(); +} + +double qt_QTextEdit_fontPointSize_double_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return arg0->fontPointSize(); +} + +bool qt_QTextEdit_fontUnderline_bool_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return arg0->fontUnderline(); +} + +int qt_QTextEdit_fontWeight_int_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return arg0->fontWeight(); +} + +Pointer qt_QTextEdit_loadResource_QVariant_QTextEdit_int_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type, Pointer param_name) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + int arg1 = (int)(param_type); + const QUrl arg2 = getqtype(param_name); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTextEdit::loadResource(arg1, arg2),"qt.QVariant") : makeqtype(c,arg0->loadResource(arg1, arg2),"qt.QVariant"); +} + +void qt_QTextEdit_moveCursor_void_QTextEdit_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_operation, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QTextCursor::MoveOperation arg1 = (QTextCursor::MoveOperation)(param_operation); + QTextCursor::MoveMode arg2 = (QTextCursor::MoveMode)(param_mode); + arg0->moveCursor(arg1, arg2); +} + +void qt_QTextEdit_setTextCursor_void_QTextEdit_QTextCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cursor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + const QTextCursor arg1 = getqtype(param_cursor); + arg0->setTextCursor(arg1); +} + +Pointer qt_QTextEdit_textBackgroundColor_QColor_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return makeqtype(c,arg0->textBackgroundColor(),"qt.QColor"); +} + +Pointer qt_QTextEdit_textColor_QColor_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return makeqtype(c,arg0->textColor(),"qt.QColor"); +} + +Pointer qt_QTextEdit_textCursor_QTextCursor_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return makeqtype(c,arg0->textCursor(),"qt.QTextCursor"); +} + +Pointer qt_QTextEdit_toPlainText_string_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return makestring(c,arg0->toPlainText()); +} + +Pointer qt_QTextEdit_inputMethodQuery_QVariant_QTextEdit_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_property) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_property); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTextEdit::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +bool qt_QTextEdit_canInsertFromMimeData_bool_QTextEdit_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_source) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + const QMimeData * arg1 = object(param_source); + return isMuQtObject(arg0) ? ((MuQt_QTextEdit*)arg0)->canInsertFromMimeData_pub_parent(arg1) : ((MuQt_QTextEdit*)arg0)->canInsertFromMimeData_pub(arg1); +} + +Pointer qt_QTextEdit_createMimeDataFromSelection_QMimeData_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeinstance(c, ((MuQt_QTextEdit*)arg0)->createMimeDataFromSelection_pub_parent(), "qt.QMimeData") : makeinstance(c, ((MuQt_QTextEdit*)arg0)->createMimeDataFromSelection_pub(), "qt.QMimeData"); +} + +void qt_QTextEdit_insertFromMimeData_void_QTextEdit_QMimeData(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_source) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + const QMimeData * arg1 = object(param_source); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->insertFromMimeData_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->insertFromMimeData_pub(arg1); +} + +void qt_QTextEdit_changeEvent_void_QTextEdit_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->changeEvent_pub(arg1); +} + +void qt_QTextEdit_contextMenuEvent_void_QTextEdit_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QTextEdit_dragEnterEvent_void_QTextEdit_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QTextEdit_dragLeaveEvent_void_QTextEdit_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QTextEdit_dragMoveEvent_void_QTextEdit_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QTextEdit_dropEvent_void_QTextEdit_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->dropEvent_pub(arg1); +} + +void qt_QTextEdit_focusInEvent_void_QTextEdit_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QTextEdit_focusNextPrevChild_bool_QTextEdit_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QTextEdit*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QTextEdit*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QTextEdit_focusOutEvent_void_QTextEdit_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QTextEdit_keyPressEvent_void_QTextEdit_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QTextEdit_keyReleaseEvent_void_QTextEdit_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QTextEdit_mouseDoubleClickEvent_void_QTextEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QTextEdit_mouseMoveEvent_void_QTextEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QTextEdit_mousePressEvent_void_QTextEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QTextEdit_mouseReleaseEvent_void_QTextEdit_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QTextEdit_paintEvent_void_QTextEdit_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->paintEvent_pub(arg1); +} + +void qt_QTextEdit_resizeEvent_void_QTextEdit_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QTextEdit_scrollContentsBy_void_QTextEdit_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QTextEdit*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +void qt_QTextEdit_showEvent_void_QTextEdit_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p13) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param__p13); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->showEvent_pub(arg1); +} + +void qt_QTextEdit_wheelEvent_void_QTextEdit_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTextEdit*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QTextEdit*)arg0)->wheelEvent_pub(arg1); +} + +void qt_QTextEdit_setupViewport_void_QTextEdit_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_viewport) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QWidget * arg1 = object(param_viewport); + if (isMuQtObject(arg0)) arg0->QTextEdit::setupViewport(arg1); + else arg0->setupViewport(arg1); +} + +Pointer qt_QTextEdit_minimumSizeHint_QSize_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTextEdit::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QTextEdit_sizeHint_QSize_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTextEdit::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +bool qt_QTextEdit_viewportEvent_bool_QTextEdit_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QTextEdit*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QTextEdit*)arg0)->viewportEvent_pub(arg1); +} + +Pointer qt_QTextEdit_viewportSizeHint_QSize_QTextEdit(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTextEdit*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QTextEdit*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +bool qt_QTextEdit_event_bool_QTextEdit_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextEdit* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QTextEdit*)arg0)->event_pub_parent(arg1) : ((MuQt_QTextEdit*)arg0)->event_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTextEdit0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_QTextEdit_QTextEdit_QTextEdit_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTextEdit1, Pointer) +{ + NODE_RETURN(qt_QTextEdit_QTextEdit_QTextEdit_QTextEdit_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_alignment0, int) +{ + NODE_RETURN(qt_QTextEdit_alignment_int_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_anchorAt0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_anchorAt_string_QTextEdit_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canPaste0, bool) +{ + NODE_RETURN(qt_QTextEdit_canPaste_bool_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createStandardContextMenu0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_createStandardContextMenu_QMenu_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createStandardContextMenu1, Pointer) +{ + NODE_RETURN(qt_QTextEdit_createStandardContextMenu_QMenu_QTextEdit_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentFont0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_currentFont_QFont_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cursorForPosition0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_cursorForPosition_QTextCursor_QTextEdit_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cursorRect0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_cursorRect_QRect_QTextEdit_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cursorRect1, Pointer) +{ + NODE_RETURN(qt_QTextEdit_cursorRect_QRect_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_ensureCursorVisible0, void) +{ + qt_QTextEdit_ensureCursorVisible_void_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_find0, bool) +{ + NODE_RETURN(qt_QTextEdit_find_bool_QTextEdit_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_find1, bool) +{ + NODE_RETURN(qt_QTextEdit_find_bool_QTextEdit_QRegularExpression_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_fontFamily0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_fontFamily_string_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fontItalic0, bool) +{ + NODE_RETURN(qt_QTextEdit_fontItalic_bool_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fontPointSize0, double) +{ + NODE_RETURN(qt_QTextEdit_fontPointSize_double_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fontUnderline0, bool) +{ + NODE_RETURN(qt_QTextEdit_fontUnderline_bool_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fontWeight0, int) +{ + NODE_RETURN(qt_QTextEdit_fontWeight_int_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_loadResource0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_loadResource_QVariant_QTextEdit_int_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_moveCursor0, void) +{ + qt_QTextEdit_moveCursor_void_QTextEdit_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setTextCursor0, void) +{ + qt_QTextEdit_setTextCursor_void_QTextEdit_QTextCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_textBackgroundColor0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_textBackgroundColor_QColor_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_textColor0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_textColor_QColor_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_textCursor0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_textCursor_QTextCursor_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toPlainText0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_toPlainText_string_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_inputMethodQuery_QVariant_QTextEdit_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_canInsertFromMimeData0, bool) +{ + NODE_RETURN(qt_QTextEdit_canInsertFromMimeData_bool_QTextEdit_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createMimeDataFromSelection0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_createMimeDataFromSelection_QMimeData_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertFromMimeData0, void) +{ + qt_QTextEdit_insertFromMimeData_void_QTextEdit_QMimeData(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QTextEdit_changeEvent_void_QTextEdit_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QTextEdit_contextMenuEvent_void_QTextEdit_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QTextEdit_dragEnterEvent_void_QTextEdit_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QTextEdit_dragLeaveEvent_void_QTextEdit_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QTextEdit_dragMoveEvent_void_QTextEdit_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QTextEdit_dropEvent_void_QTextEdit_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QTextEdit_focusInEvent_void_QTextEdit_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QTextEdit_focusNextPrevChild_bool_QTextEdit_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QTextEdit_focusOutEvent_void_QTextEdit_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QTextEdit_keyPressEvent_void_QTextEdit_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QTextEdit_keyReleaseEvent_void_QTextEdit_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QTextEdit_mouseDoubleClickEvent_void_QTextEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QTextEdit_mouseMoveEvent_void_QTextEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QTextEdit_mousePressEvent_void_QTextEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QTextEdit_mouseReleaseEvent_void_QTextEdit_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QTextEdit_paintEvent_void_QTextEdit_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QTextEdit_resizeEvent_void_QTextEdit_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QTextEdit_scrollContentsBy_void_QTextEdit_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QTextEdit_showEvent_void_QTextEdit_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QTextEdit_wheelEvent_void_QTextEdit_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setupViewport0, void) +{ + qt_QTextEdit_setupViewport_void_QTextEdit_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_minimumSizeHint_QSize_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_sizeHint_QSize_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QTextEdit_viewportEvent_bool_QTextEdit_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QTextEdit_viewportSizeHint_QSize_QTextEdit(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTextEdit_event_bool_QTextEdit_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QTextEditType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTextEdit_QTextEdit_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTextEdit", _n_QTextEdit0, None, Compiled, qt_QTextEdit_QTextEdit_QTextEdit_QTextEdit_QWidget, Return, "qt.QTextEdit", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QTextEdit", _n_QTextEdit1, None, Compiled, qt_QTextEdit_QTextEdit_QTextEdit_QTextEdit_string_QWidget, Return, "qt.QTextEdit", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "text", "string"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: acceptRichText (bool; QTextEdit this) + new Function(c, "alignment", _n_alignment0, None, Compiled, qt_QTextEdit_alignment_int_QTextEdit, Return, "int", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "anchorAt", _n_anchorAt0, None, Compiled, qt_QTextEdit_anchorAt_string_QTextEdit_QPoint, Return, "string", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "pos", "qt.QPoint"), End), + // PROP: autoFormatting (flags QTextEdit::AutoFormatting; QTextEdit this) + new Function(c, "canPaste", _n_canPaste0, None, Compiled, qt_QTextEdit_canPaste_bool_QTextEdit, Return, "bool", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "createStandardContextMenu", _n_createStandardContextMenu0, None, Compiled, qt_QTextEdit_createStandardContextMenu_QMenu_QTextEdit, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "createStandardContextMenu", _n_createStandardContextMenu1, None, Compiled, qt_QTextEdit_createStandardContextMenu_QMenu_QTextEdit_QPoint, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "position", "qt.QPoint"), End), + // MISSING: currentCharFormat ("QTextCharFormat"; QTextEdit this) + new Function(c, "currentFont", _n_currentFont0, None, Compiled, qt_QTextEdit_currentFont_QFont_QTextEdit, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "cursorForPosition", _n_cursorForPosition0, None, Compiled, qt_QTextEdit_cursorForPosition_QTextCursor_QTextEdit_QPoint, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "cursorRect", _n_cursorRect0, None, Compiled, qt_QTextEdit_cursorRect_QRect_QTextEdit_QTextCursor, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "cursor", "qt.QTextCursor"), End), + new Function(c, "cursorRect", _n_cursorRect1, None, Compiled, qt_QTextEdit_cursorRect_QRect_QTextEdit, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + // PROP: cursorWidth (int; QTextEdit this) + // PROP: document (QTextDocument; QTextEdit this) + // PROP: documentTitle (string; QTextEdit this) + new Function(c, "ensureCursorVisible", _n_ensureCursorVisible0, None, Compiled, qt_QTextEdit_ensureCursorVisible_void_QTextEdit, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "find", _n_find0, None, Compiled, qt_QTextEdit_find_bool_QTextEdit_string_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "exp", "string"), new Param(c, "options", "int", Value((int)QTextDocument::FindFlags())), End), + new Function(c, "find", _n_find1, None, Compiled, qt_QTextEdit_find_bool_QTextEdit_QRegularExpression_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "exp", "qt.QRegularExpression"), new Param(c, "options", "int", Value((int)QTextDocument::FindFlags())), End), + new Function(c, "fontFamily", _n_fontFamily0, None, Compiled, qt_QTextEdit_fontFamily_string_QTextEdit, Return, "string", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "fontItalic", _n_fontItalic0, None, Compiled, qt_QTextEdit_fontItalic_bool_QTextEdit, Return, "bool", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "fontPointSize", _n_fontPointSize0, None, Compiled, qt_QTextEdit_fontPointSize_double_QTextEdit, Return, "double", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "fontUnderline", _n_fontUnderline0, None, Compiled, qt_QTextEdit_fontUnderline_bool_QTextEdit, Return, "bool", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "fontWeight", _n_fontWeight0, None, Compiled, qt_QTextEdit_fontWeight_int_QTextEdit, Return, "int", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + // PROP: isReadOnly (bool; QTextEdit this) + // PROP: isUndoRedoEnabled (bool; QTextEdit this) + // PROP: lineWrapColumnOrWidth (int; QTextEdit this) + // PROP: lineWrapMode (flags QTextEdit::LineWrapMode; QTextEdit this) + _func[0] = new MemberFunction(c, "loadResource", _n_loadResource0, None, Compiled, qt_QTextEdit_loadResource_QVariant_QTextEdit_int_QUrl, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "type", "int"), new Param(c, "name", "qt.QUrl"), End), + // MISSING: mergeCurrentCharFormat (void; QTextEdit this, "const QTextCharFormat &" modifier) + new Function(c, "moveCursor", _n_moveCursor0, None, Compiled, qt_QTextEdit_moveCursor_void_QTextEdit_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "operation", "int"), new Param(c, "mode", "int", Value((int)QTextCursor::MoveAnchor)), End), + // PROP: overwriteMode (bool; QTextEdit this) + // PROP: placeholderText (string; QTextEdit this) + // MISSING: print (void; QTextEdit this, "QPagedPaintDevice *" printer) + // PROP: setAcceptRichText (void; QTextEdit this, bool accept) + // PROP: setAutoFormatting (void; QTextEdit this, flags QTextEdit::AutoFormatting features) + // MISSING: setCurrentCharFormat (void; QTextEdit this, "const QTextCharFormat &" format) + // PROP: setCursorWidth (void; QTextEdit this, int width) + // PROP: setDocument (void; QTextEdit this, QTextDocument document) + // PROP: setDocumentTitle (void; QTextEdit this, string title) + // PROP: setLineWrapColumnOrWidth (void; QTextEdit this, int w) + // PROP: setLineWrapMode (void; QTextEdit this, flags QTextEdit::LineWrapMode mode) + // PROP: setOverwriteMode (void; QTextEdit this, bool overwrite) + // PROP: setPlaceholderText (void; QTextEdit this, string placeholderText) + // PROP: setReadOnly (void; QTextEdit this, bool ro) + // PROP: setTabChangesFocus (void; QTextEdit this, bool b) + // PROP: setTabStopDistance (void; QTextEdit this, double distance) + new Function(c, "setTextCursor", _n_setTextCursor0, None, Compiled, qt_QTextEdit_setTextCursor_void_QTextEdit_QTextCursor, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "cursor", "qt.QTextCursor"), End), + // PROP: setTextInteractionFlags (void; QTextEdit this, flags Qt::TextInteractionFlags flags) + // PROP: setUndoRedoEnabled (void; QTextEdit this, bool enable) + // PROP: setWordWrapMode (void; QTextEdit this, flags QTextOption::WrapMode policy) + // PROP: tabChangesFocus (bool; QTextEdit this) + // PROP: tabStopDistance (double; QTextEdit this) + new Function(c, "textBackgroundColor", _n_textBackgroundColor0, None, Compiled, qt_QTextEdit_textBackgroundColor_QColor_QTextEdit, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "textColor", _n_textColor0, None, Compiled, qt_QTextEdit_textColor_QColor_QTextEdit, Return, "qt.QColor", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + new Function(c, "textCursor", _n_textCursor0, None, Compiled, qt_QTextEdit_textCursor_QTextCursor_QTextEdit, Return, "qt.QTextCursor", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + // PROP: textInteractionFlags (flags Qt::TextInteractionFlags; QTextEdit this) + // PROP: toHtml (string; QTextEdit this) + // PROP: toMarkdown (string; QTextEdit this, flags QTextDocument::MarkdownFeatures features) + new Function(c, "toPlainText", _n_toPlainText0, None, Compiled, qt_QTextEdit_toPlainText_string_QTextEdit, Return, "string", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + // PROP: wordWrapMode (flags QTextOption::WrapMode; QTextEdit this) + _func[1] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QTextEdit_inputMethodQuery_QVariant_QTextEdit_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "property", "int"), End), + _func[2] = new MemberFunction(c, "canInsertFromMimeData", _n_canInsertFromMimeData0, None, Compiled, qt_QTextEdit_canInsertFromMimeData_bool_QTextEdit_QMimeData, Return, "bool", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "source", "qt.QMimeData"), End), + _func[3] = new MemberFunction(c, "createMimeDataFromSelection", _n_createMimeDataFromSelection0, None, Compiled, qt_QTextEdit_createMimeDataFromSelection_QMimeData_QTextEdit, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + _func[4] = new MemberFunction(c, "insertFromMimeData", _n_insertFromMimeData0, None, Compiled, qt_QTextEdit_insertFromMimeData_void_QTextEdit_QMimeData, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "source", "qt.QMimeData"), End), + _func[5] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QTextEdit_changeEvent_void_QTextEdit_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QEvent"), End), + _func[6] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QTextEdit_contextMenuEvent_void_QTextEdit_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[7] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QTextEdit_dragEnterEvent_void_QTextEdit_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QDragEnterEvent"), End), + _func[8] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QTextEdit_dragLeaveEvent_void_QTextEdit_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QDragLeaveEvent"), End), + _func[9] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QTextEdit_dragMoveEvent_void_QTextEdit_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QDragMoveEvent"), End), + _func[10] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QTextEdit_dropEvent_void_QTextEdit_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QDropEvent"), End), + _func[11] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QTextEdit_focusInEvent_void_QTextEdit_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[12] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QTextEdit_focusNextPrevChild_bool_QTextEdit_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "next", "bool"), End), + _func[13] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QTextEdit_focusOutEvent_void_QTextEdit_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QTextEdit this, "QInputMethodEvent *" e) // protected + _func[14] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QTextEdit_keyPressEvent_void_QTextEdit_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[15] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QTextEdit_keyReleaseEvent_void_QTextEdit_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[16] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QTextEdit_mouseDoubleClickEvent_void_QTextEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[17] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QTextEdit_mouseMoveEvent_void_QTextEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[18] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QTextEdit_mousePressEvent_void_QTextEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[19] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QTextEdit_mouseReleaseEvent_void_QTextEdit_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[20] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QTextEdit_paintEvent_void_QTextEdit_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[21] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QTextEdit_resizeEvent_void_QTextEdit_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QResizeEvent"), End), + _func[22] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QTextEdit_scrollContentsBy_void_QTextEdit_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[23] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QTextEdit_showEvent_void_QTextEdit_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "_p13", "qt.QShowEvent"), End), + _func[24] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QTextEdit_wheelEvent_void_QTextEdit_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "e", "qt.QWheelEvent"), End), + _func[25] = new MemberFunction(c, "setupViewport", _n_setupViewport0, None, Compiled, qt_QTextEdit_setupViewport_void_QTextEdit_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "viewport", "qt.QWidget"), End), + _func[26] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QTextEdit_minimumSizeHint_QSize_QTextEdit, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + _func[27] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QTextEdit_sizeHint_QSize_QTextEdit, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + _func[28] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QTextEdit_viewportEvent_bool_QTextEdit_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "event", "qt.QEvent"), End), + _func[29] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QTextEdit_viewportSizeHint_QSize_QTextEdit, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTextEdit"), End), + _func[30] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTextEdit_event_bool_QTextEdit_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTextEdit"), new Param(c, "event_", "qt.QEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTextEdit::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTextOptionType.cpp b/src/lib/mu/MuQt6/QTextOptionType.cpp new file mode 100644 index 000000000..00c28830e --- /dev/null +++ b/src/lib/mu/MuQt6/QTextOptionType.cpp @@ -0,0 +1,343 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QTextOptionType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QTextOptionType::QTextOptionType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QTextOptionType::~QTextOptionType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QTextOptionType::Instance* i = new QTextOptionType::Instance((Class*)NODE_THIS.type()); + QTextOptionType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QTextOptionType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QTextOptionType::finalizer, 0, 0, 0); +} + +void +QTextOptionType::finalizer (void* obj, void* data) +{ + QTextOptionType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QTextOption_QTextOption_QTextOption_QTextOption(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QTextOption()); + return param_this; +} + +Pointer qt_QTextOption_QTextOption_QTextOption_QTextOption_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + Qt::Alignment arg1 = (Qt::Alignment)(param_alignment); + setqtype(param_this,QTextOption(arg1)); + return param_this; +} + +int qt_QTextOption_alignment_int_QTextOption(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + return int(arg0.alignment()); +} + +int qt_QTextOption_flags_int_QTextOption(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + return int(arg0.flags()); +} + +void qt_QTextOption_setAlignment_void_QTextOption_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + Qt::Alignment arg1 = (Qt::Alignment)(param_alignment); + arg0.setAlignment(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextOption_setFlags_void_QTextOption_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + QTextOption::Flags arg1 = (QTextOption::Flags)(param_flags); + arg0.setFlags(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextOption_setTabStopDistance_void_QTextOption_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_tabStopDistance) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + qreal arg1 = (double)(param_tabStopDistance); + arg0.setTabStopDistance(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextOption_setTextDirection_void_QTextOption_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_direction) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + Qt::LayoutDirection arg1 = (Qt::LayoutDirection)(param_direction); + arg0.setTextDirection(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextOption_setUseDesignMetrics_void_QTextOption_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + bool arg1 = (bool)(param_enable); + arg0.setUseDesignMetrics(arg1); + setqtype(param_this,arg0); +} + +void qt_QTextOption_setWrapMode_void_QTextOption_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + QTextOption::WrapMode arg1 = (QTextOption::WrapMode)(param_mode); + arg0.setWrapMode(arg1); + setqtype(param_this,arg0); +} + +double qt_QTextOption_tabStopDistance_double_QTextOption(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + return arg0.tabStopDistance(); +} + +int qt_QTextOption_textDirection_int_QTextOption(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + return int(arg0.textDirection()); +} + +bool qt_QTextOption_useDesignMetrics_bool_QTextOption(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + return arg0.useDesignMetrics(); +} + +int qt_QTextOption_wrapMode_int_QTextOption(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextOption arg0 = getqtype(param_this); + return int(arg0.wrapMode()); +} + + +static NODE_IMPLEMENTATION(_n_QTextOption0, Pointer) +{ + NODE_RETURN(qt_QTextOption_QTextOption_QTextOption_QTextOption(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTextOption1, Pointer) +{ + NODE_RETURN(qt_QTextOption_QTextOption_QTextOption_QTextOption_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_alignment0, int) +{ + NODE_RETURN(qt_QTextOption_alignment_int_QTextOption(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QTextOption_flags_int_QTextOption(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAlignment0, void) +{ + qt_QTextOption_setAlignment_void_QTextOption_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFlags0, void) +{ + qt_QTextOption_setFlags_void_QTextOption_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setTabStopDistance0, void) +{ + qt_QTextOption_setTabStopDistance_void_QTextOption_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double)); +} + +static NODE_IMPLEMENTATION(_n_setTextDirection0, void) +{ + qt_QTextOption_setTextDirection_void_QTextOption_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setUseDesignMetrics0, void) +{ + qt_QTextOption_setUseDesignMetrics_void_QTextOption_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setWrapMode0, void) +{ + qt_QTextOption_setWrapMode_void_QTextOption_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_tabStopDistance0, double) +{ + NODE_RETURN(qt_QTextOption_tabStopDistance_double_QTextOption(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_textDirection0, int) +{ + NODE_RETURN(qt_QTextOption_textDirection_int_QTextOption(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_useDesignMetrics0, bool) +{ + NODE_RETURN(qt_QTextOption_useDesignMetrics_bool_QTextOption(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_wrapMode0, int) +{ + NODE_RETURN(qt_QTextOption_wrapMode_int_QTextOption(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QTextOptionType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "Flag", "int"), + new Alias(c, "Flags", "int"), + new SymbolicConstant(c, "IncludeTrailingSpaces", "int", Value(int(QTextOption::IncludeTrailingSpaces))), + new SymbolicConstant(c, "ShowTabsAndSpaces", "int", Value(int(QTextOption::ShowTabsAndSpaces))), + new SymbolicConstant(c, "ShowLineAndParagraphSeparators", "int", Value(int(QTextOption::ShowLineAndParagraphSeparators))), + new SymbolicConstant(c, "ShowDocumentTerminator", "int", Value(int(QTextOption::ShowDocumentTerminator))), + new SymbolicConstant(c, "AddSpaceForLineAndParagraphSeparators", "int", Value(int(QTextOption::AddSpaceForLineAndParagraphSeparators))), + new SymbolicConstant(c, "SuppressColors", "int", Value(int(QTextOption::SuppressColors))), + new Alias(c, "TabType", "int"), + new SymbolicConstant(c, "LeftTab", "int", Value(int(QTextOption::LeftTab))), + new SymbolicConstant(c, "RightTab", "int", Value(int(QTextOption::RightTab))), + new SymbolicConstant(c, "CenterTab", "int", Value(int(QTextOption::CenterTab))), + new SymbolicConstant(c, "DelimiterTab", "int", Value(int(QTextOption::DelimiterTab))), + new Alias(c, "WrapMode", "int"), + new SymbolicConstant(c, "NoWrap", "int", Value(int(QTextOption::NoWrap))), + new SymbolicConstant(c, "WordWrap", "int", Value(int(QTextOption::WordWrap))), + new SymbolicConstant(c, "ManualWrap", "int", Value(int(QTextOption::ManualWrap))), + new SymbolicConstant(c, "WrapAnywhere", "int", Value(int(QTextOption::WrapAnywhere))), + new SymbolicConstant(c, "WrapAtWordBoundaryOrAnywhere", "int", Value(int(QTextOption::WrapAtWordBoundaryOrAnywhere))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QTextOption", _n_QTextOption0, None, Compiled, qt_QTextOption_QTextOption_QTextOption_QTextOption, Return, "qt.QTextOption", Parameters, new Param(c, "this", "qt.QTextOption"), End), + new Function(c, "QTextOption", _n_QTextOption1, None, Compiled, qt_QTextOption_QTextOption_QTextOption_QTextOption_int, Return, "qt.QTextOption", Parameters, new Param(c, "this", "qt.QTextOption"), new Param(c, "alignment", "int"), End), + // MISSING: QTextOption (QTextOption; QTextOption this, QTextOption other) + new Function(c, "alignment", _n_alignment0, None, Compiled, qt_QTextOption_alignment_int_QTextOption, Return, "int", Parameters, new Param(c, "this", "qt.QTextOption"), End), + new Function(c, "flags", _n_flags0, None, Compiled, qt_QTextOption_flags_int_QTextOption, Return, "int", Parameters, new Param(c, "this", "qt.QTextOption"), End), + new Function(c, "setAlignment", _n_setAlignment0, None, Compiled, qt_QTextOption_setAlignment_void_QTextOption_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextOption"), new Param(c, "alignment", "int"), End), + new Function(c, "setFlags", _n_setFlags0, None, Compiled, qt_QTextOption_setFlags_void_QTextOption_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextOption"), new Param(c, "flags", "int"), End), + // MISSING: setTabArray (void; QTextOption this, "const QList &" tabStops) + new Function(c, "setTabStopDistance", _n_setTabStopDistance0, None, Compiled, qt_QTextOption_setTabStopDistance_void_QTextOption_double, Return, "void", Parameters, new Param(c, "this", "qt.QTextOption"), new Param(c, "tabStopDistance", "double"), End), + new Function(c, "setTextDirection", _n_setTextDirection0, None, Compiled, qt_QTextOption_setTextDirection_void_QTextOption_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextOption"), new Param(c, "direction", "int"), End), + new Function(c, "setUseDesignMetrics", _n_setUseDesignMetrics0, None, Compiled, qt_QTextOption_setUseDesignMetrics_void_QTextOption_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTextOption"), new Param(c, "enable", "bool"), End), + new Function(c, "setWrapMode", _n_setWrapMode0, None, Compiled, qt_QTextOption_setWrapMode_void_QTextOption_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextOption"), new Param(c, "mode", "int"), End), + // MISSING: tabArray ("QList"; QTextOption this) + new Function(c, "tabStopDistance", _n_tabStopDistance0, None, Compiled, qt_QTextOption_tabStopDistance_double_QTextOption, Return, "double", Parameters, new Param(c, "this", "qt.QTextOption"), End), + new Function(c, "textDirection", _n_textDirection0, None, Compiled, qt_QTextOption_textDirection_int_QTextOption, Return, "int", Parameters, new Param(c, "this", "qt.QTextOption"), End), + new Function(c, "useDesignMetrics", _n_useDesignMetrics0, None, Compiled, qt_QTextOption_useDesignMetrics_bool_QTextOption, Return, "bool", Parameters, new Param(c, "this", "qt.QTextOption"), End), + new Function(c, "wrapMode", _n_wrapMode0, None, Compiled, qt_QTextOption_wrapMode_int_QTextOption, Return, "int", Parameters, new Param(c, "this", "qt.QTextOption"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + // MISSING: = (QTextOption; QTextOption this, QTextOption other) + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTextStreamType.cpp b/src/lib/mu/MuQt6/QTextStreamType.cpp new file mode 100644 index 000000000..4c8f8184c --- /dev/null +++ b/src/lib/mu/MuQt6/QTextStreamType.cpp @@ -0,0 +1,658 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QTextStreamType::QTextStreamType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QTextStreamType::~QTextStreamType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +bool qt_QTextStream_atEnd_bool_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return arg0->atEnd(); +} + +bool qt_QTextStream_autoDetectUnicode_bool_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return arg0->autoDetectUnicode(); +} + +Pointer qt_QTextStream_device_QIODevice_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return makeinstance(c, arg0->device(), "qt.QIODevice"); +} + +int qt_QTextStream_encoding_int_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return int(arg0->encoding()); +} + +int qt_QTextStream_fieldAlignment_int_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return int(arg0->fieldAlignment()); +} + +int qt_QTextStream_fieldWidth_int_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return arg0->fieldWidth(); +} + +void qt_QTextStream_flush_void_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + arg0->flush(); +} + +bool qt_QTextStream_generateByteOrderMark_bool_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return arg0->generateByteOrderMark(); +} + +int qt_QTextStream_integerBase_int_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return arg0->integerBase(); +} + +int qt_QTextStream_numberFlags_int_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return int(arg0->numberFlags()); +} + +int64 qt_QTextStream_pos_int64_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return arg0->pos(); +} + +Pointer qt_QTextStream_read_string_QTextStream_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxlen) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + qint64 arg1 = (int64)(param_maxlen); + return makestring(c,arg0->read(arg1)); +} + +Pointer qt_QTextStream_readAll_string_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return makestring(c,arg0->readAll()); +} + +Pointer qt_QTextStream_readLine_string_QTextStream_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxlen) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + qint64 arg1 = (int64)(param_maxlen); + return makestring(c,arg0->readLine(arg1)); +} + +int qt_QTextStream_realNumberNotation_int_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return int(arg0->realNumberNotation()); +} + +int qt_QTextStream_realNumberPrecision_int_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return arg0->realNumberPrecision(); +} + +void qt_QTextStream_reset_void_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + arg0->reset(); +} + +void qt_QTextStream_resetStatus_void_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + arg0->resetStatus(); +} + +bool qt_QTextStream_seek_bool_QTextStream_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + qint64 arg1 = (int64)(param_pos); + return arg0->seek(arg1); +} + +void qt_QTextStream_setAutoDetectUnicode_void_QTextStream_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_enabled); + arg0->setAutoDetectUnicode(arg1); +} + +void qt_QTextStream_setDevice_void_QTextStream_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_device) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + QIODevice * arg1 = object(param_device); + arg0->setDevice(arg1); +} + +void qt_QTextStream_setEncoding_void_QTextStream_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_encoding) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + QStringConverter::Encoding arg1 = (QStringConverter::Encoding)(param_encoding); + arg0->setEncoding(arg1); +} + +void qt_QTextStream_setFieldAlignment_void_QTextStream_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + QTextStream::FieldAlignment arg1 = (QTextStream::FieldAlignment)(param_mode); + arg0->setFieldAlignment(arg1); +} + +void qt_QTextStream_setFieldWidth_void_QTextStream_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_width) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + int arg1 = (int)(param_width); + arg0->setFieldWidth(arg1); +} + +void qt_QTextStream_setGenerateByteOrderMark_void_QTextStream_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_generate) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_generate); + arg0->setGenerateByteOrderMark(arg1); +} + +void qt_QTextStream_setIntegerBase_void_QTextStream_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_base) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + int arg1 = (int)(param_base); + arg0->setIntegerBase(arg1); +} + +void qt_QTextStream_setNumberFlags_void_QTextStream_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + QTextStream::NumberFlags arg1 = (QTextStream::NumberFlags)(param_flags); + arg0->setNumberFlags(arg1); +} + +void qt_QTextStream_setRealNumberNotation_void_QTextStream_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_notation) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + QTextStream::RealNumberNotation arg1 = (QTextStream::RealNumberNotation)(param_notation); + arg0->setRealNumberNotation(arg1); +} + +void qt_QTextStream_setRealNumberPrecision_void_QTextStream_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_precision) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + int arg1 = (int)(param_precision); + arg0->setRealNumberPrecision(arg1); +} + +void qt_QTextStream_setStatus_void_QTextStream_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_status) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + QTextStream::Status arg1 = (QTextStream::Status)(param_status); + arg0->setStatus(arg1); +} + +void qt_QTextStream_skipWhiteSpace_void_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + arg0->skipWhiteSpace(); +} + +int qt_QTextStream_status_int_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(param_this); + return int(arg0->status()); +} + + +static NODE_IMPLEMENTATION(_n_atEnd0, bool) +{ + NODE_RETURN(qt_QTextStream_atEnd_bool_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_autoDetectUnicode0, bool) +{ + NODE_RETURN(qt_QTextStream_autoDetectUnicode_bool_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_device0, Pointer) +{ + NODE_RETURN(qt_QTextStream_device_QIODevice_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_encoding0, int) +{ + NODE_RETURN(qt_QTextStream_encoding_int_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fieldAlignment0, int) +{ + NODE_RETURN(qt_QTextStream_fieldAlignment_int_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fieldWidth0, int) +{ + NODE_RETURN(qt_QTextStream_fieldWidth_int_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_flush0, void) +{ + qt_QTextStream_flush_void_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_generateByteOrderMark0, bool) +{ + NODE_RETURN(qt_QTextStream_generateByteOrderMark_bool_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_integerBase0, int) +{ + NODE_RETURN(qt_QTextStream_integerBase_int_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_numberFlags0, int) +{ + NODE_RETURN(qt_QTextStream_numberFlags_int_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pos0, int64) +{ + NODE_RETURN(qt_QTextStream_pos_int64_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_read0, Pointer) +{ + NODE_RETURN(qt_QTextStream_read_string_QTextStream_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_readAll0, Pointer) +{ + NODE_RETURN(qt_QTextStream_readAll_string_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_readLine0, Pointer) +{ + NODE_RETURN(qt_QTextStream_readLine_string_QTextStream_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_realNumberNotation0, int) +{ + NODE_RETURN(qt_QTextStream_realNumberNotation_int_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_realNumberPrecision0, int) +{ + NODE_RETURN(qt_QTextStream_realNumberPrecision_int_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_reset0, void) +{ + qt_QTextStream_reset_void_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resetStatus0, void) +{ + qt_QTextStream_resetStatus_void_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_seek0, bool) +{ + NODE_RETURN(qt_QTextStream_seek_bool_QTextStream_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + +static NODE_IMPLEMENTATION(_n_setAutoDetectUnicode0, void) +{ + qt_QTextStream_setAutoDetectUnicode_void_QTextStream_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setDevice0, void) +{ + qt_QTextStream_setDevice_void_QTextStream_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setEncoding0, void) +{ + qt_QTextStream_setEncoding_void_QTextStream_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFieldAlignment0, void) +{ + qt_QTextStream_setFieldAlignment_void_QTextStream_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFieldWidth0, void) +{ + qt_QTextStream_setFieldWidth_void_QTextStream_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setGenerateByteOrderMark0, void) +{ + qt_QTextStream_setGenerateByteOrderMark_void_QTextStream_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setIntegerBase0, void) +{ + qt_QTextStream_setIntegerBase_void_QTextStream_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setNumberFlags0, void) +{ + qt_QTextStream_setNumberFlags_void_QTextStream_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setRealNumberNotation0, void) +{ + qt_QTextStream_setRealNumberNotation_void_QTextStream_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setRealNumberPrecision0, void) +{ + qt_QTextStream_setRealNumberPrecision_void_QTextStream_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setStatus0, void) +{ + qt_QTextStream_setStatus_void_QTextStream_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_skipWhiteSpace0, void) +{ + qt_QTextStream_skipWhiteSpace_void_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_status0, int) +{ + NODE_RETURN(qt_QTextStream_status_int_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// Pointer qt_QTextStream_QTextStream_QTextStream_QTextStream_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_string, int param_openMode) +// { +// MuLangContext* c = static_cast(NODE_THREAD.context()); +// QString arg1 = qstring(param_string); +// QIODevice::OpenMode arg2 = (QIODevice::OpenMode)(param_openMode); +// setqpointer(param_this,new QTextStream(arg1, arg2)); +// return param_this; +// } + +Pointer qt_QTextStream_QTextStream_QTextStream_QTextStream_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_device) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice * arg1 = object(param_device); + setqpointer(param_this,new QTextStream(arg1)); + return param_this; +} + +Pointer qt_QTextStream_QTextStream_QTextStream_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqpointer(param_this,new QTextStream()); + return param_this; +} + +Pointer qt_QTextStream_QTextStream_QTextStream_QTextStream_QByteArray_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_array, int param_openMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray * arg1 = &getqtype(param_array); + QIODeviceBase::OpenMode arg2 = (QIODeviceBase::OpenMode)(param_openMode); + setqpointer(param_this,new QTextStream(arg1, arg2)); + return param_this; +} + +static void +print_void_qt_QTextStream_string(Thread& NODE_THREAD, Pointer obj, Pointer p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(obj); + QString arg1 = qstring(p); + *arg0 << arg1; +} + +// static NODE_IMPLEMENTATION(_n_QTextStream3, Pointer) +// { +// NODE_RETURN(qt_QTextStream_QTextStream_QTextStream_QTextStream_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +// } + +static NODE_IMPLEMENTATION(_n_QTextStream0, Pointer) +{ + NODE_RETURN(qt_QTextStream_QTextStream_QTextStream_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTextStream1, Pointer) +{ + NODE_RETURN(qt_QTextStream_QTextStream_QTextStream_QTextStream_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTextStream5, Pointer) +{ + NODE_RETURN(qt_QTextStream_QTextStream_QTextStream_QTextStream_QByteArray_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(printTextStream, void) +{ + print_void_qt_QTextStream_string(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer)); +} + +void +QTextStreamType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + new Alias(c, "FieldAlignment", "int"), + new SymbolicConstant(c, "AlignLeft", "int", Value(int(QTextStream::AlignLeft))), + new SymbolicConstant(c, "AlignRight", "int", Value(int(QTextStream::AlignRight))), + new SymbolicConstant(c, "AlignCenter", "int", Value(int(QTextStream::AlignCenter))), + new SymbolicConstant(c, "AlignAccountingStyle", "int", Value(int(QTextStream::AlignAccountingStyle))), + new Alias(c, "NumberFlag", "int"), + new Alias(c, "NumberFlags", "int"), + new SymbolicConstant(c, "ShowBase", "int", Value(int(QTextStream::ShowBase))), + new SymbolicConstant(c, "ForcePoint", "int", Value(int(QTextStream::ForcePoint))), + new SymbolicConstant(c, "ForceSign", "int", Value(int(QTextStream::ForceSign))), + new SymbolicConstant(c, "UppercaseBase", "int", Value(int(QTextStream::UppercaseBase))), + new SymbolicConstant(c, "UppercaseDigits", "int", Value(int(QTextStream::UppercaseDigits))), + new Alias(c, "RealNumberNotation", "int"), + new SymbolicConstant(c, "ScientificNotation", "int", Value(int(QTextStream::ScientificNotation))), + new SymbolicConstant(c, "FixedNotation", "int", Value(int(QTextStream::FixedNotation))), + new SymbolicConstant(c, "SmartNotation", "int", Value(int(QTextStream::SmartNotation))), + new Alias(c, "Status", "int"), + new SymbolicConstant(c, "Ok", "int", Value(int(QTextStream::Ok))), + new SymbolicConstant(c, "ReadPastEnd", "int", Value(int(QTextStream::ReadPastEnd))), + new SymbolicConstant(c, "ReadCorruptData", "int", Value(int(QTextStream::ReadCorruptData))), + new SymbolicConstant(c, "WriteFailed", "int", Value(int(QTextStream::WriteFailed))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "atEnd", _n_atEnd0, None, Compiled, qt_QTextStream_atEnd_bool_QTextStream, Return, "bool", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "autoDetectUnicode", _n_autoDetectUnicode0, None, Compiled, qt_QTextStream_autoDetectUnicode_bool_QTextStream, Return, "bool", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "device", _n_device0, None, Compiled, qt_QTextStream_device_QIODevice_QTextStream, Return, "qt.QIODevice", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "encoding", _n_encoding0, None, Compiled, qt_QTextStream_encoding_int_QTextStream, Return, "int", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "fieldAlignment", _n_fieldAlignment0, None, Compiled, qt_QTextStream_fieldAlignment_int_QTextStream, Return, "int", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "fieldWidth", _n_fieldWidth0, None, Compiled, qt_QTextStream_fieldWidth_int_QTextStream, Return, "int", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "flush", _n_flush0, None, Compiled, qt_QTextStream_flush_void_QTextStream, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "generateByteOrderMark", _n_generateByteOrderMark0, None, Compiled, qt_QTextStream_generateByteOrderMark_bool_QTextStream, Return, "bool", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "integerBase", _n_integerBase0, None, Compiled, qt_QTextStream_integerBase_int_QTextStream, Return, "int", Parameters, new Param(c, "this", "qt.QTextStream"), End), + // MISSING: locale ("QLocale"; QTextStream this) + new Function(c, "numberFlags", _n_numberFlags0, None, Compiled, qt_QTextStream_numberFlags_int_QTextStream, Return, "int", Parameters, new Param(c, "this", "qt.QTextStream"), End), + // MISSING: padChar ("QChar"; QTextStream this) + new Function(c, "pos", _n_pos0, None, Compiled, qt_QTextStream_pos_int64_QTextStream, Return, "int64", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "read", _n_read0, None, Compiled, qt_QTextStream_read_string_QTextStream_int64, Return, "string", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "maxlen", "int64"), End), + new Function(c, "readAll", _n_readAll0, None, Compiled, qt_QTextStream_readAll_string_QTextStream, Return, "string", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "readLine", _n_readLine0, None, Compiled, qt_QTextStream_readLine_string_QTextStream_int64, Return, "string", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "maxlen", "int64"), End), + new Function(c, "realNumberNotation", _n_realNumberNotation0, None, Compiled, qt_QTextStream_realNumberNotation_int_QTextStream, Return, "int", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "realNumberPrecision", _n_realNumberPrecision0, None, Compiled, qt_QTextStream_realNumberPrecision_int_QTextStream, Return, "int", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "reset", _n_reset0, None, Compiled, qt_QTextStream_reset_void_QTextStream, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "resetStatus", _n_resetStatus0, None, Compiled, qt_QTextStream_resetStatus_void_QTextStream, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "seek", _n_seek0, None, Compiled, qt_QTextStream_seek_bool_QTextStream_int64, Return, "bool", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "pos", "int64"), End), + new Function(c, "setAutoDetectUnicode", _n_setAutoDetectUnicode0, None, Compiled, qt_QTextStream_setAutoDetectUnicode_void_QTextStream_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "enabled", "bool"), End), + new Function(c, "setDevice", _n_setDevice0, None, Compiled, qt_QTextStream_setDevice_void_QTextStream_QIODevice, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "device", "qt.QIODevice"), End), + new Function(c, "setEncoding", _n_setEncoding0, None, Compiled, qt_QTextStream_setEncoding_void_QTextStream_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "encoding", "int"), End), + new Function(c, "setFieldAlignment", _n_setFieldAlignment0, None, Compiled, qt_QTextStream_setFieldAlignment_void_QTextStream_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "mode", "int"), End), + new Function(c, "setFieldWidth", _n_setFieldWidth0, None, Compiled, qt_QTextStream_setFieldWidth_void_QTextStream_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "width", "int"), End), + new Function(c, "setGenerateByteOrderMark", _n_setGenerateByteOrderMark0, None, Compiled, qt_QTextStream_setGenerateByteOrderMark_void_QTextStream_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "generate", "bool"), End), + new Function(c, "setIntegerBase", _n_setIntegerBase0, None, Compiled, qt_QTextStream_setIntegerBase_void_QTextStream_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "base", "int"), End), + // MISSING: setLocale (void; QTextStream this, "const QLocale &" locale) + new Function(c, "setNumberFlags", _n_setNumberFlags0, None, Compiled, qt_QTextStream_setNumberFlags_void_QTextStream_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "flags", "int"), End), + // MISSING: setPadChar (void; QTextStream this, "QChar" ch) + new Function(c, "setRealNumberNotation", _n_setRealNumberNotation0, None, Compiled, qt_QTextStream_setRealNumberNotation_void_QTextStream_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "notation", "int"), End), + new Function(c, "setRealNumberPrecision", _n_setRealNumberPrecision0, None, Compiled, qt_QTextStream_setRealNumberPrecision_void_QTextStream_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "precision", "int"), End), + new Function(c, "setStatus", _n_setStatus0, None, Compiled, qt_QTextStream_setStatus_void_QTextStream_int, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "status", "int"), End), + new Function(c, "skipWhiteSpace", _n_skipWhiteSpace0, None, Compiled, qt_QTextStream_skipWhiteSpace_void_QTextStream, Return, "void", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "status", _n_status0, None, Compiled, qt_QTextStream_status_int_QTextStream, Return, "int", Parameters, new Param(c, "this", "qt.QTextStream"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +globalScope()-> +addSymbols( new Function(c, "print", printTextStream, None, + Return, "void", + Compiled, print_void_qt_QTextStream_string, + Parameters, + new Param(c, "textstream", "qt.QTextStream"), + new Param(c, "outputString", "string"), + End), + + new Function(c, "QTextStream", _n_QTextStream0, None, Compiled, qt_QTextStream_QTextStream_QTextStream_QTextStream, Return, "qt.QTextStream", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "QTextStream", _n_QTextStream1, None, Compiled, qt_QTextStream_QTextStream_QTextStream_QTextStream_QIODevice, Return, "qt.QTextStream", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "device", "qt.QIODevice"), End), + // Can't use this one yet + //new Function(c, "QTextStream", _n_QTextStream3, None, Compiled, qt_QTextStream_QTextStream_QTextStream_QTextStream_string_int, Return, "qt.QTextStream", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "string", "string"), new Param(c, "openMode", "int"), End), + new Function(c, "QTextStream", _n_QTextStream5, None, Compiled, qt_QTextStream_QTextStream_QTextStream_QTextStream_QByteArray_int, Return, "qt.QTextStream", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "array", "qt.QByteArray"), new Param(c, "openMode", "int"), End), + + EndArguments); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTimeType.cpp b/src/lib/mu/MuQt6/QTimeType.cpp new file mode 100644 index 000000000..83f4a64d9 --- /dev/null +++ b/src/lib/mu/MuQt6/QTimeType.cpp @@ -0,0 +1,420 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QTimeType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QTimeType::QTimeType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QTimeType::~QTimeType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QTimeType::Instance* i = new QTimeType::Instance((Class*)NODE_THIS.type()); + QTimeType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QTimeType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QTimeType::finalizer, 0, 0, 0); +} + +void +QTimeType::finalizer (void* obj, void* data) +{ + QTimeType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QTime_QTime_QTime_QTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QTime()); + return param_this; +} + +Pointer qt_QTime_QTime_QTime_QTime_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_h, int param_m, int param_s, int param_ms) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_h); + int arg2 = (int)(param_m); + int arg3 = (int)(param_s); + int arg4 = (int)(param_ms); + setqtype(param_this,QTime(arg1, arg2, arg3, arg4)); + return param_this; +} + +Pointer qt_QTime_addMSecs_QTime_QTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_ms) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + int arg1 = (int)(param_ms); + return makeqtype(c,arg0.addMSecs(arg1),"qt.QTime"); +} + +Pointer qt_QTime_addSecs_QTime_QTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_s) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + int arg1 = (int)(param_s); + return makeqtype(c,arg0.addSecs(arg1),"qt.QTime"); +} + +int qt_QTime_hour_int_QTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + return arg0.hour(); +} + +bool qt_QTime_isNull_bool_QTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + return arg0.isNull(); +} + +bool qt_QTime_isValid_bool_QTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + return arg0.isValid(); +} + +int qt_QTime_minute_int_QTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + return arg0.minute(); +} + +int qt_QTime_msec_int_QTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + return arg0.msec(); +} + +int qt_QTime_msecsSinceStartOfDay_int_QTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + return arg0.msecsSinceStartOfDay(); +} + +int qt_QTime_msecsTo_int_QTime_QTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_t) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + QTime arg1 = getqtype(param_t); + return arg0.msecsTo(arg1); +} + +int qt_QTime_second_int_QTime(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + return arg0.second(); +} + +int qt_QTime_secsTo_int_QTime_QTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_t) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + QTime arg1 = getqtype(param_t); + return arg0.secsTo(arg1); +} + +bool qt_QTime_setHMS_bool_QTime_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_h, int param_m, int param_s, int param_ms) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + int arg1 = (int)(param_h); + int arg2 = (int)(param_m); + int arg3 = (int)(param_s); + int arg4 = (int)(param_ms); + return arg0.setHMS(arg1, arg2, arg3, arg4); +} + +Pointer qt_QTime_toString_string_QTime_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + const QString arg1 = qstring(param_format); + return makestring(c,arg0.toString(arg1)); +} + +Pointer qt_QTime_toString_string_QTime_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg0 = getqtype(param_this); + Qt::DateFormat arg1 = (Qt::DateFormat)(param_format); + return makestring(c,arg0.toString(arg1)); +} + +Pointer qt_QTime_currentTime_QTime(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeqtype(c,QTime::currentTime(),"qt.QTime"); +} + +Pointer qt_QTime_fromMSecsSinceStartOfDay_QTime_int(Mu::Thread& NODE_THREAD, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_msecs); + return makeqtype(c,QTime::fromMSecsSinceStartOfDay(arg0),"qt.QTime"); +} + +Pointer qt_QTime_fromString_QTime_string_int(Mu::Thread& NODE_THREAD, Pointer param_string, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_string); + Qt::DateFormat arg1 = (Qt::DateFormat)(param_format); + return makeqtype(c,QTime::fromString(arg0, arg1),"qt.QTime"); +} + +Pointer qt_QTime_fromString_QTime_string_string(Mu::Thread& NODE_THREAD, Pointer param_string, Pointer param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_string); + const QString arg1 = qstring(param_format); + return makeqtype(c,QTime::fromString(arg0, arg1),"qt.QTime"); +} + +bool qt_QTime_isValid_bool_int_int_int_int(Mu::Thread& NODE_THREAD, int param_h, int param_m, int param_s, int param_ms) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg0 = (int)(param_h); + int arg1 = (int)(param_m); + int arg2 = (int)(param_s); + int arg3 = (int)(param_ms); + return QTime::isValid(arg0, arg1, arg2, arg3); +} + + +static NODE_IMPLEMENTATION(_n_QTime0, Pointer) +{ + NODE_RETURN(qt_QTime_QTime_QTime_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTime1, Pointer) +{ + NODE_RETURN(qt_QTime_QTime_QTime_QTime_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_addMSecs0, Pointer) +{ + NODE_RETURN(qt_QTime_addMSecs_QTime_QTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_addSecs0, Pointer) +{ + NODE_RETURN(qt_QTime_addSecs_QTime_QTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_hour0, int) +{ + NODE_RETURN(qt_QTime_hour_int_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QTime_isNull_bool_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QTime_isValid_bool_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minute0, int) +{ + NODE_RETURN(qt_QTime_minute_int_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_msec0, int) +{ + NODE_RETURN(qt_QTime_msec_int_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_msecsSinceStartOfDay0, int) +{ + NODE_RETURN(qt_QTime_msecsSinceStartOfDay_int_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_msecsTo0, int) +{ + NODE_RETURN(qt_QTime_msecsTo_int_QTime_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_second0, int) +{ + NODE_RETURN(qt_QTime_second_int_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_secsTo0, int) +{ + NODE_RETURN(qt_QTime_secsTo_int_QTime_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setHMS0, bool) +{ + NODE_RETURN(qt_QTime_setHMS_bool_QTime_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_toString0, Pointer) +{ + NODE_RETURN(qt_QTime_toString_string_QTime_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toString1, Pointer) +{ + NODE_RETURN(qt_QTime_toString_string_QTime_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_currentTime0, Pointer) +{ + NODE_RETURN(qt_QTime_currentTime_QTime(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_fromMSecsSinceStartOfDay0, Pointer) +{ + NODE_RETURN(qt_QTime_fromMSecsSinceStartOfDay_QTime_int(NODE_THREAD, NODE_ARG(0, int))); +} + +static NODE_IMPLEMENTATION(_n_fromString0, Pointer) +{ + NODE_RETURN(qt_QTime_fromString_QTime_string_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_fromString4, Pointer) +{ + NODE_RETURN(qt_QTime_fromString_QTime_string_string(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid1, bool) +{ + NODE_RETURN(qt_QTime_isValid_bool_int_int_int_int(NODE_THREAD, NODE_ARG(0, int), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int))); +} + + + +void +QTimeType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QTime", _n_QTime0, None, Compiled, qt_QTime_QTime_QTime_QTime, Return, "qt.QTime", Parameters, new Param(c, "this", "qt.QTime"), End), + new Function(c, "QTime", _n_QTime1, None, Compiled, qt_QTime_QTime_QTime_QTime_int_int_int_int, Return, "qt.QTime", Parameters, new Param(c, "this", "qt.QTime"), new Param(c, "h", "int"), new Param(c, "m", "int"), new Param(c, "s", "int", Value((int)0)), new Param(c, "ms", "int", Value((int)0)), End), + new Function(c, "addMSecs", _n_addMSecs0, None, Compiled, qt_QTime_addMSecs_QTime_QTime_int, Return, "qt.QTime", Parameters, new Param(c, "this", "qt.QTime"), new Param(c, "ms", "int"), End), + new Function(c, "addSecs", _n_addSecs0, None, Compiled, qt_QTime_addSecs_QTime_QTime_int, Return, "qt.QTime", Parameters, new Param(c, "this", "qt.QTime"), new Param(c, "s", "int"), End), + new Function(c, "hour", _n_hour0, None, Compiled, qt_QTime_hour_int_QTime, Return, "int", Parameters, new Param(c, "this", "qt.QTime"), End), + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QTime_isNull_bool_QTime, Return, "bool", Parameters, new Param(c, "this", "qt.QTime"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QTime_isValid_bool_QTime, Return, "bool", Parameters, new Param(c, "this", "qt.QTime"), End), + new Function(c, "minute", _n_minute0, None, Compiled, qt_QTime_minute_int_QTime, Return, "int", Parameters, new Param(c, "this", "qt.QTime"), End), + new Function(c, "msec", _n_msec0, None, Compiled, qt_QTime_msec_int_QTime, Return, "int", Parameters, new Param(c, "this", "qt.QTime"), End), + new Function(c, "msecsSinceStartOfDay", _n_msecsSinceStartOfDay0, None, Compiled, qt_QTime_msecsSinceStartOfDay_int_QTime, Return, "int", Parameters, new Param(c, "this", "qt.QTime"), End), + new Function(c, "msecsTo", _n_msecsTo0, None, Compiled, qt_QTime_msecsTo_int_QTime_QTime, Return, "int", Parameters, new Param(c, "this", "qt.QTime"), new Param(c, "t", "qt.QTime"), End), + new Function(c, "second", _n_second0, None, Compiled, qt_QTime_second_int_QTime, Return, "int", Parameters, new Param(c, "this", "qt.QTime"), End), + new Function(c, "secsTo", _n_secsTo0, None, Compiled, qt_QTime_secsTo_int_QTime_QTime, Return, "int", Parameters, new Param(c, "this", "qt.QTime"), new Param(c, "t", "qt.QTime"), End), + new Function(c, "setHMS", _n_setHMS0, None, Compiled, qt_QTime_setHMS_bool_QTime_int_int_int_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTime"), new Param(c, "h", "int"), new Param(c, "m", "int"), new Param(c, "s", "int"), new Param(c, "ms", "int", Value((int)0)), End), + new Function(c, "toString", _n_toString0, None, Compiled, qt_QTime_toString_string_QTime_string, Return, "string", Parameters, new Param(c, "this", "qt.QTime"), new Param(c, "format", "string"), End), + new Function(c, "toString", _n_toString1, None, Compiled, qt_QTime_toString_string_QTime_int, Return, "string", Parameters, new Param(c, "this", "qt.QTime"), new Param(c, "format", "int", Value((int)Qt::TextDate)), End), + // MISSING: toString (string; QTime this, "QStringView" format) + // static functions + new Function(c, "currentTime", _n_currentTime0, None, Compiled, qt_QTime_currentTime_QTime, Return, "qt.QTime", End), + new Function(c, "fromMSecsSinceStartOfDay", _n_fromMSecsSinceStartOfDay0, None, Compiled, qt_QTime_fromMSecsSinceStartOfDay_QTime_int, Return, "qt.QTime", Parameters, new Param(c, "msecs", "int"), End), + new Function(c, "fromString", _n_fromString0, None, Compiled, qt_QTime_fromString_QTime_string_int, Return, "qt.QTime", Parameters, new Param(c, "string", "string"), new Param(c, "format", "int", Value((int)Qt::TextDate)), End), + // MISSING: fromString (QTime; "QStringView" string, flags Qt::DateFormat format) + // MISSING: fromString (QTime; "QStringView" string, "QStringView" format) + // MISSING: fromString (QTime; string string, "QStringView" format) + new Function(c, "fromString", _n_fromString4, None, Compiled, qt_QTime_fromString_QTime_string_string, Return, "qt.QTime", Parameters, new Param(c, "string", "string"), new Param(c, "format", "string"), End), + new Function(c, "isValid", _n_isValid1, None, Compiled, qt_QTime_isValid_bool_int_int_int_int, Return, "bool", Parameters, new Param(c, "h", "int"), new Param(c, "m", "int"), new Param(c, "s", "int"), new Param(c, "ms", "int", Value((int)0)), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTimerEventType.cpp b/src/lib/mu/MuQt6/QTimerEventType.cpp new file mode 100644 index 000000000..c6ebf9797 --- /dev/null +++ b/src/lib/mu/MuQt6/QTimerEventType.cpp @@ -0,0 +1,132 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QTimerEventType::QTimerEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QTimerEventType::~QTimerEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QTimerEvent_QTimerEvent_QTimerEvent_QTimerEvent_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_timerId) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_timerId); + setqpointer(param_this,new QTimerEvent(arg1)); + return param_this; +} + +int qt_QTimerEvent_timerId_int_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTimerEvent * arg0 = getqpointer(param_this); + return arg0->timerId(); +} + + +static NODE_IMPLEMENTATION(_n_QTimerEvent0, Pointer) +{ + NODE_RETURN(qt_QTimerEvent_QTimerEvent_QTimerEvent_QTimerEvent_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_timerId0, int) +{ + NODE_RETURN(qt_QTimerEvent_timerId_int_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QTimerEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QTimerEvent", _n_QTimerEvent0, None, Compiled, qt_QTimerEvent_QTimerEvent_QTimerEvent_QTimerEvent_int, Return, "qt.QTimerEvent", Parameters, new Param(c, "this", "qt.QTimerEvent"), new Param(c, "timerId", "int"), End), + new Function(c, "timerId", _n_timerId0, None, Compiled, qt_QTimerEvent_timerId_int_QTimerEvent, Return, "int", Parameters, new Param(c, "this", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTimerType.cpp b/src/lib/mu/MuQt6/QTimerType.cpp new file mode 100644 index 000000000..91c737d18 --- /dev/null +++ b/src/lib/mu/MuQt6/QTimerType.cpp @@ -0,0 +1,394 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTimer::~MuQt_QTimer() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTimer::MuQt_QTimer(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QTimer(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTimer")); +} + +void MuQt_QTimer::timerEvent(QTimerEvent * e) +{ + if (!_env) { QTimer::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QTimer::timerEvent(e); + } +} + +bool MuQt_QTimer::event(QEvent * e) +{ + if (!_env) return QTimer::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTimer::event(e); + } +} + +bool MuQt_QTimer::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QTimer::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTimer::eventFilter(watched, event); + } +} + +void MuQt_QTimer::customEvent(QEvent * event) +{ + if (!_env) { QTimer::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTimer::customEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTimerType::QTimerType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTimerType::~QTimerType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTimer_QTimer_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTimer* w = object(widget)) + { + QTimerType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTimer"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTimer_QTimer_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTimer_QTimer_QTimer_QTimer_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTimer(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +bool qt_QTimer_isActive_bool_QTimer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTimer* arg0 = object(param_this); + return arg0->isActive(); +} + +void qt_QTimer_start_void_QTimer_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msec) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTimer* arg0 = object(param_this); + std::chrono::milliseconds arg1 = (std::chrono::milliseconds)(param_msec); + arg0->start(arg1); +} + +int qt_QTimer_timerId_int_QTimer(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTimer* arg0 = object(param_this); + return arg0->timerId(); +} + +void qt_QTimer_timerEvent_void_QTimer_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTimer* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QTimer*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QTimer*)arg0)->timerEvent_pub(arg1); +} + +bool qt_QTimer_event_bool_QTimer_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTimer* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QTimer::event(arg1) : arg0->event(arg1); +} + +bool qt_QTimer_eventFilter_bool_QTimer_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTimer* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QTimer::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QTimer_customEvent_void_QTimer_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTimer* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTimer*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QTimer*)arg0)->customEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTimer0, Pointer) +{ + NODE_RETURN(qt_QTimer_QTimer_QTimer_QTimer_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isActive0, bool) +{ + NODE_RETURN(qt_QTimer_isActive_bool_QTimer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_start0, void) +{ + qt_QTimer_start_void_QTimer_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_timerId0, int) +{ + NODE_RETURN(qt_QTimer_timerId_int_QTimer(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QTimer_timerEvent_void_QTimer_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTimer_event_bool_QTimer_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QTimer_eventFilter_bool_QTimer_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QTimer_customEvent_void_QTimer_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QTimerType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTimer_QTimer_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTimer", _n_QTimer0, None, Compiled, qt_QTimer_QTimer_QTimer_QTimer_QObject, Return, "qt.QTimer", Parameters, new Param(c, "this", "qt.QTimer"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: bindableActive ("QBindable"; QTimer this) + // MISSING: bindableInterval ("QBindable"; QTimer this) + // MISSING: bindableSingleShot ("QBindable"; QTimer this) + // PROP: bindableTimerType (flags QBindable; QTimer this) + // MISSING: callOnTimeout (flags QMetaObject::Connection; QTimer this, QObject context, "Functor" slot, flags Qt::ConnectionType connectionType) + // MISSING: callOnTimeout (flags QMetaObject::Connection; QTimer this, QObject receiver, "MemberFunction *" slot, flags Qt::ConnectionType connectionType) + // PROP: interval (int; QTimer this) + new Function(c, "isActive", _n_isActive0, None, Compiled, qt_QTimer_isActive_bool_QTimer, Return, "bool", Parameters, new Param(c, "this", "qt.QTimer"), End), + // PROP: isSingleShot (bool; QTimer this) + // PROP: remainingTime (int; QTimer this) + // PROP: setInterval (void; QTimer this, int msec) + // MISSING: setInterval (void; QTimer this, flags std::chrono::milliseconds value) + // PROP: setSingleShot (void; QTimer this, bool singleShot) + // PROP: setTimerType (void; QTimer this, flags Qt::TimerType atype) + new Function(c, "start", _n_start0, None, Compiled, qt_QTimer_start_void_QTimer_int, Return, "void", Parameters, new Param(c, "this", "qt.QTimer"), new Param(c, "msec", "int"), End), + new Function(c, "timerId", _n_timerId0, None, Compiled, qt_QTimer_timerId_int_QTimer, Return, "int", Parameters, new Param(c, "this", "qt.QTimer"), End), + // PROP: timerType (flags Qt::TimerType; QTimer this) + _func[0] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QTimer_timerEvent_void_QTimer_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTimer"), new Param(c, "e", "qt.QTimerEvent"), End), + _func[1] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTimer_event_bool_QTimer_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTimer"), new Param(c, "e", "qt.QEvent"), End), + _func[2] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QTimer_eventFilter_bool_QTimer_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTimer"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QTimer this) + // MISSING: childEvent (void; QTimer this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QTimer this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QTimer_customEvent_void_QTimer_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTimer"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QTimer this, "const QMetaMethod &" signal) // protected + // static functions + // MISSING: singleShot (void; int msec, QObject receiver, "const char *" member) + // MISSING: singleShot (void; int msec, flags Qt::TimerType timerType, QObject receiver, "const char *" member) + // MISSING: singleShot (void; int msec, QObject receiver, "PointerToMemberFunction" method) + // MISSING: singleShot (void; int msec, flags Qt::TimerType timerType, QObject receiver, "PointerToMemberFunction" method) + // MISSING: singleShot (void; int msec, "Functor" functor) + // MISSING: singleShot (void; int msec, flags Qt::TimerType timerType, "Functor" functor) + // MISSING: singleShot (void; int msec, QObject context, "Functor" functor) + // MISSING: singleShot (void; int msec, flags Qt::TimerType timerType, QObject context, "Functor" functor) + // MISSING: singleShot (void; flags std::chrono::milliseconds msec, QObject receiver, "const char *" member) + // MISSING: singleShot (void; flags std::chrono::milliseconds msec, flags Qt::TimerType timerType, QObject receiver, "const char *" member) + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTimer::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QToolBarType.cpp b/src/lib/mu/MuQt6/QToolBarType.cpp new file mode 100644 index 000000000..84c5a5a94 --- /dev/null +++ b/src/lib/mu/MuQt6/QToolBarType.cpp @@ -0,0 +1,1436 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QToolBar::~MuQt_QToolBar() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QToolBar::MuQt_QToolBar(Pointer muobj, const CallEnvironment* ce, const QString & title, QWidget * parent) + : QToolBar(title, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QToolBar")); +} + +MuQt_QToolBar::MuQt_QToolBar(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QToolBar(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QToolBar")); +} + +void MuQt_QToolBar::changeEvent(QEvent * event) +{ + if (!_env) { QToolBar::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::changeEvent(event); + } +} + +bool MuQt_QToolBar::event(QEvent * event_) +{ + if (!_env) return QToolBar::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QToolBar::event(event_); + } +} + +void MuQt_QToolBar::paintEvent(QPaintEvent * event) +{ + if (!_env) { QToolBar::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::paintEvent(event); + } +} + +bool MuQt_QToolBar::hasHeightForWidth() const +{ + if (!_env) return QToolBar::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QToolBar::hasHeightForWidth(); + } +} + +int MuQt_QToolBar::heightForWidth(int w) const +{ + if (!_env) return QToolBar::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QToolBar::heightForWidth(w); + } +} + +QVariant MuQt_QToolBar::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QToolBar::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QToolBar::inputMethodQuery(query); + } +} + +QSize MuQt_QToolBar::minimumSizeHint() const +{ + if (!_env) return QToolBar::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QToolBar::minimumSizeHint(); + } +} + +QSize MuQt_QToolBar::sizeHint() const +{ + if (!_env) return QToolBar::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QToolBar::sizeHint(); + } +} + +void MuQt_QToolBar::closeEvent(QCloseEvent * event) +{ + if (!_env) { QToolBar::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::closeEvent(event); + } +} + +void MuQt_QToolBar::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QToolBar::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::contextMenuEvent(event); + } +} + +void MuQt_QToolBar::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QToolBar::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::dragEnterEvent(event); + } +} + +void MuQt_QToolBar::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QToolBar::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::dragLeaveEvent(event); + } +} + +void MuQt_QToolBar::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QToolBar::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::dragMoveEvent(event); + } +} + +void MuQt_QToolBar::dropEvent(QDropEvent * event) +{ + if (!_env) { QToolBar::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::dropEvent(event); + } +} + +void MuQt_QToolBar::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QToolBar::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::focusInEvent(event); + } +} + +bool MuQt_QToolBar::focusNextPrevChild(bool next) +{ + if (!_env) return QToolBar::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QToolBar::focusNextPrevChild(next); + } +} + +void MuQt_QToolBar::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QToolBar::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::focusOutEvent(event); + } +} + +void MuQt_QToolBar::hideEvent(QHideEvent * event) +{ + if (!_env) { QToolBar::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::hideEvent(event); + } +} + +void MuQt_QToolBar::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QToolBar::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::keyPressEvent(event); + } +} + +void MuQt_QToolBar::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QToolBar::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::keyReleaseEvent(event); + } +} + +void MuQt_QToolBar::leaveEvent(QEvent * event) +{ + if (!_env) { QToolBar::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::leaveEvent(event); + } +} + +void MuQt_QToolBar::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QToolBar::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::mouseDoubleClickEvent(event); + } +} + +void MuQt_QToolBar::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QToolBar::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::mouseMoveEvent(event); + } +} + +void MuQt_QToolBar::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QToolBar::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::mousePressEvent(event); + } +} + +void MuQt_QToolBar::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QToolBar::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::mouseReleaseEvent(event); + } +} + +void MuQt_QToolBar::moveEvent(QMoveEvent * event) +{ + if (!_env) { QToolBar::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::moveEvent(event); + } +} + +void MuQt_QToolBar::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QToolBar::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::resizeEvent(event); + } +} + +void MuQt_QToolBar::showEvent(QShowEvent * event) +{ + if (!_env) { QToolBar::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::showEvent(event); + } +} + +void MuQt_QToolBar::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QToolBar::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::tabletEvent(event); + } +} + +void MuQt_QToolBar::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QToolBar::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBar::wheelEvent(event); + } +} + +int MuQt_QToolBar::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QToolBar::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QToolBar::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QToolBarType::QToolBarType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QToolBarType::~QToolBarType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QToolBar_QToolBar_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QToolBar* w = object(widget)) + { + QToolBarType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QToolBar"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QToolBar_QToolBar_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QToolBar_QToolBar_QToolBar_QToolBar_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_title, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_title); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QToolBar(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QToolBar_QToolBar_QToolBar_QToolBar_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QToolBar(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QToolBar_actionAt_QAction_QToolBar_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_p); + return makeinstance(c, arg0->actionAt(arg1), "qt.QAction"); +} + +Pointer qt_QToolBar_actionAt_QAction_QToolBar_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + return makeinstance(c, arg0->actionAt(arg1, arg2), "qt.QAction"); +} + +Pointer qt_QToolBar_addSeparator_QAction_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + return makeinstance(c, arg0->addSeparator(), "qt.QAction"); +} + +Pointer qt_QToolBar_addWidget_QAction_QToolBar_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + return makeinstance(c, arg0->addWidget(arg1), "qt.QAction"); +} + +void qt_QToolBar_clear_void_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + arg0->clear(); +} + +Pointer qt_QToolBar_insertSeparator_QAction_QToolBar_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QAction * arg1 = object(param_before); + return makeinstance(c, arg0->insertSeparator(arg1), "qt.QAction"); +} + +Pointer qt_QToolBar_insertWidget_QAction_QToolBar_QAction_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QAction * arg1 = object(param_before); + QWidget * arg2 = object(param_widget); + return makeinstance(c, arg0->insertWidget(arg1, arg2), "qt.QAction"); +} + +bool qt_QToolBar_isAreaAllowed_bool_QToolBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_area) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + Qt::ToolBarArea arg1 = (Qt::ToolBarArea)(param_area); + return arg0->isAreaAllowed(arg1); +} + +Pointer qt_QToolBar_toggleViewAction_QAction_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + return makeinstance(c, arg0->toggleViewAction(), "qt.QAction"); +} + +Pointer qt_QToolBar_widgetForAction_QWidget_QToolBar_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QAction * arg1 = object(param_action); + return makeinstance(c, arg0->widgetForAction(arg1), "qt.QWidget"); +} + +void qt_QToolBar_changeEvent_void_QToolBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QToolBar_event_bool_QToolBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QToolBar*)arg0)->event_pub_parent(arg1) : ((MuQt_QToolBar*)arg0)->event_pub(arg1); +} + +void qt_QToolBar_paintEvent_void_QToolBar_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->paintEvent_pub(arg1); +} + +bool qt_QToolBar_hasHeightForWidth_bool_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QToolBar::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QToolBar_heightForWidth_int_QToolBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QToolBar::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QToolBar_inputMethodQuery_QVariant_QToolBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QToolBar::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QToolBar_minimumSizeHint_QSize_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QToolBar::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QToolBar_sizeHint_QSize_QToolBar(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QToolBar::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QToolBar_closeEvent_void_QToolBar_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->closeEvent_pub(arg1); +} + +void qt_QToolBar_contextMenuEvent_void_QToolBar_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QToolBar_dragEnterEvent_void_QToolBar_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QToolBar_dragLeaveEvent_void_QToolBar_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QToolBar_dragMoveEvent_void_QToolBar_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QToolBar_dropEvent_void_QToolBar_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->dropEvent_pub(arg1); +} + +void qt_QToolBar_focusInEvent_void_QToolBar_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QToolBar_focusNextPrevChild_bool_QToolBar_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QToolBar*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QToolBar*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QToolBar_focusOutEvent_void_QToolBar_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QToolBar_hideEvent_void_QToolBar_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->hideEvent_pub(arg1); +} + +void qt_QToolBar_keyPressEvent_void_QToolBar_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QToolBar_keyReleaseEvent_void_QToolBar_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QToolBar_leaveEvent_void_QToolBar_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QToolBar_mouseDoubleClickEvent_void_QToolBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QToolBar_mouseMoveEvent_void_QToolBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QToolBar_mousePressEvent_void_QToolBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QToolBar_mouseReleaseEvent_void_QToolBar_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QToolBar_moveEvent_void_QToolBar_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->moveEvent_pub(arg1); +} + +void qt_QToolBar_resizeEvent_void_QToolBar_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QToolBar_showEvent_void_QToolBar_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->showEvent_pub(arg1); +} + +void qt_QToolBar_tabletEvent_void_QToolBar_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QToolBar_wheelEvent_void_QToolBar_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolBar*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QToolBar*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QToolBar_metric_int_QToolBar_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBar* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QToolBar*)arg0)->metric_pub_parent(arg1) : ((MuQt_QToolBar*)arg0)->metric_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QToolBar0, Pointer) +{ + NODE_RETURN(qt_QToolBar_QToolBar_QToolBar_QToolBar_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QToolBar1, Pointer) +{ + NODE_RETURN(qt_QToolBar_QToolBar_QToolBar_QToolBar_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_actionAt0, Pointer) +{ + NODE_RETURN(qt_QToolBar_actionAt_QAction_QToolBar_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_actionAt1, Pointer) +{ + NODE_RETURN(qt_QToolBar_actionAt_QAction_QToolBar_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_addSeparator0, Pointer) +{ + NODE_RETURN(qt_QToolBar_addSeparator_QAction_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addWidget0, Pointer) +{ + NODE_RETURN(qt_QToolBar_addWidget_QAction_QToolBar_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QToolBar_clear_void_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertSeparator0, Pointer) +{ + NODE_RETURN(qt_QToolBar_insertSeparator_QAction_QToolBar_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertWidget0, Pointer) +{ + NODE_RETURN(qt_QToolBar_insertWidget_QAction_QToolBar_QAction_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isAreaAllowed0, bool) +{ + NODE_RETURN(qt_QToolBar_isAreaAllowed_bool_QToolBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_toggleViewAction0, Pointer) +{ + NODE_RETURN(qt_QToolBar_toggleViewAction_QAction_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_widgetForAction0, Pointer) +{ + NODE_RETURN(qt_QToolBar_widgetForAction_QWidget_QToolBar_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QToolBar_changeEvent_void_QToolBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QToolBar_event_bool_QToolBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QToolBar_paintEvent_void_QToolBar_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QToolBar_hasHeightForWidth_bool_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QToolBar_heightForWidth_int_QToolBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QToolBar_inputMethodQuery_QVariant_QToolBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QToolBar_minimumSizeHint_QSize_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QToolBar_sizeHint_QSize_QToolBar(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QToolBar_closeEvent_void_QToolBar_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QToolBar_contextMenuEvent_void_QToolBar_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QToolBar_dragEnterEvent_void_QToolBar_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QToolBar_dragLeaveEvent_void_QToolBar_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QToolBar_dragMoveEvent_void_QToolBar_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QToolBar_dropEvent_void_QToolBar_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QToolBar_focusInEvent_void_QToolBar_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QToolBar_focusNextPrevChild_bool_QToolBar_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QToolBar_focusOutEvent_void_QToolBar_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QToolBar_hideEvent_void_QToolBar_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QToolBar_keyPressEvent_void_QToolBar_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QToolBar_keyReleaseEvent_void_QToolBar_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QToolBar_leaveEvent_void_QToolBar_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QToolBar_mouseDoubleClickEvent_void_QToolBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QToolBar_mouseMoveEvent_void_QToolBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QToolBar_mousePressEvent_void_QToolBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QToolBar_mouseReleaseEvent_void_QToolBar_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QToolBar_moveEvent_void_QToolBar_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QToolBar_resizeEvent_void_QToolBar_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QToolBar_showEvent_void_QToolBar_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QToolBar_tabletEvent_void_QToolBar_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QToolBar_wheelEvent_void_QToolBar_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QToolBar_metric_int_QToolBar_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QToolBarType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QToolBar_QToolBar_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QToolBar", _n_QToolBar0, None, Compiled, qt_QToolBar_QToolBar_QToolBar_QToolBar_string_QWidget, Return, "qt.QToolBar", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "title", "string"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QToolBar", _n_QToolBar1, None, Compiled, qt_QToolBar_QToolBar_QToolBar_QToolBar_QWidget, Return, "qt.QToolBar", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "actionAt", _n_actionAt0, None, Compiled, qt_QToolBar_actionAt_QAction_QToolBar_QPoint, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "p", "qt.QPoint"), End), + new Function(c, "actionAt", _n_actionAt1, None, Compiled, qt_QToolBar_actionAt_QAction_QToolBar_int_int, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "addSeparator", _n_addSeparator0, None, Compiled, qt_QToolBar_addSeparator_QAction_QToolBar, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QToolBar"), End), + new Function(c, "addWidget", _n_addWidget0, None, Compiled, qt_QToolBar_addWidget_QAction_QToolBar_QWidget, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "widget", "qt.QWidget"), End), + // PROP: allowedAreas (flags Qt::ToolBarAreas; QToolBar this) + new Function(c, "clear", _n_clear0, None, Compiled, qt_QToolBar_clear_void_QToolBar, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), End), + // PROP: iconSize (QSize; QToolBar this) + new Function(c, "insertSeparator", _n_insertSeparator0, None, Compiled, qt_QToolBar_insertSeparator_QAction_QToolBar_QAction, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "before", "qt.QAction"), End), + new Function(c, "insertWidget", _n_insertWidget0, None, Compiled, qt_QToolBar_insertWidget_QAction_QToolBar_QAction_QWidget, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "before", "qt.QAction"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "isAreaAllowed", _n_isAreaAllowed0, None, Compiled, qt_QToolBar_isAreaAllowed_bool_QToolBar_int, Return, "bool", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "area", "int"), End), + // PROP: isFloatable (bool; QToolBar this) + // PROP: isFloating (bool; QToolBar this) + // PROP: isMovable (bool; QToolBar this) + // PROP: orientation (flags Qt::Orientation; QToolBar this) + // PROP: setAllowedAreas (void; QToolBar this, flags Qt::ToolBarAreas areas) + // PROP: setFloatable (void; QToolBar this, bool floatable) + // PROP: setMovable (void; QToolBar this, bool movable) + // PROP: setOrientation (void; QToolBar this, flags Qt::Orientation orientation) + new Function(c, "toggleViewAction", _n_toggleViewAction0, None, Compiled, qt_QToolBar_toggleViewAction_QAction_QToolBar, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QToolBar"), End), + // PROP: toolButtonStyle (flags Qt::ToolButtonStyle; QToolBar this) + new Function(c, "widgetForAction", _n_widgetForAction0, None, Compiled, qt_QToolBar_widgetForAction_QWidget_QToolBar_QAction, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "action", "qt.QAction"), End), + // MISSING: actionEvent (void; QToolBar this, "QActionEvent *" event) // protected + _func[0] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QToolBar_changeEvent_void_QToolBar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QToolBar_event_bool_QToolBar_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event_", "qt.QEvent"), End), + _func[2] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QToolBar_paintEvent_void_QToolBar_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[3] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QToolBar_hasHeightForWidth_bool_QToolBar, Return, "bool", Parameters, new Param(c, "this", "qt.QToolBar"), End), + _func[4] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QToolBar_heightForWidth_int_QToolBar_int, Return, "int", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "w", "int"), End), + _func[5] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QToolBar_inputMethodQuery_QVariant_QToolBar_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "query", "int"), End), + _func[6] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QToolBar_minimumSizeHint_QSize_QToolBar, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QToolBar"), End), + _func[7] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QToolBar_sizeHint_QSize_QToolBar, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QToolBar"), End), + // MISSING: paintEngine ("QPaintEngine *"; QToolBar this) + _func[8] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QToolBar_closeEvent_void_QToolBar_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[9] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QToolBar_contextMenuEvent_void_QToolBar_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[10] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QToolBar_dragEnterEvent_void_QToolBar_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[11] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QToolBar_dragLeaveEvent_void_QToolBar_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[12] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QToolBar_dragMoveEvent_void_QToolBar_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[13] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QToolBar_dropEvent_void_QToolBar_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QToolBar this, "QEnterEvent *" event) // protected + _func[14] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QToolBar_focusInEvent_void_QToolBar_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[15] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QToolBar_focusNextPrevChild_bool_QToolBar_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "next", "bool"), End), + _func[16] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QToolBar_focusOutEvent_void_QToolBar_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[17] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QToolBar_hideEvent_void_QToolBar_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QToolBar this, "QInputMethodEvent *" event) // protected + _func[18] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QToolBar_keyPressEvent_void_QToolBar_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[19] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QToolBar_keyReleaseEvent_void_QToolBar_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[20] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QToolBar_leaveEvent_void_QToolBar_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QEvent"), End), + _func[21] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QToolBar_mouseDoubleClickEvent_void_QToolBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[22] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QToolBar_mouseMoveEvent_void_QToolBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[23] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QToolBar_mousePressEvent_void_QToolBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QToolBar_mouseReleaseEvent_void_QToolBar_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[25] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QToolBar_moveEvent_void_QToolBar_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QToolBar this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[26] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QToolBar_resizeEvent_void_QToolBar_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[27] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QToolBar_showEvent_void_QToolBar_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QShowEvent"), End), + _func[28] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QToolBar_tabletEvent_void_QToolBar_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[29] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QToolBar_wheelEvent_void_QToolBar_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QToolBar this, "QPainter *" painter) // protected + _func[30] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QToolBar_metric_int_QToolBar_int, Return, "int", Parameters, new Param(c, "this", "qt.QToolBar"), new Param(c, "m", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QToolBar::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QToolBoxType.cpp b/src/lib/mu/MuQt6/QToolBoxType.cpp new file mode 100644 index 000000000..20f0c1e6e --- /dev/null +++ b/src/lib/mu/MuQt6/QToolBoxType.cpp @@ -0,0 +1,666 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QToolBox::~MuQt_QToolBox() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QToolBox::MuQt_QToolBox(Pointer muobj, const CallEnvironment* ce, QWidget * parent, Qt::WindowFlags f) + : QToolBox(parent, f) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QToolBox")); +} + +void MuQt_QToolBox::itemInserted(int index) +{ + if (!_env) { QToolBox::itemInserted(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + } + else + { + QToolBox::itemInserted(index); + } +} + +void MuQt_QToolBox::itemRemoved(int index) +{ + if (!_env) { QToolBox::itemRemoved(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + } + else + { + QToolBox::itemRemoved(index); + } +} + +void MuQt_QToolBox::changeEvent(QEvent * ev) +{ + if (!_env) { QToolBox::changeEvent(ev); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBox::changeEvent(ev); + } +} + +bool MuQt_QToolBox::event(QEvent * e) +{ + if (!_env) return QToolBox::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QToolBox::event(e); + } +} + +void MuQt_QToolBox::showEvent(QShowEvent * e) +{ + if (!_env) { QToolBox::showEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBox::showEvent(e); + } +} + +QSize MuQt_QToolBox::sizeHint() const +{ + if (!_env) return QToolBox::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QToolBox::sizeHint(); + } +} + +void MuQt_QToolBox::paintEvent(QPaintEvent * _p14) +{ + if (!_env) { QToolBox::paintEvent(_p14); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,_p14,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolBox::paintEvent(_p14); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QToolBoxType::QToolBoxType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QToolBoxType::~QToolBoxType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QToolBox_QToolBox_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QToolBox* w = object(widget)) + { + QToolBoxType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QToolBox"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QToolBox_QToolBox_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QToolBox_QToolBox_QToolBox_QToolBox_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + Qt::WindowFlags arg2 = (Qt::WindowFlags)(param_f); + setobject(param_this, new MuQt_QToolBox(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +int qt_QToolBox_addItem_int_QToolBox_QWidget_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget, Pointer param_iconSet, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + const QIcon arg2 = getqtype(param_iconSet); + const QString arg3 = qstring(param_text); + return arg0->addItem(arg1, arg2, arg3); +} + +int qt_QToolBox_addItem_int_QToolBox_QWidget_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_w, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + QWidget * arg1 = object(param_w); + const QString arg2 = qstring(param_text); + return arg0->addItem(arg1, arg2); +} + +Pointer qt_QToolBox_currentWidget_QWidget_QToolBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + return makeinstance(c, arg0->currentWidget(), "qt.QWidget"); +} + +int qt_QToolBox_indexOf_int_QToolBox_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + const QWidget * arg1 = object(param_widget); + return arg0->indexOf(arg1); +} + +int qt_QToolBox_insertItem_int_QToolBox_int_QWidget_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_widget, Pointer param_icon, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_widget); + const QIcon arg3 = getqtype(param_icon); + const QString arg4 = qstring(param_text); + return arg0->insertItem(arg1, arg2, arg3, arg4); +} + +int qt_QToolBox_insertItem_int_QToolBox_int_QWidget_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_widget, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + QWidget * arg2 = object(param_widget); + const QString arg3 = qstring(param_text); + return arg0->insertItem(arg1, arg2, arg3); +} + +bool qt_QToolBox_isItemEnabled_bool_QToolBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + return arg0->isItemEnabled(arg1); +} + +Pointer qt_QToolBox_itemIcon_QIcon_QToolBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeqtype(c,arg0->itemIcon(arg1),"qt.QIcon"); +} + +Pointer qt_QToolBox_itemText_string_QToolBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makestring(c,arg0->itemText(arg1)); +} + +Pointer qt_QToolBox_itemToolTip_string_QToolBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makestring(c,arg0->itemToolTip(arg1)); +} + +void qt_QToolBox_removeItem_void_QToolBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + arg0->removeItem(arg1); +} + +void qt_QToolBox_setItemEnabled_void_QToolBox_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, bool param_enabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + bool arg2 = (bool)(param_enabled); + arg0->setItemEnabled(arg1, arg2); +} + +void qt_QToolBox_setItemIcon_void_QToolBox_int_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_icon) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QIcon arg2 = getqtype(param_icon); + arg0->setItemIcon(arg1, arg2); +} + +void qt_QToolBox_setItemText_void_QToolBox_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_text); + arg0->setItemText(arg1, arg2); +} + +void qt_QToolBox_setItemToolTip_void_QToolBox_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_toolTip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QString arg2 = qstring(param_toolTip); + arg0->setItemToolTip(arg1, arg2); +} + +Pointer qt_QToolBox_widget_QWidget_QToolBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeinstance(c, arg0->widget(arg1), "qt.QWidget"); +} + +void qt_QToolBox_itemInserted_void_QToolBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + if (isMuQtObject(arg0)) ((MuQt_QToolBox*)arg0)->itemInserted_pub_parent(arg1); + else ((MuQt_QToolBox*)arg0)->itemInserted_pub(arg1); +} + +void qt_QToolBox_itemRemoved_void_QToolBox_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + int arg1 = (int)(param_index); + if (isMuQtObject(arg0)) ((MuQt_QToolBox*)arg0)->itemRemoved_pub_parent(arg1); + else ((MuQt_QToolBox*)arg0)->itemRemoved_pub(arg1); +} + +void qt_QToolBox_changeEvent_void_QToolBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + if (isMuQtObject(arg0)) ((MuQt_QToolBox*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QToolBox*)arg0)->changeEvent_pub(arg1); +} + +bool qt_QToolBox_event_bool_QToolBox_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QToolBox*)arg0)->event_pub_parent(arg1) : ((MuQt_QToolBox*)arg0)->event_pub(arg1); +} + +void qt_QToolBox_showEvent_void_QToolBox_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolBox*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QToolBox*)arg0)->showEvent_pub(arg1); +} + +Pointer qt_QToolBox_sizeHint_QSize_QToolBox(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QToolBox::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QToolBox_paintEvent_void_QToolBox_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param__p14) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolBox* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param__p14); + if (isMuQtObject(arg0)) ((MuQt_QToolBox*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QToolBox*)arg0)->paintEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QToolBox0, Pointer) +{ + NODE_RETURN(qt_QToolBox_QToolBox_QToolBox_QToolBox_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_addItem0, int) +{ + NODE_RETURN(qt_QToolBox_addItem_int_QToolBox_QWidget_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addItem1, int) +{ + NODE_RETURN(qt_QToolBox_addItem_int_QToolBox_QWidget_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentWidget0, Pointer) +{ + NODE_RETURN(qt_QToolBox_currentWidget_QWidget_QToolBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexOf0, int) +{ + NODE_RETURN(qt_QToolBox_indexOf_int_QToolBox_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertItem0, int) +{ + NODE_RETURN(qt_QToolBox_insertItem_int_QToolBox_int_QWidget_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer), NODE_ARG(4, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertItem1, int) +{ + NODE_RETURN(qt_QToolBox_insertItem_int_QToolBox_int_QWidget_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isItemEnabled0, bool) +{ + NODE_RETURN(qt_QToolBox_isItemEnabled_bool_QToolBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_itemIcon0, Pointer) +{ + NODE_RETURN(qt_QToolBox_itemIcon_QIcon_QToolBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_itemText0, Pointer) +{ + NODE_RETURN(qt_QToolBox_itemText_string_QToolBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_itemToolTip0, Pointer) +{ + NODE_RETURN(qt_QToolBox_itemToolTip_string_QToolBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_removeItem0, void) +{ + qt_QToolBox_removeItem_void_QToolBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setItemEnabled0, void) +{ + qt_QToolBox_setItemEnabled_void_QToolBox_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setItemIcon0, void) +{ + qt_QToolBox_setItemIcon_void_QToolBox_int_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setItemText0, void) +{ + qt_QToolBox_setItemText_void_QToolBox_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setItemToolTip0, void) +{ + qt_QToolBox_setItemToolTip_void_QToolBox_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QToolBox_widget_QWidget_QToolBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_itemInserted0, void) +{ + qt_QToolBox_itemInserted_void_QToolBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_itemRemoved0, void) +{ + qt_QToolBox_itemRemoved_void_QToolBox_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QToolBox_changeEvent_void_QToolBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QToolBox_event_bool_QToolBox_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QToolBox_showEvent_void_QToolBox_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QToolBox_sizeHint_QSize_QToolBox(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QToolBox_paintEvent_void_QToolBox_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QToolBoxType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QToolBox_QToolBox_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QToolBox", _n_QToolBox0, None, Compiled, qt_QToolBox_QToolBox_QToolBox_QToolBox_QWidget_int, Return, "qt.QToolBox", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "parent", "qt.QWidget"), new Param(c, "f", "int", Value((int)Qt::WindowFlags())), End), + new Function(c, "addItem", _n_addItem0, None, Compiled, qt_QToolBox_addItem_int_QToolBox_QWidget_QIcon_string, Return, "int", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "widget", "qt.QWidget"), new Param(c, "iconSet", "qt.QIcon"), new Param(c, "text", "string"), End), + new Function(c, "addItem", _n_addItem1, None, Compiled, qt_QToolBox_addItem_int_QToolBox_QWidget_string, Return, "int", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "w", "qt.QWidget"), new Param(c, "text", "string"), End), + // PROP: count (int; QToolBox this) + // PROP: currentIndex (int; QToolBox this) + new Function(c, "currentWidget", _n_currentWidget0, None, Compiled, qt_QToolBox_currentWidget_QWidget_QToolBox, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QToolBox"), End), + new Function(c, "indexOf", _n_indexOf0, None, Compiled, qt_QToolBox_indexOf_int_QToolBox_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "insertItem", _n_insertItem0, None, Compiled, qt_QToolBox_insertItem_int_QToolBox_int_QWidget_QIcon_string, Return, "int", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), new Param(c, "widget", "qt.QWidget"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), End), + new Function(c, "insertItem", _n_insertItem1, None, Compiled, qt_QToolBox_insertItem_int_QToolBox_int_QWidget_string, Return, "int", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), new Param(c, "widget", "qt.QWidget"), new Param(c, "text", "string"), End), + new Function(c, "isItemEnabled", _n_isItemEnabled0, None, Compiled, qt_QToolBox_isItemEnabled_bool_QToolBox_int, Return, "bool", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), End), + new Function(c, "itemIcon", _n_itemIcon0, None, Compiled, qt_QToolBox_itemIcon_QIcon_QToolBox_int, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), End), + new Function(c, "itemText", _n_itemText0, None, Compiled, qt_QToolBox_itemText_string_QToolBox_int, Return, "string", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), End), + new Function(c, "itemToolTip", _n_itemToolTip0, None, Compiled, qt_QToolBox_itemToolTip_string_QToolBox_int, Return, "string", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), End), + new Function(c, "removeItem", _n_removeItem0, None, Compiled, qt_QToolBox_removeItem_void_QToolBox_int, Return, "void", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), End), + new Function(c, "setItemEnabled", _n_setItemEnabled0, None, Compiled, qt_QToolBox_setItemEnabled_void_QToolBox_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), new Param(c, "enabled", "bool"), End), + new Function(c, "setItemIcon", _n_setItemIcon0, None, Compiled, qt_QToolBox_setItemIcon_void_QToolBox_int_QIcon, Return, "void", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), new Param(c, "icon", "qt.QIcon"), End), + new Function(c, "setItemText", _n_setItemText0, None, Compiled, qt_QToolBox_setItemText_void_QToolBox_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), new Param(c, "text", "string"), End), + new Function(c, "setItemToolTip", _n_setItemToolTip0, None, Compiled, qt_QToolBox_setItemToolTip_void_QToolBox_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), new Param(c, "toolTip", "string"), End), + new Function(c, "widget", _n_widget0, None, Compiled, qt_QToolBox_widget_QWidget_QToolBox_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), End), + _func[0] = new MemberFunction(c, "itemInserted", _n_itemInserted0, None, Compiled, qt_QToolBox_itemInserted_void_QToolBox_int, Return, "void", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), End), + _func[1] = new MemberFunction(c, "itemRemoved", _n_itemRemoved0, None, Compiled, qt_QToolBox_itemRemoved_void_QToolBox_int, Return, "void", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "index", "int"), End), + _func[2] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QToolBox_changeEvent_void_QToolBox_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "ev", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QToolBox_event_bool_QToolBox_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "e", "qt.QEvent"), End), + _func[4] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QToolBox_showEvent_void_QToolBox_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "e", "qt.QShowEvent"), End), + _func[5] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QToolBox_sizeHint_QSize_QToolBox, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QToolBox"), End), + // MISSING: initStyleOption (void; QToolBox this, "QStyleOptionFrame *" option) // protected + _func[6] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QToolBox_paintEvent_void_QToolBox_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolBox"), new Param(c, "_p14", "qt.QPaintEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QToolBox::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QToolButtonType.cpp b/src/lib/mu/MuQt6/QToolButtonType.cpp new file mode 100644 index 000000000..edfa155e9 --- /dev/null +++ b/src/lib/mu/MuQt6/QToolButtonType.cpp @@ -0,0 +1,815 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QToolButton::~MuQt_QToolButton() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QToolButton::MuQt_QToolButton(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QToolButton(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QToolButton")); +} + +QSize MuQt_QToolButton::minimumSizeHint() const +{ + if (!_env) return QToolButton::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QToolButton::minimumSizeHint(); + } +} + +QSize MuQt_QToolButton::sizeHint() const +{ + if (!_env) return QToolButton::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QToolButton::sizeHint(); + } +} + +void MuQt_QToolButton::changeEvent(QEvent * e) +{ + if (!_env) { QToolButton::changeEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::changeEvent(e); + } +} + +void MuQt_QToolButton::checkStateSet() +{ + if (!_env) { QToolButton::checkStateSet(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QToolButton::checkStateSet(); + } +} + +bool MuQt_QToolButton::event(QEvent * event_) +{ + if (!_env) return QToolButton::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QToolButton::event(event_); + } +} + +bool MuQt_QToolButton::hitButton(const QPoint & pos) const +{ + if (!_env) return QToolButton::hitButton(pos); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,pos,"qt.QPoint")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QToolButton::hitButton(pos); + } +} + +void MuQt_QToolButton::leaveEvent(QEvent * e) +{ + if (!_env) { QToolButton::leaveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::leaveEvent(e); + } +} + +void MuQt_QToolButton::mousePressEvent(QMouseEvent * e) +{ + if (!_env) { QToolButton::mousePressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::mousePressEvent(e); + } +} + +void MuQt_QToolButton::mouseReleaseEvent(QMouseEvent * e) +{ + if (!_env) { QToolButton::mouseReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::mouseReleaseEvent(e); + } +} + +void MuQt_QToolButton::nextCheckState() +{ + if (!_env) { QToolButton::nextCheckState(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QToolButton::nextCheckState(); + } +} + +void MuQt_QToolButton::paintEvent(QPaintEvent * event) +{ + if (!_env) { QToolButton::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::paintEvent(event); + } +} + +void MuQt_QToolButton::timerEvent(QTimerEvent * e) +{ + if (!_env) { QToolButton::timerEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::timerEvent(e); + } +} + +void MuQt_QToolButton::focusInEvent(QFocusEvent * e) +{ + if (!_env) { QToolButton::focusInEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::focusInEvent(e); + } +} + +void MuQt_QToolButton::focusOutEvent(QFocusEvent * e) +{ + if (!_env) { QToolButton::focusOutEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::focusOutEvent(e); + } +} + +void MuQt_QToolButton::keyPressEvent(QKeyEvent * e) +{ + if (!_env) { QToolButton::keyPressEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::keyPressEvent(e); + } +} + +void MuQt_QToolButton::keyReleaseEvent(QKeyEvent * e) +{ + if (!_env) { QToolButton::keyReleaseEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::keyReleaseEvent(e); + } +} + +void MuQt_QToolButton::mouseMoveEvent(QMouseEvent * e) +{ + if (!_env) { QToolButton::mouseMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QToolButton::mouseMoveEvent(e); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QToolButtonType::QToolButtonType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QToolButtonType::~QToolButtonType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QToolButton_QToolButton_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QToolButton* w = object(widget)) + { + QToolButtonType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QToolButton"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QToolButton_QToolButton_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QToolButton_QToolButton_QToolButton_QToolButton_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QToolButton(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QToolButton_defaultAction_QAction_QToolButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + return makeinstance(c, arg0->defaultAction(), "qt.QAction"); +} + +Pointer qt_QToolButton_menu_QMenu_QToolButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + return makeinstance(c, arg0->menu(), "qt.QMenu"); +} + +void qt_QToolButton_setMenu_void_QToolButton_QMenu(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_menu) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QMenu * arg1 = object(param_menu); + arg0->setMenu(arg1); +} + +Pointer qt_QToolButton_minimumSizeHint_QSize_QToolButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QToolButton::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +Pointer qt_QToolButton_sizeHint_QSize_QToolButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QToolButton::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QToolButton_changeEvent_void_QToolButton_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->changeEvent_pub(arg1); +} + +void qt_QToolButton_checkStateSet_void_QToolButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->checkStateSet_pub_parent(); + else ((MuQt_QToolButton*)arg0)->checkStateSet_pub(); +} + +bool qt_QToolButton_event_bool_QToolButton_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QToolButton*)arg0)->event_pub_parent(arg1) : ((MuQt_QToolButton*)arg0)->event_pub(arg1); +} + +bool qt_QToolButton_hitButton_bool_QToolButton_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return isMuQtObject(arg0) ? ((MuQt_QToolButton*)arg0)->hitButton_pub_parent(arg1) : ((MuQt_QToolButton*)arg0)->hitButton_pub(arg1); +} + +void qt_QToolButton_leaveEvent_void_QToolButton_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QToolButton_mousePressEvent_void_QToolButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QToolButton_mouseReleaseEvent_void_QToolButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QToolButton_nextCheckState_void_QToolButton(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->nextCheckState_pub_parent(); + else ((MuQt_QToolButton*)arg0)->nextCheckState_pub(); +} + +void qt_QToolButton_paintEvent_void_QToolButton_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->paintEvent_pub(arg1); +} + +void qt_QToolButton_timerEvent_void_QToolButton_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->timerEvent_pub(arg1); +} + +void qt_QToolButton_focusInEvent_void_QToolButton_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->focusInEvent_pub(arg1); +} + +void qt_QToolButton_focusOutEvent_void_QToolButton_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QToolButton_keyPressEvent_void_QToolButton_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QToolButton_keyReleaseEvent_void_QToolButton_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QToolButton_mouseMoveEvent_void_QToolButton_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QToolButton* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QToolButton*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QToolButton*)arg0)->mouseMoveEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QToolButton0, Pointer) +{ + NODE_RETURN(qt_QToolButton_QToolButton_QToolButton_QToolButton_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_defaultAction0, Pointer) +{ + NODE_RETURN(qt_QToolButton_defaultAction_QAction_QToolButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_menu0, Pointer) +{ + NODE_RETURN(qt_QToolButton_menu_QMenu_QToolButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setMenu0, void) +{ + qt_QToolButton_setMenu_void_QToolButton_QMenu(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QToolButton_minimumSizeHint_QSize_QToolButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QToolButton_sizeHint_QSize_QToolButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QToolButton_changeEvent_void_QToolButton_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_checkStateSet0, void) +{ + qt_QToolButton_checkStateSet_void_QToolButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QToolButton_event_bool_QToolButton_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hitButton0, bool) +{ + NODE_RETURN(qt_QToolButton_hitButton_bool_QToolButton_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QToolButton_leaveEvent_void_QToolButton_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QToolButton_mousePressEvent_void_QToolButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QToolButton_mouseReleaseEvent_void_QToolButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_nextCheckState0, void) +{ + qt_QToolButton_nextCheckState_void_QToolButton(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QToolButton_paintEvent_void_QToolButton_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QToolButton_timerEvent_void_QToolButton_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QToolButton_focusInEvent_void_QToolButton_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QToolButton_focusOutEvent_void_QToolButton_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QToolButton_keyPressEvent_void_QToolButton_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QToolButton_keyReleaseEvent_void_QToolButton_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QToolButton_mouseMoveEvent_void_QToolButton_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QToolButtonType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QToolButton_QToolButton_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QToolButton", _n_QToolButton0, None, Compiled, qt_QToolButton_QToolButton_QToolButton_QToolButton_QWidget, Return, "qt.QToolButton", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: arrowType (flags Qt::ArrowType; QToolButton this) + // PROP: autoRaise (bool; QToolButton this) + new Function(c, "defaultAction", _n_defaultAction0, None, Compiled, qt_QToolButton_defaultAction_QAction_QToolButton, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QToolButton"), End), + new Function(c, "menu", _n_menu0, None, Compiled, qt_QToolButton_menu_QMenu_QToolButton, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QToolButton"), End), + // PROP: popupMode (flags QToolButton::ToolButtonPopupMode; QToolButton this) + // PROP: setArrowType (void; QToolButton this, flags Qt::ArrowType type) + // PROP: setAutoRaise (void; QToolButton this, bool enable) + new Function(c, "setMenu", _n_setMenu0, None, Compiled, qt_QToolButton_setMenu_void_QToolButton_QMenu, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "menu", "qt.QMenu"), End), + // PROP: setPopupMode (void; QToolButton this, flags QToolButton::ToolButtonPopupMode mode) + // PROP: toolButtonStyle (flags Qt::ToolButtonStyle; QToolButton this) + _func[0] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QToolButton_minimumSizeHint_QSize_QToolButton, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QToolButton"), End), + _func[1] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QToolButton_sizeHint_QSize_QToolButton, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QToolButton"), End), + // MISSING: initStyleOption (void; QToolButton this, "QStyleOptionToolButton *" option) // protected + // MISSING: actionEvent (void; QToolButton this, "QActionEvent *" event) // protected + _func[2] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QToolButton_changeEvent_void_QToolButton_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "e", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "checkStateSet", _n_checkStateSet0, None, Compiled, qt_QToolButton_checkStateSet_void_QToolButton, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), End), + // MISSING: enterEvent (void; QToolButton this, "QEnterEvent *" e) // protected + _func[4] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QToolButton_event_bool_QToolButton_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "event_", "qt.QEvent"), End), + _func[5] = new MemberFunction(c, "hitButton", _n_hitButton0, None, Compiled, qt_QToolButton_hitButton_bool_QToolButton_QPoint, Return, "bool", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "pos", "qt.QPoint"), End), + _func[6] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QToolButton_leaveEvent_void_QToolButton_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "e", "qt.QEvent"), End), + _func[7] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QToolButton_mousePressEvent_void_QToolButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[8] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QToolButton_mouseReleaseEvent_void_QToolButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "e", "qt.QMouseEvent"), End), + _func[9] = new MemberFunction(c, "nextCheckState", _n_nextCheckState0, None, Compiled, qt_QToolButton_nextCheckState_void_QToolButton, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), End), + _func[10] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QToolButton_paintEvent_void_QToolButton_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[11] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QToolButton_timerEvent_void_QToolButton_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "e", "qt.QTimerEvent"), End), + _func[12] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QToolButton_focusInEvent_void_QToolButton_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[13] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QToolButton_focusOutEvent_void_QToolButton_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "e", "qt.QFocusEvent"), End), + _func[14] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QToolButton_keyPressEvent_void_QToolButton_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[15] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QToolButton_keyReleaseEvent_void_QToolButton_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "e", "qt.QKeyEvent"), End), + _func[16] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QToolButton_mouseMoveEvent_void_QToolButton_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QToolButton"), new Param(c, "e", "qt.QMouseEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QToolButton::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTransformType.cpp b/src/lib/mu/MuQt6/QTransformType.cpp new file mode 100644 index 000000000..e57e659cd --- /dev/null +++ b/src/lib/mu/MuQt6/QTransformType.cpp @@ -0,0 +1,806 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QTransformType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QTransformType::QTransformType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QTransformType::~QTransformType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QTransformType::Instance* i = new QTransformType::Instance((Class*)NODE_THIS.type()); + QTransformType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QTransformType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QTransformType::finalizer, 0, 0, 0); +} + +void +QTransformType::finalizer (void* obj, void* data) +{ + QTransformType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QTransform_QTransform_QTransform_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QTransform()); + return param_this; +} + +Pointer qt_QTransform_QTransform_QTransform_QTransform_double_double_double_double_double_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_m11, double param_m12, double param_m13, double param_m21, double param_m22, double param_m23, double param_m31, double param_m32, double param_m33) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg1 = (double)(param_m11); + qreal arg2 = (double)(param_m12); + qreal arg3 = (double)(param_m13); + qreal arg4 = (double)(param_m21); + qreal arg5 = (double)(param_m22); + qreal arg6 = (double)(param_m23); + qreal arg7 = (double)(param_m31); + qreal arg8 = (double)(param_m32); + qreal arg9 = (double)(param_m33); + setqtype(param_this,QTransform(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)); + return param_this; +} + +Pointer qt_QTransform_QTransform_QTransform_QTransform_double_double_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_m11, double param_m12, double param_m21, double param_m22, double param_dx, double param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg1 = (double)(param_m11); + qreal arg2 = (double)(param_m12); + qreal arg3 = (double)(param_m21); + qreal arg4 = (double)(param_m22); + qreal arg5 = (double)(param_dx); + qreal arg6 = (double)(param_dy); + setqtype(param_this,QTransform(arg1, arg2, arg3, arg4, arg5, arg6)); + return param_this; +} + +double qt_QTransform_m11_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.m11(); +} + +double qt_QTransform_m12_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.m12(); +} + +double qt_QTransform_m13_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.m13(); +} + +double qt_QTransform_m21_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.m21(); +} + +double qt_QTransform_m22_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.m22(); +} + +double qt_QTransform_m23_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.m23(); +} + +double qt_QTransform_m31_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.m31(); +} + +double qt_QTransform_m32_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.m32(); +} + +double qt_QTransform_m33_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.m33(); +} + +Pointer qt_QTransform_adjoint_QTransform_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return makeqtype(c,arg0.adjoint(),"qt.QTransform"); +} + +double qt_QTransform_determinant_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.determinant(); +} + +double qt_QTransform_dx_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.dx(); +} + +double qt_QTransform_dy_double_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.dy(); +} + +bool qt_QTransform_isAffine_bool_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.isAffine(); +} + +bool qt_QTransform_isIdentity_bool_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.isIdentity(); +} + +bool qt_QTransform_isInvertible_bool_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.isInvertible(); +} + +bool qt_QTransform_isRotating_bool_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.isRotating(); +} + +bool qt_QTransform_isScaling_bool_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.isScaling(); +} + +bool qt_QTransform_isTranslating_bool_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return arg0.isTranslating(); +} + +Pointer qt_QTransform_map_QPoint_QTransform_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + const QPoint arg1 = getqtype(param_point); + return makeqtype(c,arg0.map(arg1),"qt.QPoint"); +} + +Pointer qt_QTransform_map_QPointF_QTransform_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + const QPointF arg1 = getqtype(param_p); + return makeqtype(c,arg0.map(arg1),"qt.QPointF"); +} + +Pointer qt_QTransform_map_QRegion_QTransform_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_region) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + const QRegion arg1 = getqtype(param_region); + return makeqtype(c,arg0.map(arg1),"qt.QRegion"); +} + +Pointer qt_QTransform_mapRect_QRectF_QTransform_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + const QRectF arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.mapRect(arg1),"qt.QRectF"); +} + +Pointer qt_QTransform_mapRect_QRect_QTransform_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + const QRect arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0.mapRect(arg1),"qt.QRect"); +} + +void qt_QTransform_reset_void_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + arg0.reset(); + setqtype(param_this,arg0); +} + +Pointer qt_QTransform_rotate_QTransform_QTransform_double_int_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_a, int param_axis, double param_distanceToPlane) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_a); + Qt::Axis arg2 = (Qt::Axis)(param_axis); + qreal arg3 = (double)(param_distanceToPlane); + return makeqtype(c,arg0.rotate(arg1, arg2, arg3),"qt.QTransform"); +} + +Pointer qt_QTransform_rotate_QTransform_QTransform_double_int(Mu::Thread& NODE_THREAD, Pointer param_this, double param_a, int param_axis) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_a); + Qt::Axis arg2 = (Qt::Axis)(param_axis); + return makeqtype(c,arg0.rotate(arg1, arg2),"qt.QTransform"); +} + +Pointer qt_QTransform_rotateRadians_QTransform_QTransform_double_int_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_a, int param_axis, double param_distanceToPlane) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_a); + Qt::Axis arg2 = (Qt::Axis)(param_axis); + qreal arg3 = (double)(param_distanceToPlane); + return makeqtype(c,arg0.rotateRadians(arg1, arg2, arg3),"qt.QTransform"); +} + +Pointer qt_QTransform_rotateRadians_QTransform_QTransform_double_int(Mu::Thread& NODE_THREAD, Pointer param_this, double param_a, int param_axis) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_a); + Qt::Axis arg2 = (Qt::Axis)(param_axis); + return makeqtype(c,arg0.rotateRadians(arg1, arg2),"qt.QTransform"); +} + +Pointer qt_QTransform_scale_QTransform_QTransform_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_sx, double param_sy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_sx); + qreal arg2 = (double)(param_sy); + return makeqtype(c,arg0.scale(arg1, arg2),"qt.QTransform"); +} + +void qt_QTransform_setMatrix_void_QTransform_double_double_double_double_double_double_double_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_m11, double param_m12, double param_m13, double param_m21, double param_m22, double param_m23, double param_m31, double param_m32, double param_m33) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_m11); + qreal arg2 = (double)(param_m12); + qreal arg3 = (double)(param_m13); + qreal arg4 = (double)(param_m21); + qreal arg5 = (double)(param_m22); + qreal arg6 = (double)(param_m23); + qreal arg7 = (double)(param_m31); + qreal arg8 = (double)(param_m32); + qreal arg9 = (double)(param_m33); + arg0.setMatrix(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); + setqtype(param_this,arg0); +} + +Pointer qt_QTransform_shear_QTransform_QTransform_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_sh, double param_sv) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_sh); + qreal arg2 = (double)(param_sv); + return makeqtype(c,arg0.shear(arg1, arg2),"qt.QTransform"); +} + +Pointer qt_QTransform_translate_QTransform_QTransform_double_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_dx, double param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_dx); + qreal arg2 = (double)(param_dy); + return makeqtype(c,arg0.translate(arg1, arg2),"qt.QTransform"); +} + +Pointer qt_QTransform_transposed_QTransform_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return makeqtype(c,arg0.transposed(),"qt.QTransform"); +} + +int qt_QTransform_type_int_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + return int(arg0.type()); +} + +bool qt_QTransform_operatorBang_EQ__bool_QTransform_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_matrix) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + const QTransform arg1 = getqtype(param_matrix); + return arg0.operator!=(arg1); +} + +Pointer qt_QTransform_operatorStar__QTransform_QTransform_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_matrix) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + const QTransform arg1 = getqtype(param_matrix); + return makeqtype(c,arg0.operator*(arg1),"qt.QTransform"); +} + +Pointer qt_QTransform_operatorPlus_EQ__QTransform_QTransform_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_scalar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_scalar); + return makeqtype(c,arg0.operator+=(arg1),"qt.QTransform"); +} + +Pointer qt_QTransform_operatorMinus_EQ__QTransform_QTransform_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_scalar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_scalar); + return makeqtype(c,arg0.operator-=(arg1),"qt.QTransform"); +} + +Pointer qt_QTransform_operatorSlash_EQ__QTransform_QTransform_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_scalar) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + qreal arg1 = (double)(param_scalar); + return makeqtype(c,arg0.operator/=(arg1),"qt.QTransform"); +} + +bool qt_QTransform_operatorEQ_EQ__bool_QTransform_QTransform(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_matrix) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTransform arg0 = getqtype(param_this); + const QTransform arg1 = getqtype(param_matrix); + return arg0.operator==(arg1); +} + +Pointer qt_QTransform_fromScale_QTransform_double_double(Mu::Thread& NODE_THREAD, double param_sx, double param_sy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg0 = (double)(param_sx); + qreal arg1 = (double)(param_sy); + return makeqtype(c,QTransform::fromScale(arg0, arg1),"qt.QTransform"); +} + +Pointer qt_QTransform_fromTranslate_QTransform_double_double(Mu::Thread& NODE_THREAD, double param_dx, double param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + qreal arg0 = (double)(param_dx); + qreal arg1 = (double)(param_dy); + return makeqtype(c,QTransform::fromTranslate(arg0, arg1),"qt.QTransform"); +} + + +static NODE_IMPLEMENTATION(_n_QTransform0, Pointer) +{ + NODE_RETURN(qt_QTransform_QTransform_QTransform_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTransform1, Pointer) +{ + NODE_RETURN(qt_QTransform_QTransform_QTransform_QTransform_double_double_double_double_double_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double), NODE_ARG(5, double), NODE_ARG(6, double), NODE_ARG(7, double), NODE_ARG(8, double), NODE_ARG(9, double))); +} + +static NODE_IMPLEMENTATION(_n_QTransform2, Pointer) +{ + NODE_RETURN(qt_QTransform_QTransform_QTransform_QTransform_double_double_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double), NODE_ARG(5, double), NODE_ARG(6, double))); +} + +static NODE_IMPLEMENTATION(_n_m110, double) +{ + NODE_RETURN(qt_QTransform_m11_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_m120, double) +{ + NODE_RETURN(qt_QTransform_m12_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_m130, double) +{ + NODE_RETURN(qt_QTransform_m13_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_m210, double) +{ + NODE_RETURN(qt_QTransform_m21_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_m220, double) +{ + NODE_RETURN(qt_QTransform_m22_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_m230, double) +{ + NODE_RETURN(qt_QTransform_m23_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_m310, double) +{ + NODE_RETURN(qt_QTransform_m31_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_m320, double) +{ + NODE_RETURN(qt_QTransform_m32_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_m330, double) +{ + NODE_RETURN(qt_QTransform_m33_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_adjoint0, Pointer) +{ + NODE_RETURN(qt_QTransform_adjoint_QTransform_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_determinant0, double) +{ + NODE_RETURN(qt_QTransform_determinant_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dx0, double) +{ + NODE_RETURN(qt_QTransform_dx_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dy0, double) +{ + NODE_RETURN(qt_QTransform_dy_double_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isAffine0, bool) +{ + NODE_RETURN(qt_QTransform_isAffine_bool_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIdentity0, bool) +{ + NODE_RETURN(qt_QTransform_isIdentity_bool_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isInvertible0, bool) +{ + NODE_RETURN(qt_QTransform_isInvertible_bool_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRotating0, bool) +{ + NODE_RETURN(qt_QTransform_isRotating_bool_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isScaling0, bool) +{ + NODE_RETURN(qt_QTransform_isScaling_bool_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isTranslating0, bool) +{ + NODE_RETURN(qt_QTransform_isTranslating_bool_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_map1, Pointer) +{ + NODE_RETURN(qt_QTransform_map_QPoint_QTransform_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_map2, Pointer) +{ + NODE_RETURN(qt_QTransform_map_QPointF_QTransform_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_map7, Pointer) +{ + NODE_RETURN(qt_QTransform_map_QRegion_QTransform_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapRect0, Pointer) +{ + NODE_RETURN(qt_QTransform_mapRect_QRectF_QTransform_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapRect1, Pointer) +{ + NODE_RETURN(qt_QTransform_mapRect_QRect_QTransform_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_reset0, void) +{ + qt_QTransform_reset_void_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_rotate0, Pointer) +{ + NODE_RETURN(qt_QTransform_rotate_QTransform_QTransform_double_int_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, int), NODE_ARG(3, double))); +} + +static NODE_IMPLEMENTATION(_n_rotate1, Pointer) +{ + NODE_RETURN(qt_QTransform_rotate_QTransform_QTransform_double_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_rotateRadians0, Pointer) +{ + NODE_RETURN(qt_QTransform_rotateRadians_QTransform_QTransform_double_int_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, int), NODE_ARG(3, double))); +} + +static NODE_IMPLEMENTATION(_n_rotateRadians1, Pointer) +{ + NODE_RETURN(qt_QTransform_rotateRadians_QTransform_QTransform_double_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_scale0, Pointer) +{ + NODE_RETURN(qt_QTransform_scale_QTransform_QTransform_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double))); +} + +static NODE_IMPLEMENTATION(_n_setMatrix0, void) +{ + qt_QTransform_setMatrix_void_QTransform_double_double_double_double_double_double_double_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double), NODE_ARG(3, double), NODE_ARG(4, double), NODE_ARG(5, double), NODE_ARG(6, double), NODE_ARG(7, double), NODE_ARG(8, double), NODE_ARG(9, double)); +} + +static NODE_IMPLEMENTATION(_n_shear0, Pointer) +{ + NODE_RETURN(qt_QTransform_shear_QTransform_QTransform_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double))); +} + +static NODE_IMPLEMENTATION(_n_translate0, Pointer) +{ + NODE_RETURN(qt_QTransform_translate_QTransform_QTransform_double_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double), NODE_ARG(2, double))); +} + +static NODE_IMPLEMENTATION(_n_transposed0, Pointer) +{ + NODE_RETURN(qt_QTransform_transposed_QTransform_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_type0, int) +{ + NODE_RETURN(qt_QTransform_type_int_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QTransform_operatorBang_EQ__bool_QTransform_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorStar_0, Pointer) +{ + NODE_RETURN(qt_QTransform_operatorStar__QTransform_QTransform_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorPlus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QTransform_operatorPlus_EQ__QTransform_QTransform_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double))); +} + +static NODE_IMPLEMENTATION(_n_operatorMinus_EQ_0, Pointer) +{ + NODE_RETURN(qt_QTransform_operatorMinus_EQ__QTransform_QTransform_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double))); +} + +static NODE_IMPLEMENTATION(_n_operatorSlash_EQ_0, Pointer) +{ + NODE_RETURN(qt_QTransform_operatorSlash_EQ__QTransform_QTransform_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QTransform_operatorEQ_EQ__bool_QTransform_QTransform(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fromScale0, Pointer) +{ + NODE_RETURN(qt_QTransform_fromScale_QTransform_double_double(NODE_THREAD, NODE_ARG(0, double), NODE_ARG(1, double))); +} + +static NODE_IMPLEMENTATION(_n_fromTranslate0, Pointer) +{ + NODE_RETURN(qt_QTransform_fromTranslate_QTransform_double_double(NODE_THREAD, NODE_ARG(0, double), NODE_ARG(1, double))); +} + + + +void +QTransformType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "TransformationType", "int"), + new SymbolicConstant(c, "TxNone", "int", Value(int(QTransform::TxNone))), + new SymbolicConstant(c, "TxTranslate", "int", Value(int(QTransform::TxTranslate))), + new SymbolicConstant(c, "TxScale", "int", Value(int(QTransform::TxScale))), + new SymbolicConstant(c, "TxRotate", "int", Value(int(QTransform::TxRotate))), + new SymbolicConstant(c, "TxShear", "int", Value(int(QTransform::TxShear))), + new SymbolicConstant(c, "TxProject", "int", Value(int(QTransform::TxProject))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QTransform", _n_QTransform0, None, Compiled, qt_QTransform_QTransform_QTransform_QTransform, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "QTransform", _n_QTransform1, None, Compiled, qt_QTransform_QTransform_QTransform_QTransform_double_double_double_double_double_double_double_double_double, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "m11", "double"), new Param(c, "m12", "double"), new Param(c, "m13", "double"), new Param(c, "m21", "double"), new Param(c, "m22", "double"), new Param(c, "m23", "double"), new Param(c, "m31", "double"), new Param(c, "m32", "double"), new Param(c, "m33", "double"), End), + new Function(c, "QTransform", _n_QTransform2, None, Compiled, qt_QTransform_QTransform_QTransform_QTransform_double_double_double_double_double_double, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "m11", "double"), new Param(c, "m12", "double"), new Param(c, "m21", "double"), new Param(c, "m22", "double"), new Param(c, "dx", "double"), new Param(c, "dy", "double"), End), + new Function(c, "m11", _n_m110, None, Compiled, qt_QTransform_m11_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "m12", _n_m120, None, Compiled, qt_QTransform_m12_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "m13", _n_m130, None, Compiled, qt_QTransform_m13_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "m21", _n_m210, None, Compiled, qt_QTransform_m21_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "m22", _n_m220, None, Compiled, qt_QTransform_m22_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "m23", _n_m230, None, Compiled, qt_QTransform_m23_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "m31", _n_m310, None, Compiled, qt_QTransform_m31_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "m32", _n_m320, None, Compiled, qt_QTransform_m32_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "m33", _n_m330, None, Compiled, qt_QTransform_m33_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "adjoint", _n_adjoint0, None, Compiled, qt_QTransform_adjoint_QTransform_QTransform, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "determinant", _n_determinant0, None, Compiled, qt_QTransform_determinant_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "dx", _n_dx0, None, Compiled, qt_QTransform_dx_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "dy", _n_dy0, None, Compiled, qt_QTransform_dy_double_QTransform, Return, "double", Parameters, new Param(c, "this", "qt.QTransform"), End), + // MISSING: inverted (QTransform; QTransform this, "bool *" invertible) + new Function(c, "isAffine", _n_isAffine0, None, Compiled, qt_QTransform_isAffine_bool_QTransform, Return, "bool", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "isIdentity", _n_isIdentity0, None, Compiled, qt_QTransform_isIdentity_bool_QTransform, Return, "bool", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "isInvertible", _n_isInvertible0, None, Compiled, qt_QTransform_isInvertible_bool_QTransform, Return, "bool", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "isRotating", _n_isRotating0, None, Compiled, qt_QTransform_isRotating_bool_QTransform, Return, "bool", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "isScaling", _n_isScaling0, None, Compiled, qt_QTransform_isScaling_bool_QTransform, Return, "bool", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "isTranslating", _n_isTranslating0, None, Compiled, qt_QTransform_isTranslating_bool_QTransform, Return, "bool", Parameters, new Param(c, "this", "qt.QTransform"), End), + // MISSING: map (void; QTransform this, double x, double y, "qreal *" tx, "qreal *" ty) + new Function(c, "map", _n_map1, None, Compiled, qt_QTransform_map_QPoint_QTransform_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "point", "qt.QPoint"), End), + new Function(c, "map", _n_map2, None, Compiled, qt_QTransform_map_QPointF_QTransform_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "p", "qt.QPointF"), End), + // MISSING: map ("QLine"; QTransform this, "const QLine &" l) + // MISSING: map ("QLineF"; QTransform this, "const QLineF &" line) + // MISSING: map ("QPolygonF"; QTransform this, "const QPolygonF &" polygon) + // MISSING: map ("QPolygon"; QTransform this, "const QPolygon &" polygon) + new Function(c, "map", _n_map7, None, Compiled, qt_QTransform_map_QRegion_QTransform_QRegion, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "region", "qt.QRegion"), End), + // MISSING: map (QPainterPath; QTransform this, "const QPainterPath &" path) + // MISSING: map (void; QTransform this, int x, int y, "int *" tx, "int *" ty) + new Function(c, "mapRect", _n_mapRect0, None, Compiled, qt_QTransform_mapRect_QRectF_QTransform_QRectF, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "rectangle", "qt.QRectF"), End), + new Function(c, "mapRect", _n_mapRect1, None, Compiled, qt_QTransform_mapRect_QRect_QTransform_QRect, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "rectangle", "qt.QRect"), End), + // MISSING: mapToPolygon ("QPolygon"; QTransform this, QRect rectangle) + new Function(c, "reset", _n_reset0, None, Compiled, qt_QTransform_reset_void_QTransform, Return, "void", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "rotate", _n_rotate0, None, Compiled, qt_QTransform_rotate_QTransform_QTransform_double_int_double, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "a", "double"), new Param(c, "axis", "int"), new Param(c, "distanceToPlane", "double"), End), + new Function(c, "rotate", _n_rotate1, None, Compiled, qt_QTransform_rotate_QTransform_QTransform_double_int, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "a", "double"), new Param(c, "axis", "int", Value((int)Qt::ZAxis)), End), + new Function(c, "rotateRadians", _n_rotateRadians0, None, Compiled, qt_QTransform_rotateRadians_QTransform_QTransform_double_int_double, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "a", "double"), new Param(c, "axis", "int"), new Param(c, "distanceToPlane", "double"), End), + new Function(c, "rotateRadians", _n_rotateRadians1, None, Compiled, qt_QTransform_rotateRadians_QTransform_QTransform_double_int, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "a", "double"), new Param(c, "axis", "int", Value((int)Qt::ZAxis)), End), + new Function(c, "scale", _n_scale0, None, Compiled, qt_QTransform_scale_QTransform_QTransform_double_double, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "sx", "double"), new Param(c, "sy", "double"), End), + new Function(c, "setMatrix", _n_setMatrix0, None, Compiled, qt_QTransform_setMatrix_void_QTransform_double_double_double_double_double_double_double_double_double, Return, "void", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "m11", "double"), new Param(c, "m12", "double"), new Param(c, "m13", "double"), new Param(c, "m21", "double"), new Param(c, "m22", "double"), new Param(c, "m23", "double"), new Param(c, "m31", "double"), new Param(c, "m32", "double"), new Param(c, "m33", "double"), End), + new Function(c, "shear", _n_shear0, None, Compiled, qt_QTransform_shear_QTransform_QTransform_double_double, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "sh", "double"), new Param(c, "sv", "double"), End), + new Function(c, "translate", _n_translate0, None, Compiled, qt_QTransform_translate_QTransform_QTransform_double_double, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "dx", "double"), new Param(c, "dy", "double"), End), + new Function(c, "transposed", _n_transposed0, None, Compiled, qt_QTransform_transposed_QTransform_QTransform, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), End), + new Function(c, "type", _n_type0, None, Compiled, qt_QTransform_type_int_QTransform, Return, "int", Parameters, new Param(c, "this", "qt.QTransform"), End), + // MISSING: QVariant ("QVariant operator"; QTransform this) + // MISSING: = ("QTransform & operator*"; QTransform this, QTransform matrix) + // MISSING: = ("QTransform & operator*"; QTransform this, double scalar) + // static functions + new Function(c, "fromScale", _n_fromScale0, None, Compiled, qt_QTransform_fromScale_QTransform_double_double, Return, "qt.QTransform", Parameters, new Param(c, "sx", "double"), new Param(c, "sy", "double"), End), + new Function(c, "fromTranslate", _n_fromTranslate0, None, Compiled, qt_QTransform_fromTranslate_QTransform_double_double, Return, "qt.QTransform", Parameters, new Param(c, "dx", "double"), new Param(c, "dy", "double"), End), + // MISSING: quadToQuad (bool; "const QPolygonF &" one, "const QPolygonF &" two, QTransform trans) + // MISSING: quadToSquare (bool; "const QPolygonF &" quad, QTransform trans) + // MISSING: squareToQuad (bool; "const QPolygonF &" quad, QTransform trans) + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QTransform_operatorBang_EQ__bool_QTransform_QTransform, Return, "bool", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "matrix", "qt.QTransform"), End), + new Function(c, "*", _n_operatorStar_0, Op, Compiled, qt_QTransform_operatorStar__QTransform_QTransform_QTransform, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "matrix", "qt.QTransform"), End), + new Function(c, "+=", _n_operatorPlus_EQ_0, Op, Compiled, qt_QTransform_operatorPlus_EQ__QTransform_QTransform_double, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "scalar", "double"), End), + new Function(c, "-=", _n_operatorMinus_EQ_0, Op, Compiled, qt_QTransform_operatorMinus_EQ__QTransform_QTransform_double, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "scalar", "double"), End), + new Function(c, "/=", _n_operatorSlash_EQ_0, Op, Compiled, qt_QTransform_operatorSlash_EQ__QTransform_QTransform_double, Return, "qt.QTransform", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "scalar", "double"), End), + // MISSING: = (QTransform; QTransform this, QTransform matrix) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QTransform_operatorEQ_EQ__bool_QTransform_QTransform, Return, "bool", Parameters, new Param(c, "this", "qt.QTransform"), new Param(c, "matrix", "qt.QTransform"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTreeViewType.cpp b/src/lib/mu/MuQt6/QTreeViewType.cpp new file mode 100644 index 000000000..ab28877b2 --- /dev/null +++ b/src/lib/mu/MuQt6/QTreeViewType.cpp @@ -0,0 +1,2134 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTreeView::~MuQt_QTreeView() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTreeView::MuQt_QTreeView(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QTreeView(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTreeView")); +} + +QModelIndex MuQt_QTreeView::indexAt(const QPoint & point) const +{ + if (!_env) return QTreeView::indexAt(point); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,point,"qt.QPoint")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTreeView::indexAt(point); + } +} + +void MuQt_QTreeView::keyboardSearch(const QString & search) +{ + if (!_env) { QTreeView::keyboardSearch(search); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makestring(c,search)); + Value rval = _env->call(F, args); + } + else + { + QTreeView::keyboardSearch(search); + } +} + +void MuQt_QTreeView::reset() +{ + if (!_env) { QTreeView::reset(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTreeView::reset(); + } +} + +void MuQt_QTreeView::scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) +{ + if (!_env) { QTreeView::scrollTo(index, hint); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(hint)); + Value rval = _env->call(F, args); + } + else + { + QTreeView::scrollTo(index, hint); + } +} + +void MuQt_QTreeView::selectAll() +{ + if (!_env) { QTreeView::selectAll(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTreeView::selectAll(); + } +} + +void MuQt_QTreeView::setModel(QAbstractItemModel * model) +{ + if (!_env) { QTreeView::setModel(model); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,model,"qt.QAbstractItemModel")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::setModel(model); + } +} + +void MuQt_QTreeView::setRootIndex(const QModelIndex & index) +{ + if (!_env) { QTreeView::setRootIndex(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::setRootIndex(index); + } +} + +void MuQt_QTreeView::setSelectionModel(QItemSelectionModel * selectionModel) +{ + if (!_env) { QTreeView::setSelectionModel(selectionModel); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,selectionModel,"qt.QItemSelectionModel")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::setSelectionModel(selectionModel); + } +} + +QRect MuQt_QTreeView::visualRect(const QModelIndex & index) const +{ + if (!_env) return QTreeView::visualRect(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTreeView::visualRect(index); + } +} + +void MuQt_QTreeView::changeEvent(QEvent * event) +{ + if (!_env) { QTreeView::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::changeEvent(event); + } +} + +void MuQt_QTreeView::currentChanged(const QModelIndex & current, const QModelIndex & previous) +{ + if (!_env) { QTreeView::currentChanged(current, previous); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,current,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,previous,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::currentChanged(current, previous); + } +} + +void MuQt_QTreeView::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QTreeView::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::dragMoveEvent(event); + } +} + +int MuQt_QTreeView::horizontalOffset() const +{ + if (!_env) return QTreeView::horizontalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTreeView::horizontalOffset(); + } +} + +bool MuQt_QTreeView::isIndexHidden(const QModelIndex & index) const +{ + if (!_env) return QTreeView::isIndexHidden(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTreeView::isIndexHidden(index); + } +} + +void MuQt_QTreeView::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QTreeView::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::keyPressEvent(event); + } +} + +void MuQt_QTreeView::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QTreeView::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::mouseDoubleClickEvent(event); + } +} + +void MuQt_QTreeView::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QTreeView::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::mouseMoveEvent(event); + } +} + +void MuQt_QTreeView::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QTreeView::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::mousePressEvent(event); + } +} + +void MuQt_QTreeView::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QTreeView::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::mouseReleaseEvent(event); + } +} + +void MuQt_QTreeView::paintEvent(QPaintEvent * event) +{ + if (!_env) { QTreeView::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::paintEvent(event); + } +} + +void MuQt_QTreeView::rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end) +{ + if (!_env) { QTreeView::rowsAboutToBeRemoved(parent, start, end); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + args[2] = Value(start); + args[3] = Value(end); + Value rval = _env->call(F, args); + } + else + { + QTreeView::rowsAboutToBeRemoved(parent, start, end); + } +} + +void MuQt_QTreeView::rowsInserted(const QModelIndex & parent, int start, int end) +{ + if (!_env) { QTreeView::rowsInserted(parent, start, end); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + args[2] = Value(start); + args[3] = Value(end); + Value rval = _env->call(F, args); + } + else + { + QTreeView::rowsInserted(parent, start, end); + } +} + +void MuQt_QTreeView::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QTreeView::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QTreeView::scrollContentsBy(dx, dy); + } +} + +QModelIndexList MuQt_QTreeView::selectedIndexes() const +{ + if (!_env) return QTreeView::selectedIndexes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QTreeView::selectedIndexes(); + } +} + +void MuQt_QTreeView::selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) +{ + if (!_env) { QTreeView::selectionChanged(selected, deselected); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selected,"qt.QItemSelection")); + args[2] = Value(makeqtype(c,deselected,"qt.QItemSelection")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::selectionChanged(selected, deselected); + } +} + +void MuQt_QTreeView::setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) +{ + if (!_env) { QTreeView::setSelection(rect, command); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + args[2] = Value(int(command)); + Value rval = _env->call(F, args); + } + else + { + QTreeView::setSelection(rect, command); + } +} + +int MuQt_QTreeView::sizeHintForColumn(int column) const +{ + if (!_env) return QTreeView::sizeHintForColumn(column); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTreeView::sizeHintForColumn(column); + } +} + +void MuQt_QTreeView::timerEvent(QTimerEvent * event) +{ + if (!_env) { QTreeView::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::timerEvent(event); + } +} + +void MuQt_QTreeView::updateGeometries() +{ + if (!_env) { QTreeView::updateGeometries(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTreeView::updateGeometries(); + } +} + +int MuQt_QTreeView::verticalOffset() const +{ + if (!_env) return QTreeView::verticalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTreeView::verticalOffset(); + } +} + +bool MuQt_QTreeView::viewportEvent(QEvent * event) +{ + if (!_env) return QTreeView::viewportEvent(event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTreeView::viewportEvent(event); + } +} + +QSize MuQt_QTreeView::viewportSizeHint() const +{ + if (!_env) return QTreeView::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTreeView::viewportSizeHint(); + } +} + +QRegion MuQt_QTreeView::visualRegionForSelection(const QItemSelection & selection) const +{ + if (!_env) return QTreeView::visualRegionForSelection(selection); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selection,"qt.QItemSelection")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTreeView::visualRegionForSelection(selection); + } +} + +int MuQt_QTreeView::sizeHintForRow(int row) const +{ + if (!_env) return QTreeView::sizeHintForRow(row); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(row); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTreeView::sizeHintForRow(row); + } +} + +QVariant MuQt_QTreeView::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QTreeView::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[34]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTreeView::inputMethodQuery(query); + } +} + +bool MuQt_QTreeView::edit(const QModelIndex & index, QAbstractItemView::EditTrigger trigger, QEvent * event) +{ + if (!_env) return QTreeView::edit(index, trigger, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[35]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(trigger)); + args[3] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTreeView::edit(index, trigger, event); + } +} + +QItemSelectionModel::SelectionFlags MuQt_QTreeView::selectionCommand(const QModelIndex & index, const QEvent * event) const +{ + if (!_env) return QTreeView::selectionCommand(index, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[36]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (QItemSelectionModel::SelectionFlags)(rval._int); + } + else + { + return QTreeView::selectionCommand(index, event); + } +} + +void MuQt_QTreeView::startDrag(Qt::DropActions supportedActions) +{ + if (!_env) { QTreeView::startDrag(supportedActions); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[37]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(supportedActions)); + Value rval = _env->call(F, args); + } + else + { + QTreeView::startDrag(supportedActions); + } +} + +void MuQt_QTreeView::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QTreeView::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[38]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::dragEnterEvent(event); + } +} + +void MuQt_QTreeView::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QTreeView::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[39]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::dragLeaveEvent(event); + } +} + +void MuQt_QTreeView::dropEvent(QDropEvent * event) +{ + if (!_env) { QTreeView::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[40]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::dropEvent(event); + } +} + +bool MuQt_QTreeView::event(QEvent * event_) +{ + if (!_env) return QTreeView::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[41]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTreeView::event(event_); + } +} + +bool MuQt_QTreeView::eventFilter(QObject * object, QEvent * event) +{ + if (!_env) return QTreeView::eventFilter(object, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[42]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,object,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTreeView::eventFilter(object, event); + } +} + +void MuQt_QTreeView::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QTreeView::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[43]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::focusInEvent(event); + } +} + +bool MuQt_QTreeView::focusNextPrevChild(bool next) +{ + if (!_env) return QTreeView::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[44]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTreeView::focusNextPrevChild(next); + } +} + +void MuQt_QTreeView::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QTreeView::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[45]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::focusOutEvent(event); + } +} + +void MuQt_QTreeView::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QTreeView::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[46]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeView::resizeEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTreeViewType::QTreeViewType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTreeViewType::~QTreeViewType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTreeView_QTreeView_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTreeView* w = object(widget)) + { + QTreeViewType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTreeView"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTreeView_QTreeView_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTreeView_QTreeView_QTreeView_QTreeView_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTreeView(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +int qt_QTreeView_columnAt_int_QTreeView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_x); + return arg0->columnAt(arg1); +} + +int qt_QTreeView_columnViewportPosition_int_QTreeView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return arg0->columnViewportPosition(arg1); +} + +int qt_QTreeView_columnWidth_int_QTreeView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return arg0->columnWidth(arg1); +} + +Pointer qt_QTreeView_header_QHeaderView_QTreeView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + return makeinstance(c, arg0->header(), "qt.QHeaderView"); +} + +Pointer qt_QTreeView_indexAbove_QModelIndex_QTreeView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeqtype(c,arg0->indexAbove(arg1),"qt.QModelIndex"); +} + +Pointer qt_QTreeView_indexBelow_QModelIndex_QTreeView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeqtype(c,arg0->indexBelow(arg1),"qt.QModelIndex"); +} + +bool qt_QTreeView_isColumnHidden_bool_QTreeView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return arg0->isColumnHidden(arg1); +} + +bool qt_QTreeView_isExpanded_bool_QTreeView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return arg0->isExpanded(arg1); +} + +bool qt_QTreeView_isFirstColumnSpanned_bool_QTreeView_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->isFirstColumnSpanned(arg1, arg2); +} + +bool qt_QTreeView_isRowHidden_bool_QTreeView_int_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QModelIndex arg2 = getqtype(param_parent); + return arg0->isRowHidden(arg1, arg2); +} + +void qt_QTreeView_setColumnHidden_void_QTreeView_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, bool param_hide) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_column); + bool arg2 = (bool)(param_hide); + arg0->setColumnHidden(arg1, arg2); +} + +void qt_QTreeView_setColumnWidth_void_QTreeView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_width) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_width); + arg0->setColumnWidth(arg1, arg2); +} + +void qt_QTreeView_setExpanded_void_QTreeView_QModelIndex_bool(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, bool param_expanded) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + bool arg2 = (bool)(param_expanded); + arg0->setExpanded(arg1, arg2); +} + +void qt_QTreeView_setFirstColumnSpanned_void_QTreeView_int_QModelIndex_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_parent, bool param_span) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QModelIndex arg2 = getqtype(param_parent); + bool arg3 = (bool)(param_span); + arg0->setFirstColumnSpanned(arg1, arg2, arg3); +} + +void qt_QTreeView_setHeader_void_QTreeView_QHeaderView(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_header) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QHeaderView * arg1 = object(param_header); + arg0->setHeader(arg1); +} + +void qt_QTreeView_setRowHidden_void_QTreeView_int_QModelIndex_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, Pointer param_parent, bool param_hide) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_row); + const QModelIndex arg2 = getqtype(param_parent); + bool arg3 = (bool)(param_hide); + arg0->setRowHidden(arg1, arg2, arg3); +} + +void qt_QTreeView_setTreePosition_void_QTreeView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_index); + arg0->setTreePosition(arg1); +} + +int qt_QTreeView_treePosition_int_QTreeView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + return arg0->treePosition(); +} + +Pointer qt_QTreeView_indexAt_QModelIndex_QTreeView_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_point); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTreeView::indexAt(arg1),"qt.QModelIndex") : makeqtype(c,arg0->indexAt(arg1),"qt.QModelIndex"); +} + +void qt_QTreeView_keyboardSearch_void_QTreeView_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_search) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QString arg1 = qstring(param_search); + if (isMuQtObject(arg0)) arg0->QTreeView::keyboardSearch(arg1); + else arg0->keyboardSearch(arg1); +} + +void qt_QTreeView_reset_void_QTreeView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QTreeView::reset(); + else arg0->reset(); +} + +void qt_QTreeView_scrollTo_void_QTreeView_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_hint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::ScrollHint arg2 = (QAbstractItemView::ScrollHint)(param_hint); + if (isMuQtObject(arg0)) arg0->QTreeView::scrollTo(arg1, arg2); + else arg0->scrollTo(arg1, arg2); +} + +void qt_QTreeView_selectAll_void_QTreeView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QTreeView::selectAll(); + else arg0->selectAll(); +} + +void qt_QTreeView_setModel_void_QTreeView_QAbstractItemModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_model) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QAbstractItemModel * arg1 = object(param_model); + if (isMuQtObject(arg0)) arg0->QTreeView::setModel(arg1); + else arg0->setModel(arg1); +} + +void qt_QTreeView_setRootIndex_void_QTreeView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + if (isMuQtObject(arg0)) arg0->QTreeView::setRootIndex(arg1); + else arg0->setRootIndex(arg1); +} + +void qt_QTreeView_setSelectionModel_void_QTreeView_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selectionModel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QItemSelectionModel * arg1 = object(param_selectionModel); + if (isMuQtObject(arg0)) arg0->QTreeView::setSelectionModel(arg1); + else arg0->setSelectionModel(arg1); +} + +Pointer qt_QTreeView_visualRect_QRect_QTreeView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTreeView::visualRect(arg1),"qt.QRect") : makeqtype(c,arg0->visualRect(arg1),"qt.QRect"); +} + +int qt_QTreeView_indexRowSizeHint_int_QTreeView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return ((MuQt_QTreeView*)arg0)->indexRowSizeHint_pub(arg1); +} + +int qt_QTreeView_rowHeight_int_QTreeView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return ((MuQt_QTreeView*)arg0)->rowHeight_pub(arg1); +} + +void qt_QTreeView_changeEvent_void_QTreeView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->changeEvent_pub(arg1); +} + +void qt_QTreeView_currentChanged_void_QTreeView_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_current, Pointer param_previous) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_current); + const QModelIndex arg2 = getqtype(param_previous); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->currentChanged_pub_parent(arg1, arg2); + else ((MuQt_QTreeView*)arg0)->currentChanged_pub(arg1, arg2); +} + +void qt_QTreeView_dragMoveEvent_void_QTreeView_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->dragMoveEvent_pub(arg1); +} + +int qt_QTreeView_horizontalOffset_int_QTreeView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QTreeView*)arg0)->horizontalOffset_pub_parent() : ((MuQt_QTreeView*)arg0)->horizontalOffset_pub(); +} + +bool qt_QTreeView_isIndexHidden_bool_QTreeView_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? ((MuQt_QTreeView*)arg0)->isIndexHidden_pub_parent(arg1) : ((MuQt_QTreeView*)arg0)->isIndexHidden_pub(arg1); +} + +void qt_QTreeView_keyPressEvent_void_QTreeView_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QTreeView_mouseDoubleClickEvent_void_QTreeView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QTreeView_mouseMoveEvent_void_QTreeView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QTreeView_mousePressEvent_void_QTreeView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QTreeView_mouseReleaseEvent_void_QTreeView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QTreeView_paintEvent_void_QTreeView_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->paintEvent_pub(arg1); +} + +void qt_QTreeView_rowsAboutToBeRemoved_void_QTreeView_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_start, int param_end) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_start); + int arg3 = (int)(param_end); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->rowsAboutToBeRemoved_pub_parent(arg1, arg2, arg3); + else ((MuQt_QTreeView*)arg0)->rowsAboutToBeRemoved_pub(arg1, arg2, arg3); +} + +void qt_QTreeView_rowsInserted_void_QTreeView_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_start, int param_end) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_start); + int arg3 = (int)(param_end); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->rowsInserted_pub_parent(arg1, arg2, arg3); + else ((MuQt_QTreeView*)arg0)->rowsInserted_pub(arg1, arg2, arg3); +} + +void qt_QTreeView_scrollContentsBy_void_QTreeView_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QTreeView*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +Pointer qt_QTreeView_selectedIndexes_qt__QModelIndexBSB_ESB__QTreeView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,((MuQt_QTreeView*)arg0)->selectedIndexes_pub_parent()) : makeqmodelindexlist(c,((MuQt_QTreeView*)arg0)->selectedIndexes_pub()); +} + +void qt_QTreeView_selectionChanged_void_QTreeView_QItemSelection_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selected, Pointer param_deselected) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selected); + const QItemSelection arg2 = getqtype(param_deselected); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->selectionChanged_pub_parent(arg1, arg2); + else ((MuQt_QTreeView*)arg0)->selectionChanged_pub(arg1, arg2); +} + +void qt_QTreeView_setSelection_void_QTreeView_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_command); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->setSelection_pub_parent(arg1, arg2); + else ((MuQt_QTreeView*)arg0)->setSelection_pub(arg1, arg2); +} + +int qt_QTreeView_sizeHintForColumn_int_QTreeView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_column); + return isMuQtObject(arg0) ? ((MuQt_QTreeView*)arg0)->sizeHintForColumn_pub_parent(arg1) : ((MuQt_QTreeView*)arg0)->sizeHintForColumn_pub(arg1); +} + +void qt_QTreeView_timerEvent_void_QTreeView_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->timerEvent_pub(arg1); +} + +void qt_QTreeView_updateGeometries_void_QTreeView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->updateGeometries_pub_parent(); + else ((MuQt_QTreeView*)arg0)->updateGeometries_pub(); +} + +int qt_QTreeView_verticalOffset_int_QTreeView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QTreeView*)arg0)->verticalOffset_pub_parent() : ((MuQt_QTreeView*)arg0)->verticalOffset_pub(); +} + +bool qt_QTreeView_viewportEvent_bool_QTreeView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QTreeView*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QTreeView*)arg0)->viewportEvent_pub(arg1); +} + +Pointer qt_QTreeView_viewportSizeHint_QSize_QTreeView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTreeView*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QTreeView*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +Pointer qt_QTreeView_visualRegionForSelection_QRegion_QTreeView_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selection); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTreeView*)arg0)->visualRegionForSelection_pub_parent(arg1),"qt.QRegion") : makeqtype(c,((MuQt_QTreeView*)arg0)->visualRegionForSelection_pub(arg1),"qt.QRegion"); +} + +int qt_QTreeView_sizeHintForRow_int_QTreeView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + int arg1 = (int)(param_row); + return isMuQtObject(arg0) ? arg0->QTreeView::sizeHintForRow(arg1) : arg0->sizeHintForRow(arg1); +} + +Pointer qt_QTreeView_inputMethodQuery_QVariant_QTreeView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTreeView::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +bool qt_QTreeView_edit_bool_QTreeView_QModelIndex_int_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_trigger, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::EditTrigger arg2 = (QAbstractItemView::EditTrigger)(param_trigger); + QEvent * arg3 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QTreeView*)arg0)->edit_pub_parent(arg1, arg2, arg3) : ((MuQt_QTreeView*)arg0)->edit_pub(arg1, arg2, arg3); +} + +int qt_QTreeView_selectionCommand_int_QTreeView_QModelIndex_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + const QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? int(((MuQt_QTreeView*)arg0)->selectionCommand_pub_parent(arg1, arg2)) : int(((MuQt_QTreeView*)arg0)->selectionCommand_pub(arg1, arg2)); +} + +void qt_QTreeView_startDrag_void_QTreeView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_supportedActions) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + Qt::DropActions arg1 = (Qt::DropActions)(param_supportedActions); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->startDrag_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->startDrag_pub(arg1); +} + +void qt_QTreeView_dragEnterEvent_void_QTreeView_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QTreeView_dragLeaveEvent_void_QTreeView_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QTreeView_dropEvent_void_QTreeView_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QTreeView_event_bool_QTreeView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QTreeView*)arg0)->event_pub_parent(arg1) : ((MuQt_QTreeView*)arg0)->event_pub(arg1); +} + +bool qt_QTreeView_eventFilter_bool_QTreeView_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QObject * arg1 = object(param_object); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QTreeView*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QTreeView*)arg0)->eventFilter_pub(arg1, arg2); +} + +void qt_QTreeView_focusInEvent_void_QTreeView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QTreeView_focusNextPrevChild_bool_QTreeView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QTreeView*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QTreeView*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QTreeView_focusOutEvent_void_QTreeView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QTreeView_resizeEvent_void_QTreeView_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeView* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeView*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QTreeView*)arg0)->resizeEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QTreeView0, Pointer) +{ + NODE_RETURN(qt_QTreeView_QTreeView_QTreeView_QTreeView_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_columnAt0, int) +{ + NODE_RETURN(qt_QTreeView_columnAt_int_QTreeView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_columnViewportPosition0, int) +{ + NODE_RETURN(qt_QTreeView_columnViewportPosition_int_QTreeView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_columnWidth0, int) +{ + NODE_RETURN(qt_QTreeView_columnWidth_int_QTreeView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_header0, Pointer) +{ + NODE_RETURN(qt_QTreeView_header_QHeaderView_QTreeView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexAbove0, Pointer) +{ + NODE_RETURN(qt_QTreeView_indexAbove_QModelIndex_QTreeView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexBelow0, Pointer) +{ + NODE_RETURN(qt_QTreeView_indexBelow_QModelIndex_QTreeView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isColumnHidden0, bool) +{ + NODE_RETURN(qt_QTreeView_isColumnHidden_bool_QTreeView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isExpanded0, bool) +{ + NODE_RETURN(qt_QTreeView_isExpanded_bool_QTreeView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isFirstColumnSpanned0, bool) +{ + NODE_RETURN(qt_QTreeView_isFirstColumnSpanned_bool_QTreeView_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRowHidden0, bool) +{ + NODE_RETURN(qt_QTreeView_isRowHidden_bool_QTreeView_int_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setColumnHidden0, void) +{ + qt_QTreeView_setColumnHidden_void_QTreeView_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setColumnWidth0, void) +{ + qt_QTreeView_setColumnWidth_void_QTreeView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setExpanded0, void) +{ + qt_QTreeView_setExpanded_void_QTreeView_QModelIndex_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setFirstColumnSpanned0, void) +{ + qt_QTreeView_setFirstColumnSpanned_void_QTreeView_int_QModelIndex_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, bool)); +} + +static NODE_IMPLEMENTATION(_n_setHeader0, void) +{ + qt_QTreeView_setHeader_void_QTreeView_QHeaderView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRowHidden0, void) +{ + qt_QTreeView_setRowHidden_void_QTreeView_int_QModelIndex_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, bool)); +} + +static NODE_IMPLEMENTATION(_n_setTreePosition0, void) +{ + qt_QTreeView_setTreePosition_void_QTreeView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_treePosition0, int) +{ + NODE_RETURN(qt_QTreeView_treePosition_int_QTreeView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexAt0, Pointer) +{ + NODE_RETURN(qt_QTreeView_indexAt_QModelIndex_QTreeView_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyboardSearch0, void) +{ + qt_QTreeView_keyboardSearch_void_QTreeView_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_reset0, void) +{ + qt_QTreeView_reset_void_QTreeView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_scrollTo0, void) +{ + qt_QTreeView_scrollTo_void_QTreeView_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectAll0, void) +{ + qt_QTreeView_selectAll_void_QTreeView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setModel0, void) +{ + qt_QTreeView_setModel_void_QTreeView_QAbstractItemModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRootIndex0, void) +{ + qt_QTreeView_setRootIndex_void_QTreeView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelectionModel0, void) +{ + qt_QTreeView_setSelectionModel_void_QTreeView_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_visualRect0, Pointer) +{ + NODE_RETURN(qt_QTreeView_visualRect_QRect_QTreeView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexRowSizeHint0, int) +{ + NODE_RETURN(qt_QTreeView_indexRowSizeHint_int_QTreeView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_rowHeight0, int) +{ + NODE_RETURN(qt_QTreeView_rowHeight_int_QTreeView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QTreeView_changeEvent_void_QTreeView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_currentChanged0, void) +{ + qt_QTreeView_currentChanged_void_QTreeView_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QTreeView_dragMoveEvent_void_QTreeView_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_horizontalOffset0, int) +{ + NODE_RETURN(qt_QTreeView_horizontalOffset_int_QTreeView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIndexHidden0, bool) +{ + NODE_RETURN(qt_QTreeView_isIndexHidden_bool_QTreeView_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QTreeView_keyPressEvent_void_QTreeView_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QTreeView_mouseDoubleClickEvent_void_QTreeView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QTreeView_mouseMoveEvent_void_QTreeView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QTreeView_mousePressEvent_void_QTreeView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QTreeView_mouseReleaseEvent_void_QTreeView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QTreeView_paintEvent_void_QTreeView_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_rowsAboutToBeRemoved0, void) +{ + qt_QTreeView_rowsAboutToBeRemoved_void_QTreeView_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_rowsInserted0, void) +{ + qt_QTreeView_rowsInserted_void_QTreeView_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QTreeView_scrollContentsBy_void_QTreeView_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectedIndexes0, Pointer) +{ + NODE_RETURN(qt_QTreeView_selectedIndexes_qt__QModelIndexBSB_ESB__QTreeView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionChanged0, void) +{ + qt_QTreeView_selectionChanged_void_QTreeView_QItemSelection_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QTreeView_setSelection_void_QTreeView_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForColumn0, int) +{ + NODE_RETURN(qt_QTreeView_sizeHintForColumn_int_QTreeView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QTreeView_timerEvent_void_QTreeView_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_updateGeometries0, void) +{ + qt_QTreeView_updateGeometries_void_QTreeView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_verticalOffset0, int) +{ + NODE_RETURN(qt_QTreeView_verticalOffset_int_QTreeView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QTreeView_viewportEvent_bool_QTreeView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QTreeView_viewportSizeHint_QSize_QTreeView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualRegionForSelection0, Pointer) +{ + NODE_RETURN(qt_QTreeView_visualRegionForSelection_QRegion_QTreeView_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForRow0, int) +{ + NODE_RETURN(qt_QTreeView_sizeHintForRow_int_QTreeView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QTreeView_inputMethodQuery_QVariant_QTreeView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_edit0, bool) +{ + NODE_RETURN(qt_QTreeView_edit_bool_QTreeView_QModelIndex_int_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionCommand0, int) +{ + NODE_RETURN(qt_QTreeView_selectionCommand_int_QTreeView_QModelIndex_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_startDrag0, void) +{ + qt_QTreeView_startDrag_void_QTreeView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QTreeView_dragEnterEvent_void_QTreeView_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QTreeView_dragLeaveEvent_void_QTreeView_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QTreeView_dropEvent_void_QTreeView_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTreeView_event_bool_QTreeView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QTreeView_eventFilter_bool_QTreeView_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QTreeView_focusInEvent_void_QTreeView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QTreeView_focusNextPrevChild_bool_QTreeView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QTreeView_focusOutEvent_void_QTreeView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QTreeView_resizeEvent_void_QTreeView_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QTreeViewType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTreeView_QTreeView_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTreeView", _n_QTreeView0, None, Compiled, qt_QTreeView_QTreeView_QTreeView_QTreeView_QWidget, Return, "qt.QTreeView", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "parent", "qt.QWidget"), End), + // PROP: allColumnsShowFocus (bool; QTreeView this) + // PROP: autoExpandDelay (int; QTreeView this) + new Function(c, "columnAt", _n_columnAt0, None, Compiled, qt_QTreeView_columnAt_int_QTreeView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "x", "int"), End), + new Function(c, "columnViewportPosition", _n_columnViewportPosition0, None, Compiled, qt_QTreeView_columnViewportPosition_int_QTreeView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "column", "int"), End), + new Function(c, "columnWidth", _n_columnWidth0, None, Compiled, qt_QTreeView_columnWidth_int_QTreeView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "column", "int"), End), + // PROP: expandsOnDoubleClick (bool; QTreeView this) + new Function(c, "header", _n_header0, None, Compiled, qt_QTreeView_header_QHeaderView_QTreeView, Return, "qt.QHeaderView", Parameters, new Param(c, "this", "qt.QTreeView"), End), + // PROP: indentation (int; QTreeView this) + new Function(c, "indexAbove", _n_indexAbove0, None, Compiled, qt_QTreeView_indexAbove_QModelIndex_QTreeView_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "indexBelow", _n_indexBelow0, None, Compiled, qt_QTreeView_indexBelow_QModelIndex_QTreeView_QModelIndex, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), End), + // PROP: isAnimated (bool; QTreeView this) + new Function(c, "isColumnHidden", _n_isColumnHidden0, None, Compiled, qt_QTreeView_isColumnHidden_bool_QTreeView_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "column", "int"), End), + new Function(c, "isExpanded", _n_isExpanded0, None, Compiled, qt_QTreeView_isExpanded_bool_QTreeView_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "isFirstColumnSpanned", _n_isFirstColumnSpanned0, None, Compiled, qt_QTreeView_isFirstColumnSpanned_bool_QTreeView_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "row", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + // PROP: isHeaderHidden (bool; QTreeView this) + new Function(c, "isRowHidden", _n_isRowHidden0, None, Compiled, qt_QTreeView_isRowHidden_bool_QTreeView_int_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "row", "int"), new Param(c, "parent", "qt.QModelIndex"), End), + // PROP: isSortingEnabled (bool; QTreeView this) + // PROP: itemsExpandable (bool; QTreeView this) + // PROP: resetIndentation (void; QTreeView this) + // PROP: rootIsDecorated (bool; QTreeView this) + // PROP: setAllColumnsShowFocus (void; QTreeView this, bool enable) + // PROP: setAnimated (void; QTreeView this, bool enable) + // PROP: setAutoExpandDelay (void; QTreeView this, int delay) + new Function(c, "setColumnHidden", _n_setColumnHidden0, None, Compiled, qt_QTreeView_setColumnHidden_void_QTreeView_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "column", "int"), new Param(c, "hide", "bool"), End), + new Function(c, "setColumnWidth", _n_setColumnWidth0, None, Compiled, qt_QTreeView_setColumnWidth_void_QTreeView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "column", "int"), new Param(c, "width", "int"), End), + new Function(c, "setExpanded", _n_setExpanded0, None, Compiled, qt_QTreeView_setExpanded_void_QTreeView_QModelIndex_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "expanded", "bool"), End), + // PROP: setExpandsOnDoubleClick (void; QTreeView this, bool enable) + new Function(c, "setFirstColumnSpanned", _n_setFirstColumnSpanned0, None, Compiled, qt_QTreeView_setFirstColumnSpanned_void_QTreeView_int_QModelIndex_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "row", "int"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "span", "bool"), End), + new Function(c, "setHeader", _n_setHeader0, None, Compiled, qt_QTreeView_setHeader_void_QTreeView_QHeaderView, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "header", "qt.QHeaderView"), End), + // PROP: setHeaderHidden (void; QTreeView this, bool hide) + // PROP: setIndentation (void; QTreeView this, int i) + // PROP: setItemsExpandable (void; QTreeView this, bool enable) + // PROP: setRootIsDecorated (void; QTreeView this, bool show) + new Function(c, "setRowHidden", _n_setRowHidden0, None, Compiled, qt_QTreeView_setRowHidden_void_QTreeView_int_QModelIndex_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "row", "int"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "hide", "bool"), End), + // PROP: setSortingEnabled (void; QTreeView this, bool enable) + new Function(c, "setTreePosition", _n_setTreePosition0, None, Compiled, qt_QTreeView_setTreePosition_void_QTreeView_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "int"), End), + // PROP: setUniformRowHeights (void; QTreeView this, bool uniform) + // PROP: setWordWrap (void; QTreeView this, bool on) + new Function(c, "treePosition", _n_treePosition0, None, Compiled, qt_QTreeView_treePosition_int_QTreeView, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), End), + // PROP: uniformRowHeights (bool; QTreeView this) + // PROP: wordWrap (bool; QTreeView this) + // MISSING: dataChanged (void; QTreeView this, QModelIndex topLeft, QModelIndex bottomRight, "const QList &" roles) + _func[0] = new MemberFunction(c, "indexAt", _n_indexAt0, None, Compiled, qt_QTreeView_indexAt_QModelIndex_QTreeView_QPoint, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "point", "qt.QPoint"), End), + _func[1] = new MemberFunction(c, "keyboardSearch", _n_keyboardSearch0, None, Compiled, qt_QTreeView_keyboardSearch_void_QTreeView_string, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "search", "string"), End), + _func[2] = new MemberFunction(c, "reset", _n_reset0, None, Compiled, qt_QTreeView_reset_void_QTreeView, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), End), + _func[3] = new MemberFunction(c, "scrollTo", _n_scrollTo0, None, Compiled, qt_QTreeView_scrollTo_void_QTreeView_QModelIndex_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "hint", "int", Value((int)QAbstractItemView::EnsureVisible)), End), + _func[4] = new MemberFunction(c, "selectAll", _n_selectAll0, None, Compiled, qt_QTreeView_selectAll_void_QTreeView, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), End), + _func[5] = new MemberFunction(c, "setModel", _n_setModel0, None, Compiled, qt_QTreeView_setModel_void_QTreeView_QAbstractItemModel, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "model", "qt.QAbstractItemModel"), End), + _func[6] = new MemberFunction(c, "setRootIndex", _n_setRootIndex0, None, Compiled, qt_QTreeView_setRootIndex_void_QTreeView_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[7] = new MemberFunction(c, "setSelectionModel", _n_setSelectionModel0, None, Compiled, qt_QTreeView_setSelectionModel_void_QTreeView_QItemSelectionModel, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "selectionModel", "qt.QItemSelectionModel"), End), + _func[8] = new MemberFunction(c, "visualRect", _n_visualRect0, None, Compiled, qt_QTreeView_visualRect_QRect_QTreeView_QModelIndex, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), End), + // MISSING: drawBranches (void; QTreeView this, "QPainter *" painter, QRect rect, QModelIndex index) // protected + // MISSING: drawRow (void; QTreeView this, "QPainter *" painter, "const QStyleOptionViewItem &" option, QModelIndex index) // protected + // MISSING: drawTree (void; QTreeView this, "QPainter *" painter, QRegion region) // protected + new Function(c, "indexRowSizeHint", _n_indexRowSizeHint0, None, Compiled, qt_QTreeView_indexRowSizeHint_int_QTreeView_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "rowHeight", _n_rowHeight0, None, Compiled, qt_QTreeView_rowHeight_int_QTreeView_QModelIndex, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[9] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QTreeView_changeEvent_void_QTreeView_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QEvent"), End), + _func[10] = new MemberFunction(c, "currentChanged", _n_currentChanged0, None, Compiled, qt_QTreeView_currentChanged_void_QTreeView_QModelIndex_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "current", "qt.QModelIndex"), new Param(c, "previous", "qt.QModelIndex"), End), + _func[11] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QTreeView_dragMoveEvent_void_QTreeView_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[12] = new MemberFunction(c, "horizontalOffset", _n_horizontalOffset0, None, Compiled, qt_QTreeView_horizontalOffset_int_QTreeView, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), End), + _func[13] = new MemberFunction(c, "isIndexHidden", _n_isIndexHidden0, None, Compiled, qt_QTreeView_isIndexHidden_bool_QTreeView_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), End), + _func[14] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QTreeView_keyPressEvent_void_QTreeView_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[15] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QTreeView_mouseDoubleClickEvent_void_QTreeView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[16] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QTreeView_mouseMoveEvent_void_QTreeView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[17] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QTreeView_mousePressEvent_void_QTreeView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[18] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QTreeView_mouseReleaseEvent_void_QTreeView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[19] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QTreeView_paintEvent_void_QTreeView_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[20] = new MemberFunction(c, "rowsAboutToBeRemoved", _n_rowsAboutToBeRemoved0, None, Compiled, qt_QTreeView_rowsAboutToBeRemoved_void_QTreeView_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "start", "int"), new Param(c, "end", "int"), End), + _func[21] = new MemberFunction(c, "rowsInserted", _n_rowsInserted0, None, Compiled, qt_QTreeView_rowsInserted_void_QTreeView_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "start", "int"), new Param(c, "end", "int"), End), + _func[22] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QTreeView_scrollContentsBy_void_QTreeView_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[23] = new MemberFunction(c, "selectedIndexes", _n_selectedIndexes0, None, Compiled, qt_QTreeView_selectedIndexes_qt__QModelIndexBSB_ESB__QTreeView, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QTreeView"), End), + _func[24] = new MemberFunction(c, "selectionChanged", _n_selectionChanged0, None, Compiled, qt_QTreeView_selectionChanged_void_QTreeView_QItemSelection_QItemSelection, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "selected", "qt.QItemSelection"), new Param(c, "deselected", "qt.QItemSelection"), End), + _func[25] = new MemberFunction(c, "setSelection", _n_setSelection0, None, Compiled, qt_QTreeView_setSelection_void_QTreeView_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "rect", "qt.QRect"), new Param(c, "command", "int"), End), + _func[26] = new MemberFunction(c, "sizeHintForColumn", _n_sizeHintForColumn0, None, Compiled, qt_QTreeView_sizeHintForColumn_int_QTreeView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "column", "int"), End), + _func[27] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QTreeView_timerEvent_void_QTreeView_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[28] = new MemberFunction(c, "updateGeometries", _n_updateGeometries0, None, Compiled, qt_QTreeView_updateGeometries_void_QTreeView, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), End), + _func[29] = new MemberFunction(c, "verticalOffset", _n_verticalOffset0, None, Compiled, qt_QTreeView_verticalOffset_int_QTreeView, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), End), + _func[30] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QTreeView_viewportEvent_bool_QTreeView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QEvent"), End), + _func[31] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QTreeView_viewportSizeHint_QSize_QTreeView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTreeView"), End), + _func[32] = new MemberFunction(c, "visualRegionForSelection", _n_visualRegionForSelection0, None, Compiled, qt_QTreeView_visualRegionForSelection_QRegion_QTreeView_QItemSelection, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "selection", "qt.QItemSelection"), End), + // MISSING: itemDelegateForIndex ("QAbstractItemDelegate *"; QTreeView this, QModelIndex index) + _func[33] = new MemberFunction(c, "sizeHintForRow", _n_sizeHintForRow0, None, Compiled, qt_QTreeView_sizeHintForRow_int_QTreeView_int, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "row", "int"), End), + _func[34] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QTreeView_inputMethodQuery_QVariant_QTreeView_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "query", "int"), End), + _func[35] = new MemberFunction(c, "edit", _n_edit0, None, Compiled, qt_QTreeView_edit_bool_QTreeView_QModelIndex_int_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "trigger", "int"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: initViewItemOption (void; QTreeView this, "QStyleOptionViewItem *" option) // protected + _func[36] = new MemberFunction(c, "selectionCommand", _n_selectionCommand0, None, Compiled, qt_QTreeView_selectionCommand_int_QTreeView_QModelIndex_QEvent, Return, "int", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "event", "qt.QEvent"), End), + _func[37] = new MemberFunction(c, "startDrag", _n_startDrag0, None, Compiled, qt_QTreeView_startDrag_void_QTreeView_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "supportedActions", "int"), End), + _func[38] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QTreeView_dragEnterEvent_void_QTreeView_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[39] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QTreeView_dragLeaveEvent_void_QTreeView_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[40] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QTreeView_dropEvent_void_QTreeView_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QDropEvent"), End), + _func[41] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTreeView_event_bool_QTreeView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event_", "qt.QEvent"), End), + _func[42] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QTreeView_eventFilter_bool_QTreeView_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "object", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + _func[43] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QTreeView_focusInEvent_void_QTreeView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[44] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QTreeView_focusNextPrevChild_bool_QTreeView_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "next", "bool"), End), + _func[45] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QTreeView_focusOutEvent_void_QTreeView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QTreeView this, "QInputMethodEvent *" event) // protected + _func[46] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QTreeView_resizeEvent_void_QTreeView_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeView"), new Param(c, "event", "qt.QResizeEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTreeView::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTreeWidgetItemType.cpp b/src/lib/mu/MuQt6/QTreeWidgetItemType.cpp new file mode 100644 index 000000000..3c32274f1 --- /dev/null +++ b/src/lib/mu/MuQt6/QTreeWidgetItemType.cpp @@ -0,0 +1,1039 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QTreeWidgetItemType::QTreeWidgetItemType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QTreeWidgetItemType::~QTreeWidgetItemType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_type); + setqpointer(param_this,new QTreeWidgetItem(arg1)); + return param_this; +} + +Pointer qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_stringBSB_ESB__int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_strings, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QStringList arg1 = qstringlist(param_strings); + int arg2 = (int)(param_type); + setqpointer(param_this,new QTreeWidgetItem(arg1, arg2)); + return param_this; +} + +Pointer qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget * arg1 = object(param_parent); + int arg2 = (int)(param_type); + setqpointer(param_this,new QTreeWidgetItem(arg1, arg2)); + return param_this; +} + +Pointer qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidget_stringBSB_ESB__int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, Pointer param_strings, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget * arg1 = object(param_parent); + const QStringList arg2 = qstringlist(param_strings); + int arg3 = (int)(param_type); + setqpointer(param_this,new QTreeWidgetItem(arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidget_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, Pointer param_preceding, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget * arg1 = object(param_parent); + QTreeWidgetItem * arg2 = getqpointer(param_preceding); + int arg3 = (int)(param_type); + setqpointer(param_this,new QTreeWidgetItem(arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg1 = getqpointer(param_parent); + int arg2 = (int)(param_type); + setqpointer(param_this,new QTreeWidgetItem(arg1, arg2)); + return param_this; +} + +Pointer qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_stringBSB_ESB__int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, Pointer param_strings, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg1 = getqpointer(param_parent); + const QStringList arg2 = qstringlist(param_strings); + int arg3 = (int)(param_type); + setqpointer(param_this,new QTreeWidgetItem(arg1, arg2, arg3)); + return param_this; +} + +Pointer qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, Pointer param_preceding, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg1 = getqpointer(param_parent); + QTreeWidgetItem * arg2 = getqpointer(param_preceding); + int arg3 = (int)(param_type); + setqpointer(param_this,new QTreeWidgetItem(arg1, arg2, arg3)); + return param_this; +} + +void qt_QTreeWidgetItem_addChild_void_QTreeWidgetItem_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_child) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_child); + arg0->addChild(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_addChildren_void_QTreeWidgetItem_qt__QTreeWidgetItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_children) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + const QList arg1 = qpointerlist(param_children); + arg0->addChildren(arg1); + setqpointer(param_this,arg0); +} + +Pointer qt_QTreeWidgetItem_background_QBrush_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return makeqtype(c,arg0->background(arg1),"qt.QBrush"); +} + +int qt_QTreeWidgetItem_checkState_int_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return int(arg0->checkState(arg1)); +} + +Pointer qt_QTreeWidgetItem_child_QTreeWidgetItem_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_index); + return makeqpointer(c,arg0->child(arg1),"qt.QTreeWidgetItem"); +} + +int qt_QTreeWidgetItem_childCount_int_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return arg0->childCount(); +} + +int qt_QTreeWidgetItem_childIndicatorPolicy_int_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return int(arg0->childIndicatorPolicy()); +} + +Pointer qt_QTreeWidgetItem_clone_QTreeWidgetItem_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return makeqpointer(c,arg0->clone(),"qt.QTreeWidgetItem"); +} + +int qt_QTreeWidgetItem_columnCount_int_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return arg0->columnCount(); +} + +Pointer qt_QTreeWidgetItem_data_QVariant_QTreeWidgetItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_role); + return makeqtype(c,arg0->data(arg1, arg2),"qt.QVariant"); +} + +int qt_QTreeWidgetItem_flags_int_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return int(arg0->flags()); +} + +Pointer qt_QTreeWidgetItem_font_QFont_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return makeqtype(c,arg0->font(arg1),"qt.QFont"); +} + +Pointer qt_QTreeWidgetItem_foreground_QBrush_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return makeqtype(c,arg0->foreground(arg1),"qt.QBrush"); +} + +Pointer qt_QTreeWidgetItem_icon_QIcon_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return makeqtype(c,arg0->icon(arg1),"qt.QIcon"); +} + +int qt_QTreeWidgetItem_indexOfChild_int_QTreeWidgetItem_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_child) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_child); + return arg0->indexOfChild(arg1); +} + +void qt_QTreeWidgetItem_insertChild_void_QTreeWidgetItem_int_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_child) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_index); + QTreeWidgetItem * arg2 = getqpointer(param_child); + arg0->insertChild(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_insertChildren_void_QTreeWidgetItem_int_qt__QTreeWidgetItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_children) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_index); + const QList arg2 = qpointerlist(param_children); + arg0->insertChildren(arg1, arg2); + setqpointer(param_this,arg0); +} + +bool qt_QTreeWidgetItem_isDisabled_bool_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return arg0->isDisabled(); +} + +bool qt_QTreeWidgetItem_isExpanded_bool_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return arg0->isExpanded(); +} + +bool qt_QTreeWidgetItem_isFirstColumnSpanned_bool_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return arg0->isFirstColumnSpanned(); +} + +bool qt_QTreeWidgetItem_isHidden_bool_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return arg0->isHidden(); +} + +bool qt_QTreeWidgetItem_isSelected_bool_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return arg0->isSelected(); +} + +Pointer qt_QTreeWidgetItem_parent_QTreeWidgetItem_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return makeqpointer(c,arg0->parent(),"qt.QTreeWidgetItem"); +} + +void qt_QTreeWidgetItem_removeChild_void_QTreeWidgetItem_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_child) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_child); + arg0->removeChild(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setBackground_void_QTreeWidgetItem_int_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + const QBrush arg2 = getqtype(param_brush); + arg0->setBackground(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setCheckState_void_QTreeWidgetItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_state) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + Qt::CheckState arg2 = (Qt::CheckState)(param_state); + arg0->setCheckState(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setChildIndicatorPolicy_void_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_policy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + QTreeWidgetItem::ChildIndicatorPolicy arg1 = (QTreeWidgetItem::ChildIndicatorPolicy)(param_policy); + arg0->setChildIndicatorPolicy(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setData_void_QTreeWidgetItem_int_int_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_role, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + int arg2 = (int)(param_role); + const QVariant arg3 = getqtype(param_value); + arg0->setData(arg1, arg2, arg3); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setDisabled_void_QTreeWidgetItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_disabled) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_disabled); + arg0->setDisabled(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setExpanded_void_QTreeWidgetItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_expand) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_expand); + arg0->setExpanded(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setFirstColumnSpanned_void_QTreeWidgetItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_span) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_span); + arg0->setFirstColumnSpanned(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setFlags_void_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + Qt::ItemFlags arg1 = (Qt::ItemFlags)(param_flags); + arg0->setFlags(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setFont_void_QTreeWidgetItem_int_QFont(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_font) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + const QFont arg2 = getqtype(param_font); + arg0->setFont(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setForeground_void_QTreeWidgetItem_int_QBrush(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_brush) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + const QBrush arg2 = getqtype(param_brush); + arg0->setForeground(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setHidden_void_QTreeWidgetItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_hide) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_hide); + arg0->setHidden(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setIcon_void_QTreeWidgetItem_int_QIcon(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_icon) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + const QIcon arg2 = getqtype(param_icon); + arg0->setIcon(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setSelected_void_QTreeWidgetItem_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_select) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + bool arg1 = (bool)(param_select); + arg0->setSelected(arg1); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setSizeHint_void_QTreeWidgetItem_int_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + const QSize arg2 = getqtype(param_size); + arg0->setSizeHint(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setStatusTip_void_QTreeWidgetItem_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_statusTip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + const QString arg2 = qstring(param_statusTip); + arg0->setStatusTip(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setText_void_QTreeWidgetItem_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + const QString arg2 = qstring(param_text); + arg0->setText(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setTextAlignment_void_QTreeWidgetItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_alignment) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + Qt::Alignment arg2 = (Qt::Alignment)(param_alignment); + arg0->setTextAlignment(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setToolTip_void_QTreeWidgetItem_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_toolTip) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + const QString arg2 = qstring(param_toolTip); + arg0->setToolTip(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QTreeWidgetItem_setWhatsThis_void_QTreeWidgetItem_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, Pointer param_whatsThis) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + const QString arg2 = qstring(param_whatsThis); + arg0->setWhatsThis(arg1, arg2); + setqpointer(param_this,arg0); +} + +Pointer qt_QTreeWidgetItem_sizeHint_QSize_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return makeqtype(c,arg0->sizeHint(arg1),"qt.QSize"); +} + +void qt_QTreeWidgetItem_sortChildren_void_QTreeWidgetItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_order) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + Qt::SortOrder arg2 = (Qt::SortOrder)(param_order); + arg0->sortChildren(arg1, arg2); + setqpointer(param_this,arg0); +} + +Pointer qt_QTreeWidgetItem_statusTip_string_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return makestring(c,arg0->statusTip(arg1)); +} + +Pointer qt_QTreeWidgetItem_takeChild_QTreeWidgetItem_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_index); + return makeqpointer(c,arg0->takeChild(arg1),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidgetItem_takeChildren_qt__QTreeWidgetItemBSB_ESB__QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return makeqpointerlist(c,arg0->takeChildren(),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidgetItem_text_string_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return makestring(c,arg0->text(arg1)); +} + +int qt_QTreeWidgetItem_textAlignment_int_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return arg0->textAlignment(arg1); +} + +Pointer qt_QTreeWidgetItem_toolTip_string_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return makestring(c,arg0->toolTip(arg1)); +} + +Pointer qt_QTreeWidgetItem_treeWidget_QTreeWidget_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return makeinstance(c,arg0->treeWidget(),"qt.QTreeWidget"); +} + +int qt_QTreeWidgetItem_type_int_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + return arg0->type(); +} + +Pointer qt_QTreeWidgetItem_whatsThis_string_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidgetItem * arg0 = getqpointer(param_this); + int arg1 = (int)(param_column); + return makestring(c,arg0->whatsThis(arg1)); +} + + +static NODE_IMPLEMENTATION(_n_QTreeWidgetItem0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_QTreeWidgetItem1, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_stringBSB_ESB__int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QTreeWidgetItem2, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QTreeWidgetItem3, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidget_stringBSB_ESB__int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_QTreeWidgetItem4, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidget_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_QTreeWidgetItem5, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_QTreeWidgetItem6, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_stringBSB_ESB__int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_QTreeWidgetItem7, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_addChild0, void) +{ + qt_QTreeWidgetItem_addChild_void_QTreeWidgetItem_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addChildren0, void) +{ + qt_QTreeWidgetItem_addChildren_void_QTreeWidgetItem_qt__QTreeWidgetItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_background0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_background_QBrush_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_checkState0, int) +{ + NODE_RETURN(qt_QTreeWidgetItem_checkState_int_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_child0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_child_QTreeWidgetItem_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_childCount0, int) +{ + NODE_RETURN(qt_QTreeWidgetItem_childCount_int_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_childIndicatorPolicy0, int) +{ + NODE_RETURN(qt_QTreeWidgetItem_childIndicatorPolicy_int_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clone0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_clone_QTreeWidgetItem_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_columnCount0, int) +{ + NODE_RETURN(qt_QTreeWidgetItem_columnCount_int_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_data0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_data_QVariant_QTreeWidgetItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_flags0, int) +{ + NODE_RETURN(qt_QTreeWidgetItem_flags_int_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_font0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_font_QFont_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_foreground0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_foreground_QBrush_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_icon0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_icon_QIcon_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_indexOfChild0, int) +{ + NODE_RETURN(qt_QTreeWidgetItem_indexOfChild_int_QTreeWidgetItem_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertChild0, void) +{ + qt_QTreeWidgetItem_insertChild_void_QTreeWidgetItem_int_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertChildren0, void) +{ + qt_QTreeWidgetItem_insertChildren_void_QTreeWidgetItem_int_qt__QTreeWidgetItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isDisabled0, bool) +{ + NODE_RETURN(qt_QTreeWidgetItem_isDisabled_bool_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isExpanded0, bool) +{ + NODE_RETURN(qt_QTreeWidgetItem_isExpanded_bool_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isFirstColumnSpanned0, bool) +{ + NODE_RETURN(qt_QTreeWidgetItem_isFirstColumnSpanned_bool_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isHidden0, bool) +{ + NODE_RETURN(qt_QTreeWidgetItem_isHidden_bool_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSelected0, bool) +{ + NODE_RETURN(qt_QTreeWidgetItem_isSelected_bool_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_parent0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_parent_QTreeWidgetItem_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeChild0, void) +{ + qt_QTreeWidgetItem_removeChild_void_QTreeWidgetItem_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setBackground0, void) +{ + qt_QTreeWidgetItem_setBackground_void_QTreeWidgetItem_int_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCheckState0, void) +{ + qt_QTreeWidgetItem_setCheckState_void_QTreeWidgetItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setChildIndicatorPolicy0, void) +{ + qt_QTreeWidgetItem_setChildIndicatorPolicy_void_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setData0, void) +{ + qt_QTreeWidgetItem_setData_void_QTreeWidgetItem_int_int_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setDisabled0, void) +{ + qt_QTreeWidgetItem_setDisabled_void_QTreeWidgetItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setExpanded0, void) +{ + qt_QTreeWidgetItem_setExpanded_void_QTreeWidgetItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setFirstColumnSpanned0, void) +{ + qt_QTreeWidgetItem_setFirstColumnSpanned_void_QTreeWidgetItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setFlags0, void) +{ + qt_QTreeWidgetItem_setFlags_void_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFont0, void) +{ + qt_QTreeWidgetItem_setFont_void_QTreeWidgetItem_int_QFont(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setForeground0, void) +{ + qt_QTreeWidgetItem_setForeground_void_QTreeWidgetItem_int_QBrush(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHidden0, void) +{ + qt_QTreeWidgetItem_setHidden_void_QTreeWidgetItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setIcon0, void) +{ + qt_QTreeWidgetItem_setIcon_void_QTreeWidgetItem_int_QIcon(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelected0, void) +{ + qt_QTreeWidgetItem_setSelected_void_QTreeWidgetItem_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSizeHint0, void) +{ + qt_QTreeWidgetItem_setSizeHint_void_QTreeWidgetItem_int_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setStatusTip0, void) +{ + qt_QTreeWidgetItem_setStatusTip_void_QTreeWidgetItem_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setText0, void) +{ + qt_QTreeWidgetItem_setText_void_QTreeWidgetItem_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setTextAlignment0, void) +{ + qt_QTreeWidgetItem_setTextAlignment_void_QTreeWidgetItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setToolTip0, void) +{ + qt_QTreeWidgetItem_setToolTip_void_QTreeWidgetItem_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setWhatsThis0, void) +{ + qt_QTreeWidgetItem_setWhatsThis_void_QTreeWidgetItem_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_sizeHint_QSize_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_sortChildren0, void) +{ + qt_QTreeWidgetItem_sortChildren_void_QTreeWidgetItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_statusTip0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_statusTip_string_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_takeChild0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_takeChild_QTreeWidgetItem_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_takeChildren0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_takeChildren_qt__QTreeWidgetItemBSB_ESB__QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_text0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_text_string_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_textAlignment0, int) +{ + NODE_RETURN(qt_QTreeWidgetItem_textAlignment_int_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_toolTip0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_toolTip_string_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_treeWidget0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_treeWidget_QTreeWidget_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_type0, int) +{ + NODE_RETURN(qt_QTreeWidgetItem_type_int_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_whatsThis0, Pointer) +{ + NODE_RETURN(qt_QTreeWidgetItem_whatsThis_string_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QTreeWidgetItemType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + new Alias(c, "ChildIndicatorPolicy", "int"), + new SymbolicConstant(c, "ShowIndicator", "int", Value(int(QTreeWidgetItem::ShowIndicator))), + new SymbolicConstant(c, "DontShowIndicator", "int", Value(int(QTreeWidgetItem::DontShowIndicator))), + new SymbolicConstant(c, "DontShowIndicatorWhenChildless", "int", Value(int(QTreeWidgetItem::DontShowIndicatorWhenChildless))), + new Alias(c, "ItemType", "int"), + new SymbolicConstant(c, "Type", "int", Value(int(QTreeWidgetItem::Type))), + new SymbolicConstant(c, "UserType", "int", Value(int(QTreeWidgetItem::UserType))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QTreeWidgetItem", _n_QTreeWidgetItem0, None, Compiled, qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "type", "int", Value((int)QTreeWidgetItem::Type)), End), + new Function(c, "QTreeWidgetItem", _n_QTreeWidgetItem1, None, Compiled, qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_stringBSB_ESB__int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "strings", "string[]"), new Param(c, "type", "int", Value((int)QTreeWidgetItem::Type)), End), + new Function(c, "QTreeWidgetItem", _n_QTreeWidgetItem2, None, Compiled, qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidget_int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "parent", "qt.QTreeWidget"), new Param(c, "type", "int", Value((int)QTreeWidgetItem::Type)), End), + new Function(c, "QTreeWidgetItem", _n_QTreeWidgetItem3, None, Compiled, qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidget_stringBSB_ESB__int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "parent", "qt.QTreeWidget"), new Param(c, "strings", "string[]"), new Param(c, "type", "int", Value((int)QTreeWidgetItem::Type)), End), + new Function(c, "QTreeWidgetItem", _n_QTreeWidgetItem4, None, Compiled, qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidget_QTreeWidgetItem_int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "parent", "qt.QTreeWidget"), new Param(c, "preceding", "qt.QTreeWidgetItem"), new Param(c, "type", "int", Value((int)QTreeWidgetItem::Type)), End), + new Function(c, "QTreeWidgetItem", _n_QTreeWidgetItem5, None, Compiled, qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "parent", "qt.QTreeWidgetItem"), new Param(c, "type", "int", Value((int)QTreeWidgetItem::Type)), End), + new Function(c, "QTreeWidgetItem", _n_QTreeWidgetItem6, None, Compiled, qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_stringBSB_ESB__int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "parent", "qt.QTreeWidgetItem"), new Param(c, "strings", "string[]"), new Param(c, "type", "int", Value((int)QTreeWidgetItem::Type)), End), + new Function(c, "QTreeWidgetItem", _n_QTreeWidgetItem7, None, Compiled, qt_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_QTreeWidgetItem_int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "parent", "qt.QTreeWidgetItem"), new Param(c, "preceding", "qt.QTreeWidgetItem"), new Param(c, "type", "int", Value((int)QTreeWidgetItem::Type)), End), + // MISSING: QTreeWidgetItem (QTreeWidgetItem; QTreeWidgetItem this, QTreeWidgetItem other) + new Function(c, "addChild", _n_addChild0, None, Compiled, qt_QTreeWidgetItem_addChild_void_QTreeWidgetItem_QTreeWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "child", "qt.QTreeWidgetItem"), End), + new Function(c, "addChildren", _n_addChildren0, None, Compiled, qt_QTreeWidgetItem_addChildren_void_QTreeWidgetItem_qt__QTreeWidgetItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "children", "qt.QTreeWidgetItem[]"), End), + new Function(c, "background", _n_background0, None, Compiled, qt_QTreeWidgetItem_background_QBrush_QTreeWidgetItem_int, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "checkState", _n_checkState0, None, Compiled, qt_QTreeWidgetItem_checkState_int_QTreeWidgetItem_int, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "child", _n_child0, None, Compiled, qt_QTreeWidgetItem_child_QTreeWidgetItem_QTreeWidgetItem_int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "index", "int"), End), + new Function(c, "childCount", _n_childCount0, None, Compiled, qt_QTreeWidgetItem_childCount_int_QTreeWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "childIndicatorPolicy", _n_childIndicatorPolicy0, None, Compiled, qt_QTreeWidgetItem_childIndicatorPolicy_int_QTreeWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new MemberFunction(c, "clone", _n_clone0, None, Compiled, qt_QTreeWidgetItem_clone_QTreeWidgetItem_QTreeWidgetItem, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "columnCount", _n_columnCount0, None, Compiled, qt_QTreeWidgetItem_columnCount_int_QTreeWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new MemberFunction(c, "data", _n_data0, None, Compiled, qt_QTreeWidgetItem_data_QVariant_QTreeWidgetItem_int_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "role", "int"), End), + new Function(c, "flags", _n_flags0, None, Compiled, qt_QTreeWidgetItem_flags_int_QTreeWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "font", _n_font0, None, Compiled, qt_QTreeWidgetItem_font_QFont_QTreeWidgetItem_int, Return, "qt.QFont", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "foreground", _n_foreground0, None, Compiled, qt_QTreeWidgetItem_foreground_QBrush_QTreeWidgetItem_int, Return, "qt.QBrush", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "icon", _n_icon0, None, Compiled, qt_QTreeWidgetItem_icon_QIcon_QTreeWidgetItem_int, Return, "qt.QIcon", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "indexOfChild", _n_indexOfChild0, None, Compiled, qt_QTreeWidgetItem_indexOfChild_int_QTreeWidgetItem_QTreeWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "child", "qt.QTreeWidgetItem"), End), + new Function(c, "insertChild", _n_insertChild0, None, Compiled, qt_QTreeWidgetItem_insertChild_void_QTreeWidgetItem_int_QTreeWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "index", "int"), new Param(c, "child", "qt.QTreeWidgetItem"), End), + new Function(c, "insertChildren", _n_insertChildren0, None, Compiled, qt_QTreeWidgetItem_insertChildren_void_QTreeWidgetItem_int_qt__QTreeWidgetItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "index", "int"), new Param(c, "children", "qt.QTreeWidgetItem[]"), End), + new Function(c, "isDisabled", _n_isDisabled0, None, Compiled, qt_QTreeWidgetItem_isDisabled_bool_QTreeWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "isExpanded", _n_isExpanded0, None, Compiled, qt_QTreeWidgetItem_isExpanded_bool_QTreeWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "isFirstColumnSpanned", _n_isFirstColumnSpanned0, None, Compiled, qt_QTreeWidgetItem_isFirstColumnSpanned_bool_QTreeWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "isHidden", _n_isHidden0, None, Compiled, qt_QTreeWidgetItem_isHidden_bool_QTreeWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "isSelected", _n_isSelected0, None, Compiled, qt_QTreeWidgetItem_isSelected_bool_QTreeWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "parent", _n_parent0, None, Compiled, qt_QTreeWidgetItem_parent_QTreeWidgetItem_QTreeWidgetItem, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + // MISSING: read (void; QTreeWidgetItem this, "QDataStream &" in) + new Function(c, "removeChild", _n_removeChild0, None, Compiled, qt_QTreeWidgetItem_removeChild_void_QTreeWidgetItem_QTreeWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "child", "qt.QTreeWidgetItem"), End), + new Function(c, "setBackground", _n_setBackground0, None, Compiled, qt_QTreeWidgetItem_setBackground_void_QTreeWidgetItem_int_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "brush", "qt.QBrush"), End), + new Function(c, "setCheckState", _n_setCheckState0, None, Compiled, qt_QTreeWidgetItem_setCheckState_void_QTreeWidgetItem_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "state", "int"), End), + new Function(c, "setChildIndicatorPolicy", _n_setChildIndicatorPolicy0, None, Compiled, qt_QTreeWidgetItem_setChildIndicatorPolicy_void_QTreeWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "policy", "int"), End), + new MemberFunction(c, "setData", _n_setData0, None, Compiled, qt_QTreeWidgetItem_setData_void_QTreeWidgetItem_int_int_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "role", "int"), new Param(c, "value", "qt.QVariant"), End), + new Function(c, "setDisabled", _n_setDisabled0, None, Compiled, qt_QTreeWidgetItem_setDisabled_void_QTreeWidgetItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "disabled", "bool"), End), + new Function(c, "setExpanded", _n_setExpanded0, None, Compiled, qt_QTreeWidgetItem_setExpanded_void_QTreeWidgetItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "expand", "bool"), End), + new Function(c, "setFirstColumnSpanned", _n_setFirstColumnSpanned0, None, Compiled, qt_QTreeWidgetItem_setFirstColumnSpanned_void_QTreeWidgetItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "span", "bool"), End), + new Function(c, "setFlags", _n_setFlags0, None, Compiled, qt_QTreeWidgetItem_setFlags_void_QTreeWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "flags", "int"), End), + new Function(c, "setFont", _n_setFont0, None, Compiled, qt_QTreeWidgetItem_setFont_void_QTreeWidgetItem_int_QFont, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "font", "qt.QFont"), End), + new Function(c, "setForeground", _n_setForeground0, None, Compiled, qt_QTreeWidgetItem_setForeground_void_QTreeWidgetItem_int_QBrush, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "brush", "qt.QBrush"), End), + new Function(c, "setHidden", _n_setHidden0, None, Compiled, qt_QTreeWidgetItem_setHidden_void_QTreeWidgetItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "hide", "bool"), End), + new Function(c, "setIcon", _n_setIcon0, None, Compiled, qt_QTreeWidgetItem_setIcon_void_QTreeWidgetItem_int_QIcon, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "icon", "qt.QIcon"), End), + new Function(c, "setSelected", _n_setSelected0, None, Compiled, qt_QTreeWidgetItem_setSelected_void_QTreeWidgetItem_bool, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "select", "bool"), End), + new Function(c, "setSizeHint", _n_setSizeHint0, None, Compiled, qt_QTreeWidgetItem_setSizeHint_void_QTreeWidgetItem_int_QSize, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "size", "qt.QSize"), End), + new Function(c, "setStatusTip", _n_setStatusTip0, None, Compiled, qt_QTreeWidgetItem_setStatusTip_void_QTreeWidgetItem_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "statusTip", "string"), End), + new Function(c, "setText", _n_setText0, None, Compiled, qt_QTreeWidgetItem_setText_void_QTreeWidgetItem_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "text", "string"), End), + new Function(c, "setTextAlignment", _n_setTextAlignment0, None, Compiled, qt_QTreeWidgetItem_setTextAlignment_void_QTreeWidgetItem_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "alignment", "int"), End), + new Function(c, "setToolTip", _n_setToolTip0, None, Compiled, qt_QTreeWidgetItem_setToolTip_void_QTreeWidgetItem_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "toolTip", "string"), End), + new Function(c, "setWhatsThis", _n_setWhatsThis0, None, Compiled, qt_QTreeWidgetItem_setWhatsThis_void_QTreeWidgetItem_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "whatsThis", "string"), End), + new Function(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QTreeWidgetItem_sizeHint_QSize_QTreeWidgetItem_int, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "sortChildren", _n_sortChildren0, None, Compiled, qt_QTreeWidgetItem_sortChildren_void_QTreeWidgetItem_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "order", "int"), End), + new Function(c, "statusTip", _n_statusTip0, None, Compiled, qt_QTreeWidgetItem_statusTip_string_QTreeWidgetItem_int, Return, "string", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "takeChild", _n_takeChild0, None, Compiled, qt_QTreeWidgetItem_takeChild_QTreeWidgetItem_QTreeWidgetItem_int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "index", "int"), End), + new Function(c, "takeChildren", _n_takeChildren0, None, Compiled, qt_QTreeWidgetItem_takeChildren_qt__QTreeWidgetItemBSB_ESB__QTreeWidgetItem, Return, "qt.QTreeWidgetItem[]", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "text", _n_text0, None, Compiled, qt_QTreeWidgetItem_text_string_QTreeWidgetItem_int, Return, "string", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "textAlignment", _n_textAlignment0, None, Compiled, qt_QTreeWidgetItem_textAlignment_int_QTreeWidgetItem_int, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "toolTip", _n_toolTip0, None, Compiled, qt_QTreeWidgetItem_toolTip_string_QTreeWidgetItem_int, Return, "string", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "treeWidget", _n_treeWidget0, None, Compiled, qt_QTreeWidgetItem_treeWidget_QTreeWidget_QTreeWidgetItem, Return, "qt.QTreeWidget", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "type", _n_type0, None, Compiled, qt_QTreeWidgetItem_type_int_QTreeWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), End), + new Function(c, "whatsThis", _n_whatsThis0, None, Compiled, qt_QTreeWidgetItem_whatsThis_string_QTreeWidgetItem_int, Return, "string", Parameters, new Param(c, "this", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + // MISSING: write (void; QTreeWidgetItem this, "QDataStream &" out) + // NOT INHERITABLE PROTECTED: emitDataChanged (void; QTreeWidgetItem this) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + // MISSING: = (QTreeWidgetItem; QTreeWidgetItem this, QTreeWidgetItem other) + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QTreeWidgetType.cpp b/src/lib/mu/MuQt6/QTreeWidgetType.cpp new file mode 100644 index 000000000..390b57e7f --- /dev/null +++ b/src/lib/mu/MuQt6/QTreeWidgetType.cpp @@ -0,0 +1,2008 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QTreeWidget::~MuQt_QTreeWidget() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QTreeWidget::MuQt_QTreeWidget(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QTreeWidget(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTreeWidget")); +} + +void MuQt_QTreeWidget::setSelectionModel(QItemSelectionModel * selectionModel) +{ + if (!_env) { QTreeWidget::setSelectionModel(selectionModel); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,selectionModel,"qt.QItemSelectionModel")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::setSelectionModel(selectionModel); + } +} + +bool MuQt_QTreeWidget::dropMimeData(QTreeWidgetItem * parent, int index, const QMimeData * data, Qt::DropAction action) +{ + if (!_env) return QTreeWidget::dropMimeData(parent, index, data, action); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(5); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,parent,"qt.QTreeWidgetItem")); + args[2] = Value(index); + args[3] = Value(makeinstance(c,data,"qt.QMimeData")); + args[4] = Value(int(action)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTreeWidget::dropMimeData(parent, index, data, action); + } +} + +QMimeData * MuQt_QTreeWidget::mimeData(const QList & items) const +{ + if (!_env) return QTreeWidget::mimeData(items); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointerlist(c,items,"qt.QTreeWidgetItem")); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QTreeWidget::mimeData(items); + } +} + +QStringList MuQt_QTreeWidget::mimeTypes() const +{ + if (!_env) return QTreeWidget::mimeTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QTreeWidget::mimeTypes(); + } +} + +Qt::DropActions MuQt_QTreeWidget::supportedDropActions() const +{ + if (!_env) return QTreeWidget::supportedDropActions(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::DropActions)(rval._int); + } + else + { + return QTreeWidget::supportedDropActions(); + } +} + +void MuQt_QTreeWidget::dropEvent(QDropEvent * event) +{ + if (!_env) { QTreeWidget::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::dropEvent(event); + } +} + +bool MuQt_QTreeWidget::event(QEvent * e) +{ + if (!_env) return QTreeWidget::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTreeWidget::event(e); + } +} + +QModelIndex MuQt_QTreeWidget::indexAt(const QPoint & point) const +{ + if (!_env) return QTreeWidget::indexAt(point); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,point,"qt.QPoint")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTreeWidget::indexAt(point); + } +} + +void MuQt_QTreeWidget::keyboardSearch(const QString & search) +{ + if (!_env) { QTreeWidget::keyboardSearch(search); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makestring(c,search)); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::keyboardSearch(search); + } +} + +void MuQt_QTreeWidget::reset() +{ + if (!_env) { QTreeWidget::reset(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::reset(); + } +} + +void MuQt_QTreeWidget::scrollTo(const QModelIndex & index, QAbstractItemView::ScrollHint hint) +{ + if (!_env) { QTreeWidget::scrollTo(index, hint); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + args[2] = Value(int(hint)); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::scrollTo(index, hint); + } +} + +void MuQt_QTreeWidget::selectAll() +{ + if (!_env) { QTreeWidget::selectAll(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::selectAll(); + } +} + +void MuQt_QTreeWidget::setRootIndex(const QModelIndex & index) +{ + if (!_env) { QTreeWidget::setRootIndex(index); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::setRootIndex(index); + } +} + +QRect MuQt_QTreeWidget::visualRect(const QModelIndex & index) const +{ + if (!_env) return QTreeWidget::visualRect(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTreeWidget::visualRect(index); + } +} + +void MuQt_QTreeWidget::changeEvent(QEvent * event) +{ + if (!_env) { QTreeWidget::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::changeEvent(event); + } +} + +void MuQt_QTreeWidget::currentChanged(const QModelIndex & current, const QModelIndex & previous) +{ + if (!_env) { QTreeWidget::currentChanged(current, previous); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,current,"qt.QModelIndex")); + args[2] = Value(makeqtype(c,previous,"qt.QModelIndex")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::currentChanged(current, previous); + } +} + +void MuQt_QTreeWidget::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QTreeWidget::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::dragMoveEvent(event); + } +} + +int MuQt_QTreeWidget::horizontalOffset() const +{ + if (!_env) return QTreeWidget::horizontalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTreeWidget::horizontalOffset(); + } +} + +bool MuQt_QTreeWidget::isIndexHidden(const QModelIndex & index) const +{ + if (!_env) return QTreeWidget::isIndexHidden(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,index,"qt.QModelIndex")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTreeWidget::isIndexHidden(index); + } +} + +void MuQt_QTreeWidget::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QTreeWidget::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::keyPressEvent(event); + } +} + +void MuQt_QTreeWidget::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QTreeWidget::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::mouseDoubleClickEvent(event); + } +} + +void MuQt_QTreeWidget::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QTreeWidget::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::mouseMoveEvent(event); + } +} + +void MuQt_QTreeWidget::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QTreeWidget::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::mousePressEvent(event); + } +} + +void MuQt_QTreeWidget::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QTreeWidget::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::mouseReleaseEvent(event); + } +} + +void MuQt_QTreeWidget::paintEvent(QPaintEvent * event) +{ + if (!_env) { QTreeWidget::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::paintEvent(event); + } +} + +void MuQt_QTreeWidget::rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end) +{ + if (!_env) { QTreeWidget::rowsAboutToBeRemoved(parent, start, end); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + args[2] = Value(start); + args[3] = Value(end); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::rowsAboutToBeRemoved(parent, start, end); + } +} + +void MuQt_QTreeWidget::rowsInserted(const QModelIndex & parent, int start, int end) +{ + if (!_env) { QTreeWidget::rowsInserted(parent, start, end); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,parent,"qt.QModelIndex")); + args[2] = Value(start); + args[3] = Value(end); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::rowsInserted(parent, start, end); + } +} + +void MuQt_QTreeWidget::scrollContentsBy(int dx, int dy) +{ + if (!_env) { QTreeWidget::scrollContentsBy(dx, dy); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(dx); + args[2] = Value(dy); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::scrollContentsBy(dx, dy); + } +} + +QModelIndexList MuQt_QTreeWidget::selectedIndexes() const +{ + if (!_env) return QTreeWidget::selectedIndexes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return qmodelindexlist(rval._Pointer); + } + else + { + return QTreeWidget::selectedIndexes(); + } +} + +void MuQt_QTreeWidget::selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) +{ + if (!_env) { QTreeWidget::selectionChanged(selected, deselected); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selected,"qt.QItemSelection")); + args[2] = Value(makeqtype(c,deselected,"qt.QItemSelection")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::selectionChanged(selected, deselected); + } +} + +void MuQt_QTreeWidget::setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) +{ + if (!_env) { QTreeWidget::setSelection(rect, command); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + args[2] = Value(int(command)); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::setSelection(rect, command); + } +} + +int MuQt_QTreeWidget::sizeHintForColumn(int column) const +{ + if (!_env) return QTreeWidget::sizeHintForColumn(column); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(column); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTreeWidget::sizeHintForColumn(column); + } +} + +void MuQt_QTreeWidget::timerEvent(QTimerEvent * event) +{ + if (!_env) { QTreeWidget::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::timerEvent(event); + } +} + +void MuQt_QTreeWidget::updateGeometries() +{ + if (!_env) { QTreeWidget::updateGeometries(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QTreeWidget::updateGeometries(); + } +} + +int MuQt_QTreeWidget::verticalOffset() const +{ + if (!_env) return QTreeWidget::verticalOffset(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[34]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QTreeWidget::verticalOffset(); + } +} + +bool MuQt_QTreeWidget::viewportEvent(QEvent * event) +{ + if (!_env) return QTreeWidget::viewportEvent(event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[35]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QTreeWidget::viewportEvent(event); + } +} + +QSize MuQt_QTreeWidget::viewportSizeHint() const +{ + if (!_env) return QTreeWidget::viewportSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[36]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTreeWidget::viewportSizeHint(); + } +} + +QRegion MuQt_QTreeWidget::visualRegionForSelection(const QItemSelection & selection) const +{ + if (!_env) return QTreeWidget::visualRegionForSelection(selection); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[37]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,selection,"qt.QItemSelection")); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QTreeWidget::visualRegionForSelection(selection); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QTreeWidgetType::QTreeWidgetType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QTreeWidgetType::~QTreeWidgetType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QTreeWidget_QTreeWidget_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QTreeWidget* w = object(widget)) + { + QTreeWidgetType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTreeWidget"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QTreeWidget_QTreeWidget_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QTreeWidget_QTreeWidget_QTreeWidget_QTreeWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QTreeWidget(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QTreeWidget_addTopLevelItem_void_QTreeWidget_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + arg0->addTopLevelItem(arg1); +} + +void qt_QTreeWidget_addTopLevelItems_void_QTreeWidget_qt__QTreeWidgetItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QList arg1 = qpointerlist(param_items); + arg0->addTopLevelItems(arg1); +} + +void qt_QTreeWidget_closePersistentEditor_void_QTreeWidget_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + int arg2 = (int)(param_column); + arg0->closePersistentEditor(arg1, arg2); +} + +int qt_QTreeWidget_currentColumn_int_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return arg0->currentColumn(); +} + +Pointer qt_QTreeWidget_currentItem_QTreeWidgetItem_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return makeqpointer(c,arg0->currentItem(),"qt.QTreeWidgetItem"); +} + +void qt_QTreeWidget_editItem_void_QTreeWidget_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + int arg2 = (int)(param_column); + arg0->editItem(arg1, arg2); +} + +Pointer qt_QTreeWidget_findItems_qt__QTreeWidgetItemBSB_ESB__QTreeWidget_string_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, int param_flags, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + Qt::MatchFlags arg2 = (Qt::MatchFlags)(param_flags); + int arg3 = (int)(param_column); + return makeqpointerlist(c,arg0->findItems(arg1, arg2, arg3),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidget_headerItem_QTreeWidgetItem_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return makeqpointer(c,arg0->headerItem(),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidget_indexFromItem_QModelIndex_QTreeWidget_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QTreeWidgetItem * arg1 = getqpointer(param_item); + int arg2 = (int)(param_column); + return makeqtype(c,arg0->indexFromItem(arg1, arg2),"qt.QModelIndex"); +} + +int qt_QTreeWidget_indexOfTopLevelItem_int_QTreeWidget_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + return arg0->indexOfTopLevelItem(arg1); +} + +void qt_QTreeWidget_insertTopLevelItem_void_QTreeWidget_int_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + QTreeWidgetItem * arg2 = getqpointer(param_item); + arg0->insertTopLevelItem(arg1, arg2); +} + +void qt_QTreeWidget_insertTopLevelItems_void_QTreeWidget_int_qt__QTreeWidgetItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + const QList arg2 = qpointerlist(param_items); + arg0->insertTopLevelItems(arg1, arg2); +} + +Pointer qt_QTreeWidget_invisibleRootItem_QTreeWidgetItem_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return makeqpointer(c,arg0->invisibleRootItem(),"qt.QTreeWidgetItem"); +} + +bool qt_QTreeWidget_isPersistentEditorOpen_bool_QTreeWidget_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + int arg2 = (int)(param_column); + return arg0->isPersistentEditorOpen(arg1, arg2); +} + +Pointer qt_QTreeWidget_itemAbove_QTreeWidgetItem_QTreeWidget_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QTreeWidgetItem * arg1 = getqpointer(param_item); + return makeqpointer(c,arg0->itemAbove(arg1),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidget_itemAt_QTreeWidgetItem_QTreeWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_p); + return makeqpointer(c,arg0->itemAt(arg1),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidget_itemAt_QTreeWidgetItem_QTreeWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + return makeqpointer(c,arg0->itemAt(arg1, arg2),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidget_itemBelow_QTreeWidgetItem_QTreeWidget_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QTreeWidgetItem * arg1 = getqpointer(param_item); + return makeqpointer(c,arg0->itemBelow(arg1),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidget_itemFromIndex_QTreeWidgetItem_QTreeWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return makeqpointer(c,arg0->itemFromIndex(arg1),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidget_itemWidget_QWidget_QTreeWidget_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + int arg2 = (int)(param_column); + return makeinstance(c, arg0->itemWidget(arg1, arg2), "qt.QWidget"); +} + +void qt_QTreeWidget_openPersistentEditor_void_QTreeWidget_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + int arg2 = (int)(param_column); + arg0->openPersistentEditor(arg1, arg2); +} + +void qt_QTreeWidget_removeItemWidget_void_QTreeWidget_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + int arg2 = (int)(param_column); + arg0->removeItemWidget(arg1, arg2); +} + +Pointer qt_QTreeWidget_selectedItems_qt__QTreeWidgetItemBSB_ESB__QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return makeqpointerlist(c,arg0->selectedItems(),"qt.QTreeWidgetItem"); +} + +void qt_QTreeWidget_setCurrentItem_void_QTreeWidget_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + arg0->setCurrentItem(arg1); +} + +void qt_QTreeWidget_setCurrentItem_void_QTreeWidget_QTreeWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + int arg2 = (int)(param_column); + arg0->setCurrentItem(arg1, arg2); +} + +void qt_QTreeWidget_setCurrentItem_void_QTreeWidget_QTreeWidgetItem_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_column, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + int arg2 = (int)(param_column); + QItemSelectionModel::SelectionFlags arg3 = (QItemSelectionModel::SelectionFlags)(param_command); + arg0->setCurrentItem(arg1, arg2, arg3); +} + +void qt_QTreeWidget_setHeaderItem_void_QTreeWidget_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + arg0->setHeaderItem(arg1); +} + +void qt_QTreeWidget_setHeaderLabel_void_QTreeWidget_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_label) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QString arg1 = qstring(param_label); + arg0->setHeaderLabel(arg1); +} + +void qt_QTreeWidget_setHeaderLabels_void_QTreeWidget_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_labels) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_labels); + arg0->setHeaderLabels(arg1); +} + +void qt_QTreeWidget_setItemWidget_void_QTreeWidget_QTreeWidgetItem_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item, int param_column, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_item); + int arg2 = (int)(param_column); + QWidget * arg3 = object(param_widget); + arg0->setItemWidget(arg1, arg2, arg3); +} + +int qt_QTreeWidget_sortColumn_int_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return arg0->sortColumn(); +} + +void qt_QTreeWidget_sortItems_void_QTreeWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column, int param_order) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + int arg1 = (int)(param_column); + Qt::SortOrder arg2 = (Qt::SortOrder)(param_order); + arg0->sortItems(arg1, arg2); +} + +Pointer qt_QTreeWidget_takeTopLevelItem_QTreeWidgetItem_QTreeWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeqpointer(c,arg0->takeTopLevelItem(arg1),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidget_topLevelItem_QTreeWidgetItem_QTreeWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + int arg1 = (int)(param_index); + return makeqpointer(c,arg0->topLevelItem(arg1),"qt.QTreeWidgetItem"); +} + +Pointer qt_QTreeWidget_visualItemRect_QRect_QTreeWidget_QTreeWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QTreeWidgetItem * arg1 = getqpointer(param_item); + return makeqtype(c,arg0->visualItemRect(arg1),"qt.QRect"); +} + +void qt_QTreeWidget_setSelectionModel_void_QTreeWidget_QItemSelectionModel(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selectionModel) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QItemSelectionModel * arg1 = object(param_selectionModel); + if (isMuQtObject(arg0)) arg0->QTreeWidget::setSelectionModel(arg1); + else arg0->setSelectionModel(arg1); +} + +bool qt_QTreeWidget_dropMimeData_bool_QTreeWidget_QTreeWidgetItem_int_QMimeData_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_index, Pointer param_data, int param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTreeWidgetItem * arg1 = getqpointer(param_parent); + int arg2 = (int)(param_index); + const QMimeData * arg3 = object(param_data); + Qt::DropAction arg4 = (Qt::DropAction)(param_action); + return isMuQtObject(arg0) ? ((MuQt_QTreeWidget*)arg0)->dropMimeData_pub_parent(arg1, arg2, arg3, arg4) : ((MuQt_QTreeWidget*)arg0)->dropMimeData_pub(arg1, arg2, arg3, arg4); +} + +Pointer qt_QTreeWidget_mimeData_QMimeData_QTreeWidget_qt__QTreeWidgetItemBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_items) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QList arg1 = qpointerlist(param_items); + return isMuQtObject(arg0) ? makeinstance(c, ((MuQt_QTreeWidget*)arg0)->mimeData_pub_parent(arg1), "qt.QMimeData") : makeinstance(c, ((MuQt_QTreeWidget*)arg0)->mimeData_pub(arg1), "qt.QMimeData"); +} + +Pointer qt_QTreeWidget_mimeTypes_stringBSB_ESB__QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makestringlist(c,((MuQt_QTreeWidget*)arg0)->mimeTypes_pub_parent()) : makestringlist(c,((MuQt_QTreeWidget*)arg0)->mimeTypes_pub()); +} + +int qt_QTreeWidget_supportedDropActions_int_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(((MuQt_QTreeWidget*)arg0)->supportedDropActions_pub_parent()) : int(((MuQt_QTreeWidget*)arg0)->supportedDropActions_pub()); +} + +void qt_QTreeWidget_dropEvent_void_QTreeWidget_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QTreeWidget*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QTreeWidget_event_bool_QTreeWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? ((MuQt_QTreeWidget*)arg0)->event_pub_parent(arg1) : ((MuQt_QTreeWidget*)arg0)->event_pub(arg1); +} + +Pointer qt_QTreeWidget_indexAt_QModelIndex_QTreeWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_point) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_point); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTreeWidget::indexAt(arg1),"qt.QModelIndex") : makeqtype(c,arg0->indexAt(arg1),"qt.QModelIndex"); +} + +void qt_QTreeWidget_keyboardSearch_void_QTreeWidget_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_search) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QString arg1 = qstring(param_search); + if (isMuQtObject(arg0)) arg0->QTreeWidget::keyboardSearch(arg1); + else arg0->keyboardSearch(arg1); +} + +void qt_QTreeWidget_reset_void_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QTreeWidget::reset(); + else arg0->reset(); +} + +void qt_QTreeWidget_scrollTo_void_QTreeWidget_QModelIndex_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index, int param_hint) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + QAbstractItemView::ScrollHint arg2 = (QAbstractItemView::ScrollHint)(param_hint); + if (isMuQtObject(arg0)) arg0->QTreeWidget::scrollTo(arg1, arg2); + else arg0->scrollTo(arg1, arg2); +} + +void qt_QTreeWidget_selectAll_void_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QTreeWidget::selectAll(); + else arg0->selectAll(); +} + +void qt_QTreeWidget_setRootIndex_void_QTreeWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + if (isMuQtObject(arg0)) arg0->QTreeWidget::setRootIndex(arg1); + else arg0->setRootIndex(arg1); +} + +Pointer qt_QTreeWidget_visualRect_QRect_QTreeWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QTreeWidget::visualRect(arg1),"qt.QRect") : makeqtype(c,arg0->visualRect(arg1),"qt.QRect"); +} + +void qt_QTreeWidget_changeEvent_void_QTreeWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QTreeWidget*)arg0)->changeEvent_pub(arg1); +} + +void qt_QTreeWidget_currentChanged_void_QTreeWidget_QModelIndex_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_current, Pointer param_previous) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_current); + const QModelIndex arg2 = getqtype(param_previous); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->currentChanged_pub_parent(arg1, arg2); + else ((MuQt_QTreeWidget*)arg0)->currentChanged_pub(arg1, arg2); +} + +void qt_QTreeWidget_dragMoveEvent_void_QTreeWidget_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QTreeWidget*)arg0)->dragMoveEvent_pub(arg1); +} + +int qt_QTreeWidget_horizontalOffset_int_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QTreeWidget*)arg0)->horizontalOffset_pub_parent() : ((MuQt_QTreeWidget*)arg0)->horizontalOffset_pub(); +} + +bool qt_QTreeWidget_isIndexHidden_bool_QTreeWidget_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_index); + return isMuQtObject(arg0) ? ((MuQt_QTreeWidget*)arg0)->isIndexHidden_pub_parent(arg1) : ((MuQt_QTreeWidget*)arg0)->isIndexHidden_pub(arg1); +} + +void qt_QTreeWidget_keyPressEvent_void_QTreeWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QTreeWidget*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QTreeWidget_mouseDoubleClickEvent_void_QTreeWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QTreeWidget*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QTreeWidget_mouseMoveEvent_void_QTreeWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QTreeWidget*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QTreeWidget_mousePressEvent_void_QTreeWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QTreeWidget*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QTreeWidget_mouseReleaseEvent_void_QTreeWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QTreeWidget*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QTreeWidget_paintEvent_void_QTreeWidget_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QTreeWidget*)arg0)->paintEvent_pub(arg1); +} + +void qt_QTreeWidget_rowsAboutToBeRemoved_void_QTreeWidget_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_start, int param_end) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_start); + int arg3 = (int)(param_end); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->rowsAboutToBeRemoved_pub_parent(arg1, arg2, arg3); + else ((MuQt_QTreeWidget*)arg0)->rowsAboutToBeRemoved_pub(arg1, arg2, arg3); +} + +void qt_QTreeWidget_rowsInserted_void_QTreeWidget_QModelIndex_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_start, int param_end) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QModelIndex arg1 = getqtype(param_parent); + int arg2 = (int)(param_start); + int arg3 = (int)(param_end); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->rowsInserted_pub_parent(arg1, arg2, arg3); + else ((MuQt_QTreeWidget*)arg0)->rowsInserted_pub(arg1, arg2, arg3); +} + +void qt_QTreeWidget_scrollContentsBy_void_QTreeWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->scrollContentsBy_pub_parent(arg1, arg2); + else ((MuQt_QTreeWidget*)arg0)->scrollContentsBy_pub(arg1, arg2); +} + +Pointer qt_QTreeWidget_selectedIndexes_qt__QModelIndexBSB_ESB__QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqmodelindexlist(c,((MuQt_QTreeWidget*)arg0)->selectedIndexes_pub_parent()) : makeqmodelindexlist(c,((MuQt_QTreeWidget*)arg0)->selectedIndexes_pub()); +} + +void qt_QTreeWidget_selectionChanged_void_QTreeWidget_QItemSelection_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selected, Pointer param_deselected) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selected); + const QItemSelection arg2 = getqtype(param_deselected); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->selectionChanged_pub_parent(arg1, arg2); + else ((MuQt_QTreeWidget*)arg0)->selectionChanged_pub(arg1, arg2); +} + +void qt_QTreeWidget_setSelection_void_QTreeWidget_QRect_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect, int param_command) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + QItemSelectionModel::SelectionFlags arg2 = (QItemSelectionModel::SelectionFlags)(param_command); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->setSelection_pub_parent(arg1, arg2); + else ((MuQt_QTreeWidget*)arg0)->setSelection_pub(arg1, arg2); +} + +int qt_QTreeWidget_sizeHintForColumn_int_QTreeWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_column) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + int arg1 = (int)(param_column); + return isMuQtObject(arg0) ? ((MuQt_QTreeWidget*)arg0)->sizeHintForColumn_pub_parent(arg1) : ((MuQt_QTreeWidget*)arg0)->sizeHintForColumn_pub(arg1); +} + +void qt_QTreeWidget_timerEvent_void_QTreeWidget_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QTreeWidget*)arg0)->timerEvent_pub(arg1); +} + +void qt_QTreeWidget_updateGeometries_void_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + if (isMuQtObject(arg0)) ((MuQt_QTreeWidget*)arg0)->updateGeometries_pub_parent(); + else ((MuQt_QTreeWidget*)arg0)->updateGeometries_pub(); +} + +int qt_QTreeWidget_verticalOffset_int_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? ((MuQt_QTreeWidget*)arg0)->verticalOffset_pub_parent() : ((MuQt_QTreeWidget*)arg0)->verticalOffset_pub(); +} + +bool qt_QTreeWidget_viewportEvent_bool_QTreeWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QTreeWidget*)arg0)->viewportEvent_pub_parent(arg1) : ((MuQt_QTreeWidget*)arg0)->viewportEvent_pub(arg1); +} + +Pointer qt_QTreeWidget_viewportSizeHint_QSize_QTreeWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTreeWidget*)arg0)->viewportSizeHint_pub_parent(),"qt.QSize") : makeqtype(c,((MuQt_QTreeWidget*)arg0)->viewportSizeHint_pub(),"qt.QSize"); +} + +Pointer qt_QTreeWidget_visualRegionForSelection_QRegion_QTreeWidget_QItemSelection(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_selection) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTreeWidget* arg0 = object(param_this); + const QItemSelection arg1 = getqtype(param_selection); + return isMuQtObject(arg0) ? makeqtype(c,((MuQt_QTreeWidget*)arg0)->visualRegionForSelection_pub_parent(arg1),"qt.QRegion") : makeqtype(c,((MuQt_QTreeWidget*)arg0)->visualRegionForSelection_pub(arg1),"qt.QRegion"); +} + + +static NODE_IMPLEMENTATION(_n_QTreeWidget0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_QTreeWidget_QTreeWidget_QTreeWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addTopLevelItem0, void) +{ + qt_QTreeWidget_addTopLevelItem_void_QTreeWidget_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addTopLevelItems0, void) +{ + qt_QTreeWidget_addTopLevelItems_void_QTreeWidget_qt__QTreeWidgetItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closePersistentEditor0, void) +{ + qt_QTreeWidget_closePersistentEditor_void_QTreeWidget_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_currentColumn0, int) +{ + NODE_RETURN(qt_QTreeWidget_currentColumn_int_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentItem0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_currentItem_QTreeWidgetItem_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_editItem0, void) +{ + qt_QTreeWidget_editItem_void_QTreeWidget_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_findItems0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_findItems_qt__QTreeWidgetItemBSB_ESB__QTreeWidget_string_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int))); +} + +static NODE_IMPLEMENTATION(_n_headerItem0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_headerItem_QTreeWidgetItem_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexFromItem0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_indexFromItem_QModelIndex_QTreeWidget_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_indexOfTopLevelItem0, int) +{ + NODE_RETURN(qt_QTreeWidget_indexOfTopLevelItem_int_QTreeWidget_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_insertTopLevelItem0, void) +{ + qt_QTreeWidget_insertTopLevelItem_void_QTreeWidget_int_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_insertTopLevelItems0, void) +{ + qt_QTreeWidget_insertTopLevelItems_void_QTreeWidget_int_qt__QTreeWidgetItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_invisibleRootItem0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_invisibleRootItem_QTreeWidgetItem_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isPersistentEditorOpen0, bool) +{ + NODE_RETURN(qt_QTreeWidget_isPersistentEditorOpen_bool_QTreeWidget_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_itemAbove0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_itemAbove_QTreeWidgetItem_QTreeWidget_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemAt0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_itemAt_QTreeWidgetItem_QTreeWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemAt1, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_itemAt_QTreeWidgetItem_QTreeWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_itemBelow0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_itemBelow_QTreeWidgetItem_QTreeWidget_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemFromIndex0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_itemFromIndex_QTreeWidgetItem_QTreeWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_itemWidget0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_itemWidget_QWidget_QTreeWidget_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_openPersistentEditor0, void) +{ + qt_QTreeWidget_openPersistentEditor_void_QTreeWidget_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_removeItemWidget0, void) +{ + qt_QTreeWidget_removeItemWidget_void_QTreeWidget_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectedItems0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_selectedItems_qt__QTreeWidgetItemBSB_ESB__QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setCurrentItem0, void) +{ + qt_QTreeWidget_setCurrentItem_void_QTreeWidget_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCurrentItem1, void) +{ + qt_QTreeWidget_setCurrentItem_void_QTreeWidget_QTreeWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setCurrentItem2, void) +{ + qt_QTreeWidget_setCurrentItem_void_QTreeWidget_QTreeWidgetItem_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_setHeaderItem0, void) +{ + qt_QTreeWidget_setHeaderItem_void_QTreeWidget_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHeaderLabel0, void) +{ + qt_QTreeWidget_setHeaderLabel_void_QTreeWidget_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHeaderLabels0, void) +{ + qt_QTreeWidget_setHeaderLabels_void_QTreeWidget_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setItemWidget0, void) +{ + qt_QTreeWidget_setItemWidget_void_QTreeWidget_QTreeWidgetItem_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sortColumn0, int) +{ + NODE_RETURN(qt_QTreeWidget_sortColumn_int_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_sortItems0, void) +{ + qt_QTreeWidget_sortItems_void_QTreeWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_takeTopLevelItem0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_takeTopLevelItem_QTreeWidgetItem_QTreeWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_topLevelItem0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_topLevelItem_QTreeWidgetItem_QTreeWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_visualItemRect0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_visualItemRect_QRect_QTreeWidget_QTreeWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setSelectionModel0, void) +{ + qt_QTreeWidget_setSelectionModel_void_QTreeWidget_QItemSelectionModel(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropMimeData0, bool) +{ + NODE_RETURN(qt_QTreeWidget_dropMimeData_bool_QTreeWidget_QTreeWidgetItem_int_QMimeData_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, Pointer), NODE_ARG(4, int))); +} + +static NODE_IMPLEMENTATION(_n_mimeData0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_mimeData_QMimeData_QTreeWidget_qt__QTreeWidgetItemBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mimeTypes0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_mimeTypes_stringBSB_ESB__QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_supportedDropActions0, int) +{ + NODE_RETURN(qt_QTreeWidget_supportedDropActions_int_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QTreeWidget_dropEvent_void_QTreeWidget_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QTreeWidget_event_bool_QTreeWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_indexAt0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_indexAt_QModelIndex_QTreeWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyboardSearch0, void) +{ + qt_QTreeWidget_keyboardSearch_void_QTreeWidget_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_reset0, void) +{ + qt_QTreeWidget_reset_void_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_scrollTo0, void) +{ + qt_QTreeWidget_scrollTo_void_QTreeWidget_QModelIndex_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectAll0, void) +{ + qt_QTreeWidget_selectAll_void_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setRootIndex0, void) +{ + qt_QTreeWidget_setRootIndex_void_QTreeWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_visualRect0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_visualRect_QRect_QTreeWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QTreeWidget_changeEvent_void_QTreeWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_currentChanged0, void) +{ + qt_QTreeWidget_currentChanged_void_QTreeWidget_QModelIndex_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QTreeWidget_dragMoveEvent_void_QTreeWidget_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_horizontalOffset0, int) +{ + NODE_RETURN(qt_QTreeWidget_horizontalOffset_int_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isIndexHidden0, bool) +{ + NODE_RETURN(qt_QTreeWidget_isIndexHidden_bool_QTreeWidget_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QTreeWidget_keyPressEvent_void_QTreeWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QTreeWidget_mouseDoubleClickEvent_void_QTreeWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QTreeWidget_mouseMoveEvent_void_QTreeWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QTreeWidget_mousePressEvent_void_QTreeWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QTreeWidget_mouseReleaseEvent_void_QTreeWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QTreeWidget_paintEvent_void_QTreeWidget_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_rowsAboutToBeRemoved0, void) +{ + qt_QTreeWidget_rowsAboutToBeRemoved_void_QTreeWidget_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_rowsInserted0, void) +{ + qt_QTreeWidget_rowsInserted_void_QTreeWidget_QModelIndex_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_scrollContentsBy0, void) +{ + qt_QTreeWidget_scrollContentsBy_void_QTreeWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_selectedIndexes0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_selectedIndexes_qt__QModelIndexBSB_ESB__QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_selectionChanged0, void) +{ + qt_QTreeWidget_selectionChanged_void_QTreeWidget_QItemSelection_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSelection0, void) +{ + qt_QTreeWidget_setSelection_void_QTreeWidget_QRect_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHintForColumn0, int) +{ + NODE_RETURN(qt_QTreeWidget_sizeHintForColumn_int_QTreeWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QTreeWidget_timerEvent_void_QTreeWidget_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_updateGeometries0, void) +{ + qt_QTreeWidget_updateGeometries_void_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_verticalOffset0, int) +{ + NODE_RETURN(qt_QTreeWidget_verticalOffset_int_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportEvent0, bool) +{ + NODE_RETURN(qt_QTreeWidget_viewportEvent_bool_QTreeWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_viewportSizeHint0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_viewportSizeHint_QSize_QTreeWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visualRegionForSelection0, Pointer) +{ + NODE_RETURN(qt_QTreeWidget_visualRegionForSelection_QRegion_QTreeWidget_QItemSelection(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QTreeWidgetType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QTreeWidget_QTreeWidget_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QTreeWidget", _n_QTreeWidget0, None, Compiled, qt_QTreeWidget_QTreeWidget_QTreeWidget_QTreeWidget_QWidget, Return, "qt.QTreeWidget", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "addTopLevelItem", _n_addTopLevelItem0, None, Compiled, qt_QTreeWidget_addTopLevelItem_void_QTreeWidget_QTreeWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), End), + new Function(c, "addTopLevelItems", _n_addTopLevelItems0, None, Compiled, qt_QTreeWidget_addTopLevelItems_void_QTreeWidget_qt__QTreeWidgetItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "items", "qt.QTreeWidgetItem[]"), End), + new Function(c, "closePersistentEditor", _n_closePersistentEditor0, None, Compiled, qt_QTreeWidget_closePersistentEditor_void_QTreeWidget_QTreeWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), new Param(c, "column", "int", Value((int)0)), End), + // PROP: columnCount (int; QTreeWidget this) + new Function(c, "currentColumn", _n_currentColumn0, None, Compiled, qt_QTreeWidget_currentColumn_int_QTreeWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + new Function(c, "currentItem", _n_currentItem0, None, Compiled, qt_QTreeWidget_currentItem_QTreeWidgetItem_QTreeWidget, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + new Function(c, "editItem", _n_editItem0, None, Compiled, qt_QTreeWidget_editItem_void_QTreeWidget_QTreeWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "findItems", _n_findItems0, None, Compiled, qt_QTreeWidget_findItems_qt__QTreeWidgetItemBSB_ESB__QTreeWidget_string_int_int, Return, "qt.QTreeWidgetItem[]", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "text", "string"), new Param(c, "flags", "int"), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "headerItem", _n_headerItem0, None, Compiled, qt_QTreeWidget_headerItem_QTreeWidgetItem_QTreeWidget, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + new Function(c, "indexFromItem", _n_indexFromItem0, None, Compiled, qt_QTreeWidget_indexFromItem_QModelIndex_QTreeWidget_QTreeWidgetItem_int, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "indexOfTopLevelItem", _n_indexOfTopLevelItem0, None, Compiled, qt_QTreeWidget_indexOfTopLevelItem_int_QTreeWidget_QTreeWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), End), + new Function(c, "insertTopLevelItem", _n_insertTopLevelItem0, None, Compiled, qt_QTreeWidget_insertTopLevelItem_void_QTreeWidget_int_QTreeWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "index", "int"), new Param(c, "item", "qt.QTreeWidgetItem"), End), + new Function(c, "insertTopLevelItems", _n_insertTopLevelItems0, None, Compiled, qt_QTreeWidget_insertTopLevelItems_void_QTreeWidget_int_qt__QTreeWidgetItemBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "index", "int"), new Param(c, "items", "qt.QTreeWidgetItem[]"), End), + new Function(c, "invisibleRootItem", _n_invisibleRootItem0, None, Compiled, qt_QTreeWidget_invisibleRootItem_QTreeWidgetItem_QTreeWidget, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + new Function(c, "isPersistentEditorOpen", _n_isPersistentEditorOpen0, None, Compiled, qt_QTreeWidget_isPersistentEditorOpen_bool_QTreeWidget_QTreeWidgetItem_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "itemAbove", _n_itemAbove0, None, Compiled, qt_QTreeWidget_itemAbove_QTreeWidgetItem_QTreeWidget_QTreeWidgetItem, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), End), + new Function(c, "itemAt", _n_itemAt0, None, Compiled, qt_QTreeWidget_itemAt_QTreeWidgetItem_QTreeWidget_QPoint, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "p", "qt.QPoint"), End), + new Function(c, "itemAt", _n_itemAt1, None, Compiled, qt_QTreeWidget_itemAt_QTreeWidgetItem_QTreeWidget_int_int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "itemBelow", _n_itemBelow0, None, Compiled, qt_QTreeWidget_itemBelow_QTreeWidgetItem_QTreeWidget_QTreeWidgetItem, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), End), + new Function(c, "itemFromIndex", _n_itemFromIndex0, None, Compiled, qt_QTreeWidget_itemFromIndex_QTreeWidgetItem_QTreeWidget_QModelIndex, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "index", "qt.QModelIndex"), End), + new Function(c, "itemWidget", _n_itemWidget0, None, Compiled, qt_QTreeWidget_itemWidget_QWidget_QTreeWidget_QTreeWidgetItem_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "openPersistentEditor", _n_openPersistentEditor0, None, Compiled, qt_QTreeWidget_openPersistentEditor_void_QTreeWidget_QTreeWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), new Param(c, "column", "int", Value((int)0)), End), + new Function(c, "removeItemWidget", _n_removeItemWidget0, None, Compiled, qt_QTreeWidget_removeItemWidget_void_QTreeWidget_QTreeWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "selectedItems", _n_selectedItems0, None, Compiled, qt_QTreeWidget_selectedItems_qt__QTreeWidgetItemBSB_ESB__QTreeWidget, Return, "qt.QTreeWidgetItem[]", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + // PROP: setColumnCount (void; QTreeWidget this, int columns) + new Function(c, "setCurrentItem", _n_setCurrentItem0, None, Compiled, qt_QTreeWidget_setCurrentItem_void_QTreeWidget_QTreeWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), End), + new Function(c, "setCurrentItem", _n_setCurrentItem1, None, Compiled, qt_QTreeWidget_setCurrentItem_void_QTreeWidget_QTreeWidgetItem_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), End), + new Function(c, "setCurrentItem", _n_setCurrentItem2, None, Compiled, qt_QTreeWidget_setCurrentItem_void_QTreeWidget_QTreeWidgetItem_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "command", "int"), End), + new Function(c, "setHeaderItem", _n_setHeaderItem0, None, Compiled, qt_QTreeWidget_setHeaderItem_void_QTreeWidget_QTreeWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), End), + new Function(c, "setHeaderLabel", _n_setHeaderLabel0, None, Compiled, qt_QTreeWidget_setHeaderLabel_void_QTreeWidget_string, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "label", "string"), End), + new Function(c, "setHeaderLabels", _n_setHeaderLabels0, None, Compiled, qt_QTreeWidget_setHeaderLabels_void_QTreeWidget_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "labels", "string[]"), End), + new Function(c, "setItemWidget", _n_setItemWidget0, None, Compiled, qt_QTreeWidget_setItemWidget_void_QTreeWidget_QTreeWidgetItem_int_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), new Param(c, "column", "int"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "sortColumn", _n_sortColumn0, None, Compiled, qt_QTreeWidget_sortColumn_int_QTreeWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + new Function(c, "sortItems", _n_sortItems0, None, Compiled, qt_QTreeWidget_sortItems_void_QTreeWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "column", "int"), new Param(c, "order", "int"), End), + new Function(c, "takeTopLevelItem", _n_takeTopLevelItem0, None, Compiled, qt_QTreeWidget_takeTopLevelItem_QTreeWidgetItem_QTreeWidget_int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "index", "int"), End), + new Function(c, "topLevelItem", _n_topLevelItem0, None, Compiled, qt_QTreeWidget_topLevelItem_QTreeWidgetItem_QTreeWidget_int, Return, "qt.QTreeWidgetItem", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "index", "int"), End), + // PROP: topLevelItemCount (int; QTreeWidget this) + new Function(c, "visualItemRect", _n_visualItemRect0, None, Compiled, qt_QTreeWidget_visualItemRect_QRect_QTreeWidget_QTreeWidgetItem, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "item", "qt.QTreeWidgetItem"), End), + _func[0] = new MemberFunction(c, "setSelectionModel", _n_setSelectionModel0, None, Compiled, qt_QTreeWidget_setSelectionModel_void_QTreeWidget_QItemSelectionModel, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "selectionModel", "qt.QItemSelectionModel"), End), + _func[1] = new MemberFunction(c, "dropMimeData", _n_dropMimeData0, None, Compiled, qt_QTreeWidget_dropMimeData_bool_QTreeWidget_QTreeWidgetItem_int_QMimeData_int, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "parent", "qt.QTreeWidgetItem"), new Param(c, "index", "int"), new Param(c, "data", "qt.QMimeData"), new Param(c, "action", "int"), End), + _func[2] = new MemberFunction(c, "mimeData", _n_mimeData0, None, Compiled, qt_QTreeWidget_mimeData_QMimeData_QTreeWidget_qt__QTreeWidgetItemBSB_ESB_, Return, "qt.QMimeData", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "items", "qt.QTreeWidgetItem[]"), End), + _func[3] = new MemberFunction(c, "mimeTypes", _n_mimeTypes0, None, Compiled, qt_QTreeWidget_mimeTypes_stringBSB_ESB__QTreeWidget, Return, "string[]", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + _func[4] = new MemberFunction(c, "supportedDropActions", _n_supportedDropActions0, None, Compiled, qt_QTreeWidget_supportedDropActions_int_QTreeWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + _func[5] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QTreeWidget_dropEvent_void_QTreeWidget_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QDropEvent"), End), + _func[6] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QTreeWidget_event_bool_QTreeWidget_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "e", "qt.QEvent"), End), + // MISSING: dataChanged (void; QTreeWidget this, QModelIndex topLeft, QModelIndex bottomRight, "const QList &" roles) + _func[7] = new MemberFunction(c, "indexAt", _n_indexAt0, None, Compiled, qt_QTreeWidget_indexAt_QModelIndex_QTreeWidget_QPoint, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "point", "qt.QPoint"), End), + _func[8] = new MemberFunction(c, "keyboardSearch", _n_keyboardSearch0, None, Compiled, qt_QTreeWidget_keyboardSearch_void_QTreeWidget_string, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "search", "string"), End), + _func[9] = new MemberFunction(c, "reset", _n_reset0, None, Compiled, qt_QTreeWidget_reset_void_QTreeWidget, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + _func[10] = new MemberFunction(c, "scrollTo", _n_scrollTo0, None, Compiled, qt_QTreeWidget_scrollTo_void_QTreeWidget_QModelIndex_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "index", "qt.QModelIndex"), new Param(c, "hint", "int", Value((int)QAbstractItemView::EnsureVisible)), End), + _func[11] = new MemberFunction(c, "selectAll", _n_selectAll0, None, Compiled, qt_QTreeWidget_selectAll_void_QTreeWidget, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + _func[12] = new MemberFunction(c, "setRootIndex", _n_setRootIndex0, None, Compiled, qt_QTreeWidget_setRootIndex_void_QTreeWidget_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "index", "qt.QModelIndex"), End), + _func[13] = new MemberFunction(c, "visualRect", _n_visualRect0, None, Compiled, qt_QTreeWidget_visualRect_QRect_QTreeWidget_QModelIndex, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "index", "qt.QModelIndex"), End), + // MISSING: drawBranches (void; QTreeWidget this, "QPainter *" painter, QRect rect, QModelIndex index) // protected + // MISSING: drawRow (void; QTreeWidget this, "QPainter *" painter, "const QStyleOptionViewItem &" option, QModelIndex index) // protected + _func[14] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QTreeWidget_changeEvent_void_QTreeWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[15] = new MemberFunction(c, "currentChanged", _n_currentChanged0, None, Compiled, qt_QTreeWidget_currentChanged_void_QTreeWidget_QModelIndex_QModelIndex, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "current", "qt.QModelIndex"), new Param(c, "previous", "qt.QModelIndex"), End), + _func[16] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QTreeWidget_dragMoveEvent_void_QTreeWidget_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[17] = new MemberFunction(c, "horizontalOffset", _n_horizontalOffset0, None, Compiled, qt_QTreeWidget_horizontalOffset_int_QTreeWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + _func[18] = new MemberFunction(c, "isIndexHidden", _n_isIndexHidden0, None, Compiled, qt_QTreeWidget_isIndexHidden_bool_QTreeWidget_QModelIndex, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "index", "qt.QModelIndex"), End), + _func[19] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QTreeWidget_keyPressEvent_void_QTreeWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[20] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QTreeWidget_mouseDoubleClickEvent_void_QTreeWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[21] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QTreeWidget_mouseMoveEvent_void_QTreeWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[22] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QTreeWidget_mousePressEvent_void_QTreeWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[23] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QTreeWidget_mouseReleaseEvent_void_QTreeWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QTreeWidget_paintEvent_void_QTreeWidget_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[25] = new MemberFunction(c, "rowsAboutToBeRemoved", _n_rowsAboutToBeRemoved0, None, Compiled, qt_QTreeWidget_rowsAboutToBeRemoved_void_QTreeWidget_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "start", "int"), new Param(c, "end", "int"), End), + _func[26] = new MemberFunction(c, "rowsInserted", _n_rowsInserted0, None, Compiled, qt_QTreeWidget_rowsInserted_void_QTreeWidget_QModelIndex_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "parent", "qt.QModelIndex"), new Param(c, "start", "int"), new Param(c, "end", "int"), End), + _func[27] = new MemberFunction(c, "scrollContentsBy", _n_scrollContentsBy0, None, Compiled, qt_QTreeWidget_scrollContentsBy_void_QTreeWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + _func[28] = new MemberFunction(c, "selectedIndexes", _n_selectedIndexes0, None, Compiled, qt_QTreeWidget_selectedIndexes_qt__QModelIndexBSB_ESB__QTreeWidget, Return, "qt.QModelIndex[]", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + _func[29] = new MemberFunction(c, "selectionChanged", _n_selectionChanged0, None, Compiled, qt_QTreeWidget_selectionChanged_void_QTreeWidget_QItemSelection_QItemSelection, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "selected", "qt.QItemSelection"), new Param(c, "deselected", "qt.QItemSelection"), End), + _func[30] = new MemberFunction(c, "setSelection", _n_setSelection0, None, Compiled, qt_QTreeWidget_setSelection_void_QTreeWidget_QRect_int, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "rect", "qt.QRect"), new Param(c, "command", "int"), End), + _func[31] = new MemberFunction(c, "sizeHintForColumn", _n_sizeHintForColumn0, None, Compiled, qt_QTreeWidget_sizeHintForColumn_int_QTreeWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "column", "int"), End), + _func[32] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QTreeWidget_timerEvent_void_QTreeWidget_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QTimerEvent"), End), + _func[33] = new MemberFunction(c, "updateGeometries", _n_updateGeometries0, None, Compiled, qt_QTreeWidget_updateGeometries_void_QTreeWidget, Return, "void", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + _func[34] = new MemberFunction(c, "verticalOffset", _n_verticalOffset0, None, Compiled, qt_QTreeWidget_verticalOffset_int_QTreeWidget, Return, "int", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + _func[35] = new MemberFunction(c, "viewportEvent", _n_viewportEvent0, None, Compiled, qt_QTreeWidget_viewportEvent_bool_QTreeWidget_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[36] = new MemberFunction(c, "viewportSizeHint", _n_viewportSizeHint0, None, Compiled, qt_QTreeWidget_viewportSizeHint_QSize_QTreeWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QTreeWidget"), End), + _func[37] = new MemberFunction(c, "visualRegionForSelection", _n_visualRegionForSelection0, None, Compiled, qt_QTreeWidget_visualRegionForSelection_QRegion_QTreeWidget_QItemSelection, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QTreeWidget"), new Param(c, "selection", "qt.QItemSelection"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QTreeWidget::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QUdpSocketType.cpp b/src/lib/mu/MuQt6/QUdpSocketType.cpp new file mode 100644 index 000000000..4e22d5a63 --- /dev/null +++ b/src/lib/mu/MuQt6/QUdpSocketType.cpp @@ -0,0 +1,723 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QUdpSocket::~MuQt_QUdpSocket() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QUdpSocket::MuQt_QUdpSocket(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QUdpSocket(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QUdpSocket")); +} + +void MuQt_QUdpSocket::disconnectFromHost() +{ + if (!_env) { QUdpSocket::disconnectFromHost(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QUdpSocket::disconnectFromHost(); + } +} + +void MuQt_QUdpSocket::resume() +{ + if (!_env) { QUdpSocket::resume(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QUdpSocket::resume(); + } +} + +void MuQt_QUdpSocket::setReadBufferSize(qint64 size) +{ + if (!_env) { QUdpSocket::setReadBufferSize(size); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(size); + Value rval = _env->call(F, args); + } + else + { + QUdpSocket::setReadBufferSize(size); + } +} + +void MuQt_QUdpSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant & value) +{ + if (!_env) { QUdpSocket::setSocketOption(option, value); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(option)); + args[2] = Value(makeqtype(c,value,"qt.QVariant")); + Value rval = _env->call(F, args); + } + else + { + QUdpSocket::setSocketOption(option, value); + } +} + +QVariant MuQt_QUdpSocket::socketOption(QAbstractSocket::SocketOption option) +{ + if (!_env) return QUdpSocket::socketOption(option); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(option)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QUdpSocket::socketOption(option); + } +} + +bool MuQt_QUdpSocket::waitForConnected(int msecs) +{ + if (!_env) return QUdpSocket::waitForConnected(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QUdpSocket::waitForConnected(msecs); + } +} + +bool MuQt_QUdpSocket::waitForDisconnected(int msecs) +{ + if (!_env) return QUdpSocket::waitForDisconnected(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QUdpSocket::waitForDisconnected(msecs); + } +} + +qint64 MuQt_QUdpSocket::bytesAvailable() const +{ + if (!_env) return QUdpSocket::bytesAvailable(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QUdpSocket::bytesAvailable(); + } +} + +qint64 MuQt_QUdpSocket::bytesToWrite() const +{ + if (!_env) return QUdpSocket::bytesToWrite(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QUdpSocket::bytesToWrite(); + } +} + +void MuQt_QUdpSocket::close() +{ + if (!_env) { QUdpSocket::close(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QUdpSocket::close(); + } +} + +bool MuQt_QUdpSocket::isSequential() const +{ + if (!_env) return QUdpSocket::isSequential(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QUdpSocket::isSequential(); + } +} + +bool MuQt_QUdpSocket::waitForBytesWritten(int msecs) +{ + if (!_env) return QUdpSocket::waitForBytesWritten(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QUdpSocket::waitForBytesWritten(msecs); + } +} + +bool MuQt_QUdpSocket::waitForReadyRead(int msecs) +{ + if (!_env) return QUdpSocket::waitForReadyRead(msecs); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(msecs); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QUdpSocket::waitForReadyRead(msecs); + } +} + +qint64 MuQt_QUdpSocket::skipData(qint64 maxSize) +{ + if (!_env) return QUdpSocket::skipData(maxSize); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(maxSize); + Value rval = _env->call(F, args); + return (int64)(rval._int64); + } + else + { + return QUdpSocket::skipData(maxSize); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QUdpSocketType::QUdpSocketType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QUdpSocketType::~QUdpSocketType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QUdpSocket_QUdpSocket_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QUdpSocket* w = object(widget)) + { + QUdpSocketType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QUdpSocket"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QUdpSocket_QUdpSocket_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QUdpSocket_QUdpSocket_QUdpSocket_QUdpSocket_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QUdpSocket(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +bool qt_QUdpSocket_hasPendingDatagrams_bool_QUdpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + return arg0->hasPendingDatagrams(); +} + +bool qt_QUdpSocket_joinMulticastGroup_bool_QUdpSocket_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_groupAddress) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + const QHostAddress arg1 = getqtype(param_groupAddress); + return arg0->joinMulticastGroup(arg1); +} + +bool qt_QUdpSocket_leaveMulticastGroup_bool_QUdpSocket_QHostAddress(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_groupAddress) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + const QHostAddress arg1 = getqtype(param_groupAddress); + return arg0->leaveMulticastGroup(arg1); +} + +int64 qt_QUdpSocket_pendingDatagramSize_int64_QUdpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + return arg0->pendingDatagramSize(); +} + +void qt_QUdpSocket_disconnectFromHost_void_QUdpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QUdpSocket::disconnectFromHost(); + else arg0->disconnectFromHost(); +} + +void qt_QUdpSocket_resume_void_QUdpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QUdpSocket::resume(); + else arg0->resume(); +} + +void qt_QUdpSocket_setReadBufferSize_void_QUdpSocket_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + qint64 arg1 = (int64)(param_size); + if (isMuQtObject(arg0)) arg0->QUdpSocket::setReadBufferSize(arg1); + else arg0->setReadBufferSize(arg1); +} + +void qt_QUdpSocket_setSocketOption_void_QUdpSocket_int_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + QAbstractSocket::SocketOption arg1 = (QAbstractSocket::SocketOption)(param_option); + const QVariant arg2 = getqtype(param_value); + if (isMuQtObject(arg0)) arg0->QUdpSocket::setSocketOption(arg1, arg2); + else arg0->setSocketOption(arg1, arg2); +} + +Pointer qt_QUdpSocket_socketOption_QVariant_QUdpSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_option) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + QAbstractSocket::SocketOption arg1 = (QAbstractSocket::SocketOption)(param_option); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QUdpSocket::socketOption(arg1),"qt.QVariant") : makeqtype(c,arg0->socketOption(arg1),"qt.QVariant"); +} + +bool qt_QUdpSocket_waitForConnected_bool_QUdpSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QUdpSocket::waitForConnected(arg1) : arg0->waitForConnected(arg1); +} + +bool qt_QUdpSocket_waitForDisconnected_bool_QUdpSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QUdpSocket::waitForDisconnected(arg1) : arg0->waitForDisconnected(arg1); +} + +int64 qt_QUdpSocket_bytesAvailable_int64_QUdpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QUdpSocket::bytesAvailable() : arg0->bytesAvailable(); +} + +int64 qt_QUdpSocket_bytesToWrite_int64_QUdpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QUdpSocket::bytesToWrite() : arg0->bytesToWrite(); +} + +void qt_QUdpSocket_close_void_QUdpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QUdpSocket::close(); + else arg0->close(); +} + +bool qt_QUdpSocket_isSequential_bool_QUdpSocket(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QUdpSocket::isSequential() : arg0->isSequential(); +} + +bool qt_QUdpSocket_waitForBytesWritten_bool_QUdpSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QUdpSocket::waitForBytesWritten(arg1) : arg0->waitForBytesWritten(arg1); +} + +bool qt_QUdpSocket_waitForReadyRead_bool_QUdpSocket_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_msecs) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + int arg1 = (int)(param_msecs); + return isMuQtObject(arg0) ? arg0->QUdpSocket::waitForReadyRead(arg1) : arg0->waitForReadyRead(arg1); +} + +int64 qt_QUdpSocket_skipData_int64_QUdpSocket_int64(Mu::Thread& NODE_THREAD, Pointer param_this, int64 param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUdpSocket* arg0 = object(param_this); + qint64 arg1 = (int64)(param_maxSize); + return isMuQtObject(arg0) ? ((MuQt_QUdpSocket*)arg0)->skipData_pub_parent(arg1) : ((MuQt_QUdpSocket*)arg0)->skipData_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QUdpSocket0, Pointer) +{ + NODE_RETURN(qt_QUdpSocket_QUdpSocket_QUdpSocket_QUdpSocket_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasPendingDatagrams0, bool) +{ + NODE_RETURN(qt_QUdpSocket_hasPendingDatagrams_bool_QUdpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_joinMulticastGroup0, bool) +{ + NODE_RETURN(qt_QUdpSocket_joinMulticastGroup_bool_QUdpSocket_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_leaveMulticastGroup0, bool) +{ + NODE_RETURN(qt_QUdpSocket_leaveMulticastGroup_bool_QUdpSocket_QHostAddress(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pendingDatagramSize0, int64) +{ + NODE_RETURN(qt_QUdpSocket_pendingDatagramSize_int64_QUdpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_disconnectFromHost0, void) +{ + qt_QUdpSocket_disconnectFromHost_void_QUdpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resume0, void) +{ + qt_QUdpSocket_resume_void_QUdpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setReadBufferSize0, void) +{ + qt_QUdpSocket_setReadBufferSize_void_QUdpSocket_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64)); +} + +static NODE_IMPLEMENTATION(_n_setSocketOption0, void) +{ + qt_QUdpSocket_setSocketOption_void_QUdpSocket_int_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_socketOption0, Pointer) +{ + NODE_RETURN(qt_QUdpSocket_socketOption_QVariant_QUdpSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForConnected0, bool) +{ + NODE_RETURN(qt_QUdpSocket_waitForConnected_bool_QUdpSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForDisconnected0, bool) +{ + NODE_RETURN(qt_QUdpSocket_waitForDisconnected_bool_QUdpSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_bytesAvailable0, int64) +{ + NODE_RETURN(qt_QUdpSocket_bytesAvailable_int64_QUdpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_bytesToWrite0, int64) +{ + NODE_RETURN(qt_QUdpSocket_bytesToWrite_int64_QUdpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_close0, void) +{ + qt_QUdpSocket_close_void_QUdpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isSequential0, bool) +{ + NODE_RETURN(qt_QUdpSocket_isSequential_bool_QUdpSocket(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_waitForBytesWritten0, bool) +{ + NODE_RETURN(qt_QUdpSocket_waitForBytesWritten_bool_QUdpSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_waitForReadyRead0, bool) +{ + NODE_RETURN(qt_QUdpSocket_waitForReadyRead_bool_QUdpSocket_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_skipData0, int64) +{ + NODE_RETURN(qt_QUdpSocket_skipData_int64_QUdpSocket_int64(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int64))); +} + + + +void +QUdpSocketType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QUdpSocket_QUdpSocket_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QUdpSocket", _n_QUdpSocket0, None, Compiled, qt_QUdpSocket_QUdpSocket_QUdpSocket_QUdpSocket_QObject, Return, "qt.QUdpSocket", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "hasPendingDatagrams", _n_hasPendingDatagrams0, None, Compiled, qt_QUdpSocket_hasPendingDatagrams_bool_QUdpSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QUdpSocket"), End), + new Function(c, "joinMulticastGroup", _n_joinMulticastGroup0, None, Compiled, qt_QUdpSocket_joinMulticastGroup_bool_QUdpSocket_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "groupAddress", "qt.QHostAddress"), End), + // MISSING: joinMulticastGroup (bool; QUdpSocket this, QHostAddress groupAddress, "const QNetworkInterface &" iface) + new Function(c, "leaveMulticastGroup", _n_leaveMulticastGroup0, None, Compiled, qt_QUdpSocket_leaveMulticastGroup_bool_QUdpSocket_QHostAddress, Return, "bool", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "groupAddress", "qt.QHostAddress"), End), + // MISSING: leaveMulticastGroup (bool; QUdpSocket this, QHostAddress groupAddress, "const QNetworkInterface &" iface) + // MISSING: multicastInterface ("QNetworkInterface"; QUdpSocket this) + new Function(c, "pendingDatagramSize", _n_pendingDatagramSize0, None, Compiled, qt_QUdpSocket_pendingDatagramSize_int64_QUdpSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QUdpSocket"), End), + // MISSING: readDatagram (int64; QUdpSocket this, "char *" data, int64 maxSize, QHostAddress address, "quint16 *" port) + // MISSING: receiveDatagram ("QNetworkDatagram"; QUdpSocket this, int64 maxSize) + // MISSING: setMulticastInterface (void; QUdpSocket this, "const QNetworkInterface &" iface) + // MISSING: writeDatagram (int64; QUdpSocket this, "const char *" data, int64 size, QHostAddress address, "quint16" port) + // MISSING: writeDatagram (int64; QUdpSocket this, "const QNetworkDatagram &" datagram) + // MISSING: writeDatagram (int64; QUdpSocket this, QByteArray datagram, QHostAddress host, "quint16" port) + // MISSING: bind (bool; QUdpSocket this, QHostAddress address, "quint16" port, flags QAbstractSocket::BindMode mode) + // MISSING: connectToHost (void; QUdpSocket this, string hostName, "quint16" port, flags QIODeviceBase::OpenMode openMode, flags QAbstractSocket::NetworkLayerProtocol protocol) + _func[0] = new MemberFunction(c, "disconnectFromHost", _n_disconnectFromHost0, None, Compiled, qt_QUdpSocket_disconnectFromHost_void_QUdpSocket, Return, "void", Parameters, new Param(c, "this", "qt.QUdpSocket"), End), + _func[1] = new MemberFunction(c, "resume", _n_resume0, None, Compiled, qt_QUdpSocket_resume_void_QUdpSocket, Return, "void", Parameters, new Param(c, "this", "qt.QUdpSocket"), End), + _func[2] = new MemberFunction(c, "setReadBufferSize", _n_setReadBufferSize0, None, Compiled, qt_QUdpSocket_setReadBufferSize_void_QUdpSocket_int64, Return, "void", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "size", "int64"), End), + // MISSING: setSocketDescriptor (bool; QUdpSocket this, "qintptr" socketDescriptor, flags QAbstractSocket::SocketState socketState, flags QIODeviceBase::OpenMode openMode) + _func[3] = new MemberFunction(c, "setSocketOption", _n_setSocketOption0, None, Compiled, qt_QUdpSocket_setSocketOption_void_QUdpSocket_int_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "option", "int"), new Param(c, "value", "qt.QVariant"), End), + // MISSING: socketDescriptor ("qintptr"; QUdpSocket this) + _func[4] = new MemberFunction(c, "socketOption", _n_socketOption0, None, Compiled, qt_QUdpSocket_socketOption_QVariant_QUdpSocket_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "option", "int"), End), + _func[5] = new MemberFunction(c, "waitForConnected", _n_waitForConnected0, None, Compiled, qt_QUdpSocket_waitForConnected_bool_QUdpSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[6] = new MemberFunction(c, "waitForDisconnected", _n_waitForDisconnected0, None, Compiled, qt_QUdpSocket_waitForDisconnected_bool_QUdpSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[7] = new MemberFunction(c, "bytesAvailable", _n_bytesAvailable0, None, Compiled, qt_QUdpSocket_bytesAvailable_int64_QUdpSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QUdpSocket"), End), + _func[8] = new MemberFunction(c, "bytesToWrite", _n_bytesToWrite0, None, Compiled, qt_QUdpSocket_bytesToWrite_int64_QUdpSocket, Return, "int64", Parameters, new Param(c, "this", "qt.QUdpSocket"), End), + _func[9] = new MemberFunction(c, "close", _n_close0, None, Compiled, qt_QUdpSocket_close_void_QUdpSocket, Return, "void", Parameters, new Param(c, "this", "qt.QUdpSocket"), End), + _func[10] = new MemberFunction(c, "isSequential", _n_isSequential0, None, Compiled, qt_QUdpSocket_isSequential_bool_QUdpSocket, Return, "bool", Parameters, new Param(c, "this", "qt.QUdpSocket"), End), + _func[11] = new MemberFunction(c, "waitForBytesWritten", _n_waitForBytesWritten0, None, Compiled, qt_QUdpSocket_waitForBytesWritten_bool_QUdpSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + _func[12] = new MemberFunction(c, "waitForReadyRead", _n_waitForReadyRead0, None, Compiled, qt_QUdpSocket_waitForReadyRead_bool_QUdpSocket_int, Return, "bool", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "msecs", "int", Value((int)30000)), End), + // MISSING: readData (int64; QUdpSocket this, "char *" data, int64 maxSize) // protected + // MISSING: readLineData (int64; QUdpSocket this, "char *" data, int64 maxlen) // protected + _func[13] = new MemberFunction(c, "skipData", _n_skipData0, None, Compiled, qt_QUdpSocket_skipData_int64_QUdpSocket_int64, Return, "int64", Parameters, new Param(c, "this", "qt.QUdpSocket"), new Param(c, "maxSize", "int64"), End), + // MISSING: writeData (int64; QUdpSocket this, "const char *" data, int64 size) // protected + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QUdpSocket::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QUrlQueryType.cpp b/src/lib/mu/MuQt6/QUrlQueryType.cpp new file mode 100644 index 000000000..d9581129e --- /dev/null +++ b/src/lib/mu/MuQt6/QUrlQueryType.cpp @@ -0,0 +1,381 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QUrlQueryType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QUrlQueryType::QUrlQueryType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QUrlQueryType::~QUrlQueryType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QUrlQueryType::Instance* i = new QUrlQueryType::Instance((Class*)NODE_THIS.type()); + QUrlQueryType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QUrlQueryType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QUrlQueryType::finalizer, 0, 0, 0); +} + +void +QUrlQueryType::finalizer (void* obj, void* data) +{ + QUrlQueryType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QUrlQuery_QUrlQuery_QUrlQuery_QUrlQuery(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QUrlQuery()); + return param_this; +} + +Pointer qt_QUrlQuery_QUrlQuery_QUrlQuery_QUrlQuery_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl arg1 = getqtype(param_url); + setqtype(param_this,QUrlQuery(arg1)); + return param_this; +} + +Pointer qt_QUrlQuery_QUrlQuery_QUrlQuery_QUrlQuery_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_queryString) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_queryString); + setqtype(param_this,QUrlQuery(arg1)); + return param_this; +} + +void qt_QUrlQuery_addQueryItem_void_QUrlQuery_string_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_key, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrlQuery& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_key); + const QString arg2 = qstring(param_value); + arg0.addQueryItem(arg1, arg2); + setqtype(param_this,arg0); +} + +Pointer qt_QUrlQuery_allQueryItemValues_stringBSB_ESB__QUrlQuery_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_key, int param_encoding) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrlQuery& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_key); + QUrl::ComponentFormattingOptions arg2 = (QUrl::ComponentFormattingOptions)(param_encoding); + return makestringlist(c,arg0.allQueryItemValues(arg1, arg2)); +} + +void qt_QUrlQuery_clear_void_QUrlQuery(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrlQuery& arg0 = getqtype(param_this); + arg0.clear(); + setqtype(param_this,arg0); +} + +bool qt_QUrlQuery_hasQueryItem_bool_QUrlQuery_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_key) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrlQuery& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_key); + return arg0.hasQueryItem(arg1); +} + +bool qt_QUrlQuery_isEmpty_bool_QUrlQuery(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrlQuery& arg0 = getqtype(param_this); + return arg0.isEmpty(); +} + +Pointer qt_QUrlQuery_query_string_QUrlQuery_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_encoding) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrlQuery& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_encoding); + return makestring(c,arg0.query(arg1)); +} + +Pointer qt_QUrlQuery_queryItemValue_string_QUrlQuery_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_key, int param_encoding) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrlQuery& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_key); + QUrl::ComponentFormattingOptions arg2 = (QUrl::ComponentFormattingOptions)(param_encoding); + return makestring(c,arg0.queryItemValue(arg1, arg2)); +} + +void qt_QUrlQuery_removeAllQueryItems_void_QUrlQuery_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_key) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrlQuery& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_key); + arg0.removeAllQueryItems(arg1); + setqtype(param_this,arg0); +} + +void qt_QUrlQuery_removeQueryItem_void_QUrlQuery_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_key) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrlQuery& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_key); + arg0.removeQueryItem(arg1); + setqtype(param_this,arg0); +} + +void qt_QUrlQuery_setQuery_void_QUrlQuery_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_queryString) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrlQuery& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_queryString); + arg0.setQuery(arg1); + setqtype(param_this,arg0); +} + +void qt_QUrlQuery_swap_void_QUrlQuery_QUrlQuery(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrlQuery& arg0 = getqtype(param_this); + QUrlQuery arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QUrlQuery_toString_string_QUrlQuery_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_encoding) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrlQuery& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_encoding); + return makestring(c,arg0.toString(arg1)); +} + +bool qt_QUrlQuery_operatorBang_EQ__bool_QUrlQuery_QUrlQuery(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrlQuery& arg0 = getqtype(param_this); + const QUrlQuery arg1 = getqtype(param_other); + return arg0.operator!=(arg1); +} + +bool qt_QUrlQuery_operatorEQ_EQ__bool_QUrlQuery_QUrlQuery(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrlQuery& arg0 = getqtype(param_this); + const QUrlQuery arg1 = getqtype(param_other); + return arg0.operator==(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QUrlQuery0, Pointer) +{ + NODE_RETURN(qt_QUrlQuery_QUrlQuery_QUrlQuery_QUrlQuery(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QUrlQuery1, Pointer) +{ + NODE_RETURN(qt_QUrlQuery_QUrlQuery_QUrlQuery_QUrlQuery_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QUrlQuery2, Pointer) +{ + NODE_RETURN(qt_QUrlQuery_QUrlQuery_QUrlQuery_QUrlQuery_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addQueryItem0, void) +{ + qt_QUrlQuery_addQueryItem_void_QUrlQuery_string_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_allQueryItemValues0, Pointer) +{ + NODE_RETURN(qt_QUrlQuery_allQueryItemValues_stringBSB_ESB__QUrlQuery_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QUrlQuery_clear_void_QUrlQuery(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasQueryItem0, bool) +{ + NODE_RETURN(qt_QUrlQuery_hasQueryItem_bool_QUrlQuery_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QUrlQuery_isEmpty_bool_QUrlQuery(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_query0, Pointer) +{ + NODE_RETURN(qt_QUrlQuery_query_string_QUrlQuery_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_queryItemValue0, Pointer) +{ + NODE_RETURN(qt_QUrlQuery_queryItemValue_string_QUrlQuery_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_removeAllQueryItems0, void) +{ + qt_QUrlQuery_removeAllQueryItems_void_QUrlQuery_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removeQueryItem0, void) +{ + qt_QUrlQuery_removeQueryItem_void_QUrlQuery_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setQuery0, void) +{ + qt_QUrlQuery_setQuery_void_QUrlQuery_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QUrlQuery_swap_void_QUrlQuery_QUrlQuery(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toString0, Pointer) +{ + NODE_RETURN(qt_QUrlQuery_toString_string_QUrlQuery_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QUrlQuery_operatorBang_EQ__bool_QUrlQuery_QUrlQuery(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QUrlQuery_operatorEQ_EQ__bool_QUrlQuery_QUrlQuery(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + + + +void +QUrlQueryType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QUrlQuery", _n_QUrlQuery0, None, Compiled, qt_QUrlQuery_QUrlQuery_QUrlQuery_QUrlQuery, Return, "qt.QUrlQuery", Parameters, new Param(c, "this", "qt.QUrlQuery"), End), + new Function(c, "QUrlQuery", _n_QUrlQuery1, None, Compiled, qt_QUrlQuery_QUrlQuery_QUrlQuery_QUrlQuery_QUrl, Return, "qt.QUrlQuery", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "url", "qt.QUrl"), End), + new Function(c, "QUrlQuery", _n_QUrlQuery2, None, Compiled, qt_QUrlQuery_QUrlQuery_QUrlQuery_QUrlQuery_string, Return, "qt.QUrlQuery", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "queryString", "string"), End), + // MISSING: QUrlQuery (QUrlQuery; QUrlQuery this, QUrlQuery other) + // MISSING: QUrlQuery (QUrlQuery; QUrlQuery this, "QUrlQuery & &" other) + new Function(c, "addQueryItem", _n_addQueryItem0, None, Compiled, qt_QUrlQuery_addQueryItem_void_QUrlQuery_string_string, Return, "void", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "key", "string"), new Param(c, "value", "string"), End), + new Function(c, "allQueryItemValues", _n_allQueryItemValues0, None, Compiled, qt_QUrlQuery_allQueryItemValues_stringBSB_ESB__QUrlQuery_string_int, Return, "string[]", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "key", "string"), new Param(c, "encoding", "int", Value((int)QUrl::PrettyDecoded)), End), + new Function(c, "clear", _n_clear0, None, Compiled, qt_QUrlQuery_clear_void_QUrlQuery, Return, "void", Parameters, new Param(c, "this", "qt.QUrlQuery"), End), + new Function(c, "hasQueryItem", _n_hasQueryItem0, None, Compiled, qt_QUrlQuery_hasQueryItem_bool_QUrlQuery_string, Return, "bool", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "key", "string"), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QUrlQuery_isEmpty_bool_QUrlQuery, Return, "bool", Parameters, new Param(c, "this", "qt.QUrlQuery"), End), + new Function(c, "query", _n_query0, None, Compiled, qt_QUrlQuery_query_string_QUrlQuery_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "encoding", "int", Value((int)QUrl::PrettyDecoded)), End), + new Function(c, "queryItemValue", _n_queryItemValue0, None, Compiled, qt_QUrlQuery_queryItemValue_string_QUrlQuery_string_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "key", "string"), new Param(c, "encoding", "int", Value((int)QUrl::PrettyDecoded)), End), + // MISSING: queryItems ("QList>"; QUrlQuery this, flags QUrl::ComponentFormattingOptions encoding) + // MISSING: queryPairDelimiter ("QChar"; QUrlQuery this) + // MISSING: queryValueDelimiter ("QChar"; QUrlQuery this) + new Function(c, "removeAllQueryItems", _n_removeAllQueryItems0, None, Compiled, qt_QUrlQuery_removeAllQueryItems_void_QUrlQuery_string, Return, "void", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "key", "string"), End), + new Function(c, "removeQueryItem", _n_removeQueryItem0, None, Compiled, qt_QUrlQuery_removeQueryItem_void_QUrlQuery_string, Return, "void", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "key", "string"), End), + new Function(c, "setQuery", _n_setQuery0, None, Compiled, qt_QUrlQuery_setQuery_void_QUrlQuery_string, Return, "void", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "queryString", "string"), End), + // MISSING: setQueryDelimiters (void; QUrlQuery this, "QChar" valueDelimiter, "QChar" pairDelimiter) + // MISSING: setQueryItems (void; QUrlQuery this, "const QList> &" query) + new Function(c, "swap", _n_swap0, None, Compiled, qt_QUrlQuery_swap_void_QUrlQuery_QUrlQuery, Return, "void", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "other", "qt.QUrlQuery"), End), + new Function(c, "toString", _n_toString0, None, Compiled, qt_QUrlQuery_toString_string_QUrlQuery_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "encoding", "int", Value((int)QUrl::PrettyDecoded)), End), + // static functions + // MISSING: defaultQueryPairDelimiter ("char16_t"; ) + // MISSING: defaultQueryValueDelimiter ("char16_t"; ) + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QUrlQuery_operatorBang_EQ__bool_QUrlQuery_QUrlQuery, Return, "bool", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "other", "qt.QUrlQuery"), End), + // MISSING: = (QUrlQuery; QUrlQuery this, QUrlQuery other) + // MISSING: = (QUrlQuery; QUrlQuery this, "QUrlQuery & &" other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QUrlQuery_operatorEQ_EQ__bool_QUrlQuery_QUrlQuery, Return, "bool", Parameters, new Param(c, "this", "qt.QUrlQuery"), new Param(c, "other", "qt.QUrlQuery"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QUrlType.cpp b/src/lib/mu/MuQt6/QUrlType.cpp new file mode 100644 index 000000000..02fcb9638 --- /dev/null +++ b/src/lib/mu/MuQt6/QUrlType.cpp @@ -0,0 +1,977 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QUrlType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QUrlType::QUrlType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QUrlType::~QUrlType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QUrlType::Instance* i = new QUrlType::Instance((Class*)NODE_THIS.type()); + QUrlType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QUrlType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QUrlType::finalizer, 0, 0, 0); +} + +void +QUrlType::finalizer (void* obj, void* data) +{ + QUrlType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QUrl_QUrl_QUrl_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QUrl()); + return param_this; +} + +Pointer qt_QUrl_QUrl_QUrl_QUrl_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url, int param_parsingMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_url); + QUrl::ParsingMode arg2 = (QUrl::ParsingMode)(param_parsingMode); + setqtype(param_this,QUrl(arg1, arg2)); + return param_this; +} + +Pointer qt_QUrl_adjusted_QUrl_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::FormattingOptions arg1 = (QUrl::FormattingOptions)(param_options); + return makeqtype(c,arg0.adjusted(arg1),"qt.QUrl"); +} + +Pointer qt_QUrl_authority_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_options); + return makestring(c,arg0.authority(arg1)); +} + +void qt_QUrl_clear_void_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + arg0.clear(); + setqtype(param_this,arg0); +} + +Pointer qt_QUrl_errorString_string_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + return makestring(c,arg0.errorString()); +} + +Pointer qt_QUrl_fileName_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_options); + return makestring(c,arg0.fileName(arg1)); +} + +Pointer qt_QUrl_fragment_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_options); + return makestring(c,arg0.fragment(arg1)); +} + +bool qt_QUrl_hasFragment_bool_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + return arg0.hasFragment(); +} + +bool qt_QUrl_hasQuery_bool_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + return arg0.hasQuery(); +} + +Pointer qt_QUrl_host_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_options); + return makestring(c,arg0.host(arg1)); +} + +bool qt_QUrl_isEmpty_bool_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + return arg0.isEmpty(); +} + +bool qt_QUrl_isLocalFile_bool_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + return arg0.isLocalFile(); +} + +bool qt_QUrl_isParentOf_bool_QUrl_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_childUrl) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + const QUrl arg1 = getqtype(param_childUrl); + return arg0.isParentOf(arg1); +} + +bool qt_QUrl_isRelative_bool_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + return arg0.isRelative(); +} + +bool qt_QUrl_isValid_bool_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + return arg0.isValid(); +} + +bool qt_QUrl_matches_bool_QUrl_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + const QUrl arg1 = getqtype(param_url); + QUrl::FormattingOptions arg2 = (QUrl::FormattingOptions)(param_options); + return arg0.matches(arg1, arg2); +} + +Pointer qt_QUrl_password_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_options); + return makestring(c,arg0.password(arg1)); +} + +Pointer qt_QUrl_path_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_options); + return makestring(c,arg0.path(arg1)); +} + +int qt_QUrl_port_int_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_defaultPort) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + int arg1 = (int)(param_defaultPort); + return arg0.port(arg1); +} + +Pointer qt_QUrl_query_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_options); + return makestring(c,arg0.query(arg1)); +} + +Pointer qt_QUrl_resolved_QUrl_QUrl_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_relative) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + const QUrl arg1 = getqtype(param_relative); + return makeqtype(c,arg0.resolved(arg1),"qt.QUrl"); +} + +Pointer qt_QUrl_scheme_string_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + return makestring(c,arg0.scheme()); +} + +void qt_QUrl_setAuthority_void_QUrl_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_authority, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_authority); + QUrl::ParsingMode arg2 = (QUrl::ParsingMode)(param_mode); + arg0.setAuthority(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QUrl_setFragment_void_QUrl_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_fragment, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_fragment); + QUrl::ParsingMode arg2 = (QUrl::ParsingMode)(param_mode); + arg0.setFragment(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QUrl_setHost_void_QUrl_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_host, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_host); + QUrl::ParsingMode arg2 = (QUrl::ParsingMode)(param_mode); + arg0.setHost(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QUrl_setPassword_void_QUrl_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_password, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_password); + QUrl::ParsingMode arg2 = (QUrl::ParsingMode)(param_mode); + arg0.setPassword(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QUrl_setPath_void_QUrl_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_path); + QUrl::ParsingMode arg2 = (QUrl::ParsingMode)(param_mode); + arg0.setPath(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QUrl_setPort_void_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_port) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + int arg1 = (int)(param_port); + arg0.setPort(arg1); + setqtype(param_this,arg0); +} + +void qt_QUrl_setQuery_void_QUrl_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_query, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_query); + QUrl::ParsingMode arg2 = (QUrl::ParsingMode)(param_mode); + arg0.setQuery(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QUrl_setQuery_void_QUrl_QUrlQuery(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QUrlQuery arg1 = getqtype(param_query); + arg0.setQuery(arg1); + setqtype(param_this,arg0); +} + +void qt_QUrl_setScheme_void_QUrl_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_scheme) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_scheme); + arg0.setScheme(arg1); + setqtype(param_this,arg0); +} + +void qt_QUrl_setUrl_void_QUrl_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url, int param_parsingMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_url); + QUrl::ParsingMode arg2 = (QUrl::ParsingMode)(param_parsingMode); + arg0.setUrl(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QUrl_setUserInfo_void_QUrl_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_userInfo, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_userInfo); + QUrl::ParsingMode arg2 = (QUrl::ParsingMode)(param_mode); + arg0.setUserInfo(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QUrl_setUserName_void_QUrl_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_userName, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + const QString arg1 = qstring(param_userName); + QUrl::ParsingMode arg2 = (QUrl::ParsingMode)(param_mode); + arg0.setUserName(arg1, arg2); + setqtype(param_this,arg0); +} + +void qt_QUrl_swap_void_QUrl_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QUrl& arg0 = getqtype(param_this); + QUrl arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +Pointer qt_QUrl_toDisplayString_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::FormattingOptions arg1 = (QUrl::FormattingOptions)(param_options); + return makestring(c,arg0.toDisplayString(arg1)); +} + +Pointer qt_QUrl_toEncoded_QByteArray_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::FormattingOptions arg1 = (QUrl::FormattingOptions)(param_options); + return makeqtype(c,arg0.toEncoded(arg1),"qt.QByteArray"); +} + +Pointer qt_QUrl_toLocalFile_string_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + return makestring(c,arg0.toLocalFile()); +} + +Pointer qt_QUrl_toString_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::FormattingOptions arg1 = (QUrl::FormattingOptions)(param_options); + return makestring(c,arg0.toString(arg1)); +} + +Pointer qt_QUrl_url_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::FormattingOptions arg1 = (QUrl::FormattingOptions)(param_options); + return makestring(c,arg0.url(arg1)); +} + +Pointer qt_QUrl_userInfo_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_options); + return makestring(c,arg0.userInfo(arg1)); +} + +Pointer qt_QUrl_userName_string_QUrl_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + QUrl::ComponentFormattingOptions arg1 = (QUrl::ComponentFormattingOptions)(param_options); + return makestring(c,arg0.userName(arg1)); +} + +bool qt_QUrl_operatorBang_EQ__bool_QUrl_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + const QUrl arg1 = getqtype(param_url); + return arg0.operator!=(arg1); +} + +bool qt_QUrl_operatorEQ_EQ__bool_QUrl_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl& arg0 = getqtype(param_this); + const QUrl arg1 = getqtype(param_url); + return arg0.operator==(arg1); +} + +Pointer qt_QUrl_fromAce_string_QByteArray_int(Mu::Thread& NODE_THREAD, Pointer param_domain, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray arg0 = getqtype(param_domain); + QUrl::AceProcessingOptions arg1 = (QUrl::AceProcessingOptions)(param_options); + return makestring(c,QUrl::fromAce(arg0, arg1)); +} + +Pointer qt_QUrl_fromEncoded_QUrl_QByteArray_int(Mu::Thread& NODE_THREAD, Pointer param_input, int param_parsingMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray arg0 = getqtype(param_input); + QUrl::ParsingMode arg1 = (QUrl::ParsingMode)(param_parsingMode); + return makeqtype(c,QUrl::fromEncoded(arg0, arg1),"qt.QUrl"); +} + +Pointer qt_QUrl_fromLocalFile_QUrl_string(Mu::Thread& NODE_THREAD, Pointer param_localFile) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_localFile); + return makeqtype(c,QUrl::fromLocalFile(arg0),"qt.QUrl"); +} + +Pointer qt_QUrl_fromPercentEncoding_string_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_input) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray arg0 = getqtype(param_input); + return makestring(c,QUrl::fromPercentEncoding(arg0)); +} + +Pointer qt_QUrl_fromStringList_qt__QUrlBSB_ESB__stringBSB_ESB__int(Mu::Thread& NODE_THREAD, Pointer param_urls, int param_mode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QStringList arg0 = qstringlist(param_urls); + QUrl::ParsingMode arg1 = (QUrl::ParsingMode)(param_mode); + return makeqtypelist(c,QUrl::fromStringList(arg0, arg1),"qt.QUrl"); +} + +Pointer qt_QUrl_fromUserInput_QUrl_string_string_int(Mu::Thread& NODE_THREAD, Pointer param_userInput, Pointer param_workingDirectory, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_userInput); + const QString arg1 = qstring(param_workingDirectory); + QUrl::UserInputResolutionOptions arg2 = (QUrl::UserInputResolutionOptions)(param_options); + return makeqtype(c,QUrl::fromUserInput(arg0, arg1, arg2),"qt.QUrl"); +} + +Pointer qt_QUrl_idnWhitelist_stringBSB_ESB_(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makestringlist(c,QUrl::idnWhitelist()); +} + +void qt_QUrl_setIdnWhitelist_void_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_list) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QStringList arg0 = qstringlist(param_list); + QUrl::setIdnWhitelist(arg0); +} + +Pointer qt_QUrl_toAce_QByteArray_string_int(Mu::Thread& NODE_THREAD, Pointer param_domain, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_domain); + QUrl::AceProcessingOptions arg1 = (QUrl::AceProcessingOptions)(param_options); + return makeqtype(c,QUrl::toAce(arg0, arg1),"qt.QByteArray"); +} + +Pointer qt_QUrl_toPercentEncoding_QByteArray_string_QByteArray_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_input, Pointer param_exclude, Pointer param_include) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg0 = qstring(param_input); + const QByteArray arg1 = getqtype(param_exclude); + const QByteArray arg2 = getqtype(param_include); + return makeqtype(c,QUrl::toPercentEncoding(arg0, arg1, arg2),"qt.QByteArray"); +} + +Pointer qt_QUrl_toStringList_stringBSB_ESB__qt__QUrlBSB_ESB__int(Mu::Thread& NODE_THREAD, Pointer param_urls, int param_options) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QList arg0 = qtypelist(param_urls); + QUrl::FormattingOptions arg1 = (QUrl::FormattingOptions)(param_options); + return makestringlist(c,QUrl::toStringList(arg0, arg1)); +} + + +static NODE_IMPLEMENTATION(_n_QUrl0, Pointer) +{ + NODE_RETURN(qt_QUrl_QUrl_QUrl_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QUrl1, Pointer) +{ + NODE_RETURN(qt_QUrl_QUrl_QUrl_QUrl_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_adjusted0, Pointer) +{ + NODE_RETURN(qt_QUrl_adjusted_QUrl_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_authority0, Pointer) +{ + NODE_RETURN(qt_QUrl_authority_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QUrl_clear_void_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_errorString0, Pointer) +{ + NODE_RETURN(qt_QUrl_errorString_string_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fileName0, Pointer) +{ + NODE_RETURN(qt_QUrl_fileName_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_fragment0, Pointer) +{ + NODE_RETURN(qt_QUrl_fragment_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_hasFragment0, bool) +{ + NODE_RETURN(qt_QUrl_hasFragment_bool_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasQuery0, bool) +{ + NODE_RETURN(qt_QUrl_hasQuery_bool_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_host0, Pointer) +{ + NODE_RETURN(qt_QUrl_host_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QUrl_isEmpty_bool_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isLocalFile0, bool) +{ + NODE_RETURN(qt_QUrl_isLocalFile_bool_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isParentOf0, bool) +{ + NODE_RETURN(qt_QUrl_isParentOf_bool_QUrl_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isRelative0, bool) +{ + NODE_RETURN(qt_QUrl_isRelative_bool_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QUrl_isValid_bool_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_matches0, bool) +{ + NODE_RETURN(qt_QUrl_matches_bool_QUrl_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_password0, Pointer) +{ + NODE_RETURN(qt_QUrl_password_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_path0, Pointer) +{ + NODE_RETURN(qt_QUrl_path_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_port0, int) +{ + NODE_RETURN(qt_QUrl_port_int_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_query0, Pointer) +{ + NODE_RETURN(qt_QUrl_query_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_resolved0, Pointer) +{ + NODE_RETURN(qt_QUrl_resolved_QUrl_QUrl_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scheme0, Pointer) +{ + NODE_RETURN(qt_QUrl_scheme_string_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setAuthority0, void) +{ + qt_QUrl_setAuthority_void_QUrl_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setFragment0, void) +{ + qt_QUrl_setFragment_void_QUrl_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setHost0, void) +{ + qt_QUrl_setHost_void_QUrl_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setPassword0, void) +{ + qt_QUrl_setPassword_void_QUrl_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setPath0, void) +{ + qt_QUrl_setPath_void_QUrl_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setPort0, void) +{ + qt_QUrl_setPort_void_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setQuery0, void) +{ + qt_QUrl_setQuery_void_QUrl_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setQuery1, void) +{ + qt_QUrl_setQuery_void_QUrl_QUrlQuery(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setScheme0, void) +{ + qt_QUrl_setScheme_void_QUrl_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setUrl0, void) +{ + qt_QUrl_setUrl_void_QUrl_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setUserInfo0, void) +{ + qt_QUrl_setUserInfo_void_QUrl_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setUserName0, void) +{ + qt_QUrl_setUserName_void_QUrl_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QUrl_swap_void_QUrl_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toDisplayString0, Pointer) +{ + NODE_RETURN(qt_QUrl_toDisplayString_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_toEncoded0, Pointer) +{ + NODE_RETURN(qt_QUrl_toEncoded_QByteArray_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_toLocalFile0, Pointer) +{ + NODE_RETURN(qt_QUrl_toLocalFile_string_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toString0, Pointer) +{ + NODE_RETURN(qt_QUrl_toString_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_url0, Pointer) +{ + NODE_RETURN(qt_QUrl_url_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_userInfo0, Pointer) +{ + NODE_RETURN(qt_QUrl_userInfo_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_userName0, Pointer) +{ + NODE_RETURN(qt_QUrl_userName_string_QUrl_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_operatorBang_EQ_0, bool) +{ + NODE_RETURN(qt_QUrl_operatorBang_EQ__bool_QUrl_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_operatorEQ_EQ_0, bool) +{ + NODE_RETURN(qt_QUrl_operatorEQ_EQ__bool_QUrl_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fromAce0, Pointer) +{ + NODE_RETURN(qt_QUrl_fromAce_string_QByteArray_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_fromEncoded0, Pointer) +{ + NODE_RETURN(qt_QUrl_fromEncoded_QUrl_QByteArray_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_fromLocalFile0, Pointer) +{ + NODE_RETURN(qt_QUrl_fromLocalFile_QUrl_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fromPercentEncoding0, Pointer) +{ + NODE_RETURN(qt_QUrl_fromPercentEncoding_string_QByteArray(NODE_THREAD, NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fromStringList0, Pointer) +{ + NODE_RETURN(qt_QUrl_fromStringList_qt__QUrlBSB_ESB__stringBSB_ESB__int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_fromUserInput0, Pointer) +{ + NODE_RETURN(qt_QUrl_fromUserInput_QUrl_string_string_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_idnWhitelist0, Pointer) +{ + NODE_RETURN(qt_QUrl_idnWhitelist_stringBSB_ESB_(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_setIdnWhitelist0, void) +{ + qt_QUrl_setIdnWhitelist_void_stringBSB_ESB_(NODE_THREAD, NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toAce0, Pointer) +{ + NODE_RETURN(qt_QUrl_toAce_QByteArray_string_int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_toPercentEncoding0, Pointer) +{ + NODE_RETURN(qt_QUrl_toPercentEncoding_QByteArray_string_QByteArray_QByteArray(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toStringList0, Pointer) +{ + NODE_RETURN(qt_QUrl_toStringList_stringBSB_ESB__qt__QUrlBSB_ESB__int(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QUrlType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + new Alias(c, "AceProcessingOption", "int"), + new Alias(c, "AceProcessingOptions", "int"), + new SymbolicConstant(c, "IgnoreIDNWhitelist", "int", Value(int(QUrl::IgnoreIDNWhitelist))), + new SymbolicConstant(c, "AceTransitionalProcessing", "int", Value(int(QUrl::AceTransitionalProcessing))), + new Alias(c, "ComponentFormattingOption", "int"), + new Alias(c, "ComponentFormattingOptions", "int"), + new SymbolicConstant(c, "PrettyDecoded", "int", Value(int(QUrl::PrettyDecoded))), + new SymbolicConstant(c, "EncodeSpaces", "int", Value(int(QUrl::EncodeSpaces))), + new SymbolicConstant(c, "EncodeUnicode", "int", Value(int(QUrl::EncodeUnicode))), + new SymbolicConstant(c, "EncodeDelimiters", "int", Value(int(QUrl::EncodeDelimiters))), + new SymbolicConstant(c, "EncodeReserved", "int", Value(int(QUrl::EncodeReserved))), + new SymbolicConstant(c, "DecodeReserved", "int", Value(int(QUrl::DecodeReserved))), + new SymbolicConstant(c, "FullyEncoded", "int", Value(int(QUrl::FullyEncoded))), + new SymbolicConstant(c, "FullyDecoded", "int", Value(int(QUrl::FullyDecoded))), + new Alias(c, "ParsingMode", "int"), + new SymbolicConstant(c, "TolerantMode", "int", Value(int(QUrl::TolerantMode))), + new SymbolicConstant(c, "StrictMode", "int", Value(int(QUrl::StrictMode))), + new SymbolicConstant(c, "DecodedMode", "int", Value(int(QUrl::DecodedMode))), + new Alias(c, "UrlFormattingOption", "int"), + new Alias(c, "FormattingOptions", "int"), + new SymbolicConstant(c, "None", "int", Value(int(QUrl::None))), + new SymbolicConstant(c, "RemoveScheme", "int", Value(int(QUrl::RemoveScheme))), + new SymbolicConstant(c, "RemovePassword", "int", Value(int(QUrl::RemovePassword))), + new SymbolicConstant(c, "RemoveUserInfo", "int", Value(int(QUrl::RemoveUserInfo))), + new SymbolicConstant(c, "RemovePort", "int", Value(int(QUrl::RemovePort))), + new SymbolicConstant(c, "RemoveAuthority", "int", Value(int(QUrl::RemoveAuthority))), + new SymbolicConstant(c, "RemovePath", "int", Value(int(QUrl::RemovePath))), + new SymbolicConstant(c, "RemoveQuery", "int", Value(int(QUrl::RemoveQuery))), + new SymbolicConstant(c, "RemoveFragment", "int", Value(int(QUrl::RemoveFragment))), + new SymbolicConstant(c, "RemoveFilename", "int", Value(int(QUrl::RemoveFilename))), + new SymbolicConstant(c, "PreferLocalFile", "int", Value(int(QUrl::PreferLocalFile))), + new SymbolicConstant(c, "StripTrailingSlash", "int", Value(int(QUrl::StripTrailingSlash))), + new SymbolicConstant(c, "NormalizePathSegments", "int", Value(int(QUrl::NormalizePathSegments))), + new Alias(c, "UserInputResolutionOption", "int"), + new Alias(c, "UserInputResolutionOptions", "int"), + new SymbolicConstant(c, "DefaultResolution", "int", Value(int(QUrl::DefaultResolution))), + new SymbolicConstant(c, "AssumeLocalFile", "int", Value(int(QUrl::AssumeLocalFile))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QUrl", _n_QUrl0, None, Compiled, qt_QUrl_QUrl_QUrl_QUrl, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QUrl"), End), + new Function(c, "QUrl", _n_QUrl1, None, Compiled, qt_QUrl_QUrl_QUrl_QUrl_string_int, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "url", "string"), new Param(c, "parsingMode", "int", Value((int)QUrl::TolerantMode)), End), + // MISSING: QUrl (QUrl; QUrl this, QUrl other) + // MISSING: QUrl (QUrl; QUrl this, "QUrl & &" other) + new Function(c, "adjusted", _n_adjusted0, None, Compiled, qt_QUrl_adjusted_QUrl_QUrl_int, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int"), End), + new Function(c, "authority", _n_authority0, None, Compiled, qt_QUrl_authority_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::PrettyDecoded)), End), + new Function(c, "clear", _n_clear0, None, Compiled, qt_QUrl_clear_void_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), End), + new Function(c, "errorString", _n_errorString0, None, Compiled, qt_QUrl_errorString_string_QUrl, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), End), + new Function(c, "fileName", _n_fileName0, None, Compiled, qt_QUrl_fileName_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::FullyDecoded)), End), + new Function(c, "fragment", _n_fragment0, None, Compiled, qt_QUrl_fragment_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::PrettyDecoded)), End), + new Function(c, "hasFragment", _n_hasFragment0, None, Compiled, qt_QUrl_hasFragment_bool_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QUrl"), End), + new Function(c, "hasQuery", _n_hasQuery0, None, Compiled, qt_QUrl_hasQuery_bool_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QUrl"), End), + new Function(c, "host", _n_host0, None, Compiled, qt_QUrl_host_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::FullyDecoded)), End), + new Function(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QUrl_isEmpty_bool_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QUrl"), End), + new Function(c, "isLocalFile", _n_isLocalFile0, None, Compiled, qt_QUrl_isLocalFile_bool_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QUrl"), End), + new Function(c, "isParentOf", _n_isParentOf0, None, Compiled, qt_QUrl_isParentOf_bool_QUrl_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "childUrl", "qt.QUrl"), End), + new Function(c, "isRelative", _n_isRelative0, None, Compiled, qt_QUrl_isRelative_bool_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QUrl"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QUrl_isValid_bool_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QUrl"), End), + new Function(c, "matches", _n_matches0, None, Compiled, qt_QUrl_matches_bool_QUrl_QUrl_int, Return, "bool", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "url", "qt.QUrl"), new Param(c, "options", "int"), End), + new Function(c, "password", _n_password0, None, Compiled, qt_QUrl_password_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::FullyDecoded)), End), + new Function(c, "path", _n_path0, None, Compiled, qt_QUrl_path_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::FullyDecoded)), End), + new Function(c, "port", _n_port0, None, Compiled, qt_QUrl_port_int_QUrl_int, Return, "int", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "defaultPort", "int", Value((int)-1)), End), + new Function(c, "query", _n_query0, None, Compiled, qt_QUrl_query_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::PrettyDecoded)), End), + new Function(c, "resolved", _n_resolved0, None, Compiled, qt_QUrl_resolved_QUrl_QUrl_QUrl, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "relative", "qt.QUrl"), End), + new Function(c, "scheme", _n_scheme0, None, Compiled, qt_QUrl_scheme_string_QUrl, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), End), + new Function(c, "setAuthority", _n_setAuthority0, None, Compiled, qt_QUrl_setAuthority_void_QUrl_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "authority", "string"), new Param(c, "mode", "int", Value((int)QUrl::TolerantMode)), End), + new Function(c, "setFragment", _n_setFragment0, None, Compiled, qt_QUrl_setFragment_void_QUrl_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "fragment", "string"), new Param(c, "mode", "int", Value((int)QUrl::TolerantMode)), End), + new Function(c, "setHost", _n_setHost0, None, Compiled, qt_QUrl_setHost_void_QUrl_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "host", "string"), new Param(c, "mode", "int", Value((int)QUrl::DecodedMode)), End), + new Function(c, "setPassword", _n_setPassword0, None, Compiled, qt_QUrl_setPassword_void_QUrl_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "password", "string"), new Param(c, "mode", "int", Value((int)QUrl::DecodedMode)), End), + new Function(c, "setPath", _n_setPath0, None, Compiled, qt_QUrl_setPath_void_QUrl_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "path", "string"), new Param(c, "mode", "int", Value((int)QUrl::DecodedMode)), End), + new Function(c, "setPort", _n_setPort0, None, Compiled, qt_QUrl_setPort_void_QUrl_int, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "port", "int"), End), + new Function(c, "setQuery", _n_setQuery0, None, Compiled, qt_QUrl_setQuery_void_QUrl_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "query", "string"), new Param(c, "mode", "int", Value((int)QUrl::TolerantMode)), End), + new Function(c, "setQuery", _n_setQuery1, None, Compiled, qt_QUrl_setQuery_void_QUrl_QUrlQuery, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "query", "qt.QUrlQuery"), End), + new Function(c, "setScheme", _n_setScheme0, None, Compiled, qt_QUrl_setScheme_void_QUrl_string, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "scheme", "string"), End), + new Function(c, "setUrl", _n_setUrl0, None, Compiled, qt_QUrl_setUrl_void_QUrl_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "url", "string"), new Param(c, "parsingMode", "int", Value((int)QUrl::TolerantMode)), End), + new Function(c, "setUserInfo", _n_setUserInfo0, None, Compiled, qt_QUrl_setUserInfo_void_QUrl_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "userInfo", "string"), new Param(c, "mode", "int", Value((int)QUrl::TolerantMode)), End), + new Function(c, "setUserName", _n_setUserName0, None, Compiled, qt_QUrl_setUserName_void_QUrl_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "userName", "string"), new Param(c, "mode", "int", Value((int)QUrl::DecodedMode)), End), + new Function(c, "swap", _n_swap0, None, Compiled, qt_QUrl_swap_void_QUrl_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "other", "qt.QUrl"), End), + // MISSING: toCFURL ("CFURLRef"; QUrl this) + new Function(c, "toDisplayString", _n_toDisplayString0, None, Compiled, qt_QUrl_toDisplayString_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::FormattingOptions(QUrl::PrettyDecoded))), End), + new Function(c, "toEncoded", _n_toEncoded0, None, Compiled, qt_QUrl_toEncoded_QByteArray_QUrl_int, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::FullyEncoded)), End), + new Function(c, "toLocalFile", _n_toLocalFile0, None, Compiled, qt_QUrl_toLocalFile_string_QUrl, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), End), + // MISSING: toNSURL ("NSURL *"; QUrl this) + new Function(c, "toString", _n_toString0, None, Compiled, qt_QUrl_toString_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::FormattingOptions(QUrl::PrettyDecoded))), End), + new Function(c, "url", _n_url0, None, Compiled, qt_QUrl_url_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::FormattingOptions(QUrl::PrettyDecoded))), End), + new Function(c, "userInfo", _n_userInfo0, None, Compiled, qt_QUrl_userInfo_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::PrettyDecoded)), End), + new Function(c, "userName", _n_userName0, None, Compiled, qt_QUrl_userName_string_QUrl_int, Return, "string", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "options", "int", Value((int)QUrl::FullyDecoded)), End), + // static functions + new Function(c, "fromAce", _n_fromAce0, None, Compiled, qt_QUrl_fromAce_string_QByteArray_int, Return, "string", Parameters, new Param(c, "domain", "qt.QByteArray"), new Param(c, "options", "int", Value((int){})), End), + // MISSING: fromCFURL (QUrl; "CFURLRef" url) + new Function(c, "fromEncoded", _n_fromEncoded0, None, Compiled, qt_QUrl_fromEncoded_QUrl_QByteArray_int, Return, "qt.QUrl", Parameters, new Param(c, "input", "qt.QByteArray"), new Param(c, "parsingMode", "int", Value((int)QUrl::TolerantMode)), End), + new Function(c, "fromLocalFile", _n_fromLocalFile0, None, Compiled, qt_QUrl_fromLocalFile_QUrl_string, Return, "qt.QUrl", Parameters, new Param(c, "localFile", "string"), End), + // MISSING: fromNSURL (QUrl; "const NSURL *" url) + new Function(c, "fromPercentEncoding", _n_fromPercentEncoding0, None, Compiled, qt_QUrl_fromPercentEncoding_string_QByteArray, Return, "string", Parameters, new Param(c, "input", "qt.QByteArray"), End), + new Function(c, "fromStringList", _n_fromStringList0, None, Compiled, qt_QUrl_fromStringList_qt__QUrlBSB_ESB__stringBSB_ESB__int, Return, "qt.QUrl[]", Parameters, new Param(c, "urls", "string[]"), new Param(c, "mode", "int", Value((int)QUrl::TolerantMode)), End), + new Function(c, "fromUserInput", _n_fromUserInput0, None, Compiled, qt_QUrl_fromUserInput_QUrl_string_string_int, Return, "qt.QUrl", Parameters, new Param(c, "userInput", "string"), new Param(c, "workingDirectory", "string"), new Param(c, "options", "int", Value((int)QUrl::DefaultResolution)), End), + new Function(c, "idnWhitelist", _n_idnWhitelist0, None, Compiled, qt_QUrl_idnWhitelist_stringBSB_ESB_, Return, "string[]", End), + new Function(c, "setIdnWhitelist", _n_setIdnWhitelist0, None, Compiled, qt_QUrl_setIdnWhitelist_void_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "list", "string[]"), End), + new Function(c, "toAce", _n_toAce0, None, Compiled, qt_QUrl_toAce_QByteArray_string_int, Return, "qt.QByteArray", Parameters, new Param(c, "domain", "string"), new Param(c, "options", "int", Value((int){})), End), + new Function(c, "toPercentEncoding", _n_toPercentEncoding0, None, Compiled, qt_QUrl_toPercentEncoding_QByteArray_string_QByteArray_QByteArray, Return, "qt.QByteArray", Parameters, new Param(c, "input", "string"), new Param(c, "exclude", "qt.QByteArray"), new Param(c, "include", "qt.QByteArray"), End), + new Function(c, "toStringList", _n_toStringList0, None, Compiled, qt_QUrl_toStringList_stringBSB_ESB__qt__QUrlBSB_ESB__int, Return, "string[]", Parameters, new Param(c, "urls", "qt.QUrl[]"), new Param(c, "options", "int", Value((int)QUrl::FormattingOptions(QUrl::PrettyDecoded))), End), + EndArguments); +globalScope()->addSymbols( + new Function(c, "!=", _n_operatorBang_EQ_0, Op, Compiled, qt_QUrl_operatorBang_EQ__bool_QUrl_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "url", "qt.QUrl"), End), + // MISSING: = (QUrl; QUrl this, QUrl url) + // MISSING: = (QUrl; QUrl this, string url) + // MISSING: = (QUrl; QUrl this, "QUrl & &" other) + new Function(c, "==", _n_operatorEQ_EQ_0, Op, Compiled, qt_QUrl_operatorEQ_EQ__bool_QUrl_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QUrl"), new Param(c, "url", "qt.QUrl"), End), + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QVBoxLayoutType.cpp b/src/lib/mu/MuQt6/QVBoxLayoutType.cpp new file mode 100644 index 000000000..9c0fcc92c --- /dev/null +++ b/src/lib/mu/MuQt6/QVBoxLayoutType.cpp @@ -0,0 +1,705 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QVBoxLayout::~MuQt_QVBoxLayout() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QVBoxLayout::MuQt_QVBoxLayout(Pointer muobj, const CallEnvironment* ce) + : QVBoxLayout() +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QVBoxLayout")); +} + +MuQt_QVBoxLayout::MuQt_QVBoxLayout(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QVBoxLayout(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QVBoxLayout")); +} + +void MuQt_QVBoxLayout::addItem(QLayoutItem * item) +{ + if (!_env) { QVBoxLayout::addItem(item); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makelayoutitem(c,item,"qt.QLayoutItem")); + Value rval = _env->call(F, args); + } + else + { + QVBoxLayout::addItem(item); + } +} + +int MuQt_QVBoxLayout::count() const +{ + if (!_env) return QVBoxLayout::count(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QVBoxLayout::count(); + } +} + +Qt::Orientations MuQt_QVBoxLayout::expandingDirections() const +{ + if (!_env) return QVBoxLayout::expandingDirections(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::Orientations)(rval._int); + } + else + { + return QVBoxLayout::expandingDirections(); + } +} + +bool MuQt_QVBoxLayout::hasHeightForWidth() const +{ + if (!_env) return QVBoxLayout::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QVBoxLayout::hasHeightForWidth(); + } +} + +int MuQt_QVBoxLayout::heightForWidth(int w) const +{ + if (!_env) return QVBoxLayout::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QVBoxLayout::heightForWidth(w); + } +} + +void MuQt_QVBoxLayout::invalidate() +{ + if (!_env) { QVBoxLayout::invalidate(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QVBoxLayout::invalidate(); + } +} + +QLayoutItem * MuQt_QVBoxLayout::itemAt(int index) const +{ + if (!_env) return QVBoxLayout::itemAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QVBoxLayout::itemAt(index); + } +} + +QSize MuQt_QVBoxLayout::maximumSize() const +{ + if (!_env) return QVBoxLayout::maximumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QVBoxLayout::maximumSize(); + } +} + +int MuQt_QVBoxLayout::minimumHeightForWidth(int w) const +{ + if (!_env) return QVBoxLayout::minimumHeightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QVBoxLayout::minimumHeightForWidth(w); + } +} + +QSize MuQt_QVBoxLayout::minimumSize() const +{ + if (!_env) return QVBoxLayout::minimumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QVBoxLayout::minimumSize(); + } +} + +void MuQt_QVBoxLayout::setGeometry(const QRect & r) +{ + if (!_env) { QVBoxLayout::setGeometry(r); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,r,"qt.QRect")); + Value rval = _env->call(F, args); + } + else + { + QVBoxLayout::setGeometry(r); + } +} + +void MuQt_QVBoxLayout::setSpacing(int spacing) +{ + if (!_env) { QVBoxLayout::setSpacing(spacing); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(spacing); + Value rval = _env->call(F, args); + } + else + { + QVBoxLayout::setSpacing(spacing); + } +} + +QSize MuQt_QVBoxLayout::sizeHint() const +{ + if (!_env) return QVBoxLayout::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QVBoxLayout::sizeHint(); + } +} + +int MuQt_QVBoxLayout::spacing() const +{ + if (!_env) return QVBoxLayout::spacing(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QVBoxLayout::spacing(); + } +} + +QLayoutItem * MuQt_QVBoxLayout::takeAt(int index) +{ + if (!_env) return QVBoxLayout::takeAt(index); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(index); + Value rval = _env->call(F, args); + return layoutitem(rval._Pointer); + } + else + { + return QVBoxLayout::takeAt(index); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QVBoxLayoutType::QVBoxLayoutType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QVBoxLayoutType::~QVBoxLayoutType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QVBoxLayout_QVBoxLayout_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QVBoxLayout* w = object(widget)) + { + QVBoxLayoutType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QVBoxLayout"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QVBoxLayout_QVBoxLayout_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QVBoxLayout_QVBoxLayout_QVBoxLayout_QVBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setobject(param_this, new MuQt_QVBoxLayout(param_this, NODE_THREAD.process()->callEnv())); + return param_this; +} + +Pointer qt_QVBoxLayout_QVBoxLayout_QVBoxLayout_QVBoxLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QVBoxLayout(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QVBoxLayout_addItem_void_QVBoxLayout_QLayoutItem(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_item) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + QLayoutItem * arg1 = layoutitem(param_item); + if (isMuQtObject(arg0)) arg0->QVBoxLayout::addItem(arg1); + else arg0->addItem(arg1); +} + +int qt_QVBoxLayout_count_int_QVBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QVBoxLayout::count() : arg0->count(); +} + +int qt_QVBoxLayout_expandingDirections_int_QVBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? int(arg0->QVBoxLayout::expandingDirections()) : int(arg0->expandingDirections()); +} + +bool qt_QVBoxLayout_hasHeightForWidth_bool_QVBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QVBoxLayout::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QVBoxLayout_heightForWidth_int_QVBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QVBoxLayout::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +void qt_QVBoxLayout_invalidate_void_QVBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + if (isMuQtObject(arg0)) arg0->QVBoxLayout::invalidate(); + else arg0->invalidate(); +} + +Pointer qt_QVBoxLayout_itemAt_QLayoutItem_QVBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QVBoxLayout::itemAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->itemAt(arg1), "qt.QLayoutItem"); +} + +Pointer qt_QVBoxLayout_maximumSize_QSize_QVBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QVBoxLayout::maximumSize(),"qt.QSize") : makeqtype(c,arg0->maximumSize(),"qt.QSize"); +} + +int qt_QVBoxLayout_minimumHeightForWidth_int_QVBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QVBoxLayout::minimumHeightForWidth(arg1) : arg0->minimumHeightForWidth(arg1); +} + +Pointer qt_QVBoxLayout_minimumSize_QSize_QVBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QVBoxLayout::minimumSize(),"qt.QSize") : makeqtype(c,arg0->minimumSize(),"qt.QSize"); +} + +void qt_QVBoxLayout_setGeometry_void_QVBoxLayout_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + const QRect arg1 = getqtype(param_r); + if (isMuQtObject(arg0)) arg0->QVBoxLayout::setGeometry(arg1); + else arg0->setGeometry(arg1); +} + +void qt_QVBoxLayout_setSpacing_void_QVBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_spacing) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_spacing); + if (isMuQtObject(arg0)) arg0->QVBoxLayout::setSpacing(arg1); + else arg0->setSpacing(arg1); +} + +Pointer qt_QVBoxLayout_sizeHint_QSize_QVBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QVBoxLayout::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +int qt_QVBoxLayout_spacing_int_QVBoxLayout(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QVBoxLayout::spacing() : arg0->spacing(); +} + +Pointer qt_QVBoxLayout_takeAt_QLayoutItem_QVBoxLayout_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_index) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVBoxLayout* arg0 = object(param_this); + int arg1 = (int)(param_index); + return isMuQtObject(arg0) ? makelayoutitem(c, arg0->QVBoxLayout::takeAt(arg1), "qt.QLayoutItem") : makelayoutitem(c, arg0->takeAt(arg1), "qt.QLayoutItem"); +} + + +static NODE_IMPLEMENTATION(_n_QVBoxLayout0, Pointer) +{ + NODE_RETURN(qt_QVBoxLayout_QVBoxLayout_QVBoxLayout_QVBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVBoxLayout1, Pointer) +{ + NODE_RETURN(qt_QVBoxLayout_QVBoxLayout_QVBoxLayout_QVBoxLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addItem0, void) +{ + qt_QVBoxLayout_addItem_void_QVBoxLayout_QLayoutItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QVBoxLayout_count_int_QVBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expandingDirections0, int) +{ + NODE_RETURN(qt_QVBoxLayout_expandingDirections_int_QVBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QVBoxLayout_hasHeightForWidth_bool_QVBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QVBoxLayout_heightForWidth_int_QVBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_invalidate0, void) +{ + qt_QVBoxLayout_invalidate_void_QVBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_itemAt0, Pointer) +{ + NODE_RETURN(qt_QVBoxLayout_itemAt_QLayoutItem_QVBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_maximumSize0, Pointer) +{ + NODE_RETURN(qt_QVBoxLayout_maximumSize_QSize_QVBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumHeightForWidth0, int) +{ + NODE_RETURN(qt_QVBoxLayout_minimumHeightForWidth_int_QVBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSize0, Pointer) +{ + NODE_RETURN(qt_QVBoxLayout_minimumSize_QSize_QVBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setGeometry0, void) +{ + qt_QVBoxLayout_setGeometry_void_QVBoxLayout_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setSpacing0, void) +{ + qt_QVBoxLayout_setSpacing_void_QVBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QVBoxLayout_sizeHint_QSize_QVBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_spacing0, int) +{ + NODE_RETURN(qt_QVBoxLayout_spacing_int_QVBoxLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_takeAt0, Pointer) +{ + NODE_RETURN(qt_QVBoxLayout_takeAt_QLayoutItem_QVBoxLayout_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QVBoxLayoutType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QVBoxLayout_QVBoxLayout_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QVBoxLayout", _n_QVBoxLayout0, None, Compiled, qt_QVBoxLayout_QVBoxLayout_QVBoxLayout_QVBoxLayout, Return, "qt.QVBoxLayout", Parameters, new Param(c, "this", "qt.QVBoxLayout"), End), + new Function(c, "QVBoxLayout", _n_QVBoxLayout1, None, Compiled, qt_QVBoxLayout_QVBoxLayout_QVBoxLayout_QVBoxLayout_QWidget, Return, "qt.QVBoxLayout", Parameters, new Param(c, "this", "qt.QVBoxLayout"), new Param(c, "parent", "qt.QWidget"), End), + _func[0] = new MemberFunction(c, "addItem", _n_addItem0, None, Compiled, qt_QVBoxLayout_addItem_void_QVBoxLayout_QLayoutItem, Return, "void", Parameters, new Param(c, "this", "qt.QVBoxLayout"), new Param(c, "item", "qt.QLayoutItem"), End), + _func[1] = new MemberFunction(c, "count", _n_count0, None, Compiled, qt_QVBoxLayout_count_int_QVBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QVBoxLayout"), End), + _func[2] = new MemberFunction(c, "expandingDirections", _n_expandingDirections0, None, Compiled, qt_QVBoxLayout_expandingDirections_int_QVBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QVBoxLayout"), End), + _func[3] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QVBoxLayout_hasHeightForWidth_bool_QVBoxLayout, Return, "bool", Parameters, new Param(c, "this", "qt.QVBoxLayout"), End), + _func[4] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QVBoxLayout_heightForWidth_int_QVBoxLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QVBoxLayout"), new Param(c, "w", "int"), End), + _func[5] = new MemberFunction(c, "invalidate", _n_invalidate0, None, Compiled, qt_QVBoxLayout_invalidate_void_QVBoxLayout, Return, "void", Parameters, new Param(c, "this", "qt.QVBoxLayout"), End), + _func[6] = new MemberFunction(c, "itemAt", _n_itemAt0, None, Compiled, qt_QVBoxLayout_itemAt_QLayoutItem_QVBoxLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QVBoxLayout"), new Param(c, "index", "int"), End), + _func[7] = new MemberFunction(c, "maximumSize", _n_maximumSize0, None, Compiled, qt_QVBoxLayout_maximumSize_QSize_QVBoxLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QVBoxLayout"), End), + _func[8] = new MemberFunction(c, "minimumHeightForWidth", _n_minimumHeightForWidth0, None, Compiled, qt_QVBoxLayout_minimumHeightForWidth_int_QVBoxLayout_int, Return, "int", Parameters, new Param(c, "this", "qt.QVBoxLayout"), new Param(c, "w", "int"), End), + _func[9] = new MemberFunction(c, "minimumSize", _n_minimumSize0, None, Compiled, qt_QVBoxLayout_minimumSize_QSize_QVBoxLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QVBoxLayout"), End), + _func[10] = new MemberFunction(c, "setGeometry", _n_setGeometry0, None, Compiled, qt_QVBoxLayout_setGeometry_void_QVBoxLayout_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QVBoxLayout"), new Param(c, "r", "qt.QRect"), End), + _func[11] = new MemberFunction(c, "setSpacing", _n_setSpacing0, None, Compiled, qt_QVBoxLayout_setSpacing_void_QVBoxLayout_int, Return, "void", Parameters, new Param(c, "this", "qt.QVBoxLayout"), new Param(c, "spacing", "int"), End), + _func[12] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QVBoxLayout_sizeHint_QSize_QVBoxLayout, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QVBoxLayout"), End), + _func[13] = new MemberFunction(c, "spacing", _n_spacing0, None, Compiled, qt_QVBoxLayout_spacing_int_QVBoxLayout, Return, "int", Parameters, new Param(c, "this", "qt.QVBoxLayout"), End), + _func[14] = new MemberFunction(c, "takeAt", _n_takeAt0, None, Compiled, qt_QVBoxLayout_takeAt_QLayoutItem_QVBoxLayout_int, Return, "qt.QLayoutItem", Parameters, new Param(c, "this", "qt.QVBoxLayout"), new Param(c, "index", "int"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QVBoxLayout::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QVariantType.cpp b/src/lib/mu/MuQt6/QVariantType.cpp new file mode 100644 index 000000000..cc84cdb51 --- /dev/null +++ b/src/lib/mu/MuQt6/QVariantType.cpp @@ -0,0 +1,812 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QVariantType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +QVariantType::QVariantType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QVariantType::~QVariantType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + QVariantType::Instance* i = new QVariantType::Instance((Class*)NODE_THIS.type()); + QVariantType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +QVariantType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, QVariantType::finalizer, 0, 0, 0); +} + +void +QVariantType::finalizer (void* obj, void* data) +{ + QVariantType::Instance* i = reinterpret_cast(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QVariant_QVariant_QVariant_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqtype(param_this,QVariant()); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QRectF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRectF arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + int arg1 = (int)(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + bool arg1 = (bool)(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_double(Mu::Thread& NODE_THREAD, Pointer param_this, double param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + double arg1 = (double)(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_float(Mu::Thread& NODE_THREAD, Pointer param_this, float param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + float arg1 = (float)(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QDate(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QDate arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTime arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QByteArray arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QDateTime(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QDateTime arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QRegularExpression(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_re) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QRegularExpression arg1 = getqtype(param_re); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QStringList arg1 = qstringlist(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QUrl arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QModelIndex(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QModelIndex arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QSize arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPoint arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QPointF arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +Pointer qt_QVariant_QVariant_QVariant_QVariant_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_val) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QRect arg1 = getqtype(param_val); + setqtype(param_this,QVariant(arg1)); + return param_this; +} + +void qt_QVariant_clear_void_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVariant& arg0 = getqtype(param_this); + arg0.clear(); + setqtype(param_this,arg0); +} + +bool qt_QVariant_isNull_bool_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return arg0.isNull(); +} + +bool qt_QVariant_isValid_bool_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return arg0.isValid(); +} + +void qt_QVariant_setValue_void_QVariant_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_value) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVariant& arg0 = getqtype(param_this); + const QVariant arg1 = getqtype(param_value); + arg0.setValue(arg1); + setqtype(param_this,arg0); +} + +void qt_QVariant_swap_void_QVariant_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_other) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVariant& arg0 = getqtype(param_this); + QVariant arg1 = getqtype(param_other); + arg0.swap(arg1); + setqtype(param_this,arg0); +} + +bool qt_QVariant_toBool_bool_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return arg0.toBool(); +} + +Pointer qt_QVariant_toByteArray_QByteArray_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toByteArray(),"qt.QByteArray"); +} + +Pointer qt_QVariant_toDate_QDate_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toDate(),"qt.QDate"); +} + +Pointer qt_QVariant_toDateTime_QDateTime_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toDateTime(),"qt.QDateTime"); +} + +Pointer qt_QVariant_toModelIndex_QModelIndex_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toModelIndex(),"qt.QModelIndex"); +} + +Pointer qt_QVariant_toPoint_QPoint_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toPoint(),"qt.QPoint"); +} + +Pointer qt_QVariant_toPointF_QPointF_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toPointF(),"qt.QPointF"); +} + +Pointer qt_QVariant_toRect_QRect_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toRect(),"qt.QRect"); +} + +Pointer qt_QVariant_toRectF_QRectF_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toRectF(),"qt.QRectF"); +} + +Pointer qt_QVariant_toRegularExpression_QRegularExpression_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toRegularExpression(),"qt.QRegularExpression"); +} + +Pointer qt_QVariant_toSize_QSize_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toSize(),"qt.QSize"); +} + +Pointer qt_QVariant_toString_string_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makestring(c,arg0.toString()); +} + +Pointer qt_QVariant_toStringList_stringBSB_ESB__QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makestringlist(c,arg0.toStringList()); +} + +Pointer qt_QVariant_toTime_QTime_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toTime(),"qt.QTime"); +} + +Pointer qt_QVariant_toUrl_QUrl_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return makeqtype(c,arg0.toUrl(),"qt.QUrl"); +} + +int qt_QVariant_typeId_int_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return arg0.typeId(); +} + +int qt_QVariant_userType_int_QVariant(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QVariant& arg0 = getqtype(param_this); + return arg0.userType(); +} + + +static NODE_IMPLEMENTATION(_n_QVariant0, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant2, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QRectF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant8, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_QVariant12, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_QVariant13, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_double(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, double))); +} + +static NODE_IMPLEMENTATION(_n_QVariant14, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_float(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, float))); +} + +static NODE_IMPLEMENTATION(_n_QVariant16, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QDate(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant17, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant19, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant20, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QDateTime(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant27, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QRegularExpression(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant28, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant29, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant30, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant32, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QModelIndex(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant34, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant36, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant37, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QVariant40, Pointer) +{ + NODE_RETURN(qt_QVariant_QVariant_QVariant_QVariant_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QVariant_clear_void_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isNull0, bool) +{ + NODE_RETURN(qt_QVariant_isNull_bool_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isValid0, bool) +{ + NODE_RETURN(qt_QVariant_isValid_bool_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setValue1, void) +{ + qt_QVariant_setValue_void_QVariant_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_swap0, void) +{ + qt_QVariant_swap_void_QVariant_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_toBool0, bool) +{ + NODE_RETURN(qt_QVariant_toBool_bool_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toByteArray0, Pointer) +{ + NODE_RETURN(qt_QVariant_toByteArray_QByteArray_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toDate0, Pointer) +{ + NODE_RETURN(qt_QVariant_toDate_QDate_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toDateTime0, Pointer) +{ + NODE_RETURN(qt_QVariant_toDateTime_QDateTime_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toModelIndex0, Pointer) +{ + NODE_RETURN(qt_QVariant_toModelIndex_QModelIndex_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toPoint0, Pointer) +{ + NODE_RETURN(qt_QVariant_toPoint_QPoint_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toPointF0, Pointer) +{ + NODE_RETURN(qt_QVariant_toPointF_QPointF_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toRect0, Pointer) +{ + NODE_RETURN(qt_QVariant_toRect_QRect_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toRectF0, Pointer) +{ + NODE_RETURN(qt_QVariant_toRectF_QRectF_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toRegularExpression0, Pointer) +{ + NODE_RETURN(qt_QVariant_toRegularExpression_QRegularExpression_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toSize0, Pointer) +{ + NODE_RETURN(qt_QVariant_toSize_QSize_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toString0, Pointer) +{ + NODE_RETURN(qt_QVariant_toString_string_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toStringList0, Pointer) +{ + NODE_RETURN(qt_QVariant_toStringList_stringBSB_ESB__QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toTime0, Pointer) +{ + NODE_RETURN(qt_QVariant_toTime_QTime_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_toUrl0, Pointer) +{ + NODE_RETURN(qt_QVariant_toUrl_QUrl_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_typeId0, int) +{ + NODE_RETURN(qt_QVariant_typeId_int_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_userType0, int) +{ + NODE_RETURN(qt_QVariant_userType_int_QVariant(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +static int +QVariant_toInt_int(Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVariant arg0 = getqtype(param_this); + return arg0.toInt(); +} + +static NODE_IMPLEMENTATION(toInt, int) +{ + NODE_RETURN(QVariant_toInt_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +/* +static Pointer +QVariant_toQObject_QObject(Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVariant arg0 = getqtype(param_this); + QObject* obj = arg0.value(); + return makeqpointer(c, obj, "qt.QObject"); +} + +static NODE_IMPLEMENTATION(toQObject, Pointer) +{ + NODE_RETURN(QVariant_toQObject_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} +*/ + +void +QVariantType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "QVariant", _n_QVariant0, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: QVariant (QVariant; QVariant this, "QMetaType" type, "const void *" copy) + new Function(c, "QVariant", _n_QVariant2, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QRectF, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QRectF"), End), + // MISSING: QVariant (QVariant; QVariant this, "const QEasingCurve &" val) + // MISSING: QVariant (QVariant; QVariant this, "const QJsonDocument &" val) + // MISSING: QVariant (QVariant; QVariant this, "const QPersistentModelIndex &" val) + // MISSING: QVariant (QVariant; QVariant this, "const char *" val) + // MISSING: QVariant (QVariant; QVariant this, "QLatin1StringView" val) + new Function(c, "QVariant", _n_QVariant8, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "int"), End), + // MISSING: QVariant (QVariant; QVariant this, int val) + // MISSING: QVariant (QVariant; QVariant this, "qlonglong" val) + // MISSING: QVariant (QVariant; QVariant this, "qulonglong" val) + new Function(c, "QVariant", _n_QVariant12, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_bool, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "bool"), End), + new Function(c, "QVariant", _n_QVariant13, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_double, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "double"), End), + new Function(c, "QVariant", _n_QVariant14, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_float, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "float"), End), + // MISSING: QVariant (QVariant; QVariant this, "QChar" c) + new Function(c, "QVariant", _n_QVariant16, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QDate, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QDate"), End), + new Function(c, "QVariant", _n_QVariant17, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QTime, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QTime"), End), + // MISSING: QVariant (QVariant; QVariant this, "const QBitArray &" val) + new Function(c, "QVariant", _n_QVariant19, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QByteArray, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QByteArray"), End), + new Function(c, "QVariant", _n_QVariant20, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QDateTime, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QDateTime"), End), + // MISSING: QVariant (QVariant; QVariant this, "const QHash &" val) + // MISSING: QVariant (QVariant; QVariant this, "const QJsonArray &" val) + // MISSING: QVariant (QVariant; QVariant this, "const QJsonObject &" val) + // MISSING: QVariant (QVariant; QVariant this, "const QList &" val) + // MISSING: QVariant (QVariant; QVariant this, "const QLocale &" l) + // MISSING: QVariant (QVariant; QVariant this, "const QMap &" val) + new Function(c, "QVariant", _n_QVariant27, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QRegularExpression, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "re", "qt.QRegularExpression"), End), + new Function(c, "QVariant", _n_QVariant28, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_string, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "string"), End), + new Function(c, "QVariant", _n_QVariant29, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_stringBSB_ESB_, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "string[]"), End), + new Function(c, "QVariant", _n_QVariant30, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QUrl, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QUrl"), End), + // MISSING: QVariant (QVariant; QVariant this, "const QJsonValue &" val) + new Function(c, "QVariant", _n_QVariant32, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QModelIndex, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QModelIndex"), End), + // MISSING: QVariant (QVariant; QVariant this, "QUuid" val) + new Function(c, "QVariant", _n_QVariant34, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QSize, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QSize"), End), + // MISSING: QVariant (QVariant; QVariant this, "QSizeF" val) + new Function(c, "QVariant", _n_QVariant36, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QPoint, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QPoint"), End), + new Function(c, "QVariant", _n_QVariant37, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QPointF, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QPointF"), End), + // MISSING: QVariant (QVariant; QVariant this, "QLine" val) + // MISSING: QVariant (QVariant; QVariant this, "QLineF" val) + new Function(c, "QVariant", _n_QVariant40, None, Compiled, qt_QVariant_QVariant_QVariant_QVariant_QRect, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "val", "qt.QRect"), End), + // MISSING: QVariant (QVariant; QVariant this, QVariant p) + // MISSING: QVariant (QVariant; QVariant this, "QVariant & &" other) + new Function(c, "clear", _n_clear0, None, Compiled, qt_QVariant_clear_void_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: constData ("const void *"; QVariant this) + // MISSING: convert (bool; QVariant this, "QMetaType" targetType) + // MISSING: data ("void *"; QVariant this) + // MISSING: data ("const void *"; QVariant this) + new Function(c, "isNull", _n_isNull0, None, Compiled, qt_QVariant_isNull_bool_QVariant, Return, "bool", Parameters, new Param(c, "this", "qt.QVariant"), End), + new Function(c, "isValid", _n_isValid0, None, Compiled, qt_QVariant_isValid_bool_QVariant, Return, "bool", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: metaType ("QMetaType"; QVariant this) + // MISSING: setValue (void; QVariant this, "T & &" value) + new Function(c, "setValue", _n_setValue1, None, Compiled, qt_QVariant_setValue_void_QVariant_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "value", "qt.QVariant"), End), + // MISSING: setValue (void; QVariant this, "QVariant & &" value) + new Function(c, "swap", _n_swap0, None, Compiled, qt_QVariant_swap_void_QVariant_QVariant, Return, "void", Parameters, new Param(c, "this", "qt.QVariant"), new Param(c, "other", "qt.QVariant"), End), + // MISSING: toBitArray ("QBitArray"; QVariant this) + new Function(c, "toBool", _n_toBool0, None, Compiled, qt_QVariant_toBool_bool_QVariant, Return, "bool", Parameters, new Param(c, "this", "qt.QVariant"), End), + new Function(c, "toByteArray", _n_toByteArray0, None, Compiled, qt_QVariant_toByteArray_QByteArray_QVariant, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: toChar ("QChar"; QVariant this) + new Function(c, "toDate", _n_toDate0, None, Compiled, qt_QVariant_toDate_QDate_QVariant, Return, "qt.QDate", Parameters, new Param(c, "this", "qt.QVariant"), End), + new Function(c, "toDateTime", _n_toDateTime0, None, Compiled, qt_QVariant_toDateTime_QDateTime_QVariant, Return, "qt.QDateTime", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: toDouble (double; QVariant this, "bool *" ok) + // MISSING: toEasingCurve ("QEasingCurve"; QVariant this) + // MISSING: toFloat (float; QVariant this, "bool *" ok) + // MISSING: toHash ("QHash"; QVariant this) + // MISSING: toInt (int; QVariant this, "bool *" ok) + // MISSING: toJsonArray ("QJsonArray"; QVariant this) + // MISSING: toJsonDocument ("QJsonDocument"; QVariant this) + // MISSING: toJsonObject ("QJsonObject"; QVariant this) + // MISSING: toJsonValue ("QJsonValue"; QVariant this) + // MISSING: toLine ("QLine"; QVariant this) + // MISSING: toLineF ("QLineF"; QVariant this) + // MISSING: toList ("QList"; QVariant this) + // MISSING: toLocale ("QLocale"; QVariant this) + // MISSING: toLongLong ("qlonglong"; QVariant this, "bool *" ok) + // MISSING: toMap ("QMap"; QVariant this) + new Function(c, "toModelIndex", _n_toModelIndex0, None, Compiled, qt_QVariant_toModelIndex_QModelIndex_QVariant, Return, "qt.QModelIndex", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: toPersistentModelIndex ("QPersistentModelIndex"; QVariant this) + new Function(c, "toPoint", _n_toPoint0, None, Compiled, qt_QVariant_toPoint_QPoint_QVariant, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QVariant"), End), + new Function(c, "toPointF", _n_toPointF0, None, Compiled, qt_QVariant_toPointF_QPointF_QVariant, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: toReal (double; QVariant this, "bool *" ok) + new Function(c, "toRect", _n_toRect0, None, Compiled, qt_QVariant_toRect_QRect_QVariant, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QVariant"), End), + new Function(c, "toRectF", _n_toRectF0, None, Compiled, qt_QVariant_toRectF_QRectF_QVariant, Return, "qt.QRectF", Parameters, new Param(c, "this", "qt.QVariant"), End), + new Function(c, "toRegularExpression", _n_toRegularExpression0, None, Compiled, qt_QVariant_toRegularExpression_QRegularExpression_QVariant, Return, "qt.QRegularExpression", Parameters, new Param(c, "this", "qt.QVariant"), End), + new Function(c, "toSize", _n_toSize0, None, Compiled, qt_QVariant_toSize_QSize_QVariant, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: toSizeF ("QSizeF"; QVariant this) + new Function(c, "toString", _n_toString0, None, Compiled, qt_QVariant_toString_string_QVariant, Return, "string", Parameters, new Param(c, "this", "qt.QVariant"), End), + new Function(c, "toStringList", _n_toStringList0, None, Compiled, qt_QVariant_toStringList_stringBSB_ESB__QVariant, Return, "string[]", Parameters, new Param(c, "this", "qt.QVariant"), End), + new Function(c, "toTime", _n_toTime0, None, Compiled, qt_QVariant_toTime_QTime_QVariant, Return, "qt.QTime", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: toUInt (int; QVariant this, "bool *" ok) + // MISSING: toULongLong ("qulonglong"; QVariant this, "bool *" ok) + new Function(c, "toUrl", _n_toUrl0, None, Compiled, qt_QVariant_toUrl_QUrl_QVariant, Return, "qt.QUrl", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: toUuid ("QUuid"; QVariant this) + new Function(c, "typeId", _n_typeId0, None, Compiled, qt_QVariant_typeId_int_QVariant, Return, "int", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: typeName ("const char *"; QVariant this) + new Function(c, "userType", _n_userType0, None, Compiled, qt_QVariant_userType_int_QVariant, Return, "int", Parameters, new Param(c, "this", "qt.QVariant"), End), + // MISSING: value ("T"; QVariant this) + // MISSING: view ("T"; QVariant this) + // static functions + // MISSING: compare ("QPartialOrdering"; QVariant lhs, QVariant rhs) + // MISSING: fromValue (QVariant; "const T &" value) + EndArguments); +globalScope()->addSymbols( + // MISSING: = (QVariant; QVariant this, QVariant variant) + // MISSING: = (QVariant; QVariant this, "QVariant & &" other) + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +addSymbol( new Function(c, "toInt", toInt, None, + Compiled, QVariant_toInt_int, + Return, "int", + Parameters, + new Param(c, "this", "qt.QVariant"), + End) ); + +/* +addSymbol( new Function(c, "toObject", toQObject, None, + Compiled, QVariant_toQObject_int, + Return, "qt.QObject", + Parameters, + new Param(c, "this", "qt.QVariant"), + End) ); +*/ + + // MISSING: toInt (int; QVariant this, "bool *" ok) +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWebChannelType.cpp b/src/lib/mu/MuQt6/QWebChannelType.cpp new file mode 100644 index 000000000..adc7c7302 --- /dev/null +++ b/src/lib/mu/MuQt6/QWebChannelType.cpp @@ -0,0 +1,367 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QWebChannel::~MuQt_QWebChannel() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QWebChannel::MuQt_QWebChannel(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QWebChannel(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebChannel")); +} + +bool MuQt_QWebChannel::event(QEvent * e) +{ + if (!_env) return QWebChannel::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebChannel::event(e); + } +} + +bool MuQt_QWebChannel::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QWebChannel::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebChannel::eventFilter(watched, event); + } +} + +void MuQt_QWebChannel::customEvent(QEvent * event) +{ + if (!_env) { QWebChannel::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebChannel::customEvent(event); + } +} + +void MuQt_QWebChannel::timerEvent(QTimerEvent * event) +{ + if (!_env) { QWebChannel::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebChannel::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QWebChannelType::QWebChannelType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QWebChannelType::~QWebChannelType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QWebChannel_QWebChannel_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QWebChannel* w = object(widget)) + { + QWebChannelType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebChannel"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QWebChannel_QWebChannel_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QWebChannel_QWebChannel_QWebChannel_QWebChannel_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QWebChannel(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +void qt_QWebChannel_deregisterObject_void_QWebChannel_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_object) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebChannel* arg0 = object(param_this); + QObject * arg1 = object(param_object); + arg0->deregisterObject(arg1); +} + +void qt_QWebChannel_registerObject_void_QWebChannel_string_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_id, Pointer param_object) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebChannel* arg0 = object(param_this); + const QString arg1 = qstring(param_id); + QObject * arg2 = object(param_object); + arg0->registerObject(arg1, arg2); +} + +bool qt_QWebChannel_event_bool_QWebChannel_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebChannel* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QWebChannel::event(arg1) : arg0->event(arg1); +} + +bool qt_QWebChannel_eventFilter_bool_QWebChannel_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebChannel* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QWebChannel::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QWebChannel_customEvent_void_QWebChannel_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebChannel* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebChannel*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QWebChannel*)arg0)->customEvent_pub(arg1); +} + +void qt_QWebChannel_timerEvent_void_QWebChannel_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebChannel* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebChannel*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QWebChannel*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QWebChannel0, Pointer) +{ + NODE_RETURN(qt_QWebChannel_QWebChannel_QWebChannel_QWebChannel_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_deregisterObject0, void) +{ + qt_QWebChannel_deregisterObject_void_QWebChannel_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_registerObject0, void) +{ + qt_QWebChannel_registerObject_void_QWebChannel_string_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QWebChannel_event_bool_QWebChannel_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QWebChannel_eventFilter_bool_QWebChannel_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QWebChannel_customEvent_void_QWebChannel_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QWebChannel_timerEvent_void_QWebChannel_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QWebChannelType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QWebChannel_QWebChannel_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QWebChannel", _n_QWebChannel0, None, Compiled, qt_QWebChannel_QWebChannel_QWebChannel_QWebChannel_QObject, Return, "qt.QWebChannel", Parameters, new Param(c, "this", "qt.QWebChannel"), new Param(c, "parent", "qt.QObject"), End), + // MISSING: bindableBlockUpdates ("QBindable"; QWebChannel this) + // MISSING: bindablePropertyUpdateInterval ("QBindable"; QWebChannel this) + // PROP: blockUpdates (bool; QWebChannel this) + new Function(c, "deregisterObject", _n_deregisterObject0, None, Compiled, qt_QWebChannel_deregisterObject_void_QWebChannel_QObject, Return, "void", Parameters, new Param(c, "this", "qt.QWebChannel"), new Param(c, "object", "qt.QObject"), End), + // PROP: propertyUpdateInterval (int; QWebChannel this) + new Function(c, "registerObject", _n_registerObject0, None, Compiled, qt_QWebChannel_registerObject_void_QWebChannel_string_QObject, Return, "void", Parameters, new Param(c, "this", "qt.QWebChannel"), new Param(c, "id", "string"), new Param(c, "object", "qt.QObject"), End), + // MISSING: registerObjects (void; QWebChannel this, "const QHash &" objects) + // MISSING: registeredObjects ("QHash"; QWebChannel this) + // PROP: setBlockUpdates (void; QWebChannel this, bool block) + // PROP: setPropertyUpdateInterval (void; QWebChannel this, int ms) + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QWebChannel_event_bool_QWebChannel_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebChannel"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QWebChannel_eventFilter_bool_QWebChannel_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebChannel"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QWebChannel this) + // MISSING: childEvent (void; QWebChannel this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QWebChannel this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QWebChannel_customEvent_void_QWebChannel_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebChannel"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QWebChannel this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QWebChannel_timerEvent_void_QWebChannel_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebChannel"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QWebChannel::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWebEngineCookieStoreType.cpp b/src/lib/mu/MuQt6/QWebEngineCookieStoreType.cpp new file mode 100644 index 000000000..7890169d9 --- /dev/null +++ b/src/lib/mu/MuQt6/QWebEngineCookieStoreType.cpp @@ -0,0 +1,377 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QWebEngineCookieStore::~MuQt_QWebEngineCookieStore() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +bool MuQt_QWebEngineCookieStore::event(QEvent * e) +{ + if (!_env) return QWebEngineCookieStore::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEngineCookieStore::event(e); + } +} + +bool MuQt_QWebEngineCookieStore::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QWebEngineCookieStore::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEngineCookieStore::eventFilter(watched, event); + } +} + +void MuQt_QWebEngineCookieStore::customEvent(QEvent * event) +{ + if (!_env) { QWebEngineCookieStore::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineCookieStore::customEvent(event); + } +} + +void MuQt_QWebEngineCookieStore::timerEvent(QTimerEvent * event) +{ + if (!_env) { QWebEngineCookieStore::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineCookieStore::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QWebEngineCookieStoreType::QWebEngineCookieStoreType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QWebEngineCookieStoreType::~QWebEngineCookieStoreType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QWebEngineCookieStore_QWebEngineCookieStore_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QWebEngineCookieStore* w = object(widget)) + { + QWebEngineCookieStoreType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEngineCookieStore"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QWebEngineCookieStore_QWebEngineCookieStore_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +void qt_QWebEngineCookieStore_deleteAllCookies_void_QWebEngineCookieStore(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineCookieStore* arg0 = object(param_this); + arg0->deleteAllCookies(); +} + +void qt_QWebEngineCookieStore_deleteCookie_void_QWebEngineCookieStore_QNetworkCookie_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cookie, Pointer param_origin) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineCookieStore* arg0 = object(param_this); + const QNetworkCookie arg1 = getqtype(param_cookie); + const QUrl arg2 = getqtype(param_origin); + arg0->deleteCookie(arg1, arg2); +} + +void qt_QWebEngineCookieStore_deleteSessionCookies_void_QWebEngineCookieStore(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineCookieStore* arg0 = object(param_this); + arg0->deleteSessionCookies(); +} + +void qt_QWebEngineCookieStore_loadAllCookies_void_QWebEngineCookieStore(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineCookieStore* arg0 = object(param_this); + arg0->loadAllCookies(); +} + +void qt_QWebEngineCookieStore_setCookie_void_QWebEngineCookieStore_QNetworkCookie_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cookie, Pointer param_origin) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineCookieStore* arg0 = object(param_this); + const QNetworkCookie arg1 = getqtype(param_cookie); + const QUrl arg2 = getqtype(param_origin); + arg0->setCookie(arg1, arg2); +} + +bool qt_QWebEngineCookieStore_event_bool_QWebEngineCookieStore_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineCookieStore* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QWebEngineCookieStore::event(arg1) : arg0->event(arg1); +} + +bool qt_QWebEngineCookieStore_eventFilter_bool_QWebEngineCookieStore_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineCookieStore* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QWebEngineCookieStore::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QWebEngineCookieStore_customEvent_void_QWebEngineCookieStore_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineCookieStore* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineCookieStore*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QWebEngineCookieStore*)arg0)->customEvent_pub(arg1); +} + +void qt_QWebEngineCookieStore_timerEvent_void_QWebEngineCookieStore_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineCookieStore* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineCookieStore*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QWebEngineCookieStore*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_deleteAllCookies0, void) +{ + qt_QWebEngineCookieStore_deleteAllCookies_void_QWebEngineCookieStore(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_deleteCookie0, void) +{ + qt_QWebEngineCookieStore_deleteCookie_void_QWebEngineCookieStore_QNetworkCookie_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_deleteSessionCookies0, void) +{ + qt_QWebEngineCookieStore_deleteSessionCookies_void_QWebEngineCookieStore(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_loadAllCookies0, void) +{ + qt_QWebEngineCookieStore_loadAllCookies_void_QWebEngineCookieStore(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCookie0, void) +{ + qt_QWebEngineCookieStore_setCookie_void_QWebEngineCookieStore_QNetworkCookie_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QWebEngineCookieStore_event_bool_QWebEngineCookieStore_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QWebEngineCookieStore_eventFilter_bool_QWebEngineCookieStore_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QWebEngineCookieStore_customEvent_void_QWebEngineCookieStore_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QWebEngineCookieStore_timerEvent_void_QWebEngineCookieStore_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QWebEngineCookieStoreType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QWebEngineCookieStore_QWebEngineCookieStore_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "deleteAllCookies", _n_deleteAllCookies0, None, Compiled, qt_QWebEngineCookieStore_deleteAllCookies_void_QWebEngineCookieStore, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineCookieStore"), End), + new Function(c, "deleteCookie", _n_deleteCookie0, None, Compiled, qt_QWebEngineCookieStore_deleteCookie_void_QWebEngineCookieStore_QNetworkCookie_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineCookieStore"), new Param(c, "cookie", "qt.QNetworkCookie"), new Param(c, "origin", "qt.QUrl"), End), + new Function(c, "deleteSessionCookies", _n_deleteSessionCookies0, None, Compiled, qt_QWebEngineCookieStore_deleteSessionCookies_void_QWebEngineCookieStore, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineCookieStore"), End), + new Function(c, "loadAllCookies", _n_loadAllCookies0, None, Compiled, qt_QWebEngineCookieStore_loadAllCookies_void_QWebEngineCookieStore, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineCookieStore"), End), + new Function(c, "setCookie", _n_setCookie0, None, Compiled, qt_QWebEngineCookieStore_setCookie_void_QWebEngineCookieStore_QNetworkCookie_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineCookieStore"), new Param(c, "cookie", "qt.QNetworkCookie"), new Param(c, "origin", "qt.QUrl"), End), + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QWebEngineCookieStore_event_bool_QWebEngineCookieStore_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineCookieStore"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QWebEngineCookieStore_eventFilter_bool_QWebEngineCookieStore_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineCookieStore"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QWebEngineCookieStore this) + // MISSING: childEvent (void; QWebEngineCookieStore this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QWebEngineCookieStore this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QWebEngineCookieStore_customEvent_void_QWebEngineCookieStore_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineCookieStore"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QWebEngineCookieStore this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QWebEngineCookieStore_timerEvent_void_QWebEngineCookieStore_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineCookieStore"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QWebEngineCookieStore::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWebEngineHistoryType.cpp b/src/lib/mu/MuQt6/QWebEngineHistoryType.cpp new file mode 100644 index 000000000..a9fb29f86 --- /dev/null +++ b/src/lib/mu/MuQt6/QWebEngineHistoryType.cpp @@ -0,0 +1,391 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +bool MuQt_QWebEngineHistory::event(QEvent * e) +{ + if (!_env) return QWebEngineHistory::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEngineHistory::event(e); + } +} + +bool MuQt_QWebEngineHistory::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QWebEngineHistory::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEngineHistory::eventFilter(watched, event); + } +} + +void MuQt_QWebEngineHistory::customEvent(QEvent * event) +{ + if (!_env) { QWebEngineHistory::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineHistory::customEvent(event); + } +} + +void MuQt_QWebEngineHistory::timerEvent(QTimerEvent * event) +{ + if (!_env) { QWebEngineHistory::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineHistory::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QWebEngineHistoryType::QWebEngineHistoryType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QWebEngineHistoryType::~QWebEngineHistoryType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QWebEngineHistory_QWebEngineHistory_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QWebEngineHistory* w = object(widget)) + { + QWebEngineHistoryType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEngineHistory"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QWebEngineHistory_QWebEngineHistory_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +void qt_QWebEngineHistory_back_void_QWebEngineHistory(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + arg0->back(); +} + +bool qt_QWebEngineHistory_canGoBack_bool_QWebEngineHistory(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + return arg0->canGoBack(); +} + +bool qt_QWebEngineHistory_canGoForward_bool_QWebEngineHistory(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + return arg0->canGoForward(); +} + +void qt_QWebEngineHistory_clear_void_QWebEngineHistory(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + arg0->clear(); +} + +int qt_QWebEngineHistory_count_int_QWebEngineHistory(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + return arg0->count(); +} + +int qt_QWebEngineHistory_currentItemIndex_int_QWebEngineHistory(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + return arg0->currentItemIndex(); +} + +void qt_QWebEngineHistory_forward_void_QWebEngineHistory(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + arg0->forward(); +} + +bool qt_QWebEngineHistory_event_bool_QWebEngineHistory_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QWebEngineHistory::event(arg1) : arg0->event(arg1); +} + +bool qt_QWebEngineHistory_eventFilter_bool_QWebEngineHistory_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QWebEngineHistory::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QWebEngineHistory_customEvent_void_QWebEngineHistory_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineHistory*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QWebEngineHistory*)arg0)->customEvent_pub(arg1); +} + +void qt_QWebEngineHistory_timerEvent_void_QWebEngineHistory_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineHistory* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineHistory*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QWebEngineHistory*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_back0, void) +{ + qt_QWebEngineHistory_back_void_QWebEngineHistory(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_canGoBack0, bool) +{ + NODE_RETURN(qt_QWebEngineHistory_canGoBack_bool_QWebEngineHistory(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_canGoForward0, bool) +{ + NODE_RETURN(qt_QWebEngineHistory_canGoForward_bool_QWebEngineHistory(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clear0, void) +{ + qt_QWebEngineHistory_clear_void_QWebEngineHistory(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_count0, int) +{ + NODE_RETURN(qt_QWebEngineHistory_count_int_QWebEngineHistory(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_currentItemIndex0, int) +{ + NODE_RETURN(qt_QWebEngineHistory_currentItemIndex_int_QWebEngineHistory(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_forward0, void) +{ + qt_QWebEngineHistory_forward_void_QWebEngineHistory(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QWebEngineHistory_event_bool_QWebEngineHistory_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QWebEngineHistory_eventFilter_bool_QWebEngineHistory_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QWebEngineHistory_customEvent_void_QWebEngineHistory_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QWebEngineHistory_timerEvent_void_QWebEngineHistory_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QWebEngineHistoryType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QWebEngineHistory_QWebEngineHistory_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "back", _n_back0, None, Compiled, qt_QWebEngineHistory_back_void_QWebEngineHistory, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), End), + // MISSING: backItems ("QList"; QWebEngineHistory this, int maxItems) + // MISSING: backItemsModel ("QWebEngineHistoryModel *"; QWebEngineHistory this) + new Function(c, "canGoBack", _n_canGoBack0, None, Compiled, qt_QWebEngineHistory_canGoBack_bool_QWebEngineHistory, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), End), + new Function(c, "canGoForward", _n_canGoForward0, None, Compiled, qt_QWebEngineHistory_canGoForward_bool_QWebEngineHistory, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), End), + new Function(c, "clear", _n_clear0, None, Compiled, qt_QWebEngineHistory_clear_void_QWebEngineHistory, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), End), + new Function(c, "count", _n_count0, None, Compiled, qt_QWebEngineHistory_count_int_QWebEngineHistory, Return, "int", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), End), + new Function(c, "currentItemIndex", _n_currentItemIndex0, None, Compiled, qt_QWebEngineHistory_currentItemIndex_int_QWebEngineHistory, Return, "int", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), End), + new Function(c, "forward", _n_forward0, None, Compiled, qt_QWebEngineHistory_forward_void_QWebEngineHistory, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), End), + // MISSING: forwardItems ("QList"; QWebEngineHistory this, int maxItems) + // MISSING: forwardItemsModel ("QWebEngineHistoryModel *"; QWebEngineHistory this) + // MISSING: goToItem (void; QWebEngineHistory this, "const QWebEngineHistoryItem &" item) + // MISSING: items ("QList"; QWebEngineHistory this) + // MISSING: itemsModel ("QWebEngineHistoryModel *"; QWebEngineHistory this) + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QWebEngineHistory_event_bool_QWebEngineHistory_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QWebEngineHistory_eventFilter_bool_QWebEngineHistory_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QWebEngineHistory this) + // MISSING: childEvent (void; QWebEngineHistory this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QWebEngineHistory this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QWebEngineHistory_customEvent_void_QWebEngineHistory_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QWebEngineHistory this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QWebEngineHistory_timerEvent_void_QWebEngineHistory_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineHistory"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QWebEngineHistory::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWebEnginePageType.cpp b/src/lib/mu/MuQt6/QWebEnginePageType.cpp new file mode 100644 index 000000000..8b12d4a93 --- /dev/null +++ b/src/lib/mu/MuQt6/QWebEnginePageType.cpp @@ -0,0 +1,875 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QWebEnginePage::~MuQt_QWebEnginePage() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QWebEnginePage::MuQt_QWebEnginePage(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QWebEnginePage(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEnginePage")); +} + +MuQt_QWebEnginePage::MuQt_QWebEnginePage(Pointer muobj, const CallEnvironment* ce, QWebEngineProfile * profile, QObject * parent) + : QWebEnginePage(profile, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEnginePage")); +} + +void MuQt_QWebEnginePage::triggerAction(QWebEnginePage::WebAction action, bool checked) +{ + if (!_env) { QWebEnginePage::triggerAction(action, checked); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(action)); + args[2] = Value(checked); + Value rval = _env->call(F, args); + } + else + { + QWebEnginePage::triggerAction(action, checked); + } +} + +bool MuQt_QWebEnginePage::event(QEvent * e) +{ + if (!_env) return QWebEnginePage::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEnginePage::event(e); + } +} + +bool MuQt_QWebEnginePage::acceptNavigationRequest(const QUrl & url, QWebEnginePage::NavigationType type, bool isMainFrame) +{ + if (!_env) return QWebEnginePage::acceptNavigationRequest(url, type, isMainFrame); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,url,"qt.QUrl")); + args[2] = Value(int(type)); + args[3] = Value(isMainFrame); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEnginePage::acceptNavigationRequest(url, type, isMainFrame); + } +} + +QStringList MuQt_QWebEnginePage::chooseFiles(QWebEnginePage::FileSelectionMode mode, const QStringList & oldFiles, const QStringList & acceptedMimeTypes) +{ + if (!_env) return QWebEnginePage::chooseFiles(mode, oldFiles, acceptedMimeTypes); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(4); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(mode)); + args[2] = Value(makestringlist(c,oldFiles)); + args[3] = Value(makestringlist(c,acceptedMimeTypes)); + Value rval = _env->call(F, args); + return qstringlist(rval._Pointer); + } + else + { + return QWebEnginePage::chooseFiles(mode, oldFiles, acceptedMimeTypes); + } +} + +QWebEnginePage * MuQt_QWebEnginePage::createWindow(QWebEnginePage::WebWindowType type) +{ + if (!_env) return QWebEnginePage::createWindow(type); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(type)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QWebEnginePage::createWindow(type); + } +} + +void MuQt_QWebEnginePage::javaScriptAlert(const QUrl & securityOrigin, const QString & msg) +{ + if (!_env) { QWebEnginePage::javaScriptAlert(securityOrigin, msg); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,securityOrigin,"qt.QUrl")); + args[2] = Value(makestring(c,msg)); + Value rval = _env->call(F, args); + } + else + { + QWebEnginePage::javaScriptAlert(securityOrigin, msg); + } +} + +bool MuQt_QWebEnginePage::javaScriptConfirm(const QUrl & securityOrigin, const QString & msg) +{ + if (!_env) return QWebEnginePage::javaScriptConfirm(securityOrigin, msg); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,securityOrigin,"qt.QUrl")); + args[2] = Value(makestring(c,msg)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEnginePage::javaScriptConfirm(securityOrigin, msg); + } +} + +void MuQt_QWebEnginePage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel level, const QString & message, int lineNumber, const QString & sourceID) +{ + if (!_env) { QWebEnginePage::javaScriptConsoleMessage(level, message, lineNumber, sourceID); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(5); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(level)); + args[2] = Value(makestring(c,message)); + args[3] = Value(lineNumber); + args[4] = Value(makestring(c,sourceID)); + Value rval = _env->call(F, args); + } + else + { + QWebEnginePage::javaScriptConsoleMessage(level, message, lineNumber, sourceID); + } +} + +bool MuQt_QWebEnginePage::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QWebEnginePage::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEnginePage::eventFilter(watched, event); + } +} + +void MuQt_QWebEnginePage::customEvent(QEvent * event) +{ + if (!_env) { QWebEnginePage::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEnginePage::customEvent(event); + } +} + +void MuQt_QWebEnginePage::timerEvent(QTimerEvent * event) +{ + if (!_env) { QWebEnginePage::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEnginePage::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QWebEnginePageType::QWebEnginePageType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QWebEnginePageType::~QWebEnginePageType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QWebEnginePage_QWebEnginePage_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QWebEnginePage* w = object(widget)) + { + QWebEnginePageType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEnginePage"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QWebEnginePage_QWebEnginePage_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QWebEnginePage_QWebEnginePage_QWebEnginePage_QWebEnginePage_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QWebEnginePage(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QWebEnginePage_QWebEnginePage_QWebEnginePage_QWebEnginePage_QWebEngineProfile_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_profile, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile * arg1 = object(param_profile); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QWebEnginePage(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QWebEnginePage_action_QAction_QWebEnginePage_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_action_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QWebEnginePage::WebAction arg1 = (QWebEnginePage::WebAction)(param_action_); + return makeinstance(c, arg0->action(arg1), "qt.QAction"); +} + +Pointer qt_QWebEnginePage_devToolsPage_QWebEnginePage_QWebEnginePage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + return makeinstance(c, arg0->devToolsPage(), "qt.QWebEnginePage"); +} + +void qt_QWebEnginePage_download_void_QWebEnginePage_QUrl_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url, Pointer param_filename) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_url); + const QString arg2 = qstring(param_filename); + arg0->download(arg1, arg2); +} + +Pointer qt_QWebEnginePage_inspectedPage_QWebEnginePage_QWebEnginePage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + return makeinstance(c, arg0->inspectedPage(), "qt.QWebEnginePage"); +} + +void qt_QWebEnginePage_load_void_QWebEnginePage_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_url); + arg0->load(arg1); +} + +Pointer qt_QWebEnginePage_profile_QWebEngineProfile_QWebEnginePage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + return makeinstance(c, arg0->profile(), "qt.QWebEngineProfile"); +} + +void qt_QWebEnginePage_replaceMisspelledWord_void_QWebEnginePage_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_replacement) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + const QString arg1 = qstring(param_replacement); + arg0->replaceMisspelledWord(arg1); +} + +void qt_QWebEnginePage_save_void_QWebEnginePage_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_filePath, int param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + const QString arg1 = qstring(param_filePath); + QWebEngineDownloadRequest::SavePageFormat arg2 = (QWebEngineDownloadRequest::SavePageFormat)(param_format); + arg0->save(arg1, arg2); +} + +void qt_QWebEnginePage_setContent_void_QWebEnginePage_QByteArray_string_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, Pointer param_mimeType, Pointer param_baseUrl) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_data); + const QString arg2 = qstring(param_mimeType); + const QUrl arg3 = getqtype(param_baseUrl); + arg0->setContent(arg1, arg2, arg3); +} + +void qt_QWebEnginePage_setDevToolsPage_void_QWebEnginePage_QWebEnginePage(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_devToolsPage) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QWebEnginePage * arg1 = object(param_devToolsPage); + arg0->setDevToolsPage(arg1); +} + +void qt_QWebEnginePage_setFeaturePermission_void_QWebEnginePage_QUrl_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_securityOrigin, int param_feature, int param_policy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_securityOrigin); + QWebEnginePage::Feature arg2 = (QWebEnginePage::Feature)(param_feature); + QWebEnginePage::PermissionPolicy arg3 = (QWebEnginePage::PermissionPolicy)(param_policy); + arg0->setFeaturePermission(arg1, arg2, arg3); +} + +void qt_QWebEnginePage_setHtml_void_QWebEnginePage_string_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_html, Pointer param_baseUrl) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + const QString arg1 = qstring(param_html); + const QUrl arg2 = getqtype(param_baseUrl); + arg0->setHtml(arg1, arg2); +} + +void qt_QWebEnginePage_setInspectedPage_void_QWebEnginePage_QWebEnginePage(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_page) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QWebEnginePage * arg1 = object(param_page); + arg0->setInspectedPage(arg1); +} + +void qt_QWebEnginePage_setWebChannel_void_QWebEnginePage_QWebChannel_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_channel, int param_worldId) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QWebChannel * arg1 = object(param_channel); + quint32 arg2 = (int)(param_worldId); + arg0->setWebChannel(arg1, arg2); +} + +Pointer qt_QWebEnginePage_settings_QWebEngineSettings_QWebEnginePage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + return makeqpointer(c,arg0->settings(),"qt.QWebEngineSettings"); +} + +void qt_QWebEnginePage_triggerAction_void_QWebEnginePage_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_action, bool param_checked) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QWebEnginePage::WebAction arg1 = (QWebEnginePage::WebAction)(param_action); + bool arg2 = (bool)(param_checked); + if (isMuQtObject(arg0)) arg0->QWebEnginePage::triggerAction(arg1, arg2); + else arg0->triggerAction(arg1, arg2); +} + +Pointer qt_QWebEnginePage_webChannel_QWebChannel_QWebEnginePage(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + return makeinstance(c, arg0->webChannel(), "qt.QWebChannel"); +} + +bool qt_QWebEnginePage_event_bool_QWebEnginePage_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QWebEnginePage::event(arg1) : arg0->event(arg1); +} + +bool qt_QWebEnginePage_acceptNavigationRequest_bool_QWebEnginePage_QUrl_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url, int param_type, bool param_isMainFrame) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_url); + QWebEnginePage::NavigationType arg2 = (QWebEnginePage::NavigationType)(param_type); + bool arg3 = (bool)(param_isMainFrame); + return isMuQtObject(arg0) ? ((MuQt_QWebEnginePage*)arg0)->acceptNavigationRequest_pub_parent(arg1, arg2, arg3) : ((MuQt_QWebEnginePage*)arg0)->acceptNavigationRequest_pub(arg1, arg2, arg3); +} + +Pointer qt_QWebEnginePage_chooseFiles_stringBSB_ESB__QWebEnginePage_int_stringBSB_ESB__stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, int param_mode, Pointer param_oldFiles, Pointer param_acceptedMimeTypes) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QWebEnginePage::FileSelectionMode arg1 = (QWebEnginePage::FileSelectionMode)(param_mode); + const QStringList arg2 = qstringlist(param_oldFiles); + const QStringList arg3 = qstringlist(param_acceptedMimeTypes); + return isMuQtObject(arg0) ? makestringlist(c,((MuQt_QWebEnginePage*)arg0)->chooseFiles_pub_parent(arg1, arg2, arg3)) : makestringlist(c,((MuQt_QWebEnginePage*)arg0)->chooseFiles_pub(arg1, arg2, arg3)); +} + +Pointer qt_QWebEnginePage_createWindow_QWebEnginePage_QWebEnginePage_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QWebEnginePage::WebWindowType arg1 = (QWebEnginePage::WebWindowType)(param_type); + return isMuQtObject(arg0) ? makeinstance(c, ((MuQt_QWebEnginePage*)arg0)->createWindow_pub_parent(arg1), "qt.QWebEnginePage") : makeinstance(c, ((MuQt_QWebEnginePage*)arg0)->createWindow_pub(arg1), "qt.QWebEnginePage"); +} + +void qt_QWebEnginePage_javaScriptAlert_void_QWebEnginePage_QUrl_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_securityOrigin, Pointer param_msg) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_securityOrigin); + const QString arg2 = qstring(param_msg); + if (isMuQtObject(arg0)) ((MuQt_QWebEnginePage*)arg0)->javaScriptAlert_pub_parent(arg1, arg2); + else ((MuQt_QWebEnginePage*)arg0)->javaScriptAlert_pub(arg1, arg2); +} + +bool qt_QWebEnginePage_javaScriptConfirm_bool_QWebEnginePage_QUrl_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_securityOrigin, Pointer param_msg) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_securityOrigin); + const QString arg2 = qstring(param_msg); + return isMuQtObject(arg0) ? ((MuQt_QWebEnginePage*)arg0)->javaScriptConfirm_pub_parent(arg1, arg2) : ((MuQt_QWebEnginePage*)arg0)->javaScriptConfirm_pub(arg1, arg2); +} + +void qt_QWebEnginePage_javaScriptConsoleMessage_void_QWebEnginePage_int_string_int_string(Mu::Thread& NODE_THREAD, Pointer param_this, int param_level, Pointer param_message, int param_lineNumber, Pointer param_sourceID) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QWebEnginePage::JavaScriptConsoleMessageLevel arg1 = (QWebEnginePage::JavaScriptConsoleMessageLevel)(param_level); + const QString arg2 = qstring(param_message); + int arg3 = (int)(param_lineNumber); + const QString arg4 = qstring(param_sourceID); + if (isMuQtObject(arg0)) ((MuQt_QWebEnginePage*)arg0)->javaScriptConsoleMessage_pub_parent(arg1, arg2, arg3, arg4); + else ((MuQt_QWebEnginePage*)arg0)->javaScriptConsoleMessage_pub(arg1, arg2, arg3, arg4); +} + +bool qt_QWebEnginePage_eventFilter_bool_QWebEnginePage_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QWebEnginePage::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QWebEnginePage_customEvent_void_QWebEnginePage_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEnginePage*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QWebEnginePage*)arg0)->customEvent_pub(arg1); +} + +void qt_QWebEnginePage_timerEvent_void_QWebEnginePage_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEnginePage*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QWebEnginePage*)arg0)->timerEvent_pub(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QWebEnginePage0, Pointer) +{ + NODE_RETURN(qt_QWebEnginePage_QWebEnginePage_QWebEnginePage_QWebEnginePage_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QWebEnginePage1, Pointer) +{ + NODE_RETURN(qt_QWebEnginePage_QWebEnginePage_QWebEnginePage_QWebEnginePage_QWebEngineProfile_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_action0, Pointer) +{ + NODE_RETURN(qt_QWebEnginePage_action_QAction_QWebEnginePage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_devToolsPage0, Pointer) +{ + NODE_RETURN(qt_QWebEnginePage_devToolsPage_QWebEnginePage_QWebEnginePage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_download0, void) +{ + qt_QWebEnginePage_download_void_QWebEnginePage_QUrl_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_inspectedPage0, Pointer) +{ + NODE_RETURN(qt_QWebEnginePage_inspectedPage_QWebEnginePage_QWebEnginePage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_load0, void) +{ + qt_QWebEnginePage_load_void_QWebEnginePage_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_profile0, Pointer) +{ + NODE_RETURN(qt_QWebEnginePage_profile_QWebEngineProfile_QWebEnginePage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_replaceMisspelledWord0, void) +{ + qt_QWebEnginePage_replaceMisspelledWord_void_QWebEnginePage_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_save0, void) +{ + qt_QWebEnginePage_save_void_QWebEnginePage_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setContent0, void) +{ + qt_QWebEnginePage_setContent_void_QWebEnginePage_QByteArray_string_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setDevToolsPage0, void) +{ + qt_QWebEnginePage_setDevToolsPage_void_QWebEnginePage_QWebEnginePage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFeaturePermission0, void) +{ + qt_QWebEnginePage_setFeaturePermission_void_QWebEnginePage_QUrl_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, int)); +} + +static NODE_IMPLEMENTATION(_n_setHtml0, void) +{ + qt_QWebEnginePage_setHtml_void_QWebEnginePage_string_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setInspectedPage0, void) +{ + qt_QWebEnginePage_setInspectedPage_void_QWebEnginePage_QWebEnginePage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setWebChannel0, void) +{ + qt_QWebEnginePage_setWebChannel_void_QWebEnginePage_QWebChannel_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_settings0, Pointer) +{ + NODE_RETURN(qt_QWebEnginePage_settings_QWebEngineSettings_QWebEnginePage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_triggerAction0, void) +{ + qt_QWebEnginePage_triggerAction_void_QWebEnginePage_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_webChannel0, Pointer) +{ + NODE_RETURN(qt_QWebEnginePage_webChannel_QWebChannel_QWebEnginePage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QWebEnginePage_event_bool_QWebEnginePage_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_acceptNavigationRequest0, bool) +{ + NODE_RETURN(qt_QWebEnginePage_acceptNavigationRequest_bool_QWebEnginePage_QUrl_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int), NODE_ARG(3, bool))); +} + +static NODE_IMPLEMENTATION(_n_chooseFiles0, Pointer) +{ + NODE_RETURN(qt_QWebEnginePage_chooseFiles_stringBSB_ESB__QWebEnginePage_int_stringBSB_ESB__stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createWindow0, Pointer) +{ + NODE_RETURN(qt_QWebEnginePage_createWindow_QWebEnginePage_QWebEnginePage_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_javaScriptAlert0, void) +{ + qt_QWebEnginePage_javaScriptAlert_void_QWebEnginePage_QUrl_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_javaScriptConfirm0, bool) +{ + NODE_RETURN(qt_QWebEnginePage_javaScriptConfirm_bool_QWebEnginePage_QUrl_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_javaScriptConsoleMessage0, void) +{ + qt_QWebEnginePage_javaScriptConsoleMessage_void_QWebEnginePage_int_string_int_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, Pointer), NODE_ARG(3, int), NODE_ARG(4, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QWebEnginePage_eventFilter_bool_QWebEnginePage_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QWebEnginePage_customEvent_void_QWebEnginePage_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QWebEnginePage_timerEvent_void_QWebEnginePage_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + + +void +QWebEnginePageType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QWebEnginePage_QWebEnginePage_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QWebEnginePage", _n_QWebEnginePage0, None, Compiled, qt_QWebEnginePage_QWebEnginePage_QWebEnginePage_QWebEnginePage_QObject, Return, "qt.QWebEnginePage", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QWebEnginePage", _n_QWebEnginePage1, None, Compiled, qt_QWebEnginePage_QWebEnginePage_QWebEnginePage_QWebEnginePage_QWebEngineProfile_QObject, Return, "qt.QWebEnginePage", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "profile", "qt.QWebEngineProfile"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "action", _n_action0, None, Compiled, qt_QWebEnginePage_action_QAction_QWebEnginePage_int, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "action_", "int"), End), + // PROP: backgroundColor (QColor; QWebEnginePage this) + // MISSING: contentsSize ("QSizeF"; QWebEnginePage this) + new Function(c, "devToolsPage", _n_devToolsPage0, None, Compiled, qt_QWebEnginePage_devToolsPage_QWebEnginePage_QWebEnginePage, Return, "qt.QWebEnginePage", Parameters, new Param(c, "this", "qt.QWebEnginePage"), End), + new Function(c, "download", _n_download0, None, Compiled, qt_QWebEnginePage_download_void_QWebEnginePage_QUrl_string, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "url", "qt.QUrl"), new Param(c, "filename", "string"), End), + // PROP: hasSelection (bool; QWebEnginePage this) + // PROP: icon (QIcon; QWebEnginePage this) + // PROP: iconUrl (QUrl; QWebEnginePage this) + new Function(c, "inspectedPage", _n_inspectedPage0, None, Compiled, qt_QWebEnginePage_inspectedPage_QWebEnginePage_QWebEnginePage, Return, "qt.QWebEnginePage", Parameters, new Param(c, "this", "qt.QWebEnginePage"), End), + // PROP: isAudioMuted (bool; QWebEnginePage this) + // PROP: isLoading (bool; QWebEnginePage this) + // PROP: isVisible (bool; QWebEnginePage this) + // PROP: lifecycleState (flags QWebEnginePage::LifecycleState; QWebEnginePage this) + new Function(c, "load", _n_load0, None, Compiled, qt_QWebEnginePage_load_void_QWebEnginePage_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "url", "qt.QUrl"), End), + // MISSING: load (void; QWebEnginePage this, "const QWebEngineHttpRequest &" request) + // MISSING: printToPdf (void; QWebEnginePage this, string filePath, "const QPageLayout &" layout, "const QPageRanges &" ranges) + // MISSING: printToPdf (void; QWebEnginePage this, flags const std::function & resultCallback, "const QPageLayout &" layout, "const QPageRanges &" ranges) + new Function(c, "profile", _n_profile0, None, Compiled, qt_QWebEnginePage_profile_QWebEngineProfile_QWebEnginePage, Return, "qt.QWebEngineProfile", Parameters, new Param(c, "this", "qt.QWebEnginePage"), End), + // PROP: recentlyAudible (bool; QWebEnginePage this) + // PROP: recommendedState (flags QWebEnginePage::LifecycleState; QWebEnginePage this) + // PROP: renderProcessPid (int64; QWebEnginePage this) + new Function(c, "replaceMisspelledWord", _n_replaceMisspelledWord0, None, Compiled, qt_QWebEnginePage_replaceMisspelledWord_void_QWebEnginePage_string, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "replacement", "string"), End), + // PROP: requestedUrl (QUrl; QWebEnginePage this) + new Function(c, "save", _n_save0, None, Compiled, qt_QWebEnginePage_save_void_QWebEnginePage_string_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "filePath", "string"), new Param(c, "format", "int", Value((int)QWebEngineDownloadRequest::MimeHtmlSaveFormat)), End), + // MISSING: scripts ("QWebEngineScriptCollection &"; QWebEnginePage this) + // PROP: scrollPosition (QPointF; QWebEnginePage this) + // PROP: selectedText (string; QWebEnginePage this) + // PROP: setAudioMuted (void; QWebEnginePage this, bool muted) + // PROP: setBackgroundColor (void; QWebEnginePage this, QColor color) + new Function(c, "setContent", _n_setContent0, None, Compiled, qt_QWebEnginePage_setContent_void_QWebEnginePage_QByteArray_string_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "data", "qt.QByteArray"), new Param(c, "mimeType", "string"), new Param(c, "baseUrl", "qt.QUrl"), End), + new Function(c, "setDevToolsPage", _n_setDevToolsPage0, None, Compiled, qt_QWebEnginePage_setDevToolsPage_void_QWebEnginePage_QWebEnginePage, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "devToolsPage", "qt.QWebEnginePage"), End), + new Function(c, "setFeaturePermission", _n_setFeaturePermission0, None, Compiled, qt_QWebEnginePage_setFeaturePermission_void_QWebEnginePage_QUrl_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "securityOrigin", "qt.QUrl"), new Param(c, "feature", "int"), new Param(c, "policy", "int"), End), + new Function(c, "setHtml", _n_setHtml0, None, Compiled, qt_QWebEnginePage_setHtml_void_QWebEnginePage_string_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "html", "string"), new Param(c, "baseUrl", "qt.QUrl"), End), + new Function(c, "setInspectedPage", _n_setInspectedPage0, None, Compiled, qt_QWebEnginePage_setInspectedPage_void_QWebEnginePage_QWebEnginePage, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "page", "qt.QWebEnginePage"), End), + // PROP: setLifecycleState (void; QWebEnginePage this, flags QWebEnginePage::LifecycleState state) + // PROP: setUrl (void; QWebEnginePage this, QUrl url) + // MISSING: setUrlRequestInterceptor (void; QWebEnginePage this, "QWebEngineUrlRequestInterceptor *" interceptor) + // PROP: setVisible (void; QWebEnginePage this, bool visible) + new Function(c, "setWebChannel", _n_setWebChannel0, None, Compiled, qt_QWebEnginePage_setWebChannel_void_QWebEnginePage_QWebChannel_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "channel", "qt.QWebChannel"), new Param(c, "worldId", "int", Value((int)0)), End), + // PROP: setZoomFactor (void; QWebEnginePage this, double factor) + new Function(c, "settings", _n_settings0, None, Compiled, qt_QWebEnginePage_settings_QWebEngineSettings_QWebEnginePage, Return, "qt.QWebEngineSettings", Parameters, new Param(c, "this", "qt.QWebEnginePage"), End), + // PROP: title (string; QWebEnginePage this) + _func[0] = new MemberFunction(c, "triggerAction", _n_triggerAction0, None, Compiled, qt_QWebEnginePage_triggerAction_void_QWebEnginePage_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "action", "int"), new Param(c, "checked", "bool"), End), + // PROP: url (QUrl; QWebEnginePage this) + new Function(c, "webChannel", _n_webChannel0, None, Compiled, qt_QWebEnginePage_webChannel_QWebChannel_QWebEnginePage, Return, "qt.QWebChannel", Parameters, new Param(c, "this", "qt.QWebEnginePage"), End), + // PROP: zoomFactor (double; QWebEnginePage this) + _func[1] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QWebEnginePage_event_bool_QWebEnginePage_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "e", "qt.QEvent"), End), + _func[2] = new MemberFunction(c, "acceptNavigationRequest", _n_acceptNavigationRequest0, None, Compiled, qt_QWebEnginePage_acceptNavigationRequest_bool_QWebEnginePage_QUrl_int_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "url", "qt.QUrl"), new Param(c, "type", "int"), new Param(c, "isMainFrame", "bool"), End), + _func[3] = new MemberFunction(c, "chooseFiles", _n_chooseFiles0, None, Compiled, qt_QWebEnginePage_chooseFiles_stringBSB_ESB__QWebEnginePage_int_stringBSB_ESB__stringBSB_ESB_, Return, "string[]", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "mode", "int"), new Param(c, "oldFiles", "string[]"), new Param(c, "acceptedMimeTypes", "string[]"), End), + _func[4] = new MemberFunction(c, "createWindow", _n_createWindow0, None, Compiled, qt_QWebEnginePage_createWindow_QWebEnginePage_QWebEnginePage_int, Return, "qt.QWebEnginePage", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "type", "int"), End), + _func[5] = new MemberFunction(c, "javaScriptAlert", _n_javaScriptAlert0, None, Compiled, qt_QWebEnginePage_javaScriptAlert_void_QWebEnginePage_QUrl_string, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "securityOrigin", "qt.QUrl"), new Param(c, "msg", "string"), End), + _func[6] = new MemberFunction(c, "javaScriptConfirm", _n_javaScriptConfirm0, None, Compiled, qt_QWebEnginePage_javaScriptConfirm_bool_QWebEnginePage_QUrl_string, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "securityOrigin", "qt.QUrl"), new Param(c, "msg", "string"), End), + _func[7] = new MemberFunction(c, "javaScriptConsoleMessage", _n_javaScriptConsoleMessage0, None, Compiled, qt_QWebEnginePage_javaScriptConsoleMessage_void_QWebEnginePage_int_string_int_string, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "level", "int"), new Param(c, "message", "string"), new Param(c, "lineNumber", "int"), new Param(c, "sourceID", "string"), End), + _func[8] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QWebEnginePage_eventFilter_bool_QWebEnginePage_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QWebEnginePage this) + // MISSING: childEvent (void; QWebEnginePage this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QWebEnginePage this, "const QMetaMethod &" signal) // protected + _func[9] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QWebEnginePage_customEvent_void_QWebEnginePage_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QWebEnginePage this, "const QMetaMethod &" signal) // protected + _func[10] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QWebEnginePage_timerEvent_void_QWebEnginePage_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEnginePage"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QWebEnginePage::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWebEngineProfileType.cpp b/src/lib/mu/MuQt6/QWebEngineProfileType.cpp new file mode 100644 index 000000000..d37fd25b7 --- /dev/null +++ b/src/lib/mu/MuQt6/QWebEngineProfileType.cpp @@ -0,0 +1,794 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +MuQt_QWebEngineProfile::MuQt_QWebEngineProfile(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QWebEngineProfile(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEngineProfile")); +} + +MuQt_QWebEngineProfile::MuQt_QWebEngineProfile(Pointer muobj, const CallEnvironment* ce, const QString & storageName, QObject * parent) + : QWebEngineProfile(storageName, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEngineProfile")); +} + +bool MuQt_QWebEngineProfile::event(QEvent * e) +{ + if (!_env) return QWebEngineProfile::event(e); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEngineProfile::event(e); + } +} + +bool MuQt_QWebEngineProfile::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QWebEngineProfile::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEngineProfile::eventFilter(watched, event); + } +} + +void MuQt_QWebEngineProfile::customEvent(QEvent * event) +{ + if (!_env) { QWebEngineProfile::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineProfile::customEvent(event); + } +} + +void MuQt_QWebEngineProfile::timerEvent(QTimerEvent * event) +{ + if (!_env) { QWebEngineProfile::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineProfile::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QWebEngineProfileType::QWebEngineProfileType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QWebEngineProfileType::~QWebEngineProfileType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QWebEngineProfile_QWebEngineProfile_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QWebEngineProfile* w = object(widget)) + { + QWebEngineProfileType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEngineProfile"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QWebEngineProfile_QWebEngineProfile_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QWebEngineProfile(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_string_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_storageName, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_storageName); + QObject * arg2 = object(param_parent); + setobject(param_this, new MuQt_QWebEngineProfile(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QWebEngineProfile_cachePath_string_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return makestring(c,arg0->cachePath()); +} + +void qt_QWebEngineProfile_clearAllVisitedLinks_void_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + arg0->clearAllVisitedLinks(); +} + +void qt_QWebEngineProfile_clearHttpCache_void_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + arg0->clearHttpCache(); +} + +void qt_QWebEngineProfile_clearVisitedLinks_void_QWebEngineProfile_qt__QUrlBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_urls) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + const QList arg1 = qtypelist(param_urls); + arg0->clearVisitedLinks(arg1); +} + +Pointer qt_QWebEngineProfile_cookieStore_QWebEngineCookieStore_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return makeinstance(c, arg0->cookieStore(), "qt.QWebEngineCookieStore"); +} + +Pointer qt_QWebEngineProfile_downloadPath_string_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return makestring(c,arg0->downloadPath()); +} + +Pointer qt_QWebEngineProfile_httpAcceptLanguage_string_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return makestring(c,arg0->httpAcceptLanguage()); +} + +int qt_QWebEngineProfile_httpCacheMaximumSize_int_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return arg0->httpCacheMaximumSize(); +} + +int qt_QWebEngineProfile_httpCacheType_int_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return int(arg0->httpCacheType()); +} + +Pointer qt_QWebEngineProfile_httpUserAgent_string_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return makestring(c,arg0->httpUserAgent()); +} + +bool qt_QWebEngineProfile_isOffTheRecord_bool_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return arg0->isOffTheRecord(); +} + +bool qt_QWebEngineProfile_isPushServiceEnabled_bool_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return arg0->isPushServiceEnabled(); +} + +bool qt_QWebEngineProfile_isSpellCheckEnabled_bool_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return arg0->isSpellCheckEnabled(); +} + +int qt_QWebEngineProfile_persistentCookiesPolicy_int_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return int(arg0->persistentCookiesPolicy()); +} + +Pointer qt_QWebEngineProfile_persistentStoragePath_string_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return makestring(c,arg0->persistentStoragePath()); +} + +void qt_QWebEngineProfile_removeAllUrlSchemeHandlers_void_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + arg0->removeAllUrlSchemeHandlers(); +} + +void qt_QWebEngineProfile_removeUrlScheme_void_QWebEngineProfile_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_scheme) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_scheme); + arg0->removeUrlScheme(arg1); +} + +void qt_QWebEngineProfile_setCachePath_void_QWebEngineProfile_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + const QString arg1 = qstring(param_path); + arg0->setCachePath(arg1); +} + +void qt_QWebEngineProfile_setDownloadPath_void_QWebEngineProfile_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + const QString arg1 = qstring(param_path); + arg0->setDownloadPath(arg1); +} + +void qt_QWebEngineProfile_setHttpAcceptLanguage_void_QWebEngineProfile_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_httpAcceptLanguage) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + const QString arg1 = qstring(param_httpAcceptLanguage); + arg0->setHttpAcceptLanguage(arg1); +} + +void qt_QWebEngineProfile_setHttpCacheMaximumSize_void_QWebEngineProfile_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_maxSize) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + int arg1 = (int)(param_maxSize); + arg0->setHttpCacheMaximumSize(arg1); +} + +void qt_QWebEngineProfile_setHttpCacheType_void_QWebEngineProfile_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_httpCacheType) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + QWebEngineProfile::HttpCacheType arg1 = (QWebEngineProfile::HttpCacheType)(param_httpCacheType); + arg0->setHttpCacheType(arg1); +} + +void qt_QWebEngineProfile_setHttpUserAgent_void_QWebEngineProfile_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_userAgent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + const QString arg1 = qstring(param_userAgent); + arg0->setHttpUserAgent(arg1); +} + +void qt_QWebEngineProfile_setPersistentCookiesPolicy_void_QWebEngineProfile_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_newPersistentCookiesPolicy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + QWebEngineProfile::PersistentCookiesPolicy arg1 = (QWebEngineProfile::PersistentCookiesPolicy)(param_newPersistentCookiesPolicy); + arg0->setPersistentCookiesPolicy(arg1); +} + +void qt_QWebEngineProfile_setPersistentStoragePath_void_QWebEngineProfile_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_path) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + const QString arg1 = qstring(param_path); + arg0->setPersistentStoragePath(arg1); +} + +void qt_QWebEngineProfile_setPushServiceEnabled_void_QWebEngineProfile_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + bool arg1 = (bool)(param_enable); + arg0->setPushServiceEnabled(arg1); +} + +void qt_QWebEngineProfile_setSpellCheckEnabled_void_QWebEngineProfile_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + bool arg1 = (bool)(param_enable); + arg0->setSpellCheckEnabled(arg1); +} + +void qt_QWebEngineProfile_setSpellCheckLanguages_void_QWebEngineProfile_stringBSB_ESB_(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_languages) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + const QStringList arg1 = qstringlist(param_languages); + arg0->setSpellCheckLanguages(arg1); +} + +Pointer qt_QWebEngineProfile_settings_QWebEngineSettings_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return makeqpointer(c,arg0->settings(),"qt.QWebEngineSettings"); +} + +Pointer qt_QWebEngineProfile_spellCheckLanguages_stringBSB_ESB__QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return makestringlist(c,arg0->spellCheckLanguages()); +} + +Pointer qt_QWebEngineProfile_storageName_string_QWebEngineProfile(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + return makestring(c,arg0->storageName()); +} + +bool qt_QWebEngineProfile_visitedLinksContainsUrl_bool_QWebEngineProfile_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_url); + return arg0->visitedLinksContainsUrl(arg1); +} + +bool qt_QWebEngineProfile_event_bool_QWebEngineProfile_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_e); + return isMuQtObject(arg0) ? arg0->QWebEngineProfile::event(arg1) : arg0->event(arg1); +} + +bool qt_QWebEngineProfile_eventFilter_bool_QWebEngineProfile_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QWebEngineProfile::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QWebEngineProfile_customEvent_void_QWebEngineProfile_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineProfile*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QWebEngineProfile*)arg0)->customEvent_pub(arg1); +} + +void qt_QWebEngineProfile_timerEvent_void_QWebEngineProfile_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineProfile*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QWebEngineProfile*)arg0)->timerEvent_pub(arg1); +} + +Pointer qt_QWebEngineProfile_defaultProfile_QWebEngineProfile(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QWebEngineProfile::defaultProfile(), "qt.QWebEngineProfile"); +} + + +static NODE_IMPLEMENTATION(_n_QWebEngineProfile0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QWebEngineProfile1, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_string_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_cachePath0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_cachePath_string_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearAllVisitedLinks0, void) +{ + qt_QWebEngineProfile_clearAllVisitedLinks_void_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_clearHttpCache0, void) +{ + qt_QWebEngineProfile_clearHttpCache_void_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_clearVisitedLinks0, void) +{ + qt_QWebEngineProfile_clearVisitedLinks_void_QWebEngineProfile_qt__QUrlBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_cookieStore0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_cookieStore_QWebEngineCookieStore_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_downloadPath0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_downloadPath_string_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_httpAcceptLanguage0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_httpAcceptLanguage_string_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_httpCacheMaximumSize0, int) +{ + NODE_RETURN(qt_QWebEngineProfile_httpCacheMaximumSize_int_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_httpCacheType0, int) +{ + NODE_RETURN(qt_QWebEngineProfile_httpCacheType_int_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_httpUserAgent0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_httpUserAgent_string_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isOffTheRecord0, bool) +{ + NODE_RETURN(qt_QWebEngineProfile_isOffTheRecord_bool_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isPushServiceEnabled0, bool) +{ + NODE_RETURN(qt_QWebEngineProfile_isPushServiceEnabled_bool_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isSpellCheckEnabled0, bool) +{ + NODE_RETURN(qt_QWebEngineProfile_isSpellCheckEnabled_bool_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_persistentCookiesPolicy0, int) +{ + NODE_RETURN(qt_QWebEngineProfile_persistentCookiesPolicy_int_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_persistentStoragePath0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_persistentStoragePath_string_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_removeAllUrlSchemeHandlers0, void) +{ + qt_QWebEngineProfile_removeAllUrlSchemeHandlers_void_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_removeUrlScheme0, void) +{ + qt_QWebEngineProfile_removeUrlScheme_void_QWebEngineProfile_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setCachePath0, void) +{ + qt_QWebEngineProfile_setCachePath_void_QWebEngineProfile_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setDownloadPath0, void) +{ + qt_QWebEngineProfile_setDownloadPath_void_QWebEngineProfile_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHttpAcceptLanguage0, void) +{ + qt_QWebEngineProfile_setHttpAcceptLanguage_void_QWebEngineProfile_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHttpCacheMaximumSize0, void) +{ + qt_QWebEngineProfile_setHttpCacheMaximumSize_void_QWebEngineProfile_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setHttpCacheType0, void) +{ + qt_QWebEngineProfile_setHttpCacheType_void_QWebEngineProfile_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setHttpUserAgent0, void) +{ + qt_QWebEngineProfile_setHttpUserAgent_void_QWebEngineProfile_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPersistentCookiesPolicy0, void) +{ + qt_QWebEngineProfile_setPersistentCookiesPolicy_void_QWebEngineProfile_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setPersistentStoragePath0, void) +{ + qt_QWebEngineProfile_setPersistentStoragePath_void_QWebEngineProfile_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPushServiceEnabled0, void) +{ + qt_QWebEngineProfile_setPushServiceEnabled_void_QWebEngineProfile_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSpellCheckEnabled0, void) +{ + qt_QWebEngineProfile_setSpellCheckEnabled_void_QWebEngineProfile_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSpellCheckLanguages0, void) +{ + qt_QWebEngineProfile_setSpellCheckLanguages_void_QWebEngineProfile_stringBSB_ESB_(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_settings0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_settings_QWebEngineSettings_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_spellCheckLanguages0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_spellCheckLanguages_stringBSB_ESB__QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_storageName0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_storageName_string_QWebEngineProfile(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_visitedLinksContainsUrl0, bool) +{ + NODE_RETURN(qt_QWebEngineProfile_visitedLinksContainsUrl_bool_QWebEngineProfile_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QWebEngineProfile_event_bool_QWebEngineProfile_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QWebEngineProfile_eventFilter_bool_QWebEngineProfile_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QWebEngineProfile_customEvent_void_QWebEngineProfile_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QWebEngineProfile_timerEvent_void_QWebEngineProfile_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_defaultProfile0, Pointer) +{ + NODE_RETURN(qt_QWebEngineProfile_defaultProfile_QWebEngineProfile(NODE_THREAD)); +} + + + +void +QWebEngineProfileType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QWebEngineProfile_QWebEngineProfile_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QWebEngineProfile", _n_QWebEngineProfile0, None, Compiled, qt_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_QObject, Return, "qt.QWebEngineProfile", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "QWebEngineProfile", _n_QWebEngineProfile1, None, Compiled, qt_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_QWebEngineProfile_string_QObject, Return, "qt.QWebEngineProfile", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "storageName", "string"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "cachePath", _n_cachePath0, None, Compiled, qt_QWebEngineProfile_cachePath_string_QWebEngineProfile, Return, "string", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "clearAllVisitedLinks", _n_clearAllVisitedLinks0, None, Compiled, qt_QWebEngineProfile_clearAllVisitedLinks_void_QWebEngineProfile, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "clearHttpCache", _n_clearHttpCache0, None, Compiled, qt_QWebEngineProfile_clearHttpCache_void_QWebEngineProfile, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "clearVisitedLinks", _n_clearVisitedLinks0, None, Compiled, qt_QWebEngineProfile_clearVisitedLinks_void_QWebEngineProfile_qt__QUrlBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "urls", "qt.QUrl[]"), End), + // MISSING: clientCertificateStore ("QWebEngineClientCertificateStore *"; QWebEngineProfile this) + new Function(c, "cookieStore", _n_cookieStore0, None, Compiled, qt_QWebEngineProfile_cookieStore_QWebEngineCookieStore_QWebEngineProfile, Return, "qt.QWebEngineCookieStore", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "downloadPath", _n_downloadPath0, None, Compiled, qt_QWebEngineProfile_downloadPath_string_QWebEngineProfile, Return, "string", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "httpAcceptLanguage", _n_httpAcceptLanguage0, None, Compiled, qt_QWebEngineProfile_httpAcceptLanguage_string_QWebEngineProfile, Return, "string", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "httpCacheMaximumSize", _n_httpCacheMaximumSize0, None, Compiled, qt_QWebEngineProfile_httpCacheMaximumSize_int_QWebEngineProfile, Return, "int", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "httpCacheType", _n_httpCacheType0, None, Compiled, qt_QWebEngineProfile_httpCacheType_int_QWebEngineProfile, Return, "int", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "httpUserAgent", _n_httpUserAgent0, None, Compiled, qt_QWebEngineProfile_httpUserAgent_string_QWebEngineProfile, Return, "string", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + // MISSING: installUrlSchemeHandler (void; QWebEngineProfile this, QByteArray scheme, "QWebEngineUrlSchemeHandler *" handler) + new Function(c, "isOffTheRecord", _n_isOffTheRecord0, None, Compiled, qt_QWebEngineProfile_isOffTheRecord_bool_QWebEngineProfile, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "isPushServiceEnabled", _n_isPushServiceEnabled0, None, Compiled, qt_QWebEngineProfile_isPushServiceEnabled_bool_QWebEngineProfile, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "isSpellCheckEnabled", _n_isSpellCheckEnabled0, None, Compiled, qt_QWebEngineProfile_isSpellCheckEnabled_bool_QWebEngineProfile, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "persistentCookiesPolicy", _n_persistentCookiesPolicy0, None, Compiled, qt_QWebEngineProfile_persistentCookiesPolicy_int_QWebEngineProfile, Return, "int", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "persistentStoragePath", _n_persistentStoragePath0, None, Compiled, qt_QWebEngineProfile_persistentStoragePath_string_QWebEngineProfile, Return, "string", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "removeAllUrlSchemeHandlers", _n_removeAllUrlSchemeHandlers0, None, Compiled, qt_QWebEngineProfile_removeAllUrlSchemeHandlers_void_QWebEngineProfile, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "removeUrlScheme", _n_removeUrlScheme0, None, Compiled, qt_QWebEngineProfile_removeUrlScheme_void_QWebEngineProfile_QByteArray, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "scheme", "qt.QByteArray"), End), + // MISSING: removeUrlSchemeHandler (void; QWebEngineProfile this, "QWebEngineUrlSchemeHandler *" handler) + // MISSING: scripts ("QWebEngineScriptCollection *"; QWebEngineProfile this) + new Function(c, "setCachePath", _n_setCachePath0, None, Compiled, qt_QWebEngineProfile_setCachePath_void_QWebEngineProfile_string, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "path", "string"), End), + new Function(c, "setDownloadPath", _n_setDownloadPath0, None, Compiled, qt_QWebEngineProfile_setDownloadPath_void_QWebEngineProfile_string, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "path", "string"), End), + new Function(c, "setHttpAcceptLanguage", _n_setHttpAcceptLanguage0, None, Compiled, qt_QWebEngineProfile_setHttpAcceptLanguage_void_QWebEngineProfile_string, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "httpAcceptLanguage", "string"), End), + new Function(c, "setHttpCacheMaximumSize", _n_setHttpCacheMaximumSize0, None, Compiled, qt_QWebEngineProfile_setHttpCacheMaximumSize_void_QWebEngineProfile_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "maxSize", "int"), End), + new Function(c, "setHttpCacheType", _n_setHttpCacheType0, None, Compiled, qt_QWebEngineProfile_setHttpCacheType_void_QWebEngineProfile_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "httpCacheType", "int"), End), + new Function(c, "setHttpUserAgent", _n_setHttpUserAgent0, None, Compiled, qt_QWebEngineProfile_setHttpUserAgent_void_QWebEngineProfile_string, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "userAgent", "string"), End), + new Function(c, "setPersistentCookiesPolicy", _n_setPersistentCookiesPolicy0, None, Compiled, qt_QWebEngineProfile_setPersistentCookiesPolicy_void_QWebEngineProfile_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "newPersistentCookiesPolicy", "int"), End), + new Function(c, "setPersistentStoragePath", _n_setPersistentStoragePath0, None, Compiled, qt_QWebEngineProfile_setPersistentStoragePath_void_QWebEngineProfile_string, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "path", "string"), End), + new Function(c, "setPushServiceEnabled", _n_setPushServiceEnabled0, None, Compiled, qt_QWebEngineProfile_setPushServiceEnabled_void_QWebEngineProfile_bool, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "enable", "bool"), End), + new Function(c, "setSpellCheckEnabled", _n_setSpellCheckEnabled0, None, Compiled, qt_QWebEngineProfile_setSpellCheckEnabled_void_QWebEngineProfile_bool, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "enable", "bool"), End), + new Function(c, "setSpellCheckLanguages", _n_setSpellCheckLanguages0, None, Compiled, qt_QWebEngineProfile_setSpellCheckLanguages_void_QWebEngineProfile_stringBSB_ESB_, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "languages", "string[]"), End), + // MISSING: setUrlRequestInterceptor (void; QWebEngineProfile this, "QWebEngineUrlRequestInterceptor *" interceptor) + new Function(c, "settings", _n_settings0, None, Compiled, qt_QWebEngineProfile_settings_QWebEngineSettings_QWebEngineProfile, Return, "qt.QWebEngineSettings", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "spellCheckLanguages", _n_spellCheckLanguages0, None, Compiled, qt_QWebEngineProfile_spellCheckLanguages_stringBSB_ESB__QWebEngineProfile, Return, "string[]", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + new Function(c, "storageName", _n_storageName0, None, Compiled, qt_QWebEngineProfile_storageName_string_QWebEngineProfile, Return, "string", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), End), + // MISSING: urlSchemeHandler ("const QWebEngineUrlSchemeHandler *"; QWebEngineProfile this, QByteArray scheme) + new Function(c, "visitedLinksContainsUrl", _n_visitedLinksContainsUrl0, None, Compiled, qt_QWebEngineProfile_visitedLinksContainsUrl_bool_QWebEngineProfile_QUrl, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "url", "qt.QUrl"), End), + _func[0] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QWebEngineProfile_event_bool_QWebEngineProfile_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "e", "qt.QEvent"), End), + _func[1] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QWebEngineProfile_eventFilter_bool_QWebEngineProfile_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QWebEngineProfile this) + // MISSING: childEvent (void; QWebEngineProfile this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QWebEngineProfile this, "const QMetaMethod &" signal) // protected + _func[2] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QWebEngineProfile_customEvent_void_QWebEngineProfile_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QWebEngineProfile this, "const QMetaMethod &" signal) // protected + _func[3] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QWebEngineProfile_timerEvent_void_QWebEngineProfile_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineProfile"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + new Function(c, "defaultProfile", _n_defaultProfile0, None, Compiled, qt_QWebEngineProfile_defaultProfile_QWebEngineProfile, Return, "qt.QWebEngineProfile", End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QWebEngineProfile::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWebEngineSettingsType.cpp b/src/lib/mu/MuQt6/QWebEngineSettingsType.cpp new file mode 100644 index 000000000..ad768cfb1 --- /dev/null +++ b/src/lib/mu/MuQt6/QWebEngineSettingsType.cpp @@ -0,0 +1,344 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QWebEngineSettingsType::QWebEngineSettingsType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QWebEngineSettingsType::~QWebEngineSettingsType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QWebEngineSettings_defaultTextEncoding_string_QWebEngineSettings(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + return makestring(c,arg0->defaultTextEncoding()); +} + +Pointer qt_QWebEngineSettings_fontFamily_string_QWebEngineSettings_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_which) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + QWebEngineSettings::FontFamily arg1 = (QWebEngineSettings::FontFamily)(param_which); + return makestring(c,arg0->fontFamily(arg1)); +} + +int qt_QWebEngineSettings_fontSize_int_QWebEngineSettings_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + QWebEngineSettings::FontSize arg1 = (QWebEngineSettings::FontSize)(param_type); + return arg0->fontSize(arg1); +} + +void qt_QWebEngineSettings_resetAttribute_void_QWebEngineSettings_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_attribute) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + QWebEngineSettings::WebAttribute arg1 = (QWebEngineSettings::WebAttribute)(param_attribute); + arg0->resetAttribute(arg1); + setqpointer(param_this,arg0); +} + +void qt_QWebEngineSettings_resetFontFamily_void_QWebEngineSettings_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_which) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + QWebEngineSettings::FontFamily arg1 = (QWebEngineSettings::FontFamily)(param_which); + arg0->resetFontFamily(arg1); + setqpointer(param_this,arg0); +} + +void qt_QWebEngineSettings_resetFontSize_void_QWebEngineSettings_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + QWebEngineSettings::FontSize arg1 = (QWebEngineSettings::FontSize)(param_type); + arg0->resetFontSize(arg1); + setqpointer(param_this,arg0); +} + +void qt_QWebEngineSettings_resetUnknownUrlSchemePolicy_void_QWebEngineSettings(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + arg0->resetUnknownUrlSchemePolicy(); + setqpointer(param_this,arg0); +} + +void qt_QWebEngineSettings_setAttribute_void_QWebEngineSettings_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_attribute, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + QWebEngineSettings::WebAttribute arg1 = (QWebEngineSettings::WebAttribute)(param_attribute); + bool arg2 = (bool)(param_on); + arg0->setAttribute(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QWebEngineSettings_setDefaultTextEncoding_void_QWebEngineSettings_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_encoding) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + const QString arg1 = qstring(param_encoding); + arg0->setDefaultTextEncoding(arg1); + setqpointer(param_this,arg0); +} + +void qt_QWebEngineSettings_setFontSize_void_QWebEngineSettings_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type, int param_size) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + QWebEngineSettings::FontSize arg1 = (QWebEngineSettings::FontSize)(param_type); + int arg2 = (int)(param_size); + arg0->setFontSize(arg1, arg2); + setqpointer(param_this,arg0); +} + +void qt_QWebEngineSettings_setUnknownUrlSchemePolicy_void_QWebEngineSettings_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_policy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + QWebEngineSettings::UnknownUrlSchemePolicy arg1 = (QWebEngineSettings::UnknownUrlSchemePolicy)(param_policy); + arg0->setUnknownUrlSchemePolicy(arg1); + setqpointer(param_this,arg0); +} + +bool qt_QWebEngineSettings_testAttribute_bool_QWebEngineSettings_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_attribute) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + QWebEngineSettings::WebAttribute arg1 = (QWebEngineSettings::WebAttribute)(param_attribute); + return arg0->testAttribute(arg1); +} + +int qt_QWebEngineSettings_unknownUrlSchemePolicy_int_QWebEngineSettings(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineSettings * arg0 = getqpointer(param_this); + return int(arg0->unknownUrlSchemePolicy()); +} + + +static NODE_IMPLEMENTATION(_n_defaultTextEncoding0, Pointer) +{ + NODE_RETURN(qt_QWebEngineSettings_defaultTextEncoding_string_QWebEngineSettings(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_fontFamily0, Pointer) +{ + NODE_RETURN(qt_QWebEngineSettings_fontFamily_string_QWebEngineSettings_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_fontSize0, int) +{ + NODE_RETURN(qt_QWebEngineSettings_fontSize_int_QWebEngineSettings_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_resetAttribute0, void) +{ + qt_QWebEngineSettings_resetAttribute_void_QWebEngineSettings_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_resetFontFamily0, void) +{ + qt_QWebEngineSettings_resetFontFamily_void_QWebEngineSettings_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_resetFontSize0, void) +{ + qt_QWebEngineSettings_resetFontSize_void_QWebEngineSettings_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_resetUnknownUrlSchemePolicy0, void) +{ + qt_QWebEngineSettings_resetUnknownUrlSchemePolicy_void_QWebEngineSettings(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setAttribute0, void) +{ + qt_QWebEngineSettings_setAttribute_void_QWebEngineSettings_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setDefaultTextEncoding0, void) +{ + qt_QWebEngineSettings_setDefaultTextEncoding_void_QWebEngineSettings_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFontSize0, void) +{ + qt_QWebEngineSettings_setFontSize_void_QWebEngineSettings_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setUnknownUrlSchemePolicy0, void) +{ + qt_QWebEngineSettings_setUnknownUrlSchemePolicy_void_QWebEngineSettings_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_testAttribute0, bool) +{ + NODE_RETURN(qt_QWebEngineSettings_testAttribute_bool_QWebEngineSettings_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_unknownUrlSchemePolicy0, int) +{ + NODE_RETURN(qt_QWebEngineSettings_unknownUrlSchemePolicy_int_QWebEngineSettings(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QWebEngineSettingsType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + new Alias(c, "FontFamily", "int"), + new SymbolicConstant(c, "StandardFont", "int", Value(int(QWebEngineSettings::StandardFont))), + new SymbolicConstant(c, "FixedFont", "int", Value(int(QWebEngineSettings::FixedFont))), + new SymbolicConstant(c, "SerifFont", "int", Value(int(QWebEngineSettings::SerifFont))), + new SymbolicConstant(c, "SansSerifFont", "int", Value(int(QWebEngineSettings::SansSerifFont))), + new SymbolicConstant(c, "CursiveFont", "int", Value(int(QWebEngineSettings::CursiveFont))), + new SymbolicConstant(c, "FantasyFont", "int", Value(int(QWebEngineSettings::FantasyFont))), + new SymbolicConstant(c, "PictographFont", "int", Value(int(QWebEngineSettings::PictographFont))), + new Alias(c, "FontSize", "int"), + new SymbolicConstant(c, "MinimumFontSize", "int", Value(int(QWebEngineSettings::MinimumFontSize))), + new SymbolicConstant(c, "MinimumLogicalFontSize", "int", Value(int(QWebEngineSettings::MinimumLogicalFontSize))), + new SymbolicConstant(c, "DefaultFontSize", "int", Value(int(QWebEngineSettings::DefaultFontSize))), + new SymbolicConstant(c, "DefaultFixedFontSize", "int", Value(int(QWebEngineSettings::DefaultFixedFontSize))), + new Alias(c, "UnknownUrlSchemePolicy", "int"), + new SymbolicConstant(c, "DisallowUnknownUrlSchemes", "int", Value(int(QWebEngineSettings::DisallowUnknownUrlSchemes))), + new SymbolicConstant(c, "AllowUnknownUrlSchemesFromUserInteraction", "int", Value(int(QWebEngineSettings::AllowUnknownUrlSchemesFromUserInteraction))), + new SymbolicConstant(c, "AllowAllUnknownUrlSchemes", "int", Value(int(QWebEngineSettings::AllowAllUnknownUrlSchemes))), + new Alias(c, "WebAttribute", "int"), + new SymbolicConstant(c, "AutoLoadImages", "int", Value(int(QWebEngineSettings::AutoLoadImages))), + new SymbolicConstant(c, "JavascriptEnabled", "int", Value(int(QWebEngineSettings::JavascriptEnabled))), + new SymbolicConstant(c, "JavascriptCanOpenWindows", "int", Value(int(QWebEngineSettings::JavascriptCanOpenWindows))), + new SymbolicConstant(c, "JavascriptCanAccessClipboard", "int", Value(int(QWebEngineSettings::JavascriptCanAccessClipboard))), + new SymbolicConstant(c, "LinksIncludedInFocusChain", "int", Value(int(QWebEngineSettings::LinksIncludedInFocusChain))), + new SymbolicConstant(c, "LocalStorageEnabled", "int", Value(int(QWebEngineSettings::LocalStorageEnabled))), + new SymbolicConstant(c, "LocalContentCanAccessRemoteUrls", "int", Value(int(QWebEngineSettings::LocalContentCanAccessRemoteUrls))), + new SymbolicConstant(c, "XSSAuditingEnabled", "int", Value(int(QWebEngineSettings::XSSAuditingEnabled))), + new SymbolicConstant(c, "SpatialNavigationEnabled", "int", Value(int(QWebEngineSettings::SpatialNavigationEnabled))), + new SymbolicConstant(c, "LocalContentCanAccessFileUrls", "int", Value(int(QWebEngineSettings::LocalContentCanAccessFileUrls))), + new SymbolicConstant(c, "HyperlinkAuditingEnabled", "int", Value(int(QWebEngineSettings::HyperlinkAuditingEnabled))), + new SymbolicConstant(c, "ScrollAnimatorEnabled", "int", Value(int(QWebEngineSettings::ScrollAnimatorEnabled))), + new SymbolicConstant(c, "ErrorPageEnabled", "int", Value(int(QWebEngineSettings::ErrorPageEnabled))), + new SymbolicConstant(c, "PluginsEnabled", "int", Value(int(QWebEngineSettings::PluginsEnabled))), + new SymbolicConstant(c, "FullScreenSupportEnabled", "int", Value(int(QWebEngineSettings::FullScreenSupportEnabled))), + new SymbolicConstant(c, "ScreenCaptureEnabled", "int", Value(int(QWebEngineSettings::ScreenCaptureEnabled))), + new SymbolicConstant(c, "WebGLEnabled", "int", Value(int(QWebEngineSettings::WebGLEnabled))), + new SymbolicConstant(c, "Accelerated2dCanvasEnabled", "int", Value(int(QWebEngineSettings::Accelerated2dCanvasEnabled))), + new SymbolicConstant(c, "AutoLoadIconsForPage", "int", Value(int(QWebEngineSettings::AutoLoadIconsForPage))), + new SymbolicConstant(c, "TouchIconsEnabled", "int", Value(int(QWebEngineSettings::TouchIconsEnabled))), + new SymbolicConstant(c, "FocusOnNavigationEnabled", "int", Value(int(QWebEngineSettings::FocusOnNavigationEnabled))), + new SymbolicConstant(c, "PrintElementBackgrounds", "int", Value(int(QWebEngineSettings::PrintElementBackgrounds))), + new SymbolicConstant(c, "AllowRunningInsecureContent", "int", Value(int(QWebEngineSettings::AllowRunningInsecureContent))), + new SymbolicConstant(c, "AllowGeolocationOnInsecureOrigins", "int", Value(int(QWebEngineSettings::AllowGeolocationOnInsecureOrigins))), + new SymbolicConstant(c, "AllowWindowActivationFromJavaScript", "int", Value(int(QWebEngineSettings::AllowWindowActivationFromJavaScript))), + new SymbolicConstant(c, "ShowScrollBars", "int", Value(int(QWebEngineSettings::ShowScrollBars))), + new SymbolicConstant(c, "PlaybackRequiresUserGesture", "int", Value(int(QWebEngineSettings::PlaybackRequiresUserGesture))), + new SymbolicConstant(c, "JavascriptCanPaste", "int", Value(int(QWebEngineSettings::JavascriptCanPaste))), + new SymbolicConstant(c, "WebRTCPublicInterfacesOnly", "int", Value(int(QWebEngineSettings::WebRTCPublicInterfacesOnly))), + new SymbolicConstant(c, "DnsPrefetchEnabled", "int", Value(int(QWebEngineSettings::DnsPrefetchEnabled))), + new SymbolicConstant(c, "PdfViewerEnabled", "int", Value(int(QWebEngineSettings::PdfViewerEnabled))), + new SymbolicConstant(c, "NavigateOnDropEnabled", "int", Value(int(QWebEngineSettings::NavigateOnDropEnabled))), + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "defaultTextEncoding", _n_defaultTextEncoding0, None, Compiled, qt_QWebEngineSettings_defaultTextEncoding_string_QWebEngineSettings, Return, "string", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), End), + new Function(c, "fontFamily", _n_fontFamily0, None, Compiled, qt_QWebEngineSettings_fontFamily_string_QWebEngineSettings_int, Return, "string", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), new Param(c, "which", "int"), End), + new Function(c, "fontSize", _n_fontSize0, None, Compiled, qt_QWebEngineSettings_fontSize_int_QWebEngineSettings_int, Return, "int", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), new Param(c, "type", "int"), End), + new Function(c, "resetAttribute", _n_resetAttribute0, None, Compiled, qt_QWebEngineSettings_resetAttribute_void_QWebEngineSettings_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), new Param(c, "attribute", "int"), End), + new Function(c, "resetFontFamily", _n_resetFontFamily0, None, Compiled, qt_QWebEngineSettings_resetFontFamily_void_QWebEngineSettings_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), new Param(c, "which", "int"), End), + new Function(c, "resetFontSize", _n_resetFontSize0, None, Compiled, qt_QWebEngineSettings_resetFontSize_void_QWebEngineSettings_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), new Param(c, "type", "int"), End), + new Function(c, "resetUnknownUrlSchemePolicy", _n_resetUnknownUrlSchemePolicy0, None, Compiled, qt_QWebEngineSettings_resetUnknownUrlSchemePolicy_void_QWebEngineSettings, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), End), + new Function(c, "setAttribute", _n_setAttribute0, None, Compiled, qt_QWebEngineSettings_setAttribute_void_QWebEngineSettings_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), new Param(c, "attribute", "int"), new Param(c, "on", "bool"), End), + new Function(c, "setDefaultTextEncoding", _n_setDefaultTextEncoding0, None, Compiled, qt_QWebEngineSettings_setDefaultTextEncoding_void_QWebEngineSettings_string, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), new Param(c, "encoding", "string"), End), + new Function(c, "setFontSize", _n_setFontSize0, None, Compiled, qt_QWebEngineSettings_setFontSize_void_QWebEngineSettings_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), new Param(c, "type", "int"), new Param(c, "size", "int"), End), + new Function(c, "setUnknownUrlSchemePolicy", _n_setUnknownUrlSchemePolicy0, None, Compiled, qt_QWebEngineSettings_setUnknownUrlSchemePolicy_void_QWebEngineSettings_int, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), new Param(c, "policy", "int"), End), + new Function(c, "testAttribute", _n_testAttribute0, None, Compiled, qt_QWebEngineSettings_testAttribute_bool_QWebEngineSettings_int, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), new Param(c, "attribute", "int"), End), + new Function(c, "unknownUrlSchemePolicy", _n_unknownUrlSchemePolicy0, None, Compiled, qt_QWebEngineSettings_unknownUrlSchemePolicy_int_QWebEngineSettings, Return, "int", Parameters, new Param(c, "this", "qt.QWebEngineSettings"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWebEngineViewType.cpp b/src/lib/mu/MuQt6/QWebEngineViewType.cpp new file mode 100644 index 000000000..083948167 --- /dev/null +++ b/src/lib/mu/MuQt6/QWebEngineViewType.cpp @@ -0,0 +1,1502 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QWebEngineView::~MuQt_QWebEngineView() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QWebEngineView::MuQt_QWebEngineView(Pointer muobj, const CallEnvironment* ce, QWidget * parent) + : QWebEngineView(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEngineView")); +} + +MuQt_QWebEngineView::MuQt_QWebEngineView(Pointer muobj, const CallEnvironment* ce, QWebEngineProfile * profile, QWidget * parent) + : QWebEngineView(profile, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEngineView")); +} + +MuQt_QWebEngineView::MuQt_QWebEngineView(Pointer muobj, const CallEnvironment* ce, QWebEnginePage * page, QWidget * parent) + : QWebEngineView(page, parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEngineView")); +} + +QSize MuQt_QWebEngineView::sizeHint() const +{ + if (!_env) return QWebEngineView::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QWebEngineView::sizeHint(); + } +} + +QWebEngineView * MuQt_QWebEngineView::createWindow(QWebEnginePage::WebWindowType type) +{ + if (!_env) return QWebEngineView::createWindow(type); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(type)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QWebEngineView::createWindow(type); + } +} + +void MuQt_QWebEngineView::closeEvent(QCloseEvent * event) +{ + if (!_env) { QWebEngineView::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::closeEvent(event); + } +} + +void MuQt_QWebEngineView::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QWebEngineView::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::contextMenuEvent(event); + } +} + +void MuQt_QWebEngineView::dragEnterEvent(QDragEnterEvent * e) +{ + if (!_env) { QWebEngineView::dragEnterEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::dragEnterEvent(e); + } +} + +void MuQt_QWebEngineView::dragLeaveEvent(QDragLeaveEvent * e) +{ + if (!_env) { QWebEngineView::dragLeaveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::dragLeaveEvent(e); + } +} + +void MuQt_QWebEngineView::dragMoveEvent(QDragMoveEvent * e) +{ + if (!_env) { QWebEngineView::dragMoveEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::dragMoveEvent(e); + } +} + +void MuQt_QWebEngineView::dropEvent(QDropEvent * e) +{ + if (!_env) { QWebEngineView::dropEvent(e); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,e,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::dropEvent(e); + } +} + +bool MuQt_QWebEngineView::event(QEvent * ev) +{ + if (!_env) return QWebEngineView::event(ev); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,ev,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEngineView::event(ev); + } +} + +void MuQt_QWebEngineView::hideEvent(QHideEvent * event) +{ + if (!_env) { QWebEngineView::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::hideEvent(event); + } +} + +void MuQt_QWebEngineView::showEvent(QShowEvent * event) +{ + if (!_env) { QWebEngineView::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::showEvent(event); + } +} + +bool MuQt_QWebEngineView::hasHeightForWidth() const +{ + if (!_env) return QWebEngineView::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEngineView::hasHeightForWidth(); + } +} + +int MuQt_QWebEngineView::heightForWidth(int w) const +{ + if (!_env) return QWebEngineView::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QWebEngineView::heightForWidth(w); + } +} + +QVariant MuQt_QWebEngineView::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QWebEngineView::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QWebEngineView::inputMethodQuery(query); + } +} + +QSize MuQt_QWebEngineView::minimumSizeHint() const +{ + if (!_env) return QWebEngineView::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QWebEngineView::minimumSizeHint(); + } +} + +void MuQt_QWebEngineView::changeEvent(QEvent * event) +{ + if (!_env) { QWebEngineView::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::changeEvent(event); + } +} + +void MuQt_QWebEngineView::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QWebEngineView::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::focusInEvent(event); + } +} + +bool MuQt_QWebEngineView::focusNextPrevChild(bool next) +{ + if (!_env) return QWebEngineView::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWebEngineView::focusNextPrevChild(next); + } +} + +void MuQt_QWebEngineView::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QWebEngineView::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::focusOutEvent(event); + } +} + +void MuQt_QWebEngineView::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QWebEngineView::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::keyPressEvent(event); + } +} + +void MuQt_QWebEngineView::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QWebEngineView::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::keyReleaseEvent(event); + } +} + +void MuQt_QWebEngineView::leaveEvent(QEvent * event) +{ + if (!_env) { QWebEngineView::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::leaveEvent(event); + } +} + +void MuQt_QWebEngineView::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QWebEngineView::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::mouseDoubleClickEvent(event); + } +} + +void MuQt_QWebEngineView::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QWebEngineView::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::mouseMoveEvent(event); + } +} + +void MuQt_QWebEngineView::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QWebEngineView::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::mousePressEvent(event); + } +} + +void MuQt_QWebEngineView::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QWebEngineView::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::mouseReleaseEvent(event); + } +} + +void MuQt_QWebEngineView::moveEvent(QMoveEvent * event) +{ + if (!_env) { QWebEngineView::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::moveEvent(event); + } +} + +void MuQt_QWebEngineView::paintEvent(QPaintEvent * event) +{ + if (!_env) { QWebEngineView::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::paintEvent(event); + } +} + +void MuQt_QWebEngineView::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QWebEngineView::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::resizeEvent(event); + } +} + +void MuQt_QWebEngineView::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QWebEngineView::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::tabletEvent(event); + } +} + +void MuQt_QWebEngineView::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QWebEngineView::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QWebEngineView::wheelEvent(event); + } +} + +int MuQt_QWebEngineView::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QWebEngineView::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QWebEngineView::metric(m); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QWebEngineViewType::QWebEngineViewType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QWebEngineViewType::~QWebEngineViewType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QWebEngineView_QWebEngineView_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QWebEngineView* w = object(widget)) + { + QWebEngineViewType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWebEngineView"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QWebEngineView_QWebEngineView_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineView_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new MuQt_QWebEngineView(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineProfile_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_profile, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineProfile * arg1 = object(param_profile); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QWebEngineView(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineView_QWebEnginePage_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_page, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEnginePage * arg1 = object(param_page); + QWidget * arg2 = object(param_parent); + setobject(param_this, new MuQt_QWebEngineView(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +Pointer qt_QWebEngineView_createStandardContextMenu_QMenu_QWebEngineView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + return makeinstance(c, arg0->createStandardContextMenu(), "qt.QMenu"); +} + +void qt_QWebEngineView_load_void_QWebEngineView_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_url) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + const QUrl arg1 = getqtype(param_url); + arg0->load(arg1); +} + +Pointer qt_QWebEngineView_page_QWebEnginePage_QWebEngineView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + return makeinstance(c, arg0->page(), "qt.QWebEnginePage"); +} + +Pointer qt_QWebEngineView_pageAction_QAction_QWebEngineView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QWebEnginePage::WebAction arg1 = (QWebEnginePage::WebAction)(param_action); + return makeinstance(c, arg0->pageAction(arg1), "qt.QAction"); +} + +void qt_QWebEngineView_setContent_void_QWebEngineView_QByteArray_string_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_data, Pointer param_mimeType, Pointer param_baseUrl) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_data); + const QString arg2 = qstring(param_mimeType); + const QUrl arg3 = getqtype(param_baseUrl); + arg0->setContent(arg1, arg2, arg3); +} + +void qt_QWebEngineView_setHtml_void_QWebEngineView_string_QUrl(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_html, Pointer param_baseUrl) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + const QString arg1 = qstring(param_html); + const QUrl arg2 = getqtype(param_baseUrl); + arg0->setHtml(arg1, arg2); +} + +void qt_QWebEngineView_setPage_void_QWebEngineView_QWebEnginePage(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_page) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QWebEnginePage * arg1 = object(param_page); + arg0->setPage(arg1); +} + +Pointer qt_QWebEngineView_settings_QWebEngineSettings_QWebEngineView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + return makeqpointer(c,arg0->settings(),"qt.QWebEngineSettings"); +} + +void qt_QWebEngineView_triggerPageAction_void_QWebEngineView_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_action, bool param_checked) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QWebEnginePage::WebAction arg1 = (QWebEnginePage::WebAction)(param_action); + bool arg2 = (bool)(param_checked); + arg0->triggerPageAction(arg1, arg2); +} + +Pointer qt_QWebEngineView_sizeHint_QSize_QWebEngineView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QWebEngineView::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QWebEngineView_createWindow_QWebEngineView_QWebEngineView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_type) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QWebEnginePage::WebWindowType arg1 = (QWebEnginePage::WebWindowType)(param_type); + return isMuQtObject(arg0) ? makeinstance(c, ((MuQt_QWebEngineView*)arg0)->createWindow_pub_parent(arg1), "qt.QWebEngineView") : makeinstance(c, ((MuQt_QWebEngineView*)arg0)->createWindow_pub(arg1), "qt.QWebEngineView"); +} + +void qt_QWebEngineView_closeEvent_void_QWebEngineView_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->closeEvent_pub(arg1); +} + +void qt_QWebEngineView_contextMenuEvent_void_QWebEngineView_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QWebEngineView_dragEnterEvent_void_QWebEngineView_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QWebEngineView_dragLeaveEvent_void_QWebEngineView_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QWebEngineView_dragMoveEvent_void_QWebEngineView_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QWebEngineView_dropEvent_void_QWebEngineView_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_e) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_e); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->dropEvent_pub(arg1); +} + +bool qt_QWebEngineView_event_bool_QWebEngineView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ev) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_ev); + return isMuQtObject(arg0) ? ((MuQt_QWebEngineView*)arg0)->event_pub_parent(arg1) : ((MuQt_QWebEngineView*)arg0)->event_pub(arg1); +} + +void qt_QWebEngineView_hideEvent_void_QWebEngineView_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->hideEvent_pub(arg1); +} + +void qt_QWebEngineView_showEvent_void_QWebEngineView_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->showEvent_pub(arg1); +} + +bool qt_QWebEngineView_hasHeightForWidth_bool_QWebEngineView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QWebEngineView::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QWebEngineView_heightForWidth_int_QWebEngineView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QWebEngineView::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QWebEngineView_inputMethodQuery_QVariant_QWebEngineView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QWebEngineView::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +Pointer qt_QWebEngineView_minimumSizeHint_QSize_QWebEngineView(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QWebEngineView::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +void qt_QWebEngineView_changeEvent_void_QWebEngineView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->changeEvent_pub(arg1); +} + +void qt_QWebEngineView_focusInEvent_void_QWebEngineView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QWebEngineView_focusNextPrevChild_bool_QWebEngineView_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QWebEngineView*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QWebEngineView*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QWebEngineView_focusOutEvent_void_QWebEngineView_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->focusOutEvent_pub(arg1); +} + +void qt_QWebEngineView_keyPressEvent_void_QWebEngineView_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QWebEngineView_keyReleaseEvent_void_QWebEngineView_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QWebEngineView_leaveEvent_void_QWebEngineView_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QWebEngineView_mouseDoubleClickEvent_void_QWebEngineView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QWebEngineView_mouseMoveEvent_void_QWebEngineView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QWebEngineView_mousePressEvent_void_QWebEngineView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QWebEngineView_mouseReleaseEvent_void_QWebEngineView_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QWebEngineView_moveEvent_void_QWebEngineView_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->moveEvent_pub(arg1); +} + +void qt_QWebEngineView_paintEvent_void_QWebEngineView_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->paintEvent_pub(arg1); +} + +void qt_QWebEngineView_resizeEvent_void_QWebEngineView_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QWebEngineView_tabletEvent_void_QWebEngineView_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QWebEngineView_wheelEvent_void_QWebEngineView_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWebEngineView*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QWebEngineView*)arg0)->wheelEvent_pub(arg1); +} + +int qt_QWebEngineView_metric_int_QWebEngineView_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWebEngineView* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QWebEngineView*)arg0)->metric_pub_parent(arg1) : ((MuQt_QWebEngineView*)arg0)->metric_pub(arg1); +} + +Pointer qt_QWebEngineView_forPage_QWebEngineView_QWebEnginePage(Mu::Thread& NODE_THREAD, Pointer param_page) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QWebEnginePage * arg0 = object(param_page); + return makeinstance(c, QWebEngineView::forPage(arg0), "qt.QWebEngineView"); +} + + +static NODE_IMPLEMENTATION(_n_QWebEngineView0, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineView_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QWebEngineView1, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineProfile_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QWebEngineView2, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineView_QWebEnginePage_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createStandardContextMenu0, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_createStandardContextMenu_QMenu_QWebEngineView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_load0, void) +{ + qt_QWebEngineView_load_void_QWebEngineView_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_page0, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_page_QWebEnginePage_QWebEngineView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pageAction0, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_pageAction_QAction_QWebEngineView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_setContent0, void) +{ + qt_QWebEngineView_setContent_void_QWebEngineView_QByteArray_string_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setHtml0, void) +{ + qt_QWebEngineView_setHtml_void_QWebEngineView_string_QUrl(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setPage0, void) +{ + qt_QWebEngineView_setPage_void_QWebEngineView_QWebEnginePage(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_settings0, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_settings_QWebEngineSettings_QWebEngineView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_triggerPageAction0, void) +{ + qt_QWebEngineView_triggerPageAction_void_QWebEngineView_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_sizeHint_QSize_QWebEngineView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_createWindow0, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_createWindow_QWebEngineView_QWebEngineView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QWebEngineView_closeEvent_void_QWebEngineView_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QWebEngineView_contextMenuEvent_void_QWebEngineView_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QWebEngineView_dragEnterEvent_void_QWebEngineView_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QWebEngineView_dragLeaveEvent_void_QWebEngineView_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QWebEngineView_dragMoveEvent_void_QWebEngineView_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QWebEngineView_dropEvent_void_QWebEngineView_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QWebEngineView_event_bool_QWebEngineView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QWebEngineView_hideEvent_void_QWebEngineView_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QWebEngineView_showEvent_void_QWebEngineView_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QWebEngineView_hasHeightForWidth_bool_QWebEngineView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QWebEngineView_heightForWidth_int_QWebEngineView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_inputMethodQuery_QVariant_QWebEngineView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_minimumSizeHint_QSize_QWebEngineView(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QWebEngineView_changeEvent_void_QWebEngineView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QWebEngineView_focusInEvent_void_QWebEngineView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QWebEngineView_focusNextPrevChild_bool_QWebEngineView_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QWebEngineView_focusOutEvent_void_QWebEngineView_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QWebEngineView_keyPressEvent_void_QWebEngineView_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QWebEngineView_keyReleaseEvent_void_QWebEngineView_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QWebEngineView_leaveEvent_void_QWebEngineView_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QWebEngineView_mouseDoubleClickEvent_void_QWebEngineView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QWebEngineView_mouseMoveEvent_void_QWebEngineView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QWebEngineView_mousePressEvent_void_QWebEngineView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QWebEngineView_mouseReleaseEvent_void_QWebEngineView_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QWebEngineView_moveEvent_void_QWebEngineView_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QWebEngineView_paintEvent_void_QWebEngineView_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QWebEngineView_resizeEvent_void_QWebEngineView_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QWebEngineView_tabletEvent_void_QWebEngineView_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QWebEngineView_wheelEvent_void_QWebEngineView_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QWebEngineView_metric_int_QWebEngineView_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_forPage0, Pointer) +{ + NODE_RETURN(qt_QWebEngineView_forPage_QWebEngineView_QWebEnginePage(NODE_THREAD, NODE_ARG(0, Pointer))); +} + + + +void +QWebEngineViewType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QWebEngineView_QWebEngineView_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QWebEngineView", _n_QWebEngineView0, None, Compiled, qt_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineView_QWidget, Return, "qt.QWebEngineView", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QWebEngineView", _n_QWebEngineView1, None, Compiled, qt_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineProfile_QWidget, Return, "qt.QWebEngineView", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "profile", "qt.QWebEngineProfile"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "QWebEngineView", _n_QWebEngineView2, None, Compiled, qt_QWebEngineView_QWebEngineView_QWebEngineView_QWebEngineView_QWebEnginePage_QWidget, Return, "qt.QWebEngineView", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "page", "qt.QWebEnginePage"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "createStandardContextMenu", _n_createStandardContextMenu0, None, Compiled, qt_QWebEngineView_createStandardContextMenu_QMenu_QWebEngineView, Return, "qt.QMenu", Parameters, new Param(c, "this", "qt.QWebEngineView"), End), + // PROP: hasSelection (bool; QWebEngineView this) + // PROP: icon (QIcon; QWebEngineView this) + // PROP: iconUrl (QUrl; QWebEngineView this) + // MISSING: lastContextMenuRequest ("QWebEngineContextMenuRequest *"; QWebEngineView this) + new Function(c, "load", _n_load0, None, Compiled, qt_QWebEngineView_load_void_QWebEngineView_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "url", "qt.QUrl"), End), + // MISSING: load (void; QWebEngineView this, "const QWebEngineHttpRequest &" request) + new Function(c, "page", _n_page0, None, Compiled, qt_QWebEngineView_page_QWebEnginePage_QWebEngineView, Return, "qt.QWebEnginePage", Parameters, new Param(c, "this", "qt.QWebEngineView"), End), + new Function(c, "pageAction", _n_pageAction0, None, Compiled, qt_QWebEngineView_pageAction_QAction_QWebEngineView_int, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "action", "int"), End), + // MISSING: print (void; QWebEngineView this, "QPrinter *" printer) + // MISSING: printToPdf (void; QWebEngineView this, string filePath, "const QPageLayout &" layout, "const QPageRanges &" ranges) + // MISSING: printToPdf (void; QWebEngineView this, flags const std::function & resultCallback, "const QPageLayout &" layout, "const QPageRanges &" ranges) + // PROP: selectedText (string; QWebEngineView this) + new Function(c, "setContent", _n_setContent0, None, Compiled, qt_QWebEngineView_setContent_void_QWebEngineView_QByteArray_string_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "data", "qt.QByteArray"), new Param(c, "mimeType", "string"), new Param(c, "baseUrl", "qt.QUrl"), End), + new Function(c, "setHtml", _n_setHtml0, None, Compiled, qt_QWebEngineView_setHtml_void_QWebEngineView_string_QUrl, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "html", "string"), new Param(c, "baseUrl", "qt.QUrl"), End), + new Function(c, "setPage", _n_setPage0, None, Compiled, qt_QWebEngineView_setPage_void_QWebEngineView_QWebEnginePage, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "page", "qt.QWebEnginePage"), End), + // PROP: setUrl (void; QWebEngineView this, QUrl url) + // PROP: setZoomFactor (void; QWebEngineView this, double factor) + new Function(c, "settings", _n_settings0, None, Compiled, qt_QWebEngineView_settings_QWebEngineSettings_QWebEngineView, Return, "qt.QWebEngineSettings", Parameters, new Param(c, "this", "qt.QWebEngineView"), End), + // PROP: title (string; QWebEngineView this) + new Function(c, "triggerPageAction", _n_triggerPageAction0, None, Compiled, qt_QWebEngineView_triggerPageAction_void_QWebEngineView_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "action", "int"), new Param(c, "checked", "bool"), End), + // PROP: url (QUrl; QWebEngineView this) + // PROP: zoomFactor (double; QWebEngineView this) + _func[0] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QWebEngineView_sizeHint_QSize_QWebEngineView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QWebEngineView"), End), + _func[1] = new MemberFunction(c, "createWindow", _n_createWindow0, None, Compiled, qt_QWebEngineView_createWindow_QWebEngineView_QWebEngineView_int, Return, "qt.QWebEngineView", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "type", "int"), End), + _func[2] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QWebEngineView_closeEvent_void_QWebEngineView_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[3] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QWebEngineView_contextMenuEvent_void_QWebEngineView_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QContextMenuEvent"), End), + _func[4] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QWebEngineView_dragEnterEvent_void_QWebEngineView_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "e", "qt.QDragEnterEvent"), End), + _func[5] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QWebEngineView_dragLeaveEvent_void_QWebEngineView_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "e", "qt.QDragLeaveEvent"), End), + _func[6] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QWebEngineView_dragMoveEvent_void_QWebEngineView_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "e", "qt.QDragMoveEvent"), End), + _func[7] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QWebEngineView_dropEvent_void_QWebEngineView_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "e", "qt.QDropEvent"), End), + _func[8] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QWebEngineView_event_bool_QWebEngineView_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "ev", "qt.QEvent"), End), + _func[9] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QWebEngineView_hideEvent_void_QWebEngineView_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QHideEvent"), End), + _func[10] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QWebEngineView_showEvent_void_QWebEngineView_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QShowEvent"), End), + _func[11] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QWebEngineView_hasHeightForWidth_bool_QWebEngineView, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineView"), End), + _func[12] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QWebEngineView_heightForWidth_int_QWebEngineView_int, Return, "int", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "w", "int"), End), + _func[13] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QWebEngineView_inputMethodQuery_QVariant_QWebEngineView_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "query", "int"), End), + _func[14] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QWebEngineView_minimumSizeHint_QSize_QWebEngineView, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QWebEngineView"), End), + // MISSING: paintEngine ("QPaintEngine *"; QWebEngineView this) + // MISSING: actionEvent (void; QWebEngineView this, "QActionEvent *" event) // protected + _func[15] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QWebEngineView_changeEvent_void_QWebEngineView_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: enterEvent (void; QWebEngineView this, "QEnterEvent *" event) // protected + _func[16] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QWebEngineView_focusInEvent_void_QWebEngineView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QFocusEvent"), End), + _func[17] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QWebEngineView_focusNextPrevChild_bool_QWebEngineView_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "next", "bool"), End), + _func[18] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QWebEngineView_focusOutEvent_void_QWebEngineView_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QFocusEvent"), End), + // MISSING: inputMethodEvent (void; QWebEngineView this, "QInputMethodEvent *" event) // protected + _func[19] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QWebEngineView_keyPressEvent_void_QWebEngineView_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[20] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QWebEngineView_keyReleaseEvent_void_QWebEngineView_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[21] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QWebEngineView_leaveEvent_void_QWebEngineView_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QEvent"), End), + _func[22] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QWebEngineView_mouseDoubleClickEvent_void_QWebEngineView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[23] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QWebEngineView_mouseMoveEvent_void_QWebEngineView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[24] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QWebEngineView_mousePressEvent_void_QWebEngineView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[25] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QWebEngineView_mouseReleaseEvent_void_QWebEngineView_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[26] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QWebEngineView_moveEvent_void_QWebEngineView_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QWebEngineView this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[27] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QWebEngineView_paintEvent_void_QWebEngineView_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[28] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QWebEngineView_resizeEvent_void_QWebEngineView_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[29] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QWebEngineView_tabletEvent_void_QWebEngineView_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[30] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QWebEngineView_wheelEvent_void_QWebEngineView_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "event", "qt.QWheelEvent"), End), + // MISSING: initPainter (void; QWebEngineView this, "QPainter *" painter) // protected + _func[31] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QWebEngineView_metric_int_QWebEngineView_int, Return, "int", Parameters, new Param(c, "this", "qt.QWebEngineView"), new Param(c, "m", "int"), End), + // static functions + new Function(c, "forPage", _n_forPage0, None, Compiled, qt_QWebEngineView_forPage_QWebEngineView_QWebEnginePage, Return, "qt.QWebEngineView", Parameters, new Param(c, "page", "qt.QWebEnginePage"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QWebEngineView::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWheelEventType.cpp b/src/lib/mu/MuQt6/QWheelEventType.cpp new file mode 100644 index 000000000..6903a10c2 --- /dev/null +++ b/src/lib/mu/MuQt6/QWheelEventType.cpp @@ -0,0 +1,198 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QWheelEventType::QWheelEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QWheelEventType::~QWheelEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +Pointer qt_QWheelEvent_angleDelta_QPoint_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWheelEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->angleDelta(),"qt.QPoint"); +} + +bool qt_QWheelEvent_inverted_bool_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWheelEvent * arg0 = getqpointer(param_this); + return arg0->inverted(); +} + +int qt_QWheelEvent_phase_int_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWheelEvent * arg0 = getqpointer(param_this); + return int(arg0->phase()); +} + +Pointer qt_QWheelEvent_pixelDelta_QPoint_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWheelEvent * arg0 = getqpointer(param_this); + return makeqtype(c,arg0->pixelDelta(),"qt.QPoint"); +} + +bool qt_QWheelEvent_isBeginEvent_bool_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWheelEvent * arg0 = getqpointer(param_this); + return arg0->isBeginEvent(); +} + +bool qt_QWheelEvent_isEndEvent_bool_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWheelEvent * arg0 = getqpointer(param_this); + return arg0->isEndEvent(); +} + +bool qt_QWheelEvent_isUpdateEvent_bool_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWheelEvent * arg0 = getqpointer(param_this); + return arg0->isUpdateEvent(); +} + + +static NODE_IMPLEMENTATION(_n_angleDelta0, Pointer) +{ + NODE_RETURN(qt_QWheelEvent_angleDelta_QPoint_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_inverted0, bool) +{ + NODE_RETURN(qt_QWheelEvent_inverted_bool_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_phase0, int) +{ + NODE_RETURN(qt_QWheelEvent_phase_int_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_pixelDelta0, Pointer) +{ + NODE_RETURN(qt_QWheelEvent_pixelDelta_QPoint_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isBeginEvent0, bool) +{ + NODE_RETURN(qt_QWheelEvent_isBeginEvent_bool_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEndEvent0, bool) +{ + NODE_RETURN(qt_QWheelEvent_isEndEvent_bool_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isUpdateEvent0, bool) +{ + NODE_RETURN(qt_QWheelEvent_isUpdateEvent_bool_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QWheelEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + // MISSING: QWheelEvent (QWheelEvent; QWheelEvent this, QPointF pos, QPointF globalPos, QPoint pixelDelta, QPoint angleDelta, flags Qt::MouseButtons buttons, flags Qt::KeyboardModifiers modifiers, flags Qt::ScrollPhase phase, bool inverted, flags Qt::MouseEventSource source, "const QPointingDevice *" device) + new Function(c, "angleDelta", _n_angleDelta0, None, Compiled, qt_QWheelEvent_angleDelta_QPoint_QWheelEvent, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QWheelEvent"), End), + new Function(c, "inverted", _n_inverted0, None, Compiled, qt_QWheelEvent_inverted_bool_QWheelEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWheelEvent"), End), + new Function(c, "phase", _n_phase0, None, Compiled, qt_QWheelEvent_phase_int_QWheelEvent, Return, "int", Parameters, new Param(c, "this", "qt.QWheelEvent"), End), + new Function(c, "pixelDelta", _n_pixelDelta0, None, Compiled, qt_QWheelEvent_pixelDelta_QPoint_QWheelEvent, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QWheelEvent"), End), + new MemberFunction(c, "isBeginEvent", _n_isBeginEvent0, None, Compiled, qt_QWheelEvent_isBeginEvent_bool_QWheelEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWheelEvent"), End), + new MemberFunction(c, "isEndEvent", _n_isEndEvent0, None, Compiled, qt_QWheelEvent_isEndEvent_bool_QWheelEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWheelEvent"), End), + new MemberFunction(c, "isUpdateEvent", _n_isUpdateEvent0, None, Compiled, qt_QWheelEvent_isUpdateEvent_bool_QWheelEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWheelEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWidgetActionType.cpp b/src/lib/mu/MuQt6/QWidgetActionType.cpp new file mode 100644 index 000000000..2e3efa8d3 --- /dev/null +++ b/src/lib/mu/MuQt6/QWidgetActionType.cpp @@ -0,0 +1,382 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QWidgetAction::~MuQt_QWidgetAction() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QWidgetAction::MuQt_QWidgetAction(Pointer muobj, const CallEnvironment* ce, QObject * parent) + : QWidgetAction(parent) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWidgetAction")); +} + +QWidget * MuQt_QWidgetAction::createWidget(QWidget * parent) +{ + if (!_env) return QWidgetAction::createWidget(parent); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,parent,"qt.QWidget")); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QWidgetAction::createWidget(parent); + } +} + +void MuQt_QWidgetAction::deleteWidget(QWidget * widget) +{ + if (!_env) { QWidgetAction::deleteWidget(widget); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,widget,"qt.QWidget")); + Value rval = _env->call(F, args); + } + else + { + QWidgetAction::deleteWidget(widget); + } +} + +bool MuQt_QWidgetAction::event(QEvent * event_) +{ + if (!_env) return QWidgetAction::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWidgetAction::event(event_); + } +} + +bool MuQt_QWidgetAction::eventFilter(QObject * obj, QEvent * event) +{ + if (!_env) return QWidgetAction::eventFilter(obj, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,obj,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWidgetAction::eventFilter(obj, event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QWidgetActionType::QWidgetActionType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QWidgetActionType::~QWidgetActionType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QWidgetAction_QWidgetAction_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QWidgetAction* w = object(widget)) + { + QWidgetActionType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWidgetAction"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QWidgetAction_QWidgetAction_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QWidgetAction_QWidgetAction_QWidgetAction_QWidgetAction_QObject(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QObject * arg1 = object(param_parent); + setobject(param_this, new MuQt_QWidgetAction(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +Pointer qt_QWidgetAction_defaultWidget_QWidget_QWidgetAction(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetAction* arg0 = object(param_this); + return makeinstance(c, arg0->defaultWidget(), "qt.QWidget"); +} + +void qt_QWidgetAction_releaseWidget_void_QWidgetAction_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetAction* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->releaseWidget(arg1); +} + +Pointer qt_QWidgetAction_requestWidget_QWidget_QWidgetAction_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetAction* arg0 = object(param_this); + QWidget * arg1 = object(param_parent); + return makeinstance(c, arg0->requestWidget(arg1), "qt.QWidget"); +} + +void qt_QWidgetAction_setDefaultWidget_void_QWidgetAction_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetAction* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + arg0->setDefaultWidget(arg1); +} + +Pointer qt_QWidgetAction_createWidget_QWidget_QWidgetAction_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetAction* arg0 = object(param_this); + QWidget * arg1 = object(param_parent); + return isMuQtObject(arg0) ? makeinstance(c, ((MuQt_QWidgetAction*)arg0)->createWidget_pub_parent(arg1), "qt.QWidget") : makeinstance(c, ((MuQt_QWidgetAction*)arg0)->createWidget_pub(arg1), "qt.QWidget"); +} + +void qt_QWidgetAction_deleteWidget_void_QWidgetAction_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetAction* arg0 = object(param_this); + QWidget * arg1 = object(param_widget); + if (isMuQtObject(arg0)) ((MuQt_QWidgetAction*)arg0)->deleteWidget_pub_parent(arg1); + else ((MuQt_QWidgetAction*)arg0)->deleteWidget_pub(arg1); +} + +bool qt_QWidgetAction_event_bool_QWidgetAction_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetAction* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QWidgetAction*)arg0)->event_pub_parent(arg1) : ((MuQt_QWidgetAction*)arg0)->event_pub(arg1); +} + +bool qt_QWidgetAction_eventFilter_bool_QWidgetAction_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_obj, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetAction* arg0 = object(param_this); + QObject * arg1 = object(param_obj); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? ((MuQt_QWidgetAction*)arg0)->eventFilter_pub_parent(arg1, arg2) : ((MuQt_QWidgetAction*)arg0)->eventFilter_pub(arg1, arg2); +} + + +static NODE_IMPLEMENTATION(_n_QWidgetAction0, Pointer) +{ + NODE_RETURN(qt_QWidgetAction_QWidgetAction_QWidgetAction_QWidgetAction_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_defaultWidget0, Pointer) +{ + NODE_RETURN(qt_QWidgetAction_defaultWidget_QWidget_QWidgetAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_releaseWidget0, void) +{ + qt_QWidgetAction_releaseWidget_void_QWidgetAction_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_requestWidget0, Pointer) +{ + NODE_RETURN(qt_QWidgetAction_requestWidget_QWidget_QWidgetAction_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setDefaultWidget0, void) +{ + qt_QWidgetAction_setDefaultWidget_void_QWidgetAction_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_createWidget0, Pointer) +{ + NODE_RETURN(qt_QWidgetAction_createWidget_QWidget_QWidgetAction_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_deleteWidget0, void) +{ + qt_QWidgetAction_deleteWidget_void_QWidgetAction_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QWidgetAction_event_bool_QWidgetAction_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QWidgetAction_eventFilter_bool_QWidgetAction_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + + + +void +QWidgetActionType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QWidgetAction_QWidgetAction_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QWidgetAction", _n_QWidgetAction0, None, Compiled, qt_QWidgetAction_QWidgetAction_QWidgetAction_QWidgetAction_QObject, Return, "qt.QWidgetAction", Parameters, new Param(c, "this", "qt.QWidgetAction"), new Param(c, "parent", "qt.QObject"), End), + new Function(c, "defaultWidget", _n_defaultWidget0, None, Compiled, qt_QWidgetAction_defaultWidget_QWidget_QWidgetAction, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidgetAction"), End), + new Function(c, "releaseWidget", _n_releaseWidget0, None, Compiled, qt_QWidgetAction_releaseWidget_void_QWidgetAction_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidgetAction"), new Param(c, "widget", "qt.QWidget"), End), + new Function(c, "requestWidget", _n_requestWidget0, None, Compiled, qt_QWidgetAction_requestWidget_QWidget_QWidgetAction_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidgetAction"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "setDefaultWidget", _n_setDefaultWidget0, None, Compiled, qt_QWidgetAction_setDefaultWidget_void_QWidgetAction_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidgetAction"), new Param(c, "widget", "qt.QWidget"), End), + _func[0] = new MemberFunction(c, "createWidget", _n_createWidget0, None, Compiled, qt_QWidgetAction_createWidget_QWidget_QWidgetAction_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidgetAction"), new Param(c, "parent", "qt.QWidget"), End), + // MISSING: createdWidgets ("QList"; QWidgetAction this) // protected + _func[1] = new MemberFunction(c, "deleteWidget", _n_deleteWidget0, None, Compiled, qt_QWidgetAction_deleteWidget_void_QWidgetAction_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidgetAction"), new Param(c, "widget", "qt.QWidget"), End), + _func[2] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QWidgetAction_event_bool_QWidgetAction_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWidgetAction"), new Param(c, "event_", "qt.QEvent"), End), + _func[3] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QWidgetAction_eventFilter_bool_QWidgetAction_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWidgetAction"), new Param(c, "obj", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + + + const char** propExclusions = 0; + + populate(this, QWidgetAction::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWidgetItemType.cpp b/src/lib/mu/MuQt6/QWidgetItemType.cpp new file mode 100644 index 000000000..a7b35c3af --- /dev/null +++ b/src/lib/mu/MuQt6/QWidgetItemType.cpp @@ -0,0 +1,640 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QWidgetItem::~MuQt_QWidgetItem() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QWidgetItem::MuQt_QWidgetItem(Pointer muobj, const CallEnvironment* ce, QWidget * widget) + : QWidgetItem(widget) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWidgetItem")); +} + +QSizePolicy::ControlTypes MuQt_QWidgetItem::controlTypes() const +{ + if (!_env) return QWidgetItem::controlTypes(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (QSizePolicy::ControlTypes)(rval._int); + } + else + { + return QWidgetItem::controlTypes(); + } +} + +Qt::Orientations MuQt_QWidgetItem::expandingDirections() const +{ + if (!_env) return QWidgetItem::expandingDirections(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (Qt::Orientations)(rval._int); + } + else + { + return QWidgetItem::expandingDirections(); + } +} + +QRect MuQt_QWidgetItem::geometry() const +{ + if (!_env) return QWidgetItem::geometry(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QWidgetItem::geometry(); + } +} + +bool MuQt_QWidgetItem::hasHeightForWidth() const +{ + if (!_env) return QWidgetItem::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWidgetItem::hasHeightForWidth(); + } +} + +int MuQt_QWidgetItem::heightForWidth(int w) const +{ + if (!_env) return QWidgetItem::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QWidgetItem::heightForWidth(w); + } +} + +bool MuQt_QWidgetItem::isEmpty() const +{ + if (!_env) return QWidgetItem::isEmpty(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWidgetItem::isEmpty(); + } +} + +QSize MuQt_QWidgetItem::maximumSize() const +{ + if (!_env) return QWidgetItem::maximumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QWidgetItem::maximumSize(); + } +} + +QSize MuQt_QWidgetItem::minimumSize() const +{ + if (!_env) return QWidgetItem::minimumSize(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QWidgetItem::minimumSize(); + } +} + +void MuQt_QWidgetItem::setGeometry(const QRect & rect) +{ + if (!_env) { QWidgetItem::setGeometry(rect); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqtype(c,rect,"qt.QRect")); + Value rval = _env->call(F, args); + } + else + { + QWidgetItem::setGeometry(rect); + } +} + +QSize MuQt_QWidgetItem::sizeHint() const +{ + if (!_env) return QWidgetItem::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QWidgetItem::sizeHint(); + } +} + +QWidget * MuQt_QWidgetItem::widget() const +{ + if (!_env) return QWidgetItem::widget(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QWidgetItem::widget(); + } +} + +void MuQt_QWidgetItem::invalidate() +{ + if (!_env) { QWidgetItem::invalidate(); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + } + else + { + QWidgetItem::invalidate(); + } +} + +QLayout * MuQt_QWidgetItem::layout() +{ + if (!_env) return QWidgetItem::layout(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return object(rval._Pointer); + } + else + { + return QWidgetItem::layout(); + } +} + +int MuQt_QWidgetItem::minimumHeightForWidth(int w) const +{ + if (!_env) return QWidgetItem::minimumHeightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QWidgetItem::minimumHeightForWidth(w); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QWidgetItemType::QWidgetItemType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QWidgetItemType::~QWidgetItemType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QWidgetItem_QWidgetItem_QLayoutItem(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* item = reinterpret_cast(obj); + + if (!item) + { + return 0; + } + else if (QWidgetItem* i = layoutitem(item)) + { + QWidgetItemType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWidgetItem"), false); + ClassInstance* o = ClassInstance::allocate(type); + setlayoutitem(o, i); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromLayoutItem, Pointer) +{ + NODE_RETURN( QWidgetItem_QWidgetItem_QLayoutItem(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QWidgetItem_QWidgetItem_QWidgetItem_QWidgetItem_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_widget) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_widget); + setlayoutitem(param_this, new MuQt_QWidgetItem(param_this, NODE_THREAD.process()->callEnv(), arg1)); + return param_this; +} + +int qt_QWidgetItem_controlTypes_int_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? int(arg0->QWidgetItem::controlTypes()) : int(arg0->controlTypes()); +} + +int qt_QWidgetItem_expandingDirections_int_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? int(arg0->QWidgetItem::expandingDirections()) : int(arg0->expandingDirections()); +} + +Pointer qt_QWidgetItem_geometry_QRect_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeqtype(c,arg0->QWidgetItem::geometry(),"qt.QRect") : makeqtype(c,arg0->geometry(),"qt.QRect"); +} + +bool qt_QWidgetItem_hasHeightForWidth_bool_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? arg0->QWidgetItem::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QWidgetItem_heightForWidth_int_QWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + int arg1 = (int)(param_w); + return isMuQtLayoutItem(arg0) ? arg0->QWidgetItem::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +bool qt_QWidgetItem_isEmpty_bool_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? arg0->QWidgetItem::isEmpty() : arg0->isEmpty(); +} + +Pointer qt_QWidgetItem_maximumSize_QSize_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeqtype(c,arg0->QWidgetItem::maximumSize(),"qt.QSize") : makeqtype(c,arg0->maximumSize(),"qt.QSize"); +} + +Pointer qt_QWidgetItem_minimumSize_QSize_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeqtype(c,arg0->QWidgetItem::minimumSize(),"qt.QSize") : makeqtype(c,arg0->minimumSize(),"qt.QSize"); +} + +void qt_QWidgetItem_setGeometry_void_QWidgetItem_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + const QRect arg1 = getqtype(param_rect); + if (isMuQtLayoutItem(arg0)) arg0->QWidgetItem::setGeometry(arg1); + else arg0->setGeometry(arg1); +} + +Pointer qt_QWidgetItem_sizeHint_QSize_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeqtype(c,arg0->QWidgetItem::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +Pointer qt_QWidgetItem_widget_QWidget_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeinstance(c, arg0->QWidgetItem::widget(), "qt.QWidget") : makeinstance(c, arg0->widget(), "qt.QWidget"); +} + +void qt_QWidgetItem_invalidate_void_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + if (isMuQtLayoutItem(arg0)) arg0->QWidgetItem::invalidate(); + else arg0->invalidate(); +} + +Pointer qt_QWidgetItem_layout_QLayout_QWidgetItem(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + return isMuQtLayoutItem(arg0) ? makeinstance(c, arg0->QWidgetItem::layout(), "qt.QLayout") : makeinstance(c, arg0->layout(), "qt.QLayout"); +} + +int qt_QWidgetItem_minimumHeightForWidth_int_QWidgetItem_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidgetItem* arg0 = layoutitem(param_this); + int arg1 = (int)(param_w); + return isMuQtLayoutItem(arg0) ? arg0->QWidgetItem::minimumHeightForWidth(arg1) : arg0->minimumHeightForWidth(arg1); +} + + +static NODE_IMPLEMENTATION(_n_QWidgetItem0, Pointer) +{ + NODE_RETURN(qt_QWidgetItem_QWidgetItem_QWidgetItem_QWidgetItem_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_controlTypes0, int) +{ + NODE_RETURN(qt_QWidgetItem_controlTypes_int_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_expandingDirections0, int) +{ + NODE_RETURN(qt_QWidgetItem_expandingDirections_int_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_geometry0, Pointer) +{ + NODE_RETURN(qt_QWidgetItem_geometry_QRect_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QWidgetItem_hasHeightForWidth_bool_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QWidgetItem_heightForWidth_int_QWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_isEmpty0, bool) +{ + NODE_RETURN(qt_QWidgetItem_isEmpty_bool_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_maximumSize0, Pointer) +{ + NODE_RETURN(qt_QWidgetItem_maximumSize_QSize_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumSize0, Pointer) +{ + NODE_RETURN(qt_QWidgetItem_minimumSize_QSize_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_setGeometry0, void) +{ + qt_QWidgetItem_setGeometry_void_QWidgetItem_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QWidgetItem_sizeHint_QSize_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_widget0, Pointer) +{ + NODE_RETURN(qt_QWidgetItem_widget_QWidget_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_invalidate0, void) +{ + qt_QWidgetItem_invalidate_void_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_layout0, Pointer) +{ + NODE_RETURN(qt_QWidgetItem_layout_QLayout_QWidgetItem(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumHeightForWidth0, int) +{ + NODE_RETURN(qt_QWidgetItem_minimumHeightForWidth_int_QWidgetItem_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + + + +void +QWidgetItemType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromLayoutItem, Cast, + Compiled, QWidgetItem_QWidgetItem_QLayoutItem, + Return, ftn, + Parameters, + new Param(c, "layoutItem", "qt.QLayoutItem"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QWidgetItem", _n_QWidgetItem0, None, Compiled, qt_QWidgetItem_QWidgetItem_QWidgetItem_QWidgetItem_QWidget, Return, "qt.QWidgetItem", Parameters, new Param(c, "this", "qt.QWidgetItem"), new Param(c, "widget", "qt.QWidget"), End), + _func[0] = new MemberFunction(c, "controlTypes", _n_controlTypes0, None, Compiled, qt_QWidgetItem_controlTypes_int_QWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[1] = new MemberFunction(c, "expandingDirections", _n_expandingDirections0, None, Compiled, qt_QWidgetItem_expandingDirections_int_QWidgetItem, Return, "int", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[2] = new MemberFunction(c, "geometry", _n_geometry0, None, Compiled, qt_QWidgetItem_geometry_QRect_QWidgetItem, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[3] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QWidgetItem_hasHeightForWidth_bool_QWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[4] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QWidgetItem_heightForWidth_int_QWidgetItem_int, Return, "int", Parameters, new Param(c, "this", "qt.QWidgetItem"), new Param(c, "w", "int"), End), + _func[5] = new MemberFunction(c, "isEmpty", _n_isEmpty0, None, Compiled, qt_QWidgetItem_isEmpty_bool_QWidgetItem, Return, "bool", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[6] = new MemberFunction(c, "maximumSize", _n_maximumSize0, None, Compiled, qt_QWidgetItem_maximumSize_QSize_QWidgetItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[7] = new MemberFunction(c, "minimumSize", _n_minimumSize0, None, Compiled, qt_QWidgetItem_minimumSize_QSize_QWidgetItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[8] = new MemberFunction(c, "setGeometry", _n_setGeometry0, None, Compiled, qt_QWidgetItem_setGeometry_void_QWidgetItem_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QWidgetItem"), new Param(c, "rect", "qt.QRect"), End), + _func[9] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QWidgetItem_sizeHint_QSize_QWidgetItem, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[10] = new MemberFunction(c, "widget", _n_widget0, None, Compiled, qt_QWidgetItem_widget_QWidget_QWidgetItem, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[11] = new MemberFunction(c, "invalidate", _n_invalidate0, None, Compiled, qt_QWidgetItem_invalidate_void_QWidgetItem, Return, "void", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[12] = new MemberFunction(c, "layout", _n_layout0, None, Compiled, qt_QWidgetItem_layout_QLayout_QWidgetItem, Return, "qt.QLayout", Parameters, new Param(c, "this", "qt.QWidgetItem"), End), + _func[13] = new MemberFunction(c, "minimumHeightForWidth", _n_minimumHeightForWidth0, None, Compiled, qt_QWidgetItem_minimumHeightForWidth_int_QWidgetItem_int, Return, "int", Parameters, new Param(c, "this", "qt.QWidgetItem"), new Param(c, "w", "int"), End), + // MISSING: spacerItem ("QSpacerItem *"; QWidgetItem this) + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWidgetType.cpp b/src/lib/mu/MuQt6/QWidgetType.cpp new file mode 100644 index 000000000..345d4e5dd --- /dev/null +++ b/src/lib/mu/MuQt6/QWidgetType.cpp @@ -0,0 +1,3062 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +// destructor +MuQt_QWidget::~MuQt_QWidget() +{ + if (_obj) + { + *_obj->data() = Pointer(0); + _obj->releaseExternal(); + } + _obj = 0; + _env = 0; + _baseType = 0; +} + +MuQt_QWidget::MuQt_QWidget(Pointer muobj, const CallEnvironment* ce, QWidget * parent, Qt::WindowFlags f) + : QWidget(parent, f) +{ + _env = ce; + _obj = reinterpret_cast(muobj); + _obj->retainExternal(); + MuLangContext* c = (MuLangContext*)_env->context(); + _baseType = c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWidget")); +} + +bool MuQt_QWidget::hasHeightForWidth() const +{ + if (!_env) return QWidget::hasHeightForWidth(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[0]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWidget::hasHeightForWidth(); + } +} + +int MuQt_QWidget::heightForWidth(int w) const +{ + if (!_env) return QWidget::heightForWidth(w); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[1]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(w); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QWidget::heightForWidth(w); + } +} + +QVariant MuQt_QWidget::inputMethodQuery(Qt::InputMethodQuery query) const +{ + if (!_env) return QWidget::inputMethodQuery(query); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[2]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(query)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QWidget::inputMethodQuery(query); + } +} + +QSize MuQt_QWidget::minimumSizeHint() const +{ + if (!_env) return QWidget::minimumSizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[3]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QWidget::minimumSizeHint(); + } +} + +QSize MuQt_QWidget::sizeHint() const +{ + if (!_env) return QWidget::sizeHint(); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[4]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(1); + args[0] = Value(Pointer(_obj)); + Value rval = _env->call(F, args); + return getqtype(rval._Pointer); + } + else + { + return QWidget::sizeHint(); + } +} + +void MuQt_QWidget::changeEvent(QEvent * event) +{ + if (!_env) { QWidget::changeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[5]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::changeEvent(event); + } +} + +void MuQt_QWidget::closeEvent(QCloseEvent * event) +{ + if (!_env) { QWidget::closeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[6]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QCloseEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::closeEvent(event); + } +} + +void MuQt_QWidget::contextMenuEvent(QContextMenuEvent * event) +{ + if (!_env) { QWidget::contextMenuEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[7]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QContextMenuEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::contextMenuEvent(event); + } +} + +void MuQt_QWidget::dragEnterEvent(QDragEnterEvent * event) +{ + if (!_env) { QWidget::dragEnterEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[8]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragEnterEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::dragEnterEvent(event); + } +} + +void MuQt_QWidget::dragLeaveEvent(QDragLeaveEvent * event) +{ + if (!_env) { QWidget::dragLeaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[9]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragLeaveEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::dragLeaveEvent(event); + } +} + +void MuQt_QWidget::dragMoveEvent(QDragMoveEvent * event) +{ + if (!_env) { QWidget::dragMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[10]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDragMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::dragMoveEvent(event); + } +} + +void MuQt_QWidget::dropEvent(QDropEvent * event) +{ + if (!_env) { QWidget::dropEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[11]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QDropEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::dropEvent(event); + } +} + +void MuQt_QWidget::focusInEvent(QFocusEvent * event) +{ + if (!_env) { QWidget::focusInEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[12]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::focusInEvent(event); + } +} + +bool MuQt_QWidget::focusNextPrevChild(bool next) +{ + if (!_env) return QWidget::focusNextPrevChild(next); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[13]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(next); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWidget::focusNextPrevChild(next); + } +} + +void MuQt_QWidget::focusOutEvent(QFocusEvent * event) +{ + if (!_env) { QWidget::focusOutEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[14]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QFocusEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::focusOutEvent(event); + } +} + +void MuQt_QWidget::hideEvent(QHideEvent * event) +{ + if (!_env) { QWidget::hideEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[15]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QHideEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::hideEvent(event); + } +} + +void MuQt_QWidget::keyPressEvent(QKeyEvent * event) +{ + if (!_env) { QWidget::keyPressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[16]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::keyPressEvent(event); + } +} + +void MuQt_QWidget::keyReleaseEvent(QKeyEvent * event) +{ + if (!_env) { QWidget::keyReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[17]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QKeyEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::keyReleaseEvent(event); + } +} + +void MuQt_QWidget::leaveEvent(QEvent * event) +{ + if (!_env) { QWidget::leaveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[18]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::leaveEvent(event); + } +} + +void MuQt_QWidget::mouseDoubleClickEvent(QMouseEvent * event) +{ + if (!_env) { QWidget::mouseDoubleClickEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[19]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::mouseDoubleClickEvent(event); + } +} + +void MuQt_QWidget::mouseMoveEvent(QMouseEvent * event) +{ + if (!_env) { QWidget::mouseMoveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[20]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::mouseMoveEvent(event); + } +} + +void MuQt_QWidget::mousePressEvent(QMouseEvent * event) +{ + if (!_env) { QWidget::mousePressEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[21]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::mousePressEvent(event); + } +} + +void MuQt_QWidget::mouseReleaseEvent(QMouseEvent * event) +{ + if (!_env) { QWidget::mouseReleaseEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[22]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMouseEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::mouseReleaseEvent(event); + } +} + +void MuQt_QWidget::moveEvent(QMoveEvent * event) +{ + if (!_env) { QWidget::moveEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[23]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QMoveEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::moveEvent(event); + } +} + +void MuQt_QWidget::paintEvent(QPaintEvent * event) +{ + if (!_env) { QWidget::paintEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[24]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QPaintEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::paintEvent(event); + } +} + +void MuQt_QWidget::resizeEvent(QResizeEvent * event) +{ + if (!_env) { QWidget::resizeEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[25]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QResizeEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::resizeEvent(event); + } +} + +void MuQt_QWidget::showEvent(QShowEvent * event) +{ + if (!_env) { QWidget::showEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[26]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QShowEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::showEvent(event); + } +} + +void MuQt_QWidget::tabletEvent(QTabletEvent * event) +{ + if (!_env) { QWidget::tabletEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[27]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTabletEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::tabletEvent(event); + } +} + +void MuQt_QWidget::wheelEvent(QWheelEvent * event) +{ + if (!_env) { QWidget::wheelEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[28]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QWheelEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::wheelEvent(event); + } +} + +bool MuQt_QWidget::event(QEvent * event_) +{ + if (!_env) return QWidget::event(event_); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[29]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event_,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWidget::event(event_); + } +} + +int MuQt_QWidget::metric(QPaintDevice::PaintDeviceMetric m) const +{ + if (!_env) return QWidget::metric(m); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[30]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(int(m)); + Value rval = _env->call(F, args); + return (int)(rval._int); + } + else + { + return QWidget::metric(m); + } +} + +bool MuQt_QWidget::eventFilter(QObject * watched, QEvent * event) +{ + if (!_env) return QWidget::eventFilter(watched, event); + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[31]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(3); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeinstance(c,watched,"qt.QObject")); + args[2] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + return (bool)(rval._bool); + } + else + { + return QWidget::eventFilter(watched, event); + } +} + +void MuQt_QWidget::customEvent(QEvent * event) +{ + if (!_env) { QWidget::customEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[32]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::customEvent(event); + } +} + +void MuQt_QWidget::timerEvent(QTimerEvent * event) +{ + if (!_env) { QWidget::timerEvent(event); return; } + MuLangContext* c = (MuLangContext*)_env->context(); + const MemberFunction* F0 = _baseType->_func[33]; + const MemberFunction* F = _obj->classType()->dynamicLookup(F0); + if (F != F0) + { + Function::ArgumentVector args(2); + args[0] = Value(Pointer(_obj)); + args[1] = Value(makeqpointer(c,event,"qt.QTimerEvent")); + Value rval = _env->call(F, args); + } + else + { + QWidget::timerEvent(event); + } +} + + + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +QWidgetType::QWidgetType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +QWidgetType::~QWidgetType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QWidget_QWidget_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if (QWidget* w = object(widget)) + { + QWidgetType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWidget"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QWidget_QWidget_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer qt_QWidget_QWidget_QWidget_QWidget_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + Qt::WindowFlags arg2 = (Qt::WindowFlags)(param_f); + setobject(param_this, new MuQt_QWidget(param_this, NODE_THREAD.process()->callEnv(), arg1, arg2)); + return param_this; +} + +void qt_QWidget_activateWindow_void_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + arg0->activateWindow(); +} + +void qt_QWidget_addAction_void_QWidget_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QAction * arg1 = object(param_action); + arg0->addAction(arg1); +} + +Pointer qt_QWidget_addAction_QAction_QWidget_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + return makeinstance(c, arg0->addAction(arg1), "qt.QAction"); +} + +Pointer qt_QWidget_addAction_QAction_QWidget_QIcon_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + return makeinstance(c, arg0->addAction(arg1, arg2), "qt.QAction"); +} + +Pointer qt_QWidget_addAction_QAction_QWidget_string_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_text, Pointer param_shortcut) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QString arg1 = qstring(param_text); + const QKeySequence arg2 = getqtype(param_shortcut); + return makeinstance(c, arg0->addAction(arg1, arg2), "qt.QAction"); +} + +Pointer qt_QWidget_addAction_QAction_QWidget_QIcon_string_QKeySequence(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_icon, Pointer param_text, Pointer param_shortcut) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QIcon arg1 = getqtype(param_icon); + const QString arg2 = qstring(param_text); + const QKeySequence arg3 = getqtype(param_shortcut); + return makeinstance(c, arg0->addAction(arg1, arg2, arg3), "qt.QAction"); +} + +void qt_QWidget_adjustSize_void_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + arg0->adjustSize(); +} + +int qt_QWidget_backgroundRole_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return int(arg0->backgroundRole()); +} + +Pointer qt_QWidget_childAt_QWidget_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + return makeinstance(c, arg0->childAt(arg1, arg2), "qt.QWidget"); +} + +Pointer qt_QWidget_childAt_QWidget_QWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_p); + return makeinstance(c, arg0->childAt(arg1), "qt.QWidget"); +} + +void qt_QWidget_clearFocus_void_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + arg0->clearFocus(); +} + +void qt_QWidget_clearMask_void_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + arg0->clearMask(); +} + +Pointer qt_QWidget_contentsMargins_QMargins_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeqtype(c,arg0->contentsMargins(),"qt.QMargins"); +} + +Pointer qt_QWidget_contentsRect_QRect_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeqtype(c,arg0->contentsRect(),"qt.QRect"); +} + +void qt_QWidget_ensurePolished_void_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + arg0->ensurePolished(); +} + +Pointer qt_QWidget_focusProxy_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeinstance(c, arg0->focusProxy(), "qt.QWidget"); +} + +Pointer qt_QWidget_focusWidget_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeinstance(c, arg0->focusWidget(), "qt.QWidget"); +} + +int qt_QWidget_foregroundRole_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return int(arg0->foregroundRole()); +} + +Pointer qt_QWidget_grab_QPixmap_QWidget_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rectangle) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rectangle); + return makeqtype(c,arg0->grab(arg1),"qt.QPixmap"); +} + +void qt_QWidget_grabGesture_void_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_gesture, int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + Qt::GestureType arg1 = (Qt::GestureType)(param_gesture); + Qt::GestureFlags arg2 = (Qt::GestureFlags)(param_flags); + arg0->grabGesture(arg1, arg2); +} + +void qt_QWidget_grabKeyboard_void_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + arg0->grabKeyboard(); +} + +void qt_QWidget_grabMouse_void_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + arg0->grabMouse(); +} + +void qt_QWidget_grabMouse_void_QWidget_QCursor(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_cursor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QCursor arg1 = getqtype(param_cursor); + arg0->grabMouse(arg1); +} + +int qt_QWidget_grabShortcut_int_QWidget_QKeySequence_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_key, int param_context) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QKeySequence arg1 = getqtype(param_key); + Qt::ShortcutContext arg2 = (Qt::ShortcutContext)(param_context); + return arg0->grabShortcut(arg1, arg2); +} + +bool qt_QWidget_hasHeightForWidth_bool_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? arg0->QWidget::hasHeightForWidth() : arg0->hasHeightForWidth(); +} + +int qt_QWidget_heightForWidth_int_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_w); + return isMuQtObject(arg0) ? arg0->QWidget::heightForWidth(arg1) : arg0->heightForWidth(arg1); +} + +Pointer qt_QWidget_inputMethodQuery_QVariant_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_query) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + Qt::InputMethodQuery arg1 = (Qt::InputMethodQuery)(param_query); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QWidget::inputMethodQuery(arg1),"qt.QVariant") : makeqtype(c,arg0->inputMethodQuery(arg1),"qt.QVariant"); +} + +void qt_QWidget_insertAction_void_QWidget_QAction_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_before, Pointer param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QAction * arg1 = object(param_before); + QAction * arg2 = object(param_action); + arg0->insertAction(arg1, arg2); +} + +bool qt_QWidget_isAncestorOf_bool_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_child) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QWidget * arg1 = object(param_child); + return arg0->isAncestorOf(arg1); +} + +bool qt_QWidget_isEnabledTo_bool_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ancestor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QWidget * arg1 = object(param_ancestor); + return arg0->isEnabledTo(arg1); +} + +bool qt_QWidget_isHidden_bool_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return arg0->isHidden(); +} + +bool qt_QWidget_isVisibleTo_bool_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_ancestor) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QWidget * arg1 = object(param_ancestor); + return arg0->isVisibleTo(arg1); +} + +bool qt_QWidget_isWindow_bool_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return arg0->isWindow(); +} + +Pointer qt_QWidget_layout_QLayout_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeinstance(c, arg0->layout(), "qt.QLayout"); +} + +Pointer qt_QWidget_mapFrom_QPointF_QWidget_QWidget_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QWidget * arg1 = object(param_parent); + const QPointF arg2 = getqtype(param_pos); + return makeqtype(c,arg0->mapFrom(arg1, arg2),"qt.QPointF"); +} + +Pointer qt_QWidget_mapFrom_QPoint_QWidget_QWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QWidget * arg1 = object(param_parent); + const QPoint arg2 = getqtype(param_pos); + return makeqtype(c,arg0->mapFrom(arg1, arg2),"qt.QPoint"); +} + +Pointer qt_QWidget_mapFromGlobal_QPointF_QWidget_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QPointF arg1 = getqtype(param_pos); + return makeqtype(c,arg0->mapFromGlobal(arg1),"qt.QPointF"); +} + +Pointer qt_QWidget_mapFromGlobal_QPoint_QWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return makeqtype(c,arg0->mapFromGlobal(arg1),"qt.QPoint"); +} + +Pointer qt_QWidget_mapFromParent_QPointF_QWidget_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QPointF arg1 = getqtype(param_pos); + return makeqtype(c,arg0->mapFromParent(arg1),"qt.QPointF"); +} + +Pointer qt_QWidget_mapFromParent_QPoint_QWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return makeqtype(c,arg0->mapFromParent(arg1),"qt.QPoint"); +} + +Pointer qt_QWidget_mapTo_QPointF_QWidget_QWidget_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QWidget * arg1 = object(param_parent); + const QPointF arg2 = getqtype(param_pos); + return makeqtype(c,arg0->mapTo(arg1, arg2),"qt.QPointF"); +} + +Pointer qt_QWidget_mapTo_QPoint_QWidget_QWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QWidget * arg1 = object(param_parent); + const QPoint arg2 = getqtype(param_pos); + return makeqtype(c,arg0->mapTo(arg1, arg2),"qt.QPoint"); +} + +Pointer qt_QWidget_mapToGlobal_QPointF_QWidget_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QPointF arg1 = getqtype(param_pos); + return makeqtype(c,arg0->mapToGlobal(arg1),"qt.QPointF"); +} + +Pointer qt_QWidget_mapToGlobal_QPoint_QWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return makeqtype(c,arg0->mapToGlobal(arg1),"qt.QPoint"); +} + +Pointer qt_QWidget_mapToParent_QPointF_QWidget_QPointF(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QPointF arg1 = getqtype(param_pos); + return makeqtype(c,arg0->mapToParent(arg1),"qt.QPointF"); +} + +Pointer qt_QWidget_mapToParent_QPoint_QWidget_QPoint(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_pos) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QPoint arg1 = getqtype(param_pos); + return makeqtype(c,arg0->mapToParent(arg1),"qt.QPoint"); +} + +Pointer qt_QWidget_mask_QRegion_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeqtype(c,arg0->mask(),"qt.QRegion"); +} + +Pointer qt_QWidget_minimumSizeHint_QSize_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QWidget::minimumSizeHint(),"qt.QSize") : makeqtype(c,arg0->minimumSizeHint(),"qt.QSize"); +} + +void qt_QWidget_move_void_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + arg0->move(arg1, arg2); +} + +Pointer qt_QWidget_nativeParentWidget_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeinstance(c, arg0->nativeParentWidget(), "qt.QWidget"); +} + +Pointer qt_QWidget_nextInFocusChain_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeinstance(c, arg0->nextInFocusChain(), "qt.QWidget"); +} + +Pointer qt_QWidget_parentWidget_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeinstance(c, arg0->parentWidget(), "qt.QWidget"); +} + +Pointer qt_QWidget_previousInFocusChain_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeinstance(c, arg0->previousInFocusChain(), "qt.QWidget"); +} + +void qt_QWidget_releaseKeyboard_void_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + arg0->releaseKeyboard(); +} + +void qt_QWidget_releaseMouse_void_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + arg0->releaseMouse(); +} + +void qt_QWidget_releaseShortcut_void_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_id) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_id); + arg0->releaseShortcut(arg1); +} + +void qt_QWidget_removeAction_void_QWidget_QAction(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_action) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QAction * arg1 = object(param_action); + arg0->removeAction(arg1); +} + +void qt_QWidget_repaint_void_QWidget_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, int param_w, int param_h) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + int arg3 = (int)(param_w); + int arg4 = (int)(param_h); + arg0->repaint(arg1, arg2, arg3, arg4); +} + +void qt_QWidget_repaint_void_QWidget_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + arg0->repaint(arg1); +} + +void qt_QWidget_repaint_void_QWidget_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rgn) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QRegion arg1 = getqtype(param_rgn); + arg0->repaint(arg1); +} + +void qt_QWidget_resize_void_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w, int param_h) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_w); + int arg2 = (int)(param_h); + arg0->resize(arg1, arg2); +} + +bool qt_QWidget_restoreGeometry_bool_QWidget_QByteArray(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_geometry) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QByteArray arg1 = getqtype(param_geometry); + return arg0->restoreGeometry(arg1); +} + +Pointer qt_QWidget_saveGeometry_QByteArray_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeqtype(c,arg0->saveGeometry(),"qt.QByteArray"); +} + +Pointer qt_QWidget_screen_QScreen_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeinstance(c, arg0->screen(), "qt.QScreen"); +} + +void qt_QWidget_scroll_void_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + arg0->scroll(arg1, arg2); +} + +void qt_QWidget_scroll_void_QWidget_int_int_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, int param_dx, int param_dy, Pointer param_r) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_dx); + int arg2 = (int)(param_dy); + const QRect arg3 = getqtype(param_r); + arg0->scroll(arg1, arg2, arg3); +} + +void qt_QWidget_setAttribute_void_QWidget_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_attribute, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + Qt::WidgetAttribute arg1 = (Qt::WidgetAttribute)(param_attribute); + bool arg2 = (bool)(param_on); + arg0->setAttribute(arg1, arg2); +} + +void qt_QWidget_setBackgroundRole_void_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QPalette::ColorRole arg1 = (QPalette::ColorRole)(param_role); + arg0->setBackgroundRole(arg1); +} + +void qt_QWidget_setBaseSize_void_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_basew, int param_baseh) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_basew); + int arg2 = (int)(param_baseh); + arg0->setBaseSize(arg1, arg2); +} + +void qt_QWidget_setFixedHeight_void_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_h) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_h); + arg0->setFixedHeight(arg1); +} + +void qt_QWidget_setFixedSize_void_QWidget_QSize(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_s) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QSize arg1 = getqtype(param_s); + arg0->setFixedSize(arg1); +} + +void qt_QWidget_setFixedSize_void_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w, int param_h) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_w); + int arg2 = (int)(param_h); + arg0->setFixedSize(arg1, arg2); +} + +void qt_QWidget_setFixedWidth_void_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_w); + arg0->setFixedWidth(arg1); +} + +void qt_QWidget_setFocus_void_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_reason) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + Qt::FocusReason arg1 = (Qt::FocusReason)(param_reason); + arg0->setFocus(arg1); +} + +void qt_QWidget_setFocusProxy_void_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_w); + arg0->setFocusProxy(arg1); +} + +void qt_QWidget_setForegroundRole_void_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QPalette::ColorRole arg1 = (QPalette::ColorRole)(param_role); + arg0->setForegroundRole(arg1); +} + +void qt_QWidget_setGeometry_void_QWidget_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, int param_w, int param_h) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + int arg3 = (int)(param_w); + int arg4 = (int)(param_h); + arg0->setGeometry(arg1, arg2, arg3, arg4); +} + +void qt_QWidget_setLayout_void_QWidget_QLayout(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_layout) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QLayout * arg1 = object(param_layout); + arg0->setLayout(arg1); +} + +void qt_QWidget_setMask_void_QWidget_QBitmap(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_bitmap) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QBitmap arg1 = getqtype(param_bitmap); + arg0->setMask(arg1); +} + +void qt_QWidget_setMask_void_QWidget_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_region) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QRegion arg1 = getqtype(param_region); + arg0->setMask(arg1); +} + +void qt_QWidget_setMaximumSize_void_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_maxw, int param_maxh) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_maxw); + int arg2 = (int)(param_maxh); + arg0->setMaximumSize(arg1, arg2); +} + +void qt_QWidget_setMinimumSize_void_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_minw, int param_minh) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_minw); + int arg2 = (int)(param_minh); + arg0->setMinimumSize(arg1, arg2); +} + +void qt_QWidget_setParent_void_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_parent); + arg0->setParent(arg1); +} + +void qt_QWidget_setParent_void_QWidget_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent, int param_f) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_parent); + Qt::WindowFlags arg2 = (Qt::WindowFlags)(param_f); + arg0->setParent(arg1, arg2); +} + +void qt_QWidget_setScreen_void_QWidget_QScreen(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_screen) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QScreen * arg1 = object(param_screen); + arg0->setScreen(arg1); +} + +void qt_QWidget_setShortcutAutoRepeat_void_QWidget_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_id, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_id); + bool arg2 = (bool)(param_enable); + arg0->setShortcutAutoRepeat(arg1, arg2); +} + +void qt_QWidget_setShortcutEnabled_void_QWidget_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_id, bool param_enable) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_id); + bool arg2 = (bool)(param_enable); + arg0->setShortcutEnabled(arg1, arg2); +} + +void qt_QWidget_setSizeIncrement_void_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_w, int param_h) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_w); + int arg2 = (int)(param_h); + arg0->setSizeIncrement(arg1, arg2); +} + +void qt_QWidget_setSizePolicy_void_QWidget_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_horizontal, int param_vertical) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QSizePolicy::Policy arg1 = (QSizePolicy::Policy)(param_horizontal); + QSizePolicy::Policy arg2 = (QSizePolicy::Policy)(param_vertical); + arg0->setSizePolicy(arg1, arg2); +} + +void qt_QWidget_setWindowFlag_void_QWidget_int_bool(Mu::Thread& NODE_THREAD, Pointer param_this, int param_flag, bool param_on) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + Qt::WindowType arg1 = (Qt::WindowType)(param_flag); + bool arg2 = (bool)(param_on); + arg0->setWindowFlag(arg1, arg2); +} + +void qt_QWidget_setWindowRole_void_QWidget_string(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_role) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QString arg1 = qstring(param_role); + arg0->setWindowRole(arg1); +} + +void qt_QWidget_setWindowState_void_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_windowState) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + Qt::WindowStates arg1 = (Qt::WindowStates)(param_windowState); + arg0->setWindowState(arg1); +} + +Pointer qt_QWidget_sizeHint_QSize_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return isMuQtObject(arg0) ? makeqtype(c,arg0->QWidget::sizeHint(),"qt.QSize") : makeqtype(c,arg0->sizeHint(),"qt.QSize"); +} + +void qt_QWidget_stackUnder_void_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_w) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QWidget * arg1 = object(param_w); + arg0->stackUnder(arg1); +} + +bool qt_QWidget_testAttribute_bool_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_attribute) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + Qt::WidgetAttribute arg1 = (Qt::WidgetAttribute)(param_attribute); + return arg0->testAttribute(arg1); +} + +bool qt_QWidget_underMouse_bool_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return arg0->underMouse(); +} + +void qt_QWidget_ungrabGesture_void_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_gesture) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + Qt::GestureType arg1 = (Qt::GestureType)(param_gesture); + arg0->ungrabGesture(arg1); +} + +void qt_QWidget_update_void_QWidget_int_int_int_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_x, int param_y, int param_w, int param_h) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + int arg1 = (int)(param_x); + int arg2 = (int)(param_y); + int arg3 = (int)(param_w); + int arg4 = (int)(param_h); + arg0->update(arg1, arg2, arg3, arg4); +} + +void qt_QWidget_update_void_QWidget_QRect(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rect) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QRect arg1 = getqtype(param_rect); + arg0->update(arg1); +} + +void qt_QWidget_update_void_QWidget_QRegion(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_rgn) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + const QRegion arg1 = getqtype(param_rgn); + arg0->update(arg1); +} + +void qt_QWidget_updateGeometry_void_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + arg0->updateGeometry(); +} + +Pointer qt_QWidget_visibleRegion_QRegion_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeqtype(c,arg0->visibleRegion(),"qt.QRegion"); +} + +Pointer qt_QWidget_window_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makeinstance(c, arg0->window(), "qt.QWidget"); +} + +Pointer qt_QWidget_windowRole_string_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return makestring(c,arg0->windowRole()); +} + +int qt_QWidget_windowState_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return int(arg0->windowState()); +} + +int qt_QWidget_windowType_int_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return int(arg0->windowType()); +} + +void qt_QWidget_changeEvent_void_QWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->changeEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->changeEvent_pub(arg1); +} + +void qt_QWidget_closeEvent_void_QWidget_QCloseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QCloseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->closeEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->closeEvent_pub(arg1); +} + +void qt_QWidget_contextMenuEvent_void_QWidget_QContextMenuEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QContextMenuEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->contextMenuEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->contextMenuEvent_pub(arg1); +} + +void qt_QWidget_destroy_void_QWidget_bool_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_destroyWindow, bool param_destroySubWindows) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + bool arg1 = (bool)(param_destroyWindow); + bool arg2 = (bool)(param_destroySubWindows); + ((MuQt_QWidget*)arg0)->destroy_pub(arg1, arg2); +} + +void qt_QWidget_dragEnterEvent_void_QWidget_QDragEnterEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QDragEnterEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->dragEnterEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->dragEnterEvent_pub(arg1); +} + +void qt_QWidget_dragLeaveEvent_void_QWidget_QDragLeaveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QDragLeaveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->dragLeaveEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->dragLeaveEvent_pub(arg1); +} + +void qt_QWidget_dragMoveEvent_void_QWidget_QDragMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QDragMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->dragMoveEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->dragMoveEvent_pub(arg1); +} + +void qt_QWidget_dropEvent_void_QWidget_QDropEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QDropEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->dropEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->dropEvent_pub(arg1); +} + +void qt_QWidget_focusInEvent_void_QWidget_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->focusInEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->focusInEvent_pub(arg1); +} + +bool qt_QWidget_focusNextChild_bool_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return ((MuQt_QWidget*)arg0)->focusNextChild_pub(); +} + +bool qt_QWidget_focusNextPrevChild_bool_QWidget_bool(Mu::Thread& NODE_THREAD, Pointer param_this, bool param_next) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + bool arg1 = (bool)(param_next); + return isMuQtObject(arg0) ? ((MuQt_QWidget*)arg0)->focusNextPrevChild_pub_parent(arg1) : ((MuQt_QWidget*)arg0)->focusNextPrevChild_pub(arg1); +} + +void qt_QWidget_focusOutEvent_void_QWidget_QFocusEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QFocusEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->focusOutEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->focusOutEvent_pub(arg1); +} + +bool qt_QWidget_focusPreviousChild_bool_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + return ((MuQt_QWidget*)arg0)->focusPreviousChild_pub(); +} + +void qt_QWidget_hideEvent_void_QWidget_QHideEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QHideEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->hideEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->hideEvent_pub(arg1); +} + +void qt_QWidget_keyPressEvent_void_QWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->keyPressEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->keyPressEvent_pub(arg1); +} + +void qt_QWidget_keyReleaseEvent_void_QWidget_QKeyEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QKeyEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->keyReleaseEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->keyReleaseEvent_pub(arg1); +} + +void qt_QWidget_leaveEvent_void_QWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->leaveEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->leaveEvent_pub(arg1); +} + +void qt_QWidget_mouseDoubleClickEvent_void_QWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->mouseDoubleClickEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->mouseDoubleClickEvent_pub(arg1); +} + +void qt_QWidget_mouseMoveEvent_void_QWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->mouseMoveEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->mouseMoveEvent_pub(arg1); +} + +void qt_QWidget_mousePressEvent_void_QWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->mousePressEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->mousePressEvent_pub(arg1); +} + +void qt_QWidget_mouseReleaseEvent_void_QWidget_QMouseEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QMouseEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->mouseReleaseEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->mouseReleaseEvent_pub(arg1); +} + +void qt_QWidget_moveEvent_void_QWidget_QMoveEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QMoveEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->moveEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->moveEvent_pub(arg1); +} + +void qt_QWidget_paintEvent_void_QWidget_QPaintEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QPaintEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->paintEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->paintEvent_pub(arg1); +} + +void qt_QWidget_resizeEvent_void_QWidget_QResizeEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QResizeEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->resizeEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->resizeEvent_pub(arg1); +} + +void qt_QWidget_showEvent_void_QWidget_QShowEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QShowEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->showEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->showEvent_pub(arg1); +} + +void qt_QWidget_tabletEvent_void_QWidget_QTabletEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QTabletEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->tabletEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->tabletEvent_pub(arg1); +} + +void qt_QWidget_wheelEvent_void_QWidget_QWheelEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QWheelEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->wheelEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->wheelEvent_pub(arg1); +} + +bool qt_QWidget_event_bool_QWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event_) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event_); + return isMuQtObject(arg0) ? ((MuQt_QWidget*)arg0)->event_pub_parent(arg1) : ((MuQt_QWidget*)arg0)->event_pub(arg1); +} + +int qt_QWidget_metric_int_QWidget_int(Mu::Thread& NODE_THREAD, Pointer param_this, int param_m) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QPaintDevice::PaintDeviceMetric arg1 = (QPaintDevice::PaintDeviceMetric)(param_m); + return isMuQtObject(arg0) ? ((MuQt_QWidget*)arg0)->metric_pub_parent(arg1) : ((MuQt_QWidget*)arg0)->metric_pub(arg1); +} + +bool qt_QWidget_eventFilter_bool_QWidget_QObject_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_watched, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QObject * arg1 = object(param_watched); + QEvent * arg2 = getqpointer(param_event); + return isMuQtObject(arg0) ? arg0->QWidget::eventFilter(arg1, arg2) : arg0->eventFilter(arg1, arg2); +} + +void qt_QWidget_customEvent_void_QWidget_QEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->customEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->customEvent_pub(arg1); +} + +void qt_QWidget_timerEvent_void_QWidget_QTimerEvent(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_event) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(param_this); + QTimerEvent * arg1 = getqpointer(param_event); + if (isMuQtObject(arg0)) ((MuQt_QWidget*)arg0)->timerEvent_pub_parent(arg1); + else ((MuQt_QWidget*)arg0)->timerEvent_pub(arg1); +} + +Pointer qt_QWidget_keyboardGrabber_QWidget(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QWidget::keyboardGrabber(), "qt.QWidget"); +} + +Pointer qt_QWidget_mouseGrabber_QWidget(Mu::Thread& NODE_THREAD) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + return makeinstance(c, QWidget::mouseGrabber(), "qt.QWidget"); +} + +void qt_QWidget_setTabOrder_void_QWidget_QWidget(Mu::Thread& NODE_THREAD, Pointer param_first, Pointer param_second) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg0 = object(param_first); + QWidget * arg1 = object(param_second); + QWidget::setTabOrder(arg0, arg1); +} + + +static NODE_IMPLEMENTATION(_n_QWidget0, Pointer) +{ + NODE_RETURN(qt_QWidget_QWidget_QWidget_QWidget_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_activateWindow0, void) +{ + qt_QWidget_activateWindow_void_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addAction0, void) +{ + qt_QWidget_addAction_void_QWidget_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_addAction1, Pointer) +{ + NODE_RETURN(qt_QWidget_addAction_QAction_QWidget_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addAction2, Pointer) +{ + NODE_RETURN(qt_QWidget_addAction_QAction_QWidget_QIcon_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addAction7, Pointer) +{ + NODE_RETURN(qt_QWidget_addAction_QAction_QWidget_string_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_addAction8, Pointer) +{ + NODE_RETURN(qt_QWidget_addAction_QAction_QWidget_QIcon_string_QKeySequence(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer), NODE_ARG(3, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_adjustSize0, void) +{ + qt_QWidget_adjustSize_void_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_backgroundRole0, int) +{ + NODE_RETURN(qt_QWidget_backgroundRole_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_childAt0, Pointer) +{ + NODE_RETURN(qt_QWidget_childAt_QWidget_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_childAt1, Pointer) +{ + NODE_RETURN(qt_QWidget_childAt_QWidget_QWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_clearFocus0, void) +{ + qt_QWidget_clearFocus_void_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_clearMask0, void) +{ + qt_QWidget_clearMask_void_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contentsMargins0, Pointer) +{ + NODE_RETURN(qt_QWidget_contentsMargins_QMargins_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_contentsRect0, Pointer) +{ + NODE_RETURN(qt_QWidget_contentsRect_QRect_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_ensurePolished0, void) +{ + qt_QWidget_ensurePolished_void_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusProxy0, Pointer) +{ + NODE_RETURN(qt_QWidget_focusProxy_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusWidget0, Pointer) +{ + NODE_RETURN(qt_QWidget_focusWidget_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_foregroundRole0, int) +{ + NODE_RETURN(qt_QWidget_foregroundRole_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_grab0, Pointer) +{ + NODE_RETURN(qt_QWidget_grab_QPixmap_QWidget_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_grabGesture0, void) +{ + qt_QWidget_grabGesture_void_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_grabKeyboard0, void) +{ + qt_QWidget_grabKeyboard_void_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_grabMouse0, void) +{ + qt_QWidget_grabMouse_void_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_grabMouse1, void) +{ + qt_QWidget_grabMouse_void_QWidget_QCursor(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_grabShortcut0, int) +{ + NODE_RETURN(qt_QWidget_grabShortcut_int_QWidget_QKeySequence_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(_n_hasHeightForWidth0, bool) +{ + NODE_RETURN(qt_QWidget_hasHeightForWidth_bool_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_heightForWidth0, int) +{ + NODE_RETURN(qt_QWidget_heightForWidth_int_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_inputMethodQuery0, Pointer) +{ + NODE_RETURN(qt_QWidget_inputMethodQuery_QVariant_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_insertAction0, void) +{ + qt_QWidget_insertAction_void_QWidget_QAction_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_isAncestorOf0, bool) +{ + NODE_RETURN(qt_QWidget_isAncestorOf_bool_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isEnabledTo0, bool) +{ + NODE_RETURN(qt_QWidget_isEnabledTo_bool_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isHidden0, bool) +{ + NODE_RETURN(qt_QWidget_isHidden_bool_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isVisibleTo0, bool) +{ + NODE_RETURN(qt_QWidget_isVisibleTo_bool_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_isWindow0, bool) +{ + NODE_RETURN(qt_QWidget_isWindow_bool_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_layout0, Pointer) +{ + NODE_RETURN(qt_QWidget_layout_QLayout_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapFrom0, Pointer) +{ + NODE_RETURN(qt_QWidget_mapFrom_QPointF_QWidget_QWidget_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapFrom1, Pointer) +{ + NODE_RETURN(qt_QWidget_mapFrom_QPoint_QWidget_QWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapFromGlobal0, Pointer) +{ + NODE_RETURN(qt_QWidget_mapFromGlobal_QPointF_QWidget_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapFromGlobal1, Pointer) +{ + NODE_RETURN(qt_QWidget_mapFromGlobal_QPoint_QWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapFromParent0, Pointer) +{ + NODE_RETURN(qt_QWidget_mapFromParent_QPointF_QWidget_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapFromParent1, Pointer) +{ + NODE_RETURN(qt_QWidget_mapFromParent_QPoint_QWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapTo0, Pointer) +{ + NODE_RETURN(qt_QWidget_mapTo_QPointF_QWidget_QWidget_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapTo1, Pointer) +{ + NODE_RETURN(qt_QWidget_mapTo_QPoint_QWidget_QWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapToGlobal0, Pointer) +{ + NODE_RETURN(qt_QWidget_mapToGlobal_QPointF_QWidget_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapToGlobal1, Pointer) +{ + NODE_RETURN(qt_QWidget_mapToGlobal_QPoint_QWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapToParent0, Pointer) +{ + NODE_RETURN(qt_QWidget_mapToParent_QPointF_QWidget_QPointF(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mapToParent1, Pointer) +{ + NODE_RETURN(qt_QWidget_mapToParent_QPoint_QWidget_QPoint(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_mask0, Pointer) +{ + NODE_RETURN(qt_QWidget_mask_QRegion_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_minimumSizeHint0, Pointer) +{ + NODE_RETURN(qt_QWidget_minimumSizeHint_QSize_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_move1, void) +{ + qt_QWidget_move_void_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_nativeParentWidget0, Pointer) +{ + NODE_RETURN(qt_QWidget_nativeParentWidget_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_nextInFocusChain0, Pointer) +{ + NODE_RETURN(qt_QWidget_nextInFocusChain_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_parentWidget0, Pointer) +{ + NODE_RETURN(qt_QWidget_parentWidget_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_previousInFocusChain0, Pointer) +{ + NODE_RETURN(qt_QWidget_previousInFocusChain_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_releaseKeyboard0, void) +{ + qt_QWidget_releaseKeyboard_void_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_releaseMouse0, void) +{ + qt_QWidget_releaseMouse_void_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_releaseShortcut0, void) +{ + qt_QWidget_releaseShortcut_void_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_removeAction0, void) +{ + qt_QWidget_removeAction_void_QWidget_QAction(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_repaint0, void) +{ + qt_QWidget_repaint_void_QWidget_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_repaint1, void) +{ + qt_QWidget_repaint_void_QWidget_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_repaint2, void) +{ + qt_QWidget_repaint_void_QWidget_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resize1, void) +{ + qt_QWidget_resize_void_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_restoreGeometry0, bool) +{ + NODE_RETURN(qt_QWidget_restoreGeometry_bool_QWidget_QByteArray(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_saveGeometry0, Pointer) +{ + NODE_RETURN(qt_QWidget_saveGeometry_QByteArray_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_screen0, Pointer) +{ + NODE_RETURN(qt_QWidget_screen_QScreen_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_scroll0, void) +{ + qt_QWidget_scroll_void_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_scroll1, void) +{ + qt_QWidget_scroll_void_QWidget_int_int_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setAttribute0, void) +{ + qt_QWidget_setAttribute_void_QWidget_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setBackgroundRole0, void) +{ + qt_QWidget_setBackgroundRole_void_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setBaseSize1, void) +{ + qt_QWidget_setBaseSize_void_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setFixedHeight0, void) +{ + qt_QWidget_setFixedHeight_void_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFixedSize0, void) +{ + qt_QWidget_setFixedSize_void_QWidget_QSize(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setFixedSize1, void) +{ + qt_QWidget_setFixedSize_void_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setFixedWidth0, void) +{ + qt_QWidget_setFixedWidth_void_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFocus0, void) +{ + qt_QWidget_setFocus_void_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setFocusProxy0, void) +{ + qt_QWidget_setFocusProxy_void_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setForegroundRole0, void) +{ + qt_QWidget_setForegroundRole_void_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_setGeometry1, void) +{ + qt_QWidget_setGeometry_void_QWidget_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_setLayout0, void) +{ + qt_QWidget_setLayout_void_QWidget_QLayout(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setMask0, void) +{ + qt_QWidget_setMask_void_QWidget_QBitmap(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setMask1, void) +{ + qt_QWidget_setMask_void_QWidget_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setMaximumSize1, void) +{ + qt_QWidget_setMaximumSize_void_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setMinimumSize1, void) +{ + qt_QWidget_setMinimumSize_void_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setParent0, void) +{ + qt_QWidget_setParent_void_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setParent1, void) +{ + qt_QWidget_setParent_void_QWidget_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setScreen0, void) +{ + qt_QWidget_setScreen_void_QWidget_QScreen(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setShortcutAutoRepeat0, void) +{ + qt_QWidget_setShortcutAutoRepeat_void_QWidget_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setShortcutEnabled0, void) +{ + qt_QWidget_setShortcutEnabled_void_QWidget_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setSizeIncrement1, void) +{ + qt_QWidget_setSizeIncrement_void_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setSizePolicy1, void) +{ + qt_QWidget_setSizePolicy_void_QWidget_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int)); +} + +static NODE_IMPLEMENTATION(_n_setWindowFlag0, void) +{ + qt_QWidget_setWindowFlag_void_QWidget_int_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_setWindowRole0, void) +{ + qt_QWidget_setWindowRole_void_QWidget_string(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_setWindowState0, void) +{ + qt_QWidget_setWindowState_void_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_sizeHint0, Pointer) +{ + NODE_RETURN(qt_QWidget_sizeHint_QSize_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_stackUnder0, void) +{ + qt_QWidget_stackUnder_void_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_testAttribute0, bool) +{ + NODE_RETURN(qt_QWidget_testAttribute_bool_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_underMouse0, bool) +{ + NODE_RETURN(qt_QWidget_underMouse_bool_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_ungrabGesture0, void) +{ + qt_QWidget_ungrabGesture_void_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int)); +} + +static NODE_IMPLEMENTATION(_n_update0, void) +{ + qt_QWidget_update_void_QWidget_int_int_int_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, int), NODE_ARG(4, int)); +} + +static NODE_IMPLEMENTATION(_n_update1, void) +{ + qt_QWidget_update_void_QWidget_QRect(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_update2, void) +{ + qt_QWidget_update_void_QWidget_QRegion(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_updateGeometry0, void) +{ + qt_QWidget_updateGeometry_void_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_visibleRegion0, Pointer) +{ + NODE_RETURN(qt_QWidget_visibleRegion_QRegion_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_window0, Pointer) +{ + NODE_RETURN(qt_QWidget_window_QWidget_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_windowRole0, Pointer) +{ + NODE_RETURN(qt_QWidget_windowRole_string_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_windowState0, int) +{ + NODE_RETURN(qt_QWidget_windowState_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_windowType0, int) +{ + NODE_RETURN(qt_QWidget_windowType_int_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_changeEvent0, void) +{ + qt_QWidget_changeEvent_void_QWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_closeEvent0, void) +{ + qt_QWidget_closeEvent_void_QWidget_QCloseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_contextMenuEvent0, void) +{ + qt_QWidget_contextMenuEvent_void_QWidget_QContextMenuEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_destroy0, void) +{ + qt_QWidget_destroy_void_QWidget_bool_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool), NODE_ARG(2, bool)); +} + +static NODE_IMPLEMENTATION(_n_dragEnterEvent0, void) +{ + qt_QWidget_dragEnterEvent_void_QWidget_QDragEnterEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragLeaveEvent0, void) +{ + qt_QWidget_dragLeaveEvent_void_QWidget_QDragLeaveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dragMoveEvent0, void) +{ + qt_QWidget_dragMoveEvent_void_QWidget_QDragMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_dropEvent0, void) +{ + qt_QWidget_dropEvent_void_QWidget_QDropEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusInEvent0, void) +{ + qt_QWidget_focusInEvent_void_QWidget_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusNextChild0, bool) +{ + NODE_RETURN(qt_QWidget_focusNextChild_bool_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_focusNextPrevChild0, bool) +{ + NODE_RETURN(qt_QWidget_focusNextPrevChild_bool_QWidget_bool(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, bool))); +} + +static NODE_IMPLEMENTATION(_n_focusOutEvent0, void) +{ + qt_QWidget_focusOutEvent_void_QWidget_QFocusEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_focusPreviousChild0, bool) +{ + NODE_RETURN(qt_QWidget_focusPreviousChild_bool_QWidget(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_hideEvent0, void) +{ + qt_QWidget_hideEvent_void_QWidget_QHideEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyPressEvent0, void) +{ + qt_QWidget_keyPressEvent_void_QWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyReleaseEvent0, void) +{ + qt_QWidget_keyReleaseEvent_void_QWidget_QKeyEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_leaveEvent0, void) +{ + qt_QWidget_leaveEvent_void_QWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseDoubleClickEvent0, void) +{ + qt_QWidget_mouseDoubleClickEvent_void_QWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseMoveEvent0, void) +{ + qt_QWidget_mouseMoveEvent_void_QWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mousePressEvent0, void) +{ + qt_QWidget_mousePressEvent_void_QWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_mouseReleaseEvent0, void) +{ + qt_QWidget_mouseReleaseEvent_void_QWidget_QMouseEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_moveEvent0, void) +{ + qt_QWidget_moveEvent_void_QWidget_QMoveEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_paintEvent0, void) +{ + qt_QWidget_paintEvent_void_QWidget_QPaintEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_resizeEvent0, void) +{ + qt_QWidget_resizeEvent_void_QWidget_QResizeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_showEvent0, void) +{ + qt_QWidget_showEvent_void_QWidget_QShowEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_tabletEvent0, void) +{ + qt_QWidget_tabletEvent_void_QWidget_QTabletEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_wheelEvent0, void) +{ + qt_QWidget_wheelEvent_void_QWidget_QWheelEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_event0, bool) +{ + NODE_RETURN(qt_QWidget_event_bool_QWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_metric0, int) +{ + NODE_RETURN(qt_QWidget_metric_int_QWidget_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int))); +} + +static NODE_IMPLEMENTATION(_n_eventFilter0, bool) +{ + NODE_RETURN(qt_QWidget_eventFilter_bool_QWidget_QObject_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_customEvent0, void) +{ + qt_QWidget_customEvent_void_QWidget_QEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_timerEvent0, void) +{ + qt_QWidget_timerEvent_void_QWidget_QTimerEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + +static NODE_IMPLEMENTATION(_n_keyboardGrabber0, Pointer) +{ + NODE_RETURN(qt_QWidget_keyboardGrabber_QWidget(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_mouseGrabber0, Pointer) +{ + NODE_RETURN(qt_QWidget_mouseGrabber_QWidget(NODE_THREAD)); +} + +static NODE_IMPLEMENTATION(_n_setTabOrder0, void) +{ + qt_QWidget_setTabOrder_void_QWidget_QWidget(NODE_THREAD, NODE_ARG(0, Pointer), NODE_ARG(1, Pointer)); +} + + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +static NODE_IMPLEMENTATION(_n_QWidget_windowFlags_int, int) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(NODE_ARG(0,Pointer)); + NODE_RETURN(arg0->windowFlags()); +} + +static NODE_IMPLEMENTATION(_n_QWidget_setWindowFlags_void_int, void) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(NODE_ARG(0,Pointer)); + arg0->setWindowFlags(Qt::WindowFlags(NODE_ARG(0, int))); +} + +void +QWidgetType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + + new Function(c, tn, castFromObject, Cast, + Compiled, QWidget_QWidget_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + +addSymbols( + // enums + // member functions + new Function(c, "QWidget", _n_QWidget0, None, Compiled, qt_QWidget_QWidget_QWidget_QWidget_QWidget_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "parent", "qt.QWidget"), new Param(c, "f", "int", Value((int)Qt::WindowFlags())), End), + // PROP: acceptDrops (bool; QWidget this) + // PROP: accessibleDescription (string; QWidget this) + // PROP: accessibleName (string; QWidget this) + // MISSING: actions ("QList"; QWidget this) + new Function(c, "activateWindow", _n_activateWindow0, None, Compiled, qt_QWidget_activateWindow_void_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "addAction", _n_addAction0, None, Compiled, qt_QWidget_addAction_void_QWidget_QAction, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "action", "qt.QAction"), End), + new Function(c, "addAction", _n_addAction1, None, Compiled, qt_QWidget_addAction_QAction_QWidget_string, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "text", "string"), End), + new Function(c, "addAction", _n_addAction2, None, Compiled, qt_QWidget_addAction_QAction_QWidget_QIcon_string, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), End), + // MISSING: addAction (QAction; QWidget this, string text, QObject receiver, "const char *" member, flags Qt::ConnectionType type) + // MISSING: addAction (QAction; QWidget this, QIcon icon, string text, QObject receiver, "const char *" member, flags Qt::ConnectionType type) + // MISSING: addAction (QAction; QWidget this, string text, "Args & & ..." args) + // MISSING: addAction (QAction; QWidget this, QIcon icon, string text, "Args & & ..." args) + new Function(c, "addAction", _n_addAction7, None, Compiled, qt_QWidget_addAction_QAction_QWidget_string_QKeySequence, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "text", "string"), new Param(c, "shortcut", "qt.QKeySequence"), End), + new Function(c, "addAction", _n_addAction8, None, Compiled, qt_QWidget_addAction_QAction_QWidget_QIcon_string_QKeySequence, Return, "qt.QAction", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "icon", "qt.QIcon"), new Param(c, "text", "string"), new Param(c, "shortcut", "qt.QKeySequence"), End), + // MISSING: addAction (QAction; QWidget this, string text, QKeySequence shortcut, QObject receiver, "const char *" member, flags Qt::ConnectionType type) + // MISSING: addAction (QAction; QWidget this, QIcon icon, string text, QKeySequence shortcut, QObject receiver, "const char *" member, flags Qt::ConnectionType type) + // MISSING: addAction (QAction; QWidget this, string text, QKeySequence shortcut, "Args & & ..." args) + // MISSING: addAction (QAction; QWidget this, QIcon icon, string text, QKeySequence shortcut, "Args & & ..." args) + // MISSING: addActions (void; QWidget this, "const QList &" actions) + new Function(c, "adjustSize", _n_adjustSize0, None, Compiled, qt_QWidget_adjustSize_void_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: autoFillBackground (bool; QWidget this) + new Function(c, "backgroundRole", _n_backgroundRole0, None, Compiled, qt_QWidget_backgroundRole_int_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QWidget"), End), + // MISSING: backingStore ("QBackingStore *"; QWidget this) + // PROP: baseSize (QSize; QWidget this) + new Function(c, "childAt", _n_childAt0, None, Compiled, qt_QWidget_childAt_QWidget_QWidget_int_int, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "childAt", _n_childAt1, None, Compiled, qt_QWidget_childAt_QWidget_QWidget_QPoint, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "p", "qt.QPoint"), End), + // PROP: childrenRect (QRect; QWidget this) + // PROP: childrenRegion (QRegion; QWidget this) + new Function(c, "clearFocus", _n_clearFocus0, None, Compiled, qt_QWidget_clearFocus_void_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "clearMask", _n_clearMask0, None, Compiled, qt_QWidget_clearMask_void_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "contentsMargins", _n_contentsMargins0, None, Compiled, qt_QWidget_contentsMargins_QMargins_QWidget, Return, "qt.QMargins", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "contentsRect", _n_contentsRect0, None, Compiled, qt_QWidget_contentsRect_QRect_QWidget, Return, "qt.QRect", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: contextMenuPolicy (flags Qt::ContextMenuPolicy; QWidget this) + // PROP: cursor (QCursor; QWidget this) + // MISSING: effectiveWinId ("WId"; QWidget this) + new Function(c, "ensurePolished", _n_ensurePolished0, None, Compiled, qt_QWidget_ensurePolished_void_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: focusPolicy (flags Qt::FocusPolicy; QWidget this) + new Function(c, "focusProxy", _n_focusProxy0, None, Compiled, qt_QWidget_focusProxy_QWidget_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "focusWidget", _n_focusWidget0, None, Compiled, qt_QWidget_focusWidget_QWidget_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: font (QFont; QWidget this) + // MISSING: fontInfo ("QFontInfo"; QWidget this) + // MISSING: fontMetrics ("QFontMetrics"; QWidget this) + new Function(c, "foregroundRole", _n_foregroundRole0, None, Compiled, qt_QWidget_foregroundRole_int_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: frameGeometry (QRect; QWidget this) + // PROP: frameSize (QSize; QWidget this) + // PROP: geometry (QRect; QWidget this) + new Function(c, "grab", _n_grab0, None, Compiled, qt_QWidget_grab_QPixmap_QWidget_QRect, Return, "qt.QPixmap", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "rectangle", "qt.QRect"), End), + new Function(c, "grabGesture", _n_grabGesture0, None, Compiled, qt_QWidget_grabGesture_void_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "gesture", "int"), new Param(c, "flags", "int", Value((int)Qt::GestureFlags())), End), + new Function(c, "grabKeyboard", _n_grabKeyboard0, None, Compiled, qt_QWidget_grabKeyboard_void_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "grabMouse", _n_grabMouse0, None, Compiled, qt_QWidget_grabMouse_void_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "grabMouse", _n_grabMouse1, None, Compiled, qt_QWidget_grabMouse_void_QWidget_QCursor, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "cursor", "qt.QCursor"), End), + new Function(c, "grabShortcut", _n_grabShortcut0, None, Compiled, qt_QWidget_grabShortcut_int_QWidget_QKeySequence_int, Return, "int", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "key", "qt.QKeySequence"), new Param(c, "context", "int", Value((int)Qt::WindowShortcut)), End), + // MISSING: graphicsEffect ("QGraphicsEffect *"; QWidget this) + // MISSING: graphicsProxyWidget ("QGraphicsProxyWidget *"; QWidget this) + // PROP: hasFocus (bool; QWidget this) + _func[0] = new MemberFunction(c, "hasHeightForWidth", _n_hasHeightForWidth0, None, Compiled, qt_QWidget_hasHeightForWidth_bool_QWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: hasMouseTracking (bool; QWidget this) + // PROP: hasTabletTracking (bool; QWidget this) + // PROP: height (int; QWidget this) + _func[1] = new MemberFunction(c, "heightForWidth", _n_heightForWidth0, None, Compiled, qt_QWidget_heightForWidth_int_QWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "w", "int"), End), + // PROP: inputMethodHints (flags Qt::InputMethodHints; QWidget this) + _func[2] = new MemberFunction(c, "inputMethodQuery", _n_inputMethodQuery0, None, Compiled, qt_QWidget_inputMethodQuery_QVariant_QWidget_int, Return, "qt.QVariant", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "query", "int"), End), + new Function(c, "insertAction", _n_insertAction0, None, Compiled, qt_QWidget_insertAction_void_QWidget_QAction_QAction, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "before", "qt.QAction"), new Param(c, "action", "qt.QAction"), End), + // MISSING: insertActions (void; QWidget this, QAction before, "const QList &" actions) + // PROP: isActiveWindow (bool; QWidget this) + new Function(c, "isAncestorOf", _n_isAncestorOf0, None, Compiled, qt_QWidget_isAncestorOf_bool_QWidget_QWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "child", "qt.QWidget"), End), + // PROP: isEnabled (bool; QWidget this) + new Function(c, "isEnabledTo", _n_isEnabledTo0, None, Compiled, qt_QWidget_isEnabledTo_bool_QWidget_QWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "ancestor", "qt.QWidget"), End), + // PROP: isFullScreen (bool; QWidget this) + new Function(c, "isHidden", _n_isHidden0, None, Compiled, qt_QWidget_isHidden_bool_QWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: isMaximized (bool; QWidget this) + // PROP: isMinimized (bool; QWidget this) + // PROP: isModal (bool; QWidget this) + // PROP: isVisible (bool; QWidget this) + new Function(c, "isVisibleTo", _n_isVisibleTo0, None, Compiled, qt_QWidget_isVisibleTo_bool_QWidget_QWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "ancestor", "qt.QWidget"), End), + new Function(c, "isWindow", _n_isWindow0, None, Compiled, qt_QWidget_isWindow_bool_QWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: isWindowModified (bool; QWidget this) + new Function(c, "layout", _n_layout0, None, Compiled, qt_QWidget_layout_QLayout_QWidget, Return, "qt.QLayout", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: layoutDirection (flags Qt::LayoutDirection; QWidget this) + // MISSING: locale ("QLocale"; QWidget this) + new Function(c, "mapFrom", _n_mapFrom0, None, Compiled, qt_QWidget_mapFrom_QPointF_QWidget_QWidget_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "parent", "qt.QWidget"), new Param(c, "pos", "qt.QPointF"), End), + new Function(c, "mapFrom", _n_mapFrom1, None, Compiled, qt_QWidget_mapFrom_QPoint_QWidget_QWidget_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "parent", "qt.QWidget"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "mapFromGlobal", _n_mapFromGlobal0, None, Compiled, qt_QWidget_mapFromGlobal_QPointF_QWidget_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "pos", "qt.QPointF"), End), + new Function(c, "mapFromGlobal", _n_mapFromGlobal1, None, Compiled, qt_QWidget_mapFromGlobal_QPoint_QWidget_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "mapFromParent", _n_mapFromParent0, None, Compiled, qt_QWidget_mapFromParent_QPointF_QWidget_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "pos", "qt.QPointF"), End), + new Function(c, "mapFromParent", _n_mapFromParent1, None, Compiled, qt_QWidget_mapFromParent_QPoint_QWidget_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "mapTo", _n_mapTo0, None, Compiled, qt_QWidget_mapTo_QPointF_QWidget_QWidget_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "parent", "qt.QWidget"), new Param(c, "pos", "qt.QPointF"), End), + new Function(c, "mapTo", _n_mapTo1, None, Compiled, qt_QWidget_mapTo_QPoint_QWidget_QWidget_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "parent", "qt.QWidget"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "mapToGlobal", _n_mapToGlobal0, None, Compiled, qt_QWidget_mapToGlobal_QPointF_QWidget_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "pos", "qt.QPointF"), End), + new Function(c, "mapToGlobal", _n_mapToGlobal1, None, Compiled, qt_QWidget_mapToGlobal_QPoint_QWidget_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "mapToParent", _n_mapToParent0, None, Compiled, qt_QWidget_mapToParent_QPointF_QWidget_QPointF, Return, "qt.QPointF", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "pos", "qt.QPointF"), End), + new Function(c, "mapToParent", _n_mapToParent1, None, Compiled, qt_QWidget_mapToParent_QPoint_QWidget_QPoint, Return, "qt.QPoint", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "pos", "qt.QPoint"), End), + new Function(c, "mask", _n_mask0, None, Compiled, qt_QWidget_mask_QRegion_QWidget, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: maximumHeight (int; QWidget this) + // PROP: maximumSize (QSize; QWidget this) + // PROP: maximumWidth (int; QWidget this) + // PROP: minimumHeight (int; QWidget this) + // PROP: minimumSize (QSize; QWidget this) + _func[3] = new MemberFunction(c, "minimumSizeHint", _n_minimumSizeHint0, None, Compiled, qt_QWidget_minimumSizeHint_QSize_QWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: minimumWidth (int; QWidget this) + // PROP: move (void; QWidget this, QPoint _p15) + new Function(c, "move", _n_move1, None, Compiled, qt_QWidget_move_void_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "x", "int"), new Param(c, "y", "int"), End), + new Function(c, "nativeParentWidget", _n_nativeParentWidget0, None, Compiled, qt_QWidget_nativeParentWidget_QWidget_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "nextInFocusChain", _n_nextInFocusChain0, None, Compiled, qt_QWidget_nextInFocusChain_QWidget_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: normalGeometry (QRect; QWidget this) + // PROP: palette (QPalette; QWidget this) + new Function(c, "parentWidget", _n_parentWidget0, None, Compiled, qt_QWidget_parentWidget_QWidget_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: pos (QPoint; QWidget this) + new Function(c, "previousInFocusChain", _n_previousInFocusChain0, None, Compiled, qt_QWidget_previousInFocusChain_QWidget_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: rect (QRect; QWidget this) + new Function(c, "releaseKeyboard", _n_releaseKeyboard0, None, Compiled, qt_QWidget_releaseKeyboard_void_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "releaseMouse", _n_releaseMouse0, None, Compiled, qt_QWidget_releaseMouse_void_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "releaseShortcut", _n_releaseShortcut0, None, Compiled, qt_QWidget_releaseShortcut_void_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "id", "int"), End), + new Function(c, "removeAction", _n_removeAction0, None, Compiled, qt_QWidget_removeAction_void_QWidget_QAction, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "action", "qt.QAction"), End), + new Function(c, "repaint", _n_repaint0, None, Compiled, qt_QWidget_repaint_void_QWidget_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "w", "int"), new Param(c, "h", "int"), End), + new Function(c, "repaint", _n_repaint1, None, Compiled, qt_QWidget_repaint_void_QWidget_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "rect", "qt.QRect"), End), + new Function(c, "repaint", _n_repaint2, None, Compiled, qt_QWidget_repaint_void_QWidget_QRegion, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "rgn", "qt.QRegion"), End), + // PROP: resize (void; QWidget this, QSize _p14) + new Function(c, "resize", _n_resize1, None, Compiled, qt_QWidget_resize_void_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "w", "int"), new Param(c, "h", "int"), End), + new Function(c, "restoreGeometry", _n_restoreGeometry0, None, Compiled, qt_QWidget_restoreGeometry_bool_QWidget_QByteArray, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "geometry", "qt.QByteArray"), End), + new Function(c, "saveGeometry", _n_saveGeometry0, None, Compiled, qt_QWidget_saveGeometry_QByteArray_QWidget, Return, "qt.QByteArray", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "screen", _n_screen0, None, Compiled, qt_QWidget_screen_QScreen_QWidget, Return, "qt.QScreen", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "scroll", _n_scroll0, None, Compiled, qt_QWidget_scroll_void_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), End), + new Function(c, "scroll", _n_scroll1, None, Compiled, qt_QWidget_scroll_void_QWidget_int_int_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "dx", "int"), new Param(c, "dy", "int"), new Param(c, "r", "qt.QRect"), End), + // PROP: setAcceptDrops (void; QWidget this, bool on) + // PROP: setAccessibleDescription (void; QWidget this, string description) + // PROP: setAccessibleName (void; QWidget this, string name) + new Function(c, "setAttribute", _n_setAttribute0, None, Compiled, qt_QWidget_setAttribute_void_QWidget_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "attribute", "int"), new Param(c, "on", "bool"), End), + // PROP: setAutoFillBackground (void; QWidget this, bool enabled) + new Function(c, "setBackgroundRole", _n_setBackgroundRole0, None, Compiled, qt_QWidget_setBackgroundRole_void_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "role", "int"), End), + // PROP: setBaseSize (void; QWidget this, QSize _p14) + new Function(c, "setBaseSize", _n_setBaseSize1, None, Compiled, qt_QWidget_setBaseSize_void_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "basew", "int"), new Param(c, "baseh", "int"), End), + // PROP: setContextMenuPolicy (void; QWidget this, flags Qt::ContextMenuPolicy policy) + // PROP: setCursor (void; QWidget this, QCursor _p16) + new Function(c, "setFixedHeight", _n_setFixedHeight0, None, Compiled, qt_QWidget_setFixedHeight_void_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "h", "int"), End), + new Function(c, "setFixedSize", _n_setFixedSize0, None, Compiled, qt_QWidget_setFixedSize_void_QWidget_QSize, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "s", "qt.QSize"), End), + new Function(c, "setFixedSize", _n_setFixedSize1, None, Compiled, qt_QWidget_setFixedSize_void_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "w", "int"), new Param(c, "h", "int"), End), + new Function(c, "setFixedWidth", _n_setFixedWidth0, None, Compiled, qt_QWidget_setFixedWidth_void_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "w", "int"), End), + new Function(c, "setFocus", _n_setFocus0, None, Compiled, qt_QWidget_setFocus_void_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "reason", "int"), End), + // PROP: setFocusPolicy (void; QWidget this, flags Qt::FocusPolicy policy) + new Function(c, "setFocusProxy", _n_setFocusProxy0, None, Compiled, qt_QWidget_setFocusProxy_void_QWidget_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "w", "qt.QWidget"), End), + // PROP: setFont (void; QWidget this, QFont _p14) + new Function(c, "setForegroundRole", _n_setForegroundRole0, None, Compiled, qt_QWidget_setForegroundRole_void_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "role", "int"), End), + // PROP: setGeometry (void; QWidget this, QRect _p14) + new Function(c, "setGeometry", _n_setGeometry1, None, Compiled, qt_QWidget_setGeometry_void_QWidget_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "w", "int"), new Param(c, "h", "int"), End), + // MISSING: setGraphicsEffect (void; QWidget this, "QGraphicsEffect *" effect) + // PROP: setInputMethodHints (void; QWidget this, flags Qt::InputMethodHints hints) + new Function(c, "setLayout", _n_setLayout0, None, Compiled, qt_QWidget_setLayout_void_QWidget_QLayout, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "layout", "qt.QLayout"), End), + // PROP: setLayoutDirection (void; QWidget this, flags Qt::LayoutDirection direction) + // MISSING: setLocale (void; QWidget this, "const QLocale &" locale) + new Function(c, "setMask", _n_setMask0, None, Compiled, qt_QWidget_setMask_void_QWidget_QBitmap, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "bitmap", "qt.QBitmap"), End), + new Function(c, "setMask", _n_setMask1, None, Compiled, qt_QWidget_setMask_void_QWidget_QRegion, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "region", "qt.QRegion"), End), + // PROP: setMaximumHeight (void; QWidget this, int maxh) + // PROP: setMaximumSize (void; QWidget this, QSize _p14) + new Function(c, "setMaximumSize", _n_setMaximumSize1, None, Compiled, qt_QWidget_setMaximumSize_void_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "maxw", "int"), new Param(c, "maxh", "int"), End), + // PROP: setMaximumWidth (void; QWidget this, int maxw) + // PROP: setMinimumHeight (void; QWidget this, int minh) + // PROP: setMinimumSize (void; QWidget this, QSize _p14) + new Function(c, "setMinimumSize", _n_setMinimumSize1, None, Compiled, qt_QWidget_setMinimumSize_void_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "minw", "int"), new Param(c, "minh", "int"), End), + // PROP: setMinimumWidth (void; QWidget this, int minw) + // PROP: setMouseTracking (void; QWidget this, bool enable) + // PROP: setPalette (void; QWidget this, QPalette _p17) + new Function(c, "setParent", _n_setParent0, None, Compiled, qt_QWidget_setParent_void_QWidget_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "parent", "qt.QWidget"), End), + new Function(c, "setParent", _n_setParent1, None, Compiled, qt_QWidget_setParent_void_QWidget_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "parent", "qt.QWidget"), new Param(c, "f", "int"), End), + new Function(c, "setScreen", _n_setScreen0, None, Compiled, qt_QWidget_setScreen_void_QWidget_QScreen, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "screen", "qt.QScreen"), End), + new Function(c, "setShortcutAutoRepeat", _n_setShortcutAutoRepeat0, None, Compiled, qt_QWidget_setShortcutAutoRepeat_void_QWidget_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "id", "int"), new Param(c, "enable", "bool"), End), + new Function(c, "setShortcutEnabled", _n_setShortcutEnabled0, None, Compiled, qt_QWidget_setShortcutEnabled_void_QWidget_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "id", "int"), new Param(c, "enable", "bool"), End), + // PROP: setSizeIncrement (void; QWidget this, QSize _p14) + new Function(c, "setSizeIncrement", _n_setSizeIncrement1, None, Compiled, qt_QWidget_setSizeIncrement_void_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "w", "int"), new Param(c, "h", "int"), End), + // MISSING: setSizePolicy (void; QWidget this, "QSizePolicy" _p11) + new Function(c, "setSizePolicy", _n_setSizePolicy1, None, Compiled, qt_QWidget_setSizePolicy_void_QWidget_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "horizontal", "int"), new Param(c, "vertical", "int"), End), + // PROP: setStatusTip (void; QWidget this, string _p16) + // MISSING: setStyle (void; QWidget this, "QStyle *" style) + // PROP: setTabletTracking (void; QWidget this, bool enable) + // PROP: setToolTip (void; QWidget this, string _p16) + // PROP: setToolTipDuration (void; QWidget this, int msec) + // PROP: setUpdatesEnabled (void; QWidget this, bool enable) + // PROP: setWhatsThis (void; QWidget this, string _p16) + // PROP: setWindowFilePath (void; QWidget this, string filePath) + new Function(c, "setWindowFlag", _n_setWindowFlag0, None, Compiled, qt_QWidget_setWindowFlag_void_QWidget_int_bool, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "flag", "int"), new Param(c, "on", "bool"), End), + // PROP: setWindowFlags (void; QWidget this, flags Qt::WindowFlags type) + // PROP: setWindowIcon (void; QWidget this, QIcon icon) + // PROP: setWindowModality (void; QWidget this, flags Qt::WindowModality windowModality) + // PROP: setWindowOpacity (void; QWidget this, double level) + new Function(c, "setWindowRole", _n_setWindowRole0, None, Compiled, qt_QWidget_setWindowRole_void_QWidget_string, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "role", "string"), End), + new Function(c, "setWindowState", _n_setWindowState0, None, Compiled, qt_QWidget_setWindowState_void_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "windowState", "int"), End), + // PROP: size (QSize; QWidget this) + _func[4] = new MemberFunction(c, "sizeHint", _n_sizeHint0, None, Compiled, qt_QWidget_sizeHint_QSize_QWidget, Return, "qt.QSize", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: sizeIncrement (QSize; QWidget this) + // MISSING: sizePolicy ("QSizePolicy"; QWidget this) + new Function(c, "stackUnder", _n_stackUnder0, None, Compiled, qt_QWidget_stackUnder_void_QWidget_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "w", "qt.QWidget"), End), + // PROP: statusTip (string; QWidget this) + // MISSING: style ("QStyle *"; QWidget this) + // PROP: styleSheet (string; QWidget this) + new Function(c, "testAttribute", _n_testAttribute0, None, Compiled, qt_QWidget_testAttribute_bool_QWidget_int, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "attribute", "int"), End), + // PROP: toolTip (string; QWidget this) + // PROP: toolTipDuration (int; QWidget this) + new Function(c, "underMouse", _n_underMouse0, None, Compiled, qt_QWidget_underMouse_bool_QWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "ungrabGesture", _n_ungrabGesture0, None, Compiled, qt_QWidget_ungrabGesture_void_QWidget_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "gesture", "int"), End), + // PROP: unsetCursor (void; QWidget this) + // PROP: unsetLayoutDirection (void; QWidget this) + // PROP: unsetLocale (void; QWidget this) + new Function(c, "update", _n_update0, None, Compiled, qt_QWidget_update_void_QWidget_int_int_int_int, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "x", "int"), new Param(c, "y", "int"), new Param(c, "w", "int"), new Param(c, "h", "int"), End), + new Function(c, "update", _n_update1, None, Compiled, qt_QWidget_update_void_QWidget_QRect, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "rect", "qt.QRect"), End), + new Function(c, "update", _n_update2, None, Compiled, qt_QWidget_update_void_QWidget_QRegion, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "rgn", "qt.QRegion"), End), + new Function(c, "updateGeometry", _n_updateGeometry0, None, Compiled, qt_QWidget_updateGeometry_void_QWidget, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: updatesEnabled (bool; QWidget this) + new Function(c, "visibleRegion", _n_visibleRegion0, None, Compiled, qt_QWidget_visibleRegion_QRegion_QWidget, Return, "qt.QRegion", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: whatsThis (string; QWidget this) + // PROP: width (int; QWidget this) + // MISSING: winId ("WId"; QWidget this) + new Function(c, "window", _n_window0, None, Compiled, qt_QWidget_window_QWidget_QWidget, Return, "qt.QWidget", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: windowFilePath (string; QWidget this) + // PROP: windowFlags (flags Qt::WindowFlags; QWidget this) + // MISSING: windowHandle ("QWindow *"; QWidget this) + // PROP: windowIcon (QIcon; QWidget this) + // PROP: windowModality (flags Qt::WindowModality; QWidget this) + // PROP: windowOpacity (double; QWidget this) + new Function(c, "windowRole", _n_windowRole0, None, Compiled, qt_QWidget_windowRole_string_QWidget, Return, "string", Parameters, new Param(c, "this", "qt.QWidget"), End), + new Function(c, "windowState", _n_windowState0, None, Compiled, qt_QWidget_windowState_int_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: windowTitle (string; QWidget this) + new Function(c, "windowType", _n_windowType0, None, Compiled, qt_QWidget_windowType_int_QWidget, Return, "int", Parameters, new Param(c, "this", "qt.QWidget"), End), + // PROP: x (int; QWidget this) + // PROP: y (int; QWidget this) + // MISSING: paintEngine ("QPaintEngine *"; QWidget this) + // MISSING: actionEvent (void; QWidget this, "QActionEvent *" event) // protected + _func[5] = new MemberFunction(c, "changeEvent", _n_changeEvent0, None, Compiled, qt_QWidget_changeEvent_void_QWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[6] = new MemberFunction(c, "closeEvent", _n_closeEvent0, None, Compiled, qt_QWidget_closeEvent_void_QWidget_QCloseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QCloseEvent"), End), + _func[7] = new MemberFunction(c, "contextMenuEvent", _n_contextMenuEvent0, None, Compiled, qt_QWidget_contextMenuEvent_void_QWidget_QContextMenuEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QContextMenuEvent"), End), + // MISSING: create (void; QWidget this, "WId" window, bool initializeWindow, bool destroyOldWindow) // protected + new Function(c, "destroy", _n_destroy0, None, Compiled, qt_QWidget_destroy_void_QWidget_bool_bool, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "destroyWindow", "bool"), new Param(c, "destroySubWindows", "bool"), End), + _func[8] = new MemberFunction(c, "dragEnterEvent", _n_dragEnterEvent0, None, Compiled, qt_QWidget_dragEnterEvent_void_QWidget_QDragEnterEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QDragEnterEvent"), End), + _func[9] = new MemberFunction(c, "dragLeaveEvent", _n_dragLeaveEvent0, None, Compiled, qt_QWidget_dragLeaveEvent_void_QWidget_QDragLeaveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QDragLeaveEvent"), End), + _func[10] = new MemberFunction(c, "dragMoveEvent", _n_dragMoveEvent0, None, Compiled, qt_QWidget_dragMoveEvent_void_QWidget_QDragMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QDragMoveEvent"), End), + _func[11] = new MemberFunction(c, "dropEvent", _n_dropEvent0, None, Compiled, qt_QWidget_dropEvent_void_QWidget_QDropEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QDropEvent"), End), + // MISSING: enterEvent (void; QWidget this, "QEnterEvent *" event) // protected + _func[12] = new MemberFunction(c, "focusInEvent", _n_focusInEvent0, None, Compiled, qt_QWidget_focusInEvent_void_QWidget_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QFocusEvent"), End), + new Function(c, "focusNextChild", _n_focusNextChild0, None, Compiled, qt_QWidget_focusNextChild_bool_QWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), End), + _func[13] = new MemberFunction(c, "focusNextPrevChild", _n_focusNextPrevChild0, None, Compiled, qt_QWidget_focusNextPrevChild_bool_QWidget_bool, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "next", "bool"), End), + _func[14] = new MemberFunction(c, "focusOutEvent", _n_focusOutEvent0, None, Compiled, qt_QWidget_focusOutEvent_void_QWidget_QFocusEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QFocusEvent"), End), + new Function(c, "focusPreviousChild", _n_focusPreviousChild0, None, Compiled, qt_QWidget_focusPreviousChild_bool_QWidget, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), End), + _func[15] = new MemberFunction(c, "hideEvent", _n_hideEvent0, None, Compiled, qt_QWidget_hideEvent_void_QWidget_QHideEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QHideEvent"), End), + // MISSING: inputMethodEvent (void; QWidget this, "QInputMethodEvent *" event) // protected + _func[16] = new MemberFunction(c, "keyPressEvent", _n_keyPressEvent0, None, Compiled, qt_QWidget_keyPressEvent_void_QWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[17] = new MemberFunction(c, "keyReleaseEvent", _n_keyReleaseEvent0, None, Compiled, qt_QWidget_keyReleaseEvent_void_QWidget_QKeyEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QKeyEvent"), End), + _func[18] = new MemberFunction(c, "leaveEvent", _n_leaveEvent0, None, Compiled, qt_QWidget_leaveEvent_void_QWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QEvent"), End), + _func[19] = new MemberFunction(c, "mouseDoubleClickEvent", _n_mouseDoubleClickEvent0, None, Compiled, qt_QWidget_mouseDoubleClickEvent_void_QWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[20] = new MemberFunction(c, "mouseMoveEvent", _n_mouseMoveEvent0, None, Compiled, qt_QWidget_mouseMoveEvent_void_QWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[21] = new MemberFunction(c, "mousePressEvent", _n_mousePressEvent0, None, Compiled, qt_QWidget_mousePressEvent_void_QWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[22] = new MemberFunction(c, "mouseReleaseEvent", _n_mouseReleaseEvent0, None, Compiled, qt_QWidget_mouseReleaseEvent_void_QWidget_QMouseEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QMouseEvent"), End), + _func[23] = new MemberFunction(c, "moveEvent", _n_moveEvent0, None, Compiled, qt_QWidget_moveEvent_void_QWidget_QMoveEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QMoveEvent"), End), + // MISSING: nativeEvent (bool; QWidget this, QByteArray eventType, "void *" message, "qintptr *" result) // protected + _func[24] = new MemberFunction(c, "paintEvent", _n_paintEvent0, None, Compiled, qt_QWidget_paintEvent_void_QWidget_QPaintEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QPaintEvent"), End), + _func[25] = new MemberFunction(c, "resizeEvent", _n_resizeEvent0, None, Compiled, qt_QWidget_resizeEvent_void_QWidget_QResizeEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QResizeEvent"), End), + _func[26] = new MemberFunction(c, "showEvent", _n_showEvent0, None, Compiled, qt_QWidget_showEvent_void_QWidget_QShowEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QShowEvent"), End), + _func[27] = new MemberFunction(c, "tabletEvent", _n_tabletEvent0, None, Compiled, qt_QWidget_tabletEvent_void_QWidget_QTabletEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QTabletEvent"), End), + _func[28] = new MemberFunction(c, "wheelEvent", _n_wheelEvent0, None, Compiled, qt_QWidget_wheelEvent_void_QWidget_QWheelEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QWheelEvent"), End), + _func[29] = new MemberFunction(c, "event", _n_event0, None, Compiled, qt_QWidget_event_bool_QWidget_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event_", "qt.QEvent"), End), + // MISSING: initPainter (void; QWidget this, "QPainter *" painter) // protected + _func[30] = new MemberFunction(c, "metric", _n_metric0, None, Compiled, qt_QWidget_metric_int_QWidget_int, Return, "int", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "m", "int"), End), + _func[31] = new MemberFunction(c, "eventFilter", _n_eventFilter0, None, Compiled, qt_QWidget_eventFilter_bool_QWidget_QObject_QEvent, Return, "bool", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "watched", "qt.QObject"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: metaObject ("const QMetaObject *"; QWidget this) + // MISSING: childEvent (void; QWidget this, "QChildEvent *" event) // protected + // MISSING: connectNotify (void; QWidget this, "const QMetaMethod &" signal) // protected + _func[32] = new MemberFunction(c, "customEvent", _n_customEvent0, None, Compiled, qt_QWidget_customEvent_void_QWidget_QEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QEvent"), End), + // MISSING: disconnectNotify (void; QWidget this, "const QMetaMethod &" signal) // protected + _func[33] = new MemberFunction(c, "timerEvent", _n_timerEvent0, None, Compiled, qt_QWidget_timerEvent_void_QWidget_QTimerEvent, Return, "void", Parameters, new Param(c, "this", "qt.QWidget"), new Param(c, "event", "qt.QTimerEvent"), End), + // static functions + // MISSING: createWindowContainer (QWidget; "QWindow *" window, QWidget parent, flags Qt::WindowFlags flags) + // MISSING: find (QWidget; "WId" id) + new Function(c, "keyboardGrabber", _n_keyboardGrabber0, None, Compiled, qt_QWidget_keyboardGrabber_QWidget, Return, "qt.QWidget", End), + new Function(c, "mouseGrabber", _n_mouseGrabber0, None, Compiled, qt_QWidget_mouseGrabber_QWidget, Return, "qt.QWidget", End), + new Function(c, "setTabOrder", _n_setTabOrder0, None, Compiled, qt_QWidget_setTabOrder_void_QWidget_QWidget, Return, "void", Parameters, new Param(c, "first", "qt.QWidget"), new Param(c, "second", "qt.QWidget"), End), + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// +// For some reason the window flags is not showing up in the +// metaObject system. +// + +c->arrayType(c->stringType(), 1, 0); +Context::TypeVector ttypes(4); +ttypes[0] = c->intType(); +ttypes[1] = ttypes[0]; +ttypes[2] = ttypes[0]; +ttypes[3] = ttypes[0]; +c->tupleType(ttypes); + +addSymbols( + + new Function(c, "windowFlags", _n_QWidget_windowFlags_int, None, + Return, "int", + Parameters, + new Param(c, "this", "qt.QWidget"), + End), + + new Function(c, "setWindowFlags", _n_QWidget_setWindowFlags_void_int, None, + Return, "void", + Parameters, + new Param(c, "this", "qt.QWidget"), + new Param(c, "windowFlags", "int"), + End), + + EndArguments); + + const char* propExclusions[] = {"minimumSizeHint", "sizeHint", "setVisible", 0}; + + populate(this, QWidget::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QWindowStateChangeEventType.cpp b/src/lib/mu/MuQt6/QWindowStateChangeEventType.cpp new file mode 100644 index 000000000..a78dc612e --- /dev/null +++ b/src/lib/mu/MuQt6/QWindowStateChangeEventType.cpp @@ -0,0 +1,118 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +QWindowStateChangeEventType::QWindowStateChangeEventType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QWindowStateChangeEventType::~QWindowStateChangeEventType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +int qt_QWindowStateChangeEvent_oldState_int_QWindowStateChangeEvent(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWindowStateChangeEvent * arg0 = getqpointer(param_this); + return int(arg0->oldState()); +} + + +static NODE_IMPLEMENTATION(_n_oldState0, int) +{ + NODE_RETURN(qt_QWindowStateChangeEvent_oldState_int_QWindowStateChangeEvent(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + + + +void +QWindowStateChangeEventType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + +addSymbols( + EndArguments); + +addSymbols( + // enums + // member functions + new Function(c, "oldState", _n_oldState0, None, Compiled, qt_QWindowStateChangeEvent_oldState_int_QWindowStateChangeEvent, Return, "int", Parameters, new Param(c, "this", "qt.QWindowStateChangeEvent"), End), + // static functions + EndArguments); +globalScope()->addSymbols( + EndArguments); +scope()->addSymbols( + EndArguments); + +} + +} // Mu diff --git a/src/lib/mu/MuQt6/QtColorTriangleType.cpp b/src/lib/mu/MuQt6/QtColorTriangleType.cpp new file mode 100644 index 000000000..27d983f5e --- /dev/null +++ b/src/lib/mu/MuQt6/QtColorTriangleType.cpp @@ -0,0 +1,146 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// +// NOTE: this file was automatically generated by qt2mu.py +// + +namespace Mu { +using namespace std; + +QtColorTriangleType::QtColorTriangleType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +QtColorTriangleType::~QtColorTriangleType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +QtColorTriangle_QtColorTriangle_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (QtColorTriangle* w = object(widget)) + { + QtColorTriangleType* type = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QtColorTriangle"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( QtColorTriangle_QtColorTriangle_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +Pointer QtColorTriangle_QtColorTriangle_QtColorTriangle_QWidget(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_parent) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget * arg1 = object(param_parent); + setobject(param_this, new QtColorTriangle(arg1)); + return param_this; +} + +static NODE_IMPLEMENTATION(_n_QtColorTriangle0, Pointer) +{ + NODE_RETURN(QtColorTriangle_QtColorTriangle_QtColorTriangle_QWidget(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer))); +} + +void +QtColorTriangleType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new Function(c, tn, castFromObject, Cast, + Compiled, QtColorTriangle_QtColorTriangle_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + + addSymbols( + new Function(c, "QtColorTriangle", _n_QtColorTriangle0, None, + Compiled, QtColorTriangle_QtColorTriangle_QtColorTriangle_QWidget, + Return, "qt.QtColorTriangle", + Parameters, + new Param(c, "this", "qt.QtColorTriangle"), + new Param(c, "parent", "qt.QWidget"), + End), + +#if 0 + new Function(c, "color", _n_color, None, + Compiled, QtColorTriangle_color_QtColorTriangle, + Return, "qt.QColor", + Parameters, + new Parameters +#endif + + EndArguments ); + + populate(this, QtColorTriangle::staticMetaObject); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/README b/src/lib/mu/MuQt6/README new file mode 100644 index 000000000..067f22049 --- /dev/null +++ b/src/lib/mu/MuQt6/README @@ -0,0 +1,115 @@ + +Overview +-------- + +The script qtXX_to_mu.py where XX is the qt version, converts Qt +documentation into a Mu API in two steps: + + 1) The docs are scanned and parsed into structures which describe the + API in terms of functions and classes. This is usually dumped to a + python pickle file (.p file). + + 2) The parsed structures are then converted into C++ files and headers + using files in the templates and handrolled directories. This + results in a C++ native Mu module which can be loaded at runtime. + +Right now steps 1 and 2 are both implemented in the same script, but they +could just as well be implemented separately. + +The script *does not* convert properties or slots to C++ +code. Instead, these are automatically generated at runtime by +Bridge.cpp using the Qt MetaObject system. This makes it possible to +MuQt to pick up slots and props for objects it doesn't know about at +compile time. + +Probably the biggest digression from the C++ usage is the fact that +the connect() C++ function is not a member in Mu (its global) and that +any arbitrary function in Mu can be "connected" to a Qt signal if the +signatures match. This is achieved by overloading the QSignalSpy class +and unfortunately requires hacking some of its internals. The upside +is more flexible event handling in Mu than in C++. + +The wrapping attempts to make it possible to use Qt in almost the same way +it is used in C++. So for example, the Mu user should be able to inherit +from a Qt class and implement behavior in a similar fashion to the C++ +user. + +In order to allow inheritance, the wrapper generates a "MuQt" class +for each Qt class which the user can inherit from. This class bridges +Mu to C++ at runtime. So for every instance of a MuQt class in C++ +there will be a corresponding Mu class instance which is the Mu +interface to the Qt class. + +No Q_OBJECT so no moc files +--------------------------- + +We're not declaring MuQt_* classes with Q_OBJECT. This is on purpose: we +don't want Qt to have access to our derived "controller" classes. The MuQt +objects need to live outside of the Qt ecosystem and shuffle data in/out +of it. + +Getting around Microsoft name mangling +-------------------------------------- + +Each MuQt class has a _pub and _pub_parent inline version of all protected +class functions. The _pub version simply allows code to call the protected +version from the outside. The _pub_parent version does the same thing, but +explicitly calls the "parent" (i.e. the actual Qt class) version. This is +necessary because some compilers (microsoft's) mangle the access permission +into the symbol name so you can't just #undef protected to call these from +the outside. In cases where the pub and pub_parent functions need to be +called the class pointer is cast to the corresponding MuQt object in order +to get access to that function. This is a dubious way to do this since in +some cases the object really isnt an ancestor of MuQt object being cast +to. But since the MuQt object is a linear descendant the vtables, etc, +should all work out so that its "safe" to make this call. Basically this +whole mess exists this in order to allow calling protected functions +outside of the class without using #undef protected. So from the user's +perspective, it allows you do do things like: + +class: MyView : QTreeView +{ + ... + + method: dragEnterEvent (void; QDragEnterEvent event) + { + QAbstractItemView.dragEnterEvent(this, event); + } +} + +from you derived class in Mu. In this case for example internally all we +know is that "this" is a QAbstractItemView. The actual controller class is +a MuQt_QTreeView, but in QAbstractItemView its cast to a +MuQt_QAbstractItemView in order to call its dragEnterEvent_pub_parent() +function. Becase the class hierarchy is actually + + QAbstractItemView->QTreeView->MuQt_QTreeView + +The vtable ording is identical. + + +Finalization +------------ + +Finalization is tricky because the timing must be correct. Its +preferable to delete the underlying Qt object first and then have the +Mu object expire. However, it may be necessary to enforce this in the +app in some cases if the MuQt objects are part of a larger C++ Qt +hierarchy. The library will not delete QObjects directly currently. + + +TODO +---- + + finalizers for Qt reference counted types ONLY (right now its on all + primitive types) + + implement operator functions + + QString class which can be converted back and forth to string + + QFileInfo is causing problems because of QFile semantics + + + + diff --git a/src/lib/mu/MuQt6/RvNetworkAccessManager.cpp b/src/lib/mu/MuQt6/RvNetworkAccessManager.cpp new file mode 100644 index 000000000..75a4d5d2b --- /dev/null +++ b/src/lib/mu/MuQt6/RvNetworkAccessManager.cpp @@ -0,0 +1,120 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +#include + +#include +#include +#include +#include + +#include + +using namespace std; + +static bool printErrors = false; + +RvNetworkAccessManager::RvNetworkAccessManager(QObject* parent) : QNetworkAccessManager(parent) +{ + connect (this, SIGNAL (authenticationRequired (QNetworkReply*, QAuthenticator*)), + this, SLOT (authenticationRequiredManagerSlot (QNetworkReply*, QAuthenticator*))); + connect (this, SIGNAL (sslErrors (QNetworkReply*, QList)), + this, SLOT (sslErrorsManagerSlot (QNetworkReply*, QList))); + + printErrors = (0 != getenv ("RV_REPORT_QNETWORK_ERRORS")); + + if (printErrors) + { + connect (this, SIGNAL (finished (QNetworkReply*)), + this, SLOT (finishedManagerSlot (QNetworkReply*))); + } +} + +void +RvNetworkAccessManager::sslErrorsManagerSlot (QNetworkReply* reply, QList errors) +{ + reply->ignoreSslErrors(); + + if (printErrors) + { + foreach (QSslError err, errors) + { + cerr << "WARNING: manager SSL error: " << err.errorString().toStdString() << endl; + cerr << "WARNING: from URL '" << reply->url().toString().toStdString() << "'" << endl; + } + } +} + +void +RvNetworkAccessManager::authenticationRequiredManagerSlot (QNetworkReply* reply, QAuthenticator* auth) +{ + if (printErrors) cerr << "WARNING: authentication required from URL '" << reply->url().toString().toStdString() << "'" << endl; +} + +void +RvNetworkAccessManager::finishedManagerSlot (QNetworkReply* reply) +{ + if (printErrors) + { + if (reply->error() != QNetworkReply::NoError) + { + cerr << "ERROR: manager http error '" << reply->errorString().toStdString() << "'" << endl; + cerr << "ERROR: from URL '" << reply->url().toString().toStdString() << "'" << endl; + } + } +} + +void +RvNetworkAccessManager::errorReplySlot (QNetworkReply::NetworkError error) +{ + cerr << "ERROR: NetworkAccessManager: http reply error #" << error << endl; +} + +void +RvNetworkAccessManager::sslErrorsReplySlot (QList errors) +{ + foreach (QSslError err, errors) + { + cerr << "WARNING: reply SSL error: " << err.errorString().toStdString() << endl; + } +} + +QNetworkReply* +RvNetworkAccessManager::createRequest( + QNetworkAccessManager::Operation operation, + const QNetworkRequest& request, + QIODevice* device) +{ + // + // Cast away const-ness so we can modify request + // + // When we do this for real, we'll set various things in user-agent header, + // including: + // + // protocol version + // RV product and version + // licensing status: licensed through shotgrid, or not + // + // QNetworkRequest* r = (QNetworkRequest*) &request; + // r->setRawHeader("User-Agent", "blah"); + + QNetworkReply* reply = QNetworkAccessManager::createRequest (operation, request, device); + + // + // We only get these signals to print errors, so don't even connect unless + // we're printing errors. + // + if (printErrors) + { + connect(reply, SIGNAL (error (QNetworkReply::NetworkError)), + this, SLOT (errorReplySlot (QNetworkReply::NetworkError))); + connect(reply, SIGNAL (sslErrors (QList)), + this, SLOT (sslErrorsReplySlot (QList))); + } + + return reply; +} + diff --git a/src/lib/mu/MuQt6/SignalSpy.cpp b/src/lib/mu/MuQt6/SignalSpy.cpp new file mode 100644 index 000000000..f654470b6 --- /dev/null +++ b/src/lib/mu/MuQt6/SignalSpy.cpp @@ -0,0 +1,289 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// +// Defining WIN32_LEAN_AND_MEAN +// prevents msvc redefinition errors/warnings between +// windows.h and winsock headers. +// +#ifdef PLATFORM_WINDOWS +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +//#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#define private public +#include +#undef private + +namespace Mu { +using namespace std; + +SignalSpy::SignalSpy(QObject* o, + const char* sig, + const Function* F, + Process* p) + : QSignalSpy(o, sig), + _F(F), + _process(p), + _env(p->callEnv()) +{ + const MuLangContext* c = static_cast(p->context()); + _argTypes.resize(F->numArgs()); + + const Class* otype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QObject"), false); + + const Class* ptype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QPoint"), false); + + const Class* twtype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTreeWidgetItem"), false); + + const Class* tbtype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QTableWidgetItem"), false); + + const Class* lwtype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QListWidgetItem"), false); + + const Class* sitype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QStandardItem"), false); + + const Class* mitype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QModelIndex"), false); + + const Class* istype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QItemSelection"), false); + + const Class* ctype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QColor"), false); + + const Class* utype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QUrl"), false); + + const Class* vtype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QVariant"), false); + + for (size_t i = 0; i < _argTypes.size(); i++) + { + if (F->argType(i) == c->intType()) _argTypes[i] = IntArg; + else if (F->argType(i) == c->stringType()) _argTypes[i] = StringArg; + else if (F->argType(i) == c->boolType()) _argTypes[i] = BoolArg; + else if (F->argType(i) == ctype) _argTypes[i] = ColorArg; + else if (const Class* c = dynamic_cast(F->argType(i))) + { + if (c == ptype) _argTypes[i] = PointArg; + else if (c == twtype) _argTypes[i] = TreeItemArg; + else if (c == tbtype) _argTypes[i] = TableItemArg; + else if (c == lwtype) _argTypes[i] = ListItemArg; + else if (c == sitype) _argTypes[i] = StandardItemArg; + else if (c == mitype) _argTypes[i] = ModelIndexArg; + else if (c == istype) _argTypes[i] = ItemSelectionArg; + else if (c == utype) _argTypes[i] = UrlArg; + else if (c == vtype) _argTypes[i] = VariantArg; + else if (c->isA(otype)) _argTypes[i] = ObjectArg; + else + { + _argTypes[i] = UnknownArg; + } + } + else + { + _argTypes[i] = UnknownArg; + } + + if (_argTypes[i] == UnknownArg) + { + cout << "WARNING: " << sig << " not translated correctly" << endl; + } + } +} + +SignalSpy::~SignalSpy() +{ + _F = 0; +} + +int SignalSpy::qt_metacall(QMetaObject::Call call, int methodId, void **a) +{ + if (call == QMetaObject::InvokeMetaMethod) + { + Function::ArgumentVector args(_argTypes.size()); + const MuLangContext* c = static_cast(_F->context()); + bool failed = false; + + for (size_t i = 0; i < _argTypes.size(); i++) + { + //QMetaType type = QMetaType(this->args.at(i)); + //cout << "type = " << QMetaType::typeName(type) << endl; + + switch (_argTypes[i]) + { + case IntArg: + args[i]._int = *reinterpret_cast(a[i+1]); + break; + + case BoolArg: + args[i]._bool = *reinterpret_cast(a[i+1]); + break; + + case StringArg: + { + QString* s = reinterpret_cast(a[i+1]); + args[i]._Pointer = c->stringType()->allocate(s->toUtf8().constData()); + } + break; + + case ObjectArg: + { + QObject** o = reinterpret_cast(a[i+1]); + args[i]._Pointer = makeinstance((QObjectType*)_F->argType(i), *o); + } + break; + + case ColorArg: + { + QColor* o = reinterpret_cast(a[i+1]); + args[i]._Pointer = makeqtype((Class*)_F->argType(i), *o); + } + break; + + case UrlArg: + { + QUrl* o = reinterpret_cast(a[i+1]); + args[i]._Pointer = makeqtype((Class*)_F->argType(i), *o); + } + break; + + case VariantArg: + { + QVariant* v = reinterpret_cast(a[i+1]); + args[i]._Pointer = makeqtype((Class*)_F->argType(i), *v); + } + break; + + case PointArg: + { + QPoint* o = reinterpret_cast(a[i+1]); + args[i]._Pointer = makeqtype((Class*)_F->argType(i), *o); + } + break; + + case TreeItemArg: + { + QMetaType type = QMetaType(this->args.at(i)); + QVariant v(type, a[i+1]); + QTreeWidgetItem* o = v.value(); + args[i]._Pointer = !o ? NULL : + makeqpointer((QTreeWidgetItemType*)_F->argType(i), o); + } + break; + + case TableItemArg: + { + QMetaType type = QMetaType(this->args.at(i)); + QVariant v(type, a[i+1]); + QTableWidgetItem* o = v.value(); + args[i]._Pointer = !o ? NULL : + makeqpointer((QTableWidgetItemType*)_F->argType(i), o); + } + break; + + case ListItemArg: + { + QMetaType type = QMetaType(this->args.at(i)); + QVariant v(type, a[i+1]); + QListWidgetItem* o = v.value(); + args[i]._Pointer = !o ? NULL : + makeqpointer((QListWidgetItemType*)_F->argType(i), o); + } + break; + + case StandardItemArg: + { + QMetaType type = QMetaType(this->args.at(i)); + QVariant v(type, a[i+1]); + QStandardItem* o = v.value(); + args[i]._Pointer = !o ? NULL : + makeqpointer((QStandardItemType*)_F->argType(i), o); + } + break; + + case ModelIndexArg: + { + QMetaType type = QMetaType(this->args.at(i)); + QVariant v(type, a[i+1]); + QModelIndex o = v.value(); + args[i]._Pointer = makeqtype((Context*)c,o,"qt.QModelIndex"); + } + break; + + case ItemSelectionArg: + { + QMetaType type = QMetaType(this->args.at(i)); + QVariant v(type, a[i+1]); + QItemSelection o = v.value(); + args[i]._Pointer = makeqtype((Context*)c,o,"qt.QItemSelection"); + } + break; + + default: + failed = true; + cout << "SignalSpy::qt_metacall: don't know type: " + << _argTypes[i] + << endl; + break; + } + } + + if (failed) return methodId; + + if (_env) + { + _env->call(_F, args); + } + else + { + Thread* thread = _process->newApplicationThread(); + _process->call(thread, _F, args); + _process->releaseApplicationThread(thread); + } + } + + return methodId; +} + +// hijack qt_metacall by using a filtered version of the moc file +// that has the function renamed to original_qt_metacall +#include +} // Mu diff --git a/src/lib/mu/MuQt6/command.md b/src/lib/mu/MuQt6/command.md new file mode 100644 index 000000000..ede303cf1 --- /dev/null +++ b/src/lib/mu/MuQt6/command.md @@ -0,0 +1,179 @@ +python2 ./qt6_to_mu.py -o -v -mu -module -stdout -other -rawclass -demoted -f \ +QStringConverter \ +QWidgetItem \ +QSpacerItem \ +QMatrix4x4 \ +QGenericMatrix \ +QScreen \ +QRegularExpression \ +QStackedLayout \ +QColor \ +QSize \ +QPoint \ +QPointF \ +QRect \ +QRectF \ +QFont \ +QKeySequence \ +QIcon \ +QRegion \ +QVariant \ +QUrl \ +QUrlQuery \ +QDateTime \ +QTime \ +QDate \ +QByteArray \ +QModelIndex \ +QObject \ +QLayoutItem \ +QPaintDevice \ +QTextCursor \ +QTextOption \ +QTextBlock \ +QMargins \ +QStandardItem \ +QListWidgetItem \ +QTreeWidgetItem \ +QTableWidgetItem \ +QProcessEnvironment \ +QFileInfo \ +QDir \ +QHostAddress \ +QHostInfo \ +QItemSelectionRange \ +QItemSelection \ +QGradient \ +QBrush \ +QTransform \ +QPalette \ +QEvent \ +QTextStream \ +QNetworkCookie \ +QCursor \ +QWebEngineSettings \ +QWebEngineHistory \ +QFocusEvent \ +QTimer \ +QWebChannel \ +QPaintEvent \ +QIODevice \ +QCompleter \ +QHelpEvent \ +QQuickItem \ +QItemSelectionModel \ +QClipboard \ +QTimerEvent \ +QConicalGradient \ +QJSEngine \ +QPixmap \ +QTextDocument \ +QTcpServer \ +QRadialGradient \ +QEventLoop \ +QWebEnginePage \ +QWebEngineCookieStore \ +QWebEngineProfile \ +QGestureEvent \ +QQmlContext \ +QMimeData \ +QButtonGroup \ +QActionGroup \ +QWindowStateChangeEvent \ +QLinearGradient \ +QDropEvent \ +QHideEvent \ +QResizeEvent \ +QAbstractItemModel \ +QMoveEvent \ +QNetworkAccessManager \ +QImage \ +QDragLeaveEvent \ +QLayout \ +QShortcutEvent \ +QCloseEvent \ +QNetworkCookieJar \ +QCoreApplication \ +QFileOpenEvent \ +QWidget \ +QShowEvent \ +QAction \ +QInputEvent \ +QStandardItemModel \ +QToolBar \ +QGridLayout \ +QContextMenuEvent \ +QProcess \ +QQmlEngine \ +QWheelEvent \ +QBoxLayout \ +QHoverEvent \ +QSvgWidget \ +QAbstractButton \ +QTabBar \ +QStatusBar \ +QQuickWidget \ +QLocalSocket \ +QTabletEvent \ +QKeyEvent \ +QFormLayout \ +QTabWidget \ +QMouseEvent \ +QLineEdit \ +QMainWindow \ +QDragMoveEvent \ +QAbstractListModel \ +QAbstractSocket \ +QBitmap \ +QMenu \ +QMenuBar \ +QComboBox \ +QFrame \ +QWebEngineView \ +QAbstractSlider \ +QGroupBox \ +QGuiApplication \ +QAbstractSpinBox \ +QProgressBar \ +QAbstractTableModel \ +QDockWidget \ +QNetworkReply \ +QDialog \ +QFileDevice \ +QWidgetAction \ +QHBoxLayout \ +QColorDialog \ +QCheckBox \ +QApplication \ +QTcpSocket \ +QSpinBox \ +QToolButton \ +QPushButton \ +QQmlApplicationEngine \ +QUdpSocket \ +QDial \ +QFileDialog \ +QSlider \ +QSplitter \ +QStackedWidget \ +QVBoxLayout \ +QRadioButton \ +QLabel \ +QToolBox \ +QAbstractScrollArea \ +QFile \ +QDragEnterEvent \ +QInputDialog \ +QScrollArea \ +QTextEdit \ +QPlainTextEdit \ +QAbstractItemView \ +QTableView \ +QTextBrowser \ +QHeaderView \ +QListView \ +QTreeView \ +QColumnView \ +QListWidget \ +QTreeWidget \ +QTableWidget > ced.log 2>&1 \ No newline at end of file diff --git a/src/lib/mu/MuQt6/handrolled/QAbstractItemModelDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QAbstractItemModelDefinitions.cpp new file mode 100644 index 000000000..077c18f49 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QAbstractItemModelDefinitions.cpp @@ -0,0 +1,21 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + + +Pointer qt_QAbstractItemModel_createIndex_QModelIndex_QAbstractItemModel_int_int_object(Mu::Thread& NODE_THREAD, Pointer param_this, int param_row, int param_column, Pointer param_any) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + MuQt_QAbstractItemModel* arg0 = object(param_this); + int arg1 = (int)(param_row); + int arg2 = (int)(param_column); + Pointer arg3 = (Pointer)(param_any); + return makeqtype(c,arg0->createIndex0_pub(arg1, arg2, arg3),"qt.QModelIndex"); +} + +static NODE_IMPLEMENTATION(_n_createIndex0, Pointer) +{ + NODE_RETURN(qt_QAbstractItemModel_createIndex_QModelIndex_QAbstractItemModel_int_int_object(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, int), NODE_ARG(2, int), NODE_ARG(3, Pointer))); +} diff --git a/src/lib/mu/MuQt6/handrolled/QAbstractItemModelSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QAbstractItemModelSymbols.cpp new file mode 100644 index 000000000..f899b8002 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QAbstractItemModelSymbols.cpp @@ -0,0 +1,19 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +addSymbols( + + new Function(c, "createIndex", _n_createIndex0, None, + Compiled, qt_QAbstractItemModel_createIndex_QModelIndex_QAbstractItemModel_int_int_object, + Return, "qt.QModelIndex", + Parameters, + new Param(c, "this", "qt.QAbstractItemModel"), + new Param(c, "row", "int"), + new Param(c, "column", "int"), + new Param(c, "any", "object"), + End), + + EndArguments); diff --git a/src/lib/mu/MuQt6/handrolled/QApplicationDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QApplicationDefinitions.cpp new file mode 100644 index 000000000..597575a98 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QApplicationDefinitions.cpp @@ -0,0 +1,27 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +static char** global_argv = 0; + +static NODE_IMPLEMENTATION(_n_QApplication0, Pointer) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* inst = NODE_ARG_OBJECT(0, ClassInstance); + DynamicArray* args = NODE_ARG_OBJECT(1, DynamicArray); + + int n = args->size(); + global_argv = new char* [n+1]; + global_argv[n] = 0; + + for (size_t i = 0; i < n; i++) + { + Mu::UTF8String utf8 = args->element(i)->utf8(); + global_argv[i] = strdup(utf8.c_str()); + } + + setobject(inst, new QApplication(n, global_argv)); + NODE_RETURN(inst); +} diff --git a/src/lib/mu/MuQt6/handrolled/QApplicationSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QApplicationSymbols.cpp new file mode 100644 index 000000000..baab00189 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QApplicationSymbols.cpp @@ -0,0 +1,18 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(c->stringType(), 1, 0); + +addSymbols( + + new Function(c, "QApplication", _n_QApplication0, None, + Return, "qt.QApplication", + Parameters, + new Param(c, "this", "qt.QApplication"), + new Param(c, "args", "string[]"), + End), + + EndArguments); diff --git a/src/lib/mu/MuQt6/handrolled/QByteArrayDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QByteArrayDefinitions.cpp new file mode 100644 index 000000000..ad6654a28 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QByteArrayDefinitions.cpp @@ -0,0 +1,23 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +Pointer +QByteArray_constData_QByteArray_byteECB_BSB__(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray arg0 = getqtype(param_this); + Class* atype = (Class*)c->arrayType(c->byteType(), 1, 0); + DynamicArray* array = new DynamicArray(atype, 1); + array->resize(arg0.size()); + memcpy(array->data(), arg0.constData(), arg0.size()); + return array; +} + +static NODE_IMPLEMENTATION(constData, Pointer) +{ + NODE_RETURN(QByteArray_constData_QByteArray_byteECB_BSB__(NODE_THREAD, + NONNIL_NODE_ARG(0, Pointer))); +} diff --git a/src/lib/mu/MuQt6/handrolled/QByteArrayIncludes.cpp b/src/lib/mu/MuQt6/handrolled/QByteArrayIncludes.cpp new file mode 100644 index 000000000..d1c74a202 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QByteArrayIncludes.cpp @@ -0,0 +1,8 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include diff --git a/src/lib/mu/MuQt6/handrolled/QByteArraySymbols.cpp b/src/lib/mu/MuQt6/handrolled/QByteArraySymbols.cpp new file mode 100644 index 000000000..4fa8532cd --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QByteArraySymbols.cpp @@ -0,0 +1,15 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(c->byteType(), 1, 0); + +addSymbol( new Function(c, "constData", constData, None, + Compiled, QByteArray_constData_QByteArray_byteECB_BSB__, + Return, "byte[]", + Parameters, + new Param(c, "this", "qt.QByteArray"), + End) ); + diff --git a/src/lib/mu/MuQt6/handrolled/QColorSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QColorSymbols.cpp new file mode 100644 index 000000000..f8e44c092 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QColorSymbols.cpp @@ -0,0 +1,13 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// +// This is for QGradient + +Context::TypeVector types; +types.push_back(c->doubleType()); +types.push_back(this); +c->arrayType((const Type*)c->tupleType(types), 1, 0); diff --git a/src/lib/mu/MuQt6/handrolled/QFileDialogIncludes.cpp b/src/lib/mu/MuQt6/handrolled/QFileDialogIncludes.cpp new file mode 100644 index 000000000..e69de29bb diff --git a/src/lib/mu/MuQt6/handrolled/QFileInfoIncludes.cpp b/src/lib/mu/MuQt6/handrolled/QFileInfoIncludes.cpp new file mode 100644 index 000000000..a07a57260 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QFileInfoIncludes.cpp @@ -0,0 +1,7 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include diff --git a/src/lib/mu/MuQt6/handrolled/QFileInfoSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QFileInfoSymbols.cpp new file mode 100644 index 000000000..230e9e4cf --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QFileInfoSymbols.cpp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + diff --git a/src/lib/mu/MuQt6/handrolled/QGradientDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QGradientDefinitions.cpp new file mode 100644 index 000000000..bfa550e2f --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QGradientDefinitions.cpp @@ -0,0 +1,14 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +static NODE_IMPLEMENTATION(setStops, void) +{ + +} + +static NODE_IMPLEMENTATION(stops, Pointer) +{ + NODE_RETURN(Pointer(0)); +} diff --git a/src/lib/mu/MuQt6/handrolled/QGradientSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QGradientSymbols.cpp new file mode 100644 index 000000000..d5ab445f4 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QGradientSymbols.cpp @@ -0,0 +1,27 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + + +// MISSING: setStops (void; QGradient this, "const QGradientStops &" stopPoints) +// MISSING: stops ("QGradientStops"; QGradient this) +// +// the tuple and array are created in QColorSymbols.cpp + +addSymbol( new Function(c, "setStops", setStops, None, + //Compiled, QGradient_setStops_, + Return, "int", + Parameters, + new Param(c, "this", "qt.QGradient"), + new Param(c, "this", "(double,qt.QColor)[]"), + End) ); + + +addSymbol( new Function(c, "stops", stops, None, + //Compiled, QGradient_stops_, + Return, "(double,qt.QColor)[]", + Parameters, + new Param(c, "this", "qt.QGradient"), + End) ); diff --git a/src/lib/mu/MuQt6/handrolled/QImageDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QImageDefinitions.cpp new file mode 100644 index 000000000..6fce61a27 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QImageDefinitions.cpp @@ -0,0 +1,23 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +static Pointer +QImage_QImage_QImage_QImage_string_string(Thread& NODE_THREAD, Pointer param_this, Pointer param_fileName, Pointer param_format) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + const QString arg1 = qstring(param_fileName); + const char* arg2 = param_format ? reinterpret_cast(param_format)->c_str() : 0; + setqtype(param_this,QImage(arg1, arg2)); + return param_this; +} + +static NODE_IMPLEMENTATION(_n_QImage8, Pointer) +{ + return QImage_QImage_QImage_QImage_string_string(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer), + NODE_ARG(2, Pointer)); +} diff --git a/src/lib/mu/MuQt6/handrolled/QImageSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QImageSymbols.cpp new file mode 100644 index 000000000..a3921edd3 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QImageSymbols.cpp @@ -0,0 +1,17 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// MISSING: QImage (QImage; QImage this, string fileName, "const char *" format) + +addSymbol( new Function(c, "QImage", _n_QImage8, None, + Compiled, QImage_QImage_QImage_QImage_string_string, + Return, "qt.QImage", + Parameters, + new Param(c, "this", "qt.QImage"), + new Param(c, "fileName", "string"), + new Param(c, "format", "string"), + End) ); + diff --git a/src/lib/mu/MuQt6/handrolled/QInputDialogDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QInputDialogDefinitions.cpp new file mode 100644 index 000000000..2c6b4dce4 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QInputDialogDefinitions.cpp @@ -0,0 +1,55 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// +// NOT the correct mangling here +// + +struct StringBoolPair { Pointer s; bool b; }; + +static Pointer +qt_QInputDialog_getText(Thread& NODE_THREAD, + Pointer param_parent, + Pointer param_title, + Pointer param_label, + int param_echoMode, + Pointer param_text, + int param_flags) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + + QWidget* parent = object(reinterpret_cast(param_parent)); + QString title = qstring(param_title); + QString label = qstring(param_label); + QLineEdit::EchoMode mode = (QLineEdit::EchoMode)param_echoMode; + Qt::WindowFlags flags = (Qt::WindowFlags)param_flags; + QString text = qstring(param_text); + + bool ok = false; + QString result = QInputDialog::getText(parent, title, label, mode, text, &ok, flags); + + Context::TypeVector tt(2); + tt[0] = c->stringType(); + tt[1] = c->boolType(); + + ClassInstance* rval = ClassInstance::allocate(c->tupleType(tt)); + StringBoolPair* p = rval->data(); + p->s = makestring(c, result); + p->b = ok; + + return rval; +} + +static NODE_IMPLEMENTATION(getText, Pointer) +{ + NODE_RETURN( qt_QInputDialog_getText(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer), + NODE_ARG(2, Pointer), + NODE_ARG(3, int), + NODE_ARG(4, Pointer), + NODE_ARG(5, int)) ); +} diff --git a/src/lib/mu/MuQt6/handrolled/QInputDialogIncludes.cpp b/src/lib/mu/MuQt6/handrolled/QInputDialogIncludes.cpp new file mode 100644 index 000000000..f20f1ed7a --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QInputDialogIncludes.cpp @@ -0,0 +1,6 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include diff --git a/src/lib/mu/MuQt6/handrolled/QInputDialogSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QInputDialogSymbols.cpp new file mode 100644 index 000000000..3564963ee --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QInputDialogSymbols.cpp @@ -0,0 +1,24 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// declare the tuple type (string,bool) just in case +Context::TypeVector tt(2); +tt[0] = c->stringType(); +tt[1] = c->boolType(); +c->tupleType(tt); + +addSymbols( new Function(c, "getText", getText, None, + Return, "(string,bool)", + Parameters, + new Param(c, "parent", "qt.QWidget"), + new Param(c, "title", "string"), + new Param(c, "label", "string"), + new Param(c, "echoMode", "int"), + new Param(c, "text", "string"), + new Param(c, "windowFlags", "int"), + End), + + EndArguments); diff --git a/src/lib/mu/MuQt6/handrolled/QListWidgetItemSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QListWidgetItemSymbols.cpp new file mode 100644 index 000000000..230e9e4cf --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QListWidgetItemSymbols.cpp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + diff --git a/src/lib/mu/MuQt6/handrolled/QModelIndexDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QModelIndexDefinitions.cpp new file mode 100644 index 000000000..6b42866c2 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QModelIndexDefinitions.cpp @@ -0,0 +1,13 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + + +static NODE_IMPLEMENTATION(_n_internalPointer, Pointer) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QModelIndex arg0 = getqtype(NODE_ARG(0, Pointer)); + NODE_RETURN(Pointer(arg0.internalPointer())); +} diff --git a/src/lib/mu/MuQt6/handrolled/QModelIndexSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QModelIndexSymbols.cpp new file mode 100644 index 000000000..28f439e8d --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QModelIndexSymbols.cpp @@ -0,0 +1,18 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + +addSymbols( + + new Function(c, "internalPointer", _n_internalPointer, None, + Return, "object", + Parameters, + new Param(c, "this", "qt.QModelIndex"), + End), + + EndArguments); diff --git a/src/lib/mu/MuQt6/handrolled/QNetworkCookieJarIncludes.cpp b/src/lib/mu/MuQt6/handrolled/QNetworkCookieJarIncludes.cpp new file mode 100644 index 000000000..e69de29bb diff --git a/src/lib/mu/MuQt6/handrolled/QObjectDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QObjectDefinitions.cpp new file mode 100644 index 000000000..5ed6df681 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QObjectDefinitions.cpp @@ -0,0 +1,46 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +static Pointer +findChild_Object_string(Thread& NODE_THREAD, Pointer obj, Pointer p) +{ + ClassInstance* self = reinterpret_cast(obj); + StringType::String* name = reinterpret_cast(p); + QObject* o = object(self); + ClassInstance* rval = ClassInstance::allocate(self->classType()); + setobject(rval, o->findChild(name->c_str())); + return rval; +} + +static NODE_IMPLEMENTATION(findChild, Pointer) +{ + NODE_RETURN( findChild_Object_string(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer)) ); +} + +#include + +static bool +setProperty_bool_Object_string_qt_QVariant(Thread& NODE_THREAD, + Pointer obj, + Pointer n, + Pointer v) +{ + ClassInstance* self = reinterpret_cast(obj); + StringType::String* name = reinterpret_cast(n); + const QVariant value = getqtype(v); + QObject* o = object(self); + return o->setProperty(name->c_str(), value); +} + +static NODE_IMPLEMENTATION(setProperty, bool) +{ + NODE_RETURN( setProperty_bool_Object_string_qt_QVariant(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer), + NODE_ARG(2, Pointer)) ); +} diff --git a/src/lib/mu/MuQt6/handrolled/QObjectIncludes.cpp b/src/lib/mu/MuQt6/handrolled/QObjectIncludes.cpp new file mode 100644 index 000000000..fdf573b5f --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QObjectIncludes.cpp @@ -0,0 +1,8 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include diff --git a/src/lib/mu/MuQt6/handrolled/QObjectSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QObjectSymbols.cpp new file mode 100644 index 000000000..fc80919af --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QObjectSymbols.cpp @@ -0,0 +1,22 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +addSymbols( new Function(c, "findChild", findChild, None, + Return, ftn, + Parameters, + new Param(c, "this", ftn), + new Param(c, "name", "string"), + End), + + new Function(c, "setProperty", setProperty, None, + Return, "bool", + Parameters, + new Param(c, "this", ftn), + new Param(c, "name", "string"), + new Param(c, "value", "qt.QVariant"), + End), + + EndArguments); diff --git a/src/lib/mu/MuQt6/handrolled/QProcessDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QProcessDefinitions.cpp new file mode 100644 index 000000000..05a277660 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QProcessDefinitions.cpp @@ -0,0 +1,25 @@ +// +// Copyright (C) 2024 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +bool qt_QProcess_startDetached_bool_string_stringBSB_ESB_(Mu::Thread& NODE_THREAD, + Pointer param_command, + Pointer param_arguments) +{ + // Leave the default value for the 3rd and 4th arguments + // const QString &workingDirectory = QString() + // qint64 *pid = nullptr + + const QString arg0 = qstring(param_command); + const QStringList arg1 = qstringlist(param_arguments); + return QProcess::startDetached(arg0, arg1); +} + +static NODE_IMPLEMENTATION(_n_startDetached0, bool) +{ + NODE_RETURN(qt_QProcess_startDetached_bool_string_stringBSB_ESB_(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer))); +} \ No newline at end of file diff --git a/src/lib/mu/MuQt6/handrolled/QProcessSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QProcessSymbols.cpp new file mode 100644 index 000000000..4285269cc --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QProcessSymbols.cpp @@ -0,0 +1,25 @@ +// +// Copyright (C) 2024 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// MISSING: startDetached (bool; string program, string[] arguments, string workingDirectory, "qint64 *" pid) + +addSymbol( + new Function( + c, + "startDetached", + _n_startDetached0, + None, + Compiled, + // qt_QProcess_startDetached_bool_string_stringBSB_ESB_string_int64, + qt_QProcess_startDetached_bool_string_stringBSB_ESB_, + Return, + "bool", + Parameters, + new Param(c, "command", "string"), + new Param(c, "arguments", "string[]"), + End + ) +); \ No newline at end of file diff --git a/src/lib/mu/MuQt6/handrolled/QStandardItemSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QStandardItemSymbols.cpp new file mode 100644 index 000000000..230e9e4cf --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QStandardItemSymbols.cpp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + diff --git a/src/lib/mu/MuQt6/handrolled/QTableWidgetItemSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QTableWidgetItemSymbols.cpp new file mode 100644 index 000000000..230e9e4cf --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QTableWidgetItemSymbols.cpp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + diff --git a/src/lib/mu/MuQt6/handrolled/QTextCodecDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QTextCodecDefinitions.cpp new file mode 100644 index 000000000..2c919765f --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QTextCodecDefinitions.cpp @@ -0,0 +1,17 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +static Pointer +codecForName_QTextCodec_string(Thread& NODE_THREAD, Pointer p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + StringType::String* str = reinterpret_cast(p); + return makeqpointer(c,QTextCodec::codecForName(str->c_str()),"qt.QTextCodec"); +} + +static NODE_IMPLEMENTATION(codecForName2, Pointer) +{ + NODE_RETURN(codecForName_QTextCodec_string(NODE_THREAD, NODE_ARG(0, Pointer))); +} diff --git a/src/lib/mu/MuQt6/handrolled/QTextCodecSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QTextCodecSymbols.cpp new file mode 100644 index 000000000..360987689 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QTextCodecSymbols.cpp @@ -0,0 +1,14 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +addSymbols( new Function(c, "codecForName", codecForName2, None, + Return, "qt.QTextCodec", + Compiled, codecForName_QTextCodec_string, + Parameters, + new Param(c, "name", "string"), + End), + + EndArguments); diff --git a/src/lib/mu/MuQt6/handrolled/QTextStreamDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QTextStreamDefinitions.cpp new file mode 100644 index 000000000..83640d254 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QTextStreamDefinitions.cpp @@ -0,0 +1,74 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// Pointer qt_QTextStream_QTextStream_QTextStream_QTextStream_string_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_string, int param_openMode) +// { +// MuLangContext* c = static_cast(NODE_THREAD.context()); +// QString arg1 = qstring(param_string); +// QIODevice::OpenMode arg2 = (QIODevice::OpenMode)(param_openMode); +// setqpointer(param_this,new QTextStream(arg1, arg2)); +// return param_this; +// } + +Pointer qt_QTextStream_QTextStream_QTextStream_QTextStream_QIODevice(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_device) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QIODevice * arg1 = object(param_device); + setqpointer(param_this,new QTextStream(arg1)); + return param_this; +} + +Pointer qt_QTextStream_QTextStream_QTextStream_QTextStream(Mu::Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + setqpointer(param_this,new QTextStream()); + return param_this; +} + +Pointer qt_QTextStream_QTextStream_QTextStream_QTextStream_QByteArray_int(Mu::Thread& NODE_THREAD, Pointer param_this, Pointer param_array, int param_openMode) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QByteArray * arg1 = &getqtype(param_array); + QIODeviceBase::OpenMode arg2 = (QIODeviceBase::OpenMode)(param_openMode); + setqpointer(param_this,new QTextStream(arg1, arg2)); + return param_this; +} + +static void +print_void_qt_QTextStream_string(Thread& NODE_THREAD, Pointer obj, Pointer p) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QTextStream * arg0 = getqpointer(obj); + QString arg1 = qstring(p); + *arg0 << arg1; +} + +// static NODE_IMPLEMENTATION(_n_QTextStream3, Pointer) +// { +// NODE_RETURN(qt_QTextStream_QTextStream_QTextStream_QTextStream_string_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +// } + +static NODE_IMPLEMENTATION(_n_QTextStream0, Pointer) +{ + NODE_RETURN(qt_QTextStream_QTextStream_QTextStream_QTextStream(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTextStream1, Pointer) +{ + NODE_RETURN(qt_QTextStream_QTextStream_QTextStream_QTextStream_QIODevice(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer))); +} + +static NODE_IMPLEMENTATION(_n_QTextStream5, Pointer) +{ + NODE_RETURN(qt_QTextStream_QTextStream_QTextStream_QTextStream_QByteArray_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer), NODE_ARG(1, Pointer), NODE_ARG(2, int))); +} + +static NODE_IMPLEMENTATION(printTextStream, void) +{ + print_void_qt_QTextStream_string(NODE_THREAD, + NODE_ARG(0, Pointer), + NODE_ARG(1, Pointer)); +} diff --git a/src/lib/mu/MuQt6/handrolled/QTextStreamSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QTextStreamSymbols.cpp new file mode 100644 index 000000000..f7bb8d5a5 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QTextStreamSymbols.cpp @@ -0,0 +1,22 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +globalScope()-> +addSymbols( new Function(c, "print", printTextStream, None, + Return, "void", + Compiled, print_void_qt_QTextStream_string, + Parameters, + new Param(c, "textstream", "qt.QTextStream"), + new Param(c, "outputString", "string"), + End), + + new Function(c, "QTextStream", _n_QTextStream0, None, Compiled, qt_QTextStream_QTextStream_QTextStream_QTextStream, Return, "qt.QTextStream", Parameters, new Param(c, "this", "qt.QTextStream"), End), + new Function(c, "QTextStream", _n_QTextStream1, None, Compiled, qt_QTextStream_QTextStream_QTextStream_QTextStream_QIODevice, Return, "qt.QTextStream", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "device", "qt.QIODevice"), End), + // Can't use this one yet + //new Function(c, "QTextStream", _n_QTextStream3, None, Compiled, qt_QTextStream_QTextStream_QTextStream_QTextStream_string_int, Return, "qt.QTextStream", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "string", "string"), new Param(c, "openMode", "int"), End), + new Function(c, "QTextStream", _n_QTextStream5, None, Compiled, qt_QTextStream_QTextStream_QTextStream_QTextStream_QByteArray_int, Return, "qt.QTextStream", Parameters, new Param(c, "this", "qt.QTextStream"), new Param(c, "array", "qt.QByteArray"), new Param(c, "openMode", "int"), End), + + EndArguments); diff --git a/src/lib/mu/MuQt6/handrolled/QTreeWidgetItemSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QTreeWidgetItemSymbols.cpp new file mode 100644 index 000000000..230e9e4cf --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QTreeWidgetItemSymbols.cpp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + diff --git a/src/lib/mu/MuQt6/handrolled/QUrlSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QUrlSymbols.cpp new file mode 100644 index 000000000..230e9e4cf --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QUrlSymbols.cpp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +c->arrayType(this, 1, 0); + + diff --git a/src/lib/mu/MuQt6/handrolled/QVariantDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QVariantDefinitions.cpp new file mode 100644 index 000000000..2b5663e28 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QVariantDefinitions.cpp @@ -0,0 +1,34 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +static int +QVariant_toInt_int(Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVariant arg0 = getqtype(param_this); + return arg0.toInt(); +} + +static NODE_IMPLEMENTATION(toInt, int) +{ + NODE_RETURN(QVariant_toInt_int(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} + +/* +static Pointer +QVariant_toQObject_QObject(Thread& NODE_THREAD, Pointer param_this) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QVariant arg0 = getqtype(param_this); + QObject* obj = arg0.value(); + return makeqpointer(c, obj, "qt.QObject"); +} + +static NODE_IMPLEMENTATION(toQObject, Pointer) +{ + NODE_RETURN(QVariant_toQObject_QObject(NODE_THREAD, NONNIL_NODE_ARG(0, Pointer))); +} +*/ diff --git a/src/lib/mu/MuQt6/handrolled/QVariantSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QVariantSymbols.cpp new file mode 100644 index 000000000..5f426f6e5 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QVariantSymbols.cpp @@ -0,0 +1,23 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +addSymbol( new Function(c, "toInt", toInt, None, + Compiled, QVariant_toInt_int, + Return, "int", + Parameters, + new Param(c, "this", "qt.QVariant"), + End) ); + +/* +addSymbol( new Function(c, "toObject", toQObject, None, + Compiled, QVariant_toQObject_int, + Return, "qt.QObject", + Parameters, + new Param(c, "this", "qt.QVariant"), + End) ); +*/ + + // MISSING: toInt (int; QVariant this, "bool *" ok) diff --git a/src/lib/mu/MuQt6/handrolled/QWidgetDefinitions.cpp b/src/lib/mu/MuQt6/handrolled/QWidgetDefinitions.cpp new file mode 100644 index 000000000..4caff341b --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QWidgetDefinitions.cpp @@ -0,0 +1,19 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +static NODE_IMPLEMENTATION(_n_QWidget_windowFlags_int, int) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(NODE_ARG(0,Pointer)); + NODE_RETURN(arg0->windowFlags()); +} + +static NODE_IMPLEMENTATION(_n_QWidget_setWindowFlags_void_int, void) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + QWidget* arg0 = object(NODE_ARG(0,Pointer)); + arg0->setWindowFlags(Qt::WindowFlags(NODE_ARG(0, int))); +} diff --git a/src/lib/mu/MuQt6/handrolled/QWidgetIncludes.cpp b/src/lib/mu/MuQt6/handrolled/QWidgetIncludes.cpp new file mode 100644 index 000000000..f20f1ed7a --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QWidgetIncludes.cpp @@ -0,0 +1,6 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include diff --git a/src/lib/mu/MuQt6/handrolled/QWidgetSymbols.cpp b/src/lib/mu/MuQt6/handrolled/QWidgetSymbols.cpp new file mode 100644 index 000000000..021bcece3 --- /dev/null +++ b/src/lib/mu/MuQt6/handrolled/QWidgetSymbols.cpp @@ -0,0 +1,35 @@ +// +// Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// + +// +// For some reason the window flags is not showing up in the +// metaObject system. +// + +c->arrayType(c->stringType(), 1, 0); +Context::TypeVector ttypes(4); +ttypes[0] = c->intType(); +ttypes[1] = ttypes[0]; +ttypes[2] = ttypes[0]; +ttypes[3] = ttypes[0]; +c->tupleType(ttypes); + +addSymbols( + + new Function(c, "windowFlags", _n_QWidget_windowFlags_int, None, + Return, "int", + Parameters, + new Param(c, "this", "qt.QWidget"), + End), + + new Function(c, "setWindowFlags", _n_QWidget_setWindowFlags_void_int, None, + Return, "void", + Parameters, + new Param(c, "this", "qt.QWidget"), + new Param(c, "windowFlags", "int"), + End), + + EndArguments); diff --git a/src/lib/mu/MuQt6/qt2mu.py b/src/lib/mu/MuQt6/qt2mu.py new file mode 120000 index 000000000..bcfdcc80a --- /dev/null +++ b/src/lib/mu/MuQt6/qt2mu.py @@ -0,0 +1 @@ +qt6_to_mu.py \ No newline at end of file diff --git a/src/lib/mu/MuQt6/qt6_to_mu.py b/src/lib/mu/MuQt6/qt6_to_mu.py new file mode 100755 index 000000000..1a3effb00 --- /dev/null +++ b/src/lib/mu/MuQt6/qt6_to_mu.py @@ -0,0 +1,4201 @@ +#!/usr/bin/env python +# +# Copyright (C) 2023 Autodesk, Inc. All Rights Reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +from sgmllib import SGMLParser +import urllib +import sys +import traceback +import pprint +import string +import re +import pickle +import os + +# +# Qt 5 splits the docs into subdirs which complicates things slightly. +# +# We need to at least use objectHTML and qtHTML as the roots for +# recursiveParse() below. Other base classes may be generated as well. +# + +forceParse = False +# forceParse = True + +pp = pprint.PrettyPrinter() + +htmlDir = "/home/cfuoco/Qt6.5.3/Docs/Qt-6.5.3" +objectHTML = "%s/qtcore/qobject.html" % htmlDir +qtHTML = "%s/qtcore/qt.html" % htmlDir +qtapifile = "qt6api.p" +templateObjectH = "templates/TemplateObjectType.h" +templateObjectCPP = "templates/TemplateObjectType.cpp" +templateLayoutItemH = "templates/TemplateLayoutItemType.h" +templateLayoutItemCPP = "templates/TemplateLayoutItemType.cpp" +templatePaintDeviceH = "templates/TemplatePaintDeviceType.h" +templatePaintDeviceCPP = "templates/TemplatePaintDeviceType.cpp" +templateIODeviceBaseH = "templates/TemplateIODeviceBaseType.h" +templateIODeviceBaseCPP = "templates/TemplateIODeviceBaseType.cpp" +templateTypeH = "templates/TemplateType.h" +templateTypeCPP = "templates/TemplateType.cpp" +templatePointerTypeH = "templates/TemplatePointerType.h" +templatePointerTypeCPP = "templates/TemplatePointerType.cpp" +templateInterfaceTypeH = "templates/TemplateInterfaceType.h" +templateInterfaceTypeCPP = "templates/TemplateInterfaceType.cpp" +templateGlobalH = "templates/TemplateGlobal.h" +templateGlobalCPP = "templates/TemplateGlobal.cpp" + +# +# Setting this to true causes the library to be generated with +# unique subclasses for every Qt class. This allows inheritance from +# Mu. +# + +allowInheritance = True + +# +# base class html files: these are recursively scanned +# + +xbaseHTML = ["qobject"] + +# +# In 5.6 they no longer have a list of all the classes that inherit +# from a base class so we have include the whole shebang here instead +# of only a few root files +# +baseHTML = [ + "qt", + "qobject", + "qwindow", + "qsurface", + "qwidget", + "qbitmap", + "qimage", + "qactionevent", + "qcloseevent", + "qcontextmenuevent", + "qgradient", + "qconicalgradient", + "qlineargradient", + "qradialgradient", + "qdragmoveevent", + "qdragleaveevent", + "qdropevent", + "qlayout", + "qenterevent", + "qexposeevent", + "qfileopenevent", + "qactiongroup", + "qfocusevent", + "qhelpevent", + "qhideevent", + "qhoverevent", + "qicondragevent", + "qinputevent", + "qinputmethodevent", + "qinputmethodqueryevent", + "qkeyevent", + "qmoveevent", + "qpaintevent", + "qresizeevent", + "qscrollevent", + "qscrollprepareevent", + "qshortcutevent", + "qshowevent", + "qstatustipevent", + "qtabletevent", + "qtouchevent", + "qfont", + "qsize", + "qpoint", + "qrect", + "qicon", + "qvariant", + "qstandarditem", + "qmodelindex", + "qpixmap", + "qdatetime", + "qtime", + "qdate", + "qkeysequence", + "qevent", + "qregularexpression", + "qregion", + "qcolor", + "qlistwidgetitem", + "qtreewidgetitem", + "qtablewidgetitem", + "qurl", + "qurlquery", + "qbytearray", + "qlayoutitem", + "qpaintdevice", + "qhostaddress", + "qhostinfo", + "qtimer", + "qdesktopservices", + "qdir", + "qfileinfo", + "qdatastream", + "qitemselectionrange", + "qitemselection", + "qmargins", + "qbrush", + "qmatrix4x4", + "qtransform", + "qpointf", + "qpalette", + "qnetworkcookie", + "qtextstream", + "qstringconverter", + "qpainter", + "qpainterpath", + "qrectf", + "qtextcursor", + "qtextoption", + "qtextblock", + "qclipboard", + "qprocessenvironment", + "qcursor", + "qaction", + "qbuttongroup", + "qcompleter", + "qstandarditemmodel", + "qsvgwidget", + "qapplication", + "qguiapplication", + "qtextdocument", + "qwidgetaction", + "qnetworkreply", + "qabstractsocket", + "qtcpsocket", + "qlocalsocket", + "qgestureevent", + "qtcpserver", + "qfiledevice", + "qwindowstatechangeevent", + "qnetworkcookiejar", + "qnetworkaccessmanager", + "qquickitem", + "qqmlengine", + "qjsengine", + "qqmlapplicationengine", + "qqmlcontext", + "qquickwidget", + "qwebenginecookiestore", + "qwebengineprofile", + "qwebengineview", + "qwebenginepage", + "qwebenginesettings", + "qwebchannel", + "qwebenginehistory", + "qwebenginehistoryitem", + "qboxlayout", + "qformlayout", + "qgridlayout", + "qstackedlayout", + "qhboxlayout", + "qvboxlayout", + "qdockwidget", + "qtoolbar", + "qmainwindow", + "qslider", + "qdial", + "qlineedit", + "qframe", + "qabstractslider", + "qabstractbutton", + "qcheckbox", + "qpushbutton", + "qradiobutton", + "qtoolbutton", + "qmenu", + "qcombobox", + "qfiledialog", + "qabstractitemmodel", + "qabstractlistmodel", + "qabstracttablemodel", + "qabstractitemview", + "qcolordialog", + "qdialog", + "qcolumnview", + "qheaderview", + "qlistview", + "qtableview", + "qtreeview", + "qlistwidget", + "qtreewidget", + "qtablewidget", + "qcoreapplication", + "qlabel", + "qmenubar", + "qplaintextedit", + "qprogressbar", + "qscrollarea", + "qspinbox", + "qsplitter", + "qstackedwidget", + "qstatusbar", + "qtabbar", + "qtabwidget", + "qtextedit", + "qtoolbox", + "qabstractspinbox", + "qabstractscrollarea", + "qinputdialog", + "qeventloop", + "qgroupbox", + "qiodevice", + "qiodevicebase", + "qprocess", + "qfile", + "qudpsocket", + "qscreen", + "qitemselectionmodel", + "qspaceritem", + "qwidgetitem", + "qmimedata", + "qtimerevent", + "qdragenterevent", + "qmouseevent", + "qwheelevent", + "qtextbrowser", + "qsinglepointevent", + "qpointerevent" +] + +# +# These classes use the standard Mu ClassInstance to hold their data +# and have the indicated data members. The primitiveTypes actually +# embed the data type in the Instance object. The pointerTypes use a +# named field to hold the native object. +# + +primitiveTypes = set( + [ + "QSize", + "QRect", + "QRectF", + "QPoint", + "QPointF", + "QRegularExpression", + "QIcon", + "QPixmap", + "QBitmap", + "QImage", + "QKeySequence", + "QColor", + "QVariant", + "QRegion", + "QDateTime", + "QTime", + "QDate", + "QModelIndex", + "QFont", + "QUrl", + "QUrlQuery", + "QByteArray", + "QDataStream", + "QHostAddress", + "QHostInfo", + "QDir", + "QFileInfo", + "QImageWriter", + "QItemSelectionRange", + "QItemSelection", + "QBrush", + "QGradient", + "QMatrix4x4", + "QTransform", + "QConicalGradient", + "QLinearGradient", + "QRadialGradient", + "QPalette", + "QPainter", + "QPainterPath", + "QMargins", + "QNetworkCookie", + "QProcessEnvironment", + "QTextCursor", + "QTextOption", + "QTextBlock", + "QCursor", + ] +) + +copyOnWriteTypes = [ + "QBitArray", + "QBitmap", + "QBrush", + "QByteArray", + "QCache", + "QContiguousCache", + "QCursor", + "QDir", + "QFileInfo", + "QFont", + "QFontInfo", + "QFontMetrics", + "QFontMetricsF", + "QGLColormap", + "QGradient", + "QHash", + "QIcon", + "QImage", + "QKeySequence", + "QLinkedList", + "QList", + "QLocale", + "QMap", + "QMultiHash", + "QMultiMap", + "QPainterPath", + "QPalette", + "QPen", + "QPicture", + "QPixmap", + "QPolygon", + "QPolygonF", + "QQueue", + # Qt6: Removed for QRegularExpression + # "QRegExp", + "QRegularExpression", + "QRegion", + "QSet", + "QSqlField", + "QSqlQuery", + "QSqlRecord", + "QStack", + "QString", + "QStringList", + "QTextBoundaryFinder", + "QTextCursor", + "QTextDocumentFragment", + "QTextFormat", + "QUrl", + "QUrlQuery", + "QVariant", + "QVector", + "QX11Info", + "QNetworkCookie", + "QProcessEnvironment", +] + +# interfaceTypes = set(["QLayoutItem", "QPaintDevice"]) +interfaceTypes = set([]) + +pointerTypes = set( + [ + "QStandardItem", + "QListWidgetItem", + "QTreeWidgetItem", + "QTableWidgetItem", + "QEvent", + "QResizeEvent", + "QTextStream", + "QDragLeaveEvent", + "QDragMoveEvent", + "QDropEvent", + "QCloseEvent", + "QDragEnterEvent", + "QInputEvent", + "QMoveEvent", + "QPaintEvent", + "QShortcutEvent", + "QShowEvent", + "QTimerEvent", + "QFocusEvent", + "QContextMenuEvent", + "QKeyEvent", + "QMouseEvent", + "QTabletEvent", + "QWheelEvent", + "QHelpEvent", + "QFileOpenEvent", + "QHideEvent", + "QHoverEvent", + "QGestureEvent", + "QStringConverter", + "QWebEngineSettings", + # "QWebEngineHistory", + "QWindowStateChangeEvent", + "QSinglePointEvent", + "QPointerEvent" + ] +) +# "QTouchEvent", + +notInheritableTypes = set(["QNetworkReply", "QIODevice", "QIODeviceBase", "QClipboard"]) + + +def isAPrimitiveType(name): + return name in primitiveTypes + + +def isAPointerType(name): + return name in pointerTypes + + +def isCopyOnWrite(name): + return isAPrimitiveType(name) and (name in copyOnWriteTypes) + + +# +# C++ things which modify the meat of class name +# + +typeElaborations = ["const", "virtual", "*", "&"] + + +def sansElaborations(x): + if "*" in x: + x = string.replace(x, "*", "") + for i in x.split(" &*"): + if i not in typeElaborations: + return i + + +# +# Map from C++ types to Mu types. Additional elements are added +# during parsing. +# + +translationMap = { + "void": "void", + "int": "int", + "uint": "int", + "bool": "bool", + "double": "double", + "float": "float", + "qreal": "double", + "qint64": "int64", + "quint32": "int", + "QString": "string", + "QStringList": "string[]", + "QModelIndexList": "qt.QModelIndex[]", + "QFileInfoList": "qt.QFileInfo[]", + "QRgb": "int", + "QList": "qt.QTreeWidgetItem[]", + # "QList" : "qt.QQuickItem[]", + "const QList &": "qt.QTreeWidgetItem[]", + "QList": "qt.QListWidgetItem[]", + "const QList &": "qt.QListWidgetItem[]", + "QList": "qt.QTableWidgetItem[]", + "const QList &": "qt.QTableWidgetItem[]", + "QList": "qt.QStandardItem[]", + "const QList &": "qt.QStandardItem[]", + "QList": "qt.QUrl[]", + "QList": "qt.QNetworkCookie[]", + # "const char *" : "string", + # "const QSizeF &" : "qt.QSizeF", + # "const QPointF &" : "qt.QPointF", + # "const QLineF &" : "qt.QLineF", + # "const QRectF &" : "qt.QRectF", + # "const QRegularExpression &" : "qt.QRegularExpression", + # "const QLine &" : "qt.QLine", + # "const QDate &" : "qt.QDate", + # "const QTime &" : "qt.QTime", +} + +# +# Map from Mu type (in regex form) to Mu machine representation. The +# tuple value contains (rep * more specific type) in case it matters. +# +# NOTE: the order here matters! They are test in order +# + +repMap = [ + (re.compile("bool"), ("bool", "bool")), + (re.compile("void"), ("void", "void")), + (re.compile("int64"), ("int64", "int64")), + (re.compile("int"), ("int", "int")), + (re.compile("float"), ("float", "float")), + (re.compile("double"), ("double", "double")), + (re.compile("short"), ("short", "short")), + (re.compile("byte"), ("byte", "byte")), + (re.compile("char"), ("char", "char")), + (re.compile("flags .*"), ("int", "int")), + (re.compile("string"), ("Pointer", "StringType::String")), + (re.compile("string\\[\\]"), ("Pointer", "DynamicArray")), + (re.compile("qt.QTreeWidgetItem\\[\\]"), ("Pointer", "DynamicArray")), + (re.compile("qt.QListWidgetItem\\[\\]"), ("Pointer", "DynamicArray")), + (re.compile("qt.QTableWidgetItem\\[\\]"), ("Pointer", "DynamicArray")), + (re.compile("qt.QStandardItem\\[\\]"), ("Pointer", "DynamicArray")), + (re.compile("qt.QUrl\\[\\]"), ("Pointer", "DynamicArray")), + (re.compile(".*"), ("Pointer", "ClassInstance")), +] + + +def repMapFind(x): + for (rexp, val) in repMap: + if rexp.match(x): + return val + return None + + +convertFromMap = { + "string": ("qstring($E)", "QString"), + "string[]": ("qstringlist($E)", "QStringList"), + "qt.QModelIndex[]": ("qmodelindexlist($E)", "QModelIndexList"), + "qt.QFileInfo[]": ("qfileinfolist($E)", "QFileInfoList"), + # "string" : ("$E->c_str()", "const char *"), + "qt.QObject": ("object<$T>($E)", "$T*"), + "qt.QLayoutItem": ("layoutitem<$T>($E)", "$T*"), + "qt.QPaintDevice": ("paintdevice<$T>($E)", "$T*"), + "qt.QSpacerItem": ("layoutitem<$T>($E)", "$T*"), + "qt.QWidgetItem": ("layoutitem<$T>($E)", "$T*"), + # "qt.QTreeWidgetItem[]" : ("qpointerlist<$T>($E)", "$T*"), + "qt.QIODeviceBase": ("iodevicebase<$T>($E)", "$T*"), +} + +convertToMap = { + "QString": ("makestring(c,$E)", "string"), + "string": ("makestring(c,$E)", "string"), + "QStringList": ("makestringlist(c,$E)", "string[]"), + "QModelIndexList": ("makeqmodelindexlist(c,$E)", "qt.QModelIndex[]"), + "QFileInfoList": ("makeqfileinfolist(c,$E)", "qt.QFileInfo[]"), + # "const char *" : ("$E->c_str()", "string"), +} + +setMap = { + # "const char *" : "$O->string() = $E", +} + +includeClasses = set( + [ + "QAbstractButton", + "QComboBox", + "QMenu", + "QToolBar", + "QAbstractItemModel", + "QCompleter", + "QObject", + "QToolButton", + "QAbstractListModel", + "QDial", + "QPixmap", + "QAbstractSlider", + "QDialog", + "QPushButton", + "QAbstractTableModel", + "QDockWidget", + "QRadioButton", + "QActionGroup", + "QFrame", + "QWidget", + "QFileDialog", + "QAction", + "QIcon", + "QSlider", + "QStandardItem", + "QCheckBox", + "QLineEdit", + "QStandardItemModel", + "QBitmap", + "QColorDialog", + "QMainWindow", + "QSvgWidget", + "QModelIndex", + "QCoreApplication", + "QApplication", + "QUrl", + "QByteArray", + "QMenuBar", + "QLabel", + "QPlainTextEdit", + "QProgressBar", + "QScrollArea", + "QSpinBox", + "QSplitter", + "QStackedWidget", + "QStatusBar", + "QTabBar", + "QTabWidget", + "QTextDocument", + "QTextEdit", + "QToolBox", + "QWidgetAction", + "QAbstractSpinBox", + "QAbstractScrollArea", + "QButtonGroup", + "QRect", + "QRegion", + "QSize", + "QPoint", + "QFont", + "QVariant", + "QStandardItem", + "QColor", + "QTreeWidgetItem", + "QListWidgetItem", + "QTableWidgetItem", + "QListWidget", + "QTableWidget", + "QTreeWidget", + "QTableView", + "QListView", + "QTreeView", + "QAbstractItemView", + "QColumnView", + "QHeaderView", + "QLayout", + "QBoxLayout", + "QHBoxLayout", + "QVBoxLayout", + "QFormLayout", + "QGridLayout", + "QLayoutItem", + "QPaintDevice", + "QImage", + "QInputDialog", + "QEventLoop", + "QGroupBox", + "QIODevice", + "QIODeviceBase", + "QDateTime", + "QProcess", + "QFile", + "QAbstractSocket", + "QDir", + "QTcpSocket", + "QUdpSocket", + "QTcpServer", + "QHostAddress", + "QHostInfo", + "QLocalSocket", + "QTimer", + "QScreen", + "QFileInfo", + "QItemSelection", + "QItemSelectionRange", + "QItemSelectionModel", + "QGradient", + "QBrush", + "QMatrix4x4", + "QTransform", + "QConicalGradient", + "QLinearGradient", + "QRadialGradient", + "QTime", + "QPointF", + "QPalette", + "QRectF", + "QDate", + "QNetworkAccessManager", + "QNetworkReply", + "QKeySequence", + "QEvent", + "QResizeEvent", + "QDragLeaveEvent", + "QDragMoveEvent", + "QDropEvent", + "QDragEnterEvent", + "QInputEvent", + "QMoveEvent", + "QPaintEvent", + "QShortcutEvent", + "QShowEvent", + "QTimerEvent", + "QFocusEvent", + "QGestureEvent", + "QWheelEvent", + "QTabletEvent", + "QMimeData", + "QContextMenuEvent", + "QKeyEvent", + "QMouseEvent", + "QSinglePointEvent", + "QPointerEvent", + "QWindowStateChangeEvent", + "QHideEvent", + "QHoverEvent", + "QHelpEvent", + "QFileOpenEvent", + "QRegularExpression", + "QTextCursor", + "QTextOption", + "QTextBlock", + "QMargins", + "QCloseEvent", + "QClipboard", + "QNetworkCookie", + # Qt6: Removed for QStringConverter + # "QTextCodec", + "QStringConverter", + "QTextStream", + "QTextBrowser", + "QNetworkCookieJar", + "QProcessEnvironment", + "QCursor", + "QFileDevice", + "QGuiApplication", + "QWebEngineCookieStore", + "QWebEngineProfile", + "QWebEngineView", + "QWebEnginePage", + "QWebEngineSettings", + "QWebChannel", + "QWebEngineHistory", + "QUrlQuery", + # "QStyleOption", "QStyle", + # "QPainter", "QPainterPath", + # "QTouchEvent", + # "QDesktopServices", + # "QDataStream", + "QQuickItem", + "QQmlContext", + "QJSEngine", + "QQmlEngine", + "QQmlApplicationEngine", + "QQuickWidget", + "QString", # has to be here + "QStringList", + "QModelIndexList", + "QFileInfoList", + "QList", + "QList", + "QList", + "QList", + "QList", + "QList", + ] +) + +abstractClasses = [ + re.compile("QAbstract.*"), + re.compile("QLayout"), + re.compile("QIODevice"), + re.compile("QIODeviceBase") +] + + +def isAbstract(name): + for reg in abstractClasses: + if reg.match(name): + return True + return False + + +def isConstReference(t): + parts = t.split(" ") + if len(parts) == 3 and parts[0] == "const" and parts[2] == "&": + return True + else: + return False + + +def isPointerToSomething(t): + parts = t.split(" ") + if len(parts) >= 2 and parts[-1] == "*": + return True + else: + return False + + +def pointedToType(t): + parts = t.split(" ") + if len(parts) == 2: + return parts[0] + elif parts[0] == "const": + return parts[1] + else: + return parts[0] + + +def constReferenceType(t): + return t.split(" ")[1] + + +def indexOf(element, sequence): + for i in range(0, len(sequence)): + if element == sequence[i]: + return i + return -1 + + +# +# Most enums should be handled by the metaObject system, however +# there are some that are not declared like that. They should be +# listed here. +# + +forceEnumOutput = { + "QIODeviceBase": ["OpenModeFlag"], + "QProcess": [ + "ExitStatus", + "ProcessChannel", + "ProcessChannelMode", + "ProcessError", + "ProcessState", + ], + "QAbstractSocket": [ + "NetworkLayerProtocol", + "SocketError", + "SocketState", + "SocketType", + ], + "QFileDevice": ["FileError", "FileHandleFlag", "MemoryMapFlags", "Permission"], + "QLocalSocket": ["LocalSocketError", "LocalSocketState"], +} + +# +# These are mis labeled in Qt's header files. QDOC_PROPERTY is used in +# insteadof Q_PROPERTY. For these classes, translate the props as +# functions. +# +doProps = ["QInputDialog"] + +doPropsIfFuncToo = [ + "primaryScreen", + "availableGeometry" +] + +noHFileOutput = [] # ["QObject"] + +# +# run the script with -rawclass to get the fully qualified pattern +# for a function in exclusionMap +# + +exclusionMap = { + "::qVariantCanConvert": None, + "::bin": None, + "::bom": None, + "::center": None, + "::dec": None, + "::endl": None, + "::fixed": None, + "::flush": None, + "::forcepoint": None, + "::forcesign": None, + "::hex": None, + "::left": None, + "::right": None, + "::lowercasebase": None, + "::lowercasedigits": None, + "::uppercasebase": None, + "::noforcepoint": None, + "::noforcesign": None, + "::oct": None, + "::qSetFieldWidth": None, + "::qSetPadChar": None, + "::qSetRealNumberPrecision": None, + "::reset": None, + "::scientific": None, + "::uppercasedigits": None, + "::ws": None, + "::showbase": None, + "::noshowbase": None, + "QSize::scaled": None, + "QSize::transposed": None, + "QPoint::dotProduct": None, + "QPointF::dotProduct": None, + "QPoint::hiResGlobalPos": None, + "QPointf::hiResGlobalPos": None, + "QTabletEvent::hiResGlobalPos": None, + "QObject::disconnect": None, + "QWidget::hasEditFocus": None, + "QWidget::setEditFocus": None, + "QWidget::macQDHandle": None, + "QWidget::macCGHandle": None, + "QWidget::x11Info": None, + "QWidget::x11PictureHandle": None, + "QWidget::getContentsMargins": None, + "QWidget::setContentsMargins": None, + "QWidget::setupUi": None, + "QWidget::render": None, # QPainter* + "QWidget::redirected": None, + "QWidget::WindowFlags": None, + "QProcess::setNativeArguments": None, + "QProcess::nativeArguments": None, + "QProcess::createProcessArgumentsModifier": None, + "QProcess::setCreateProcessArgumentsModifier": None, + "QProcess::setChildProcessModifier": None, + "QProcess::startDetached": None, # handrolled + "QMenuBar::defaultAction": None, + "QMenuBar::setDefaultAction": None, + "QPlainTextEdit::extraSelections": None, + "QPlainTextEdit::setExtraSelections": None, + "QPlainTextEdit::getPaintContext": None, # something wrong w/enum convert + "QTextBlock::textFormats": None, + "QPainterPath::elementAt": None, + "QPainter::QPainter": None, # handrolled + "QKeySequence::QVariant": None, + "QPdfWriter::QPdfWriter": None, + "QPixmap::handle": None, + "QPixmap::x11PictureHandle": None, + "QPixmap::HBitmapFormat": None, + "QPixmap::ShareMode": None, + "QPixmap::scroll": None, # Uses QRegion* as default arg with val == 0 + "QPixmap::fromX11Pixmap": None, + "QPixmap::NoAlpha": None, + "QPixmap::PremultipliedAlpha": None, + "QPixmap::Alpha": None, + "QPixmap::HBitmapFormat": None, + "QPixmap::ShareMode": None, + "QPixmap::ImplicitlyShared": None, + "QPixmap::ExplicitlyShared": None, + "QPixmap::fromImage": [ + ( + "fromImage", + "", + [ + ("image", "QImage & &", None), + ("flags", "Qt::ImageConversionFlags", "Qt::AutoColor"), + ], + "QPixmap", + False, + ) + ], + "QPixmap::alphaChannel": None, + "QPixmap::setAlphaChannel": None, + "QImage::QImage": [ + ( + "QImage", + "", + [("fileName", "const char &", None), ("format", "const char *", "nullptr")], + "", + False, + ) + ], + "QImage::smoothScaled": None, + "QIcon::paint": None, + "QColor::allowX11ColorNames": None, + "QColor::setAllowX11ColorNames": None, + # shadows the int version + "QByteArray::number": [ + ( + "number", + "", + [("n", "uint", None), ("base", "int", "10")], + "QByteArray", + False, + ) + ], + # "QByteArray::toStdString" : [ ('toStdString', 'const', [], 'std::string', False) ], + # "QByteArray::fromStdString" : [ ('fromStdString', '', [('str', 'const std::string &', None)], 'QByteArray', False) ], + "QByteArray::toStdString": None, + "QByteArray::fromStdString": None, + # cannot convert from 'QByteArray::FromBase64Result' to 'int' + "QByteArray::fromBase64Encoding": None, + "QByteArray::toEcmaUint8Array": None, + "QByteArray::fromEcmaUint8Array": None, + "QRegion::setRects": None, + # these use QString* to pass default args of 0: they need to be implemented by hand + "QFileDialog::getOpenFileName": None, + "QFileDialog::getOpenFileUrl": None, + "QFileDialog::getOpenFileNames": None, + "QFileDialog::getSaveFileName": None, + "QFileDialog::getExistingDirectoryUrl": None, + "QFileDialog::getOpenFileUrls": None, + "QFileDialog::getSaveFileName": None, + "QFileDialog::getSaveFileUrl": None, + # Issue with std::function + "QFileDialog::getOpenFileContent": None, + # these are shadowing get prop funcs of the same names" + "QCoreApplication::applicationName": None, + "QCoreApplication::setApplicationName": None, + "QCoreApplication::applicationVersion": None, + "QCoreApplication::setApplicationVersion": None, + "QCoreApplication::organizationName": None, + "QCoreApplication::setOrganizationName": None, + "QCoreApplication::organizationDomain": None, + "QCoreApplication::setOrganizationDomain": None, + "QCoreApplication::isQuitLockEnabled": None, + "QCoreApplication::setQuitLockEnabled": None, + # Issue with protected enum + "QDial::sliderChange": None, + # deprecated (its gone?) + "QApplication::keypadNavigationEnabled": None, + # shadows props + "QApplication::navigationMode": None, + "QApplication::cursorFlashTime": None, + "QApplication::doubleClickInterval": None, + "QApplication::globalStrut": None, + "QApplication::keyboardInputInterval": None, + "QApplication::quitOnLastWindowClosed": None, + "QApplication::layoutDirection": None, + "QApplication::startDragDistance": None, + "QApplication::startDragTime": None, + "QApplication::windowIcon": None, + "QApplication::wheelScrollLines": None, + "QApplication::setNavigationMode": None, + "QApplication::setCursorFlashTime": None, + "QApplication::setDoubleClickInterval": None, + "QApplication::setGlobalStrut": None, + "QApplication::setKeyboardInputInterval": None, + "QApplication::setQuitOnLastWindowClosed": None, + "QApplication::setLayoutDirection": None, + "QApplication::setStartDragDistance": None, + "QApplication::setWindowIcon": None, + "QApplication::setWheelScrollLines": None, + "QApplication::setStartDragTime": None, + "QApplication::overrideCursor": None, + "QGuiApplication::keypadNavigationEnabled": None, + # shadows props + "QGuiApplication::navigationMode": None, + "QGuiApplication::cursorFlashTime": None, + "QGuiApplication::doubleClickInterval": None, + "QGuiApplication::globalStrut": None, + "QGuiApplication::keyboardInputInterval": None, + "QGuiApplication::quitOnLastWindowClosed": None, + "QGuiApplication::layoutDirection": None, + "QGuiApplication::startDragDistance": None, + "QGuiApplication::startDragTime": None, + "QGuiApplication::windowIcon": None, + "QGuiApplication::wheelScrollLines": None, + "QGuiApplication::setNavigationMode": None, + "QGuiApplication::setCursorFlashTime": None, + "QGuiApplication::setDoubleClickInterval": None, + "QGuiApplication::setGlobalStrut": None, + "QGuiApplication::setKeyboardInputInterval": None, + "QGuiApplication::setQuitOnLastWindowClosed": None, + "QGuiApplication::setLayoutDirection": None, + "QGuiApplication::setStartDragDistance": None, + "QGuiApplication::setWindowIcon": None, + "QGuiApplication::setWheelScrollLines": None, + "QGuiApplication::setStartDragTime": None, + "QGuiApplication::overrideCursor": None, + "QGuiApplication::applicationDisplayName": None, + "QGuiApplication::setApplicationDisplayName": None, + "QGuiApplication::platformName": None, + # Same as above properties, issue generating a Mu::NodeFunc for it + "QGuiApplication::desktopFileName": None, + # Same as above properties, issue generating a Mu::NodeFunc for it + "QGuiApplication::setDesktopFileName": None, + # Don't seem to exist in the doc, but it gets generated + "QGuiApplication::Cursor": None, + "QAbstractSpinBox::stepEnabled": None, # needs to be done by hand + "QAbstractListModel::columnCount": None, # private + "QAbstractListModel::parent": None, # private + "QAbstractListModel::hasChildren": None, # private + "QAbstractTableModel::parent": None, # private + "QAbstractTableModel::hasChildren": None, # private + # Issue with CheckIndexOption type. + "QAbstractItemModel::checkIndex": None, + "QHeaderView::indexAt": None, # protected -- FIX ME? + "QHeaderView::scrollTo": None, # protected -- FIX ME? + "QHeaderView::visualRect": None, # protected -- FIX ME? + "QHeaderView::moveCursor": None, # protected -- FIX ME? + "QListView::moveCursor": None, # protected enum + "QSpinBox::fixup": None, # protected + # funky "return" + "QItemSelection::split": None, + "QVariant::canConvert": None, + "QVariant::PointArray": None, + "QVariant::canView": None, + "QBrush::gradient": None, + "QTextDocument::drawContents": None, # QPainter* + # these two are "shadowing" the constructor that takes an int + "QVariant::QVariant": [ + ("QVariant", "", [("color", "Qt::GlobalColor", None)], "", False), + ("QVariant", "", [("type", "QVariant::Type", None)], "", False), + ], + # Issue with std::variant and Types: "const std::variant" + "QVariant::fromStdVariant": None, + "QFile::QFile":[ + ('QFile', '', [('name', 'const std::filesystem::path &', None)], '', False), + ('QFile', '', [('name', 'const std::filesystem::path &', None), ('parent', 'QObject *', None)], '', False) + ], + "QFile::filesystemFileName": None, + "QFile::filesystemSymLinkTarget": None, + "QFile::link":[ + ('link', '', [('newName', 'const std::filesystem::path &', None)], 'bool', False) + ], + "QFile::rename":[ + ('rename', '', [('newName', 'const std::filesystem::path &', None)], 'bool', False) + ], + "QFile::setFileName":[ + ('setFileName', '', [('name', 'const std::filesystem::path &', None)], 'void', False) + ], + "QFile::permissions":[ + ('permissions', '', [('filename', 'const std::filesystem::path &', None)], 'QFileDevice::Permissions', False) + ], + "QFile::copy":[ + ('copy', '', [('newName', 'const std::filesystem::path &', None)], 'bool', False) + ], + "QFile::setPermissions":[ + ('setPermissions', '', [('permissions', 'QFileDevice::Permissions', None)], 'virtual bool', False), + ('setPermissions', '', [('fileName', 'const QString &', None), ('permissions', 'QFileDevice::Permissions', None)], 'bool', False), + ('setPermissions', '', [('filename', 'const std::filesystem::path &', None), ('permissionSpec', 'QFileDevice::Permissions', None)], 'bool', False) + ], + # Issue with conversion QString to QString * + "QFile::moveToTrash": [ + ( + "moveToTrash", + "", + [("fileName", "const QString &", None), ("pathInTrash", "QString *", "nullptr")], + "bool", + False + ) + ], + # QFile has funky semantics which screw things up in QFileInfo + # so these have to be done manually + "QFileInfo::QFileInfo": [ + ('QFileInfo', '', [('file', 'const QFileDevice &', None)], '', False), + ('QFileInfo', '', [('dir', 'const QDir &', None), ('file', 'const std::filesystem::path &', None)], '', False), + ('QFileInfo', '', [('file', 'const std::filesystem::path &', None)], '', False) + ], + "QFileInfo::setFile": [ + ('setFile', '', [('file', 'const std::filesystem::path &', None)], 'void', False), + ('setFile', '', [('file', 'const QFileDevice &', None)], 'void', False) + ], + "QFileInfo::operator!=": [ + ( + "operator!=", + "const", + [("fileinfo", "const QFileInfo &", None)], + "bool", + False, + ) + ], + "QFileInfo::operator==": [ + ( + "operator==", + "const", + [("fileinfo", "const QFileInfo &", None)], + "bool", + False, + ) + ], + "QFileOpenEvent::openFile": None, # 4.8 added this: can't deal with QFile* <-> QFile& conversion yet + # cannot convert from 'QFormLayout::TakeRowResult' to 'int' + "QFormLayout::takeRow": None, + "QStandardItem::operator<": None, + "QListWidgetItem::operator<": None, + "QTableWidgetItem::operator<": None, + "QTreeWidgetItem::operator<": None, + "QTreeWidget::setModel": None, # private + "QListWidget::setModel": None, # private + "QTableWidget::setModel": None, # private + "QLabel::picture": None, + "QLabel::resourceProvider": None, + "QLabel::setResourceProvider": None, + # Issue with protected enum + "QListWidget::moveCursor": None, + # Issue with protected enum + "QTableWidget::moveCursor": None, + # Issue with protected enum + "QColumnView::moveCursor": None, + # Issue with protected enum + "QTableView::moveCursor": None, + # Issue with protected enum + "QTreeView::moveCursor": None, + # Issue with protected enum + "QTreeWidget::moveCursor": None, + "QFont::QFont": [ + ( + "QFont", + "", + [("font", "const QFont &", None), ("pd", "QPaintDevice *", None)], + "", + False, + ) + ], + "QFont::macFontID": None, + # Trouble with QNetworkReply::RawHeaderPair (QPair) + "QNetworkReply::rawHeaderPairs": None, + # "QWebFrame::render" : None, # QPainter* + # "QWebPage::javaScriptPrompt" : None, # QString* + "QWebEngineHistory::backItem": None, + "QWebEngineHistory::forwardItem": None, + "QWebEngineHistory::currentItem": None, + "QWebEngineHistory::itemAt": None, + # Issue with std::function + "QWebEngineCookieStore::setCookieFilter": None, + "QEvent::ChildInserted": None, + "QEvent::EnterEditFocus": None, # ???? + "QEvent::LeaveEditFocus": None, # ???? + "QAbstractSpinBox::fixup": None, # return val is arg + "QTouchEvent::QTouchEvent": None, + "QStyle::polish": [ + ("polish", "", [("palette", "QPalette &", None)], "virtual void", False) + ], + "QTextDocument::undo": None, # Takes a TextCursor* needs manual imp + "QTextDocument::redo": None, # same + "QSlider::sliderChange": None, # protected + # Issue with the "feature" argument. + "QTextDocument::setMarkdown": None, + # Issue with the "feature" argument. + "QTextDocument::toMarkdown": None, + "QTextDocument::setDefaultResourceProvider": None, + "QTextDocument::resourceProvider": None, + "QTextDocument::setResourceProvider": None, + "QTextDocument::defaultResourceProvider": None, + "QTextDocument::setDefaultResourceProvider": None, + "QTextEdit::extraSelections": None, + # Issue with const QList arg1 = (&)(param_tabStops); + "QTextOption::setTabs": None, + # Issue with the generated "QTextOption::TType". Does not exist. + "QTextOption::tabs": None, + # Syntax error with "const QList arg1 = (&)(param_selections);" + "QTextEdit::setExtraSelections": None, + "QTextStream::QTextStream": None, # handrolled + "QTextStream::setString": None, + "QTextStream::string": None, + "QTextStream::readLineInto": None, + "QTextStream::operator<<": None, + "QTextStream::operator>>": None, + # cannot convert from 'std::chrono::milliseconds' to 'int' + "QTimer::intervalAsDuration": None, + # cannot convert from 'std::chrono::milliseconds' to 'int' + "QTimer::remainingTimeAsDuration": None, + "QCursor::bitmap": None, + "QCursor::mask": None, + "QMargins::operator+=": None, + "QMargins::operator-=": None, + "QMargins::operator*=": None, + "QMargins::operator/=": None, + "QWebEnginePage::findText": None, + "QWebEnginePage::javaScriptPrompt": None, + "QWebEnginePage::runJavaScript": None, + "QWebEnginePage::toHtml": None, + "QWebEnginePage::toPlainText": None, + "QWebEnginePage::history": None, + "QWebEngineView::history": None, + "QWebEngineProfile::setNotificationPresenter": None, + "QWebEngineProfile::requestIconForIconURL": None, + "QWebEngineProfile::requestIconForPageURL": None, + "QWebEngineView::findText": None, + "QMenu::setAsDockMenu": None, + # Trouble with std::initializer_list + # syntax error: std::initializer_list > arg1 = (>)(param_list); + "QUrlQuery::QUrlQuery": [ + ( + "QUrlQuery", + "", + [ + ("list", "std::initializer_list>", None), + ], + "", + False, + ) + ], + "QQuickItem::itemChange":[ + ( + "itemChange", + "", + [("change", "QQuickItem::ItemChange", None), ("value", "const QQuickItem::ItemChangeData &", None)], + "virtual void", + False + ) + ], + # Syntax issue with 'const QVector arg1 = (&)(param_properties);' + "QQmlContext::setContextProperties": None, + "QRectF::toDOMRect": None, + "QRectF::fromDOMRect": None, + # Requires C++20 and new method in Qt 6.4. + "QDateTime::toStdSysSeconds": None, + # Requires C++20 and new method in Qt 6.4. + "QDateTime::toStdSysMilliseconds": None, + # Requires C++20 and new method in Qt 6.4. + "QDateTime::fromStdTimePoint": None, + # Requires C++20 and new method in Qt 6.4. + "QDate::toStdSysDays": None, + # Requires C++20 and new method in Qt 6.4. + "QDate::addDuration": None, + # Requires C++20 and new method in Qt 6.4. + "QDate::QDate": [ + ( + "QDate", + "", + [ + ("ymd", "int", None), + ], + "", + False, + ), + ( + "QDate", + "", + [ + ("ymd", "std::chrono::year_month_day_last ymd", None), + ], + "", + False, + ), + ( + "QDate", + "", + [ + ("ymd", "std::chrono::year_month_weekday ymd", None), + ], + "", + False, + ), + ( + "QDate", + "", + [ + ("ymd", "std::chrono::year_month_weekday_last ymd", None), + ], + "", + False, + ), + ], + "QDir::QDir": [ + ('QDir', '', [('path', 'const std::filesystem::path &', None), ('nameFilter', 'const QString &', None), ('sort', 'QDir::SortFlags', 'SortFlags(Name | IgnoreCase)'), ('filters', 'QDir::Filters', 'AllEntries')], '', False), + ('QDir', '', [('path', 'const std::filesystem::path &', None)], '', False) + ], + "QDir::filesystemAbsolutePath": None, + "QDir::filesystemCanonicalPath": None, + "QDir::filesystemPath": None, + "QDir::setPath": [ + ('setPath', '', [('path', 'const std::filesystem::path &', None)], 'void', False) + ], + "QDir::addSearchPath": [ + ('addSearchPath', '', [('prefix', 'const QString &', None), ('path', 'const std::filesystem::path &', None)], 'void', False) + ], + "QFileInfo::filesystemAbsoluteFilePath": None, + "QFileInfo::filesystemAbsolutePath": None, + "QFileInfo::filesystemCanonicalFilePath": None, + "QFileInfo::filesystemCanonicalPath": None, + "QFileInfo::filesystemFilePath": None, + "QFileInfo::filesystemJunctionTarget": None, + "QFileInfo::filesystemPath": None, + "QFileInfo::filesystemReadSymLink": None, + "QFileInfo::filesystemSymLinkTarget": None, +} + +customNativeFuncsHeader = { + "QAbstractItemModel": "QModelIndex createIndex0_pub(int row, int column, Pointer p) const { return createIndex(row, column, p); }" +} + +excludedDefaultValues = [ + # "QWebFrame::addToJavaScriptWindowObject", + "QDir::entryInfoList", + "QDir::entryList", +] + + +def isFunctionExcluded(qtnamespace, qtfunc): + if qtnamespace != None: + cppname = qtnamespace.name + "::" + qtfunc[0] + else: + cppname = qtfunc[0] + if cppname in exclusionMap: + e = exclusionMap[cppname] + if e == None: + return True + inname = str(qtfunc) + for f in e: + if inname == str(f): + return True + return False + + +def doesFunctionAllowDefaultValues(qtnamespace, funcname): + if qtnamespace != None: + cppname = qtnamespace.name + "::" + funcname + else: + cppname = qtfunc[0] + if cppname in excludedDefaultValues: + return False + else: + return True + + +# +# For name mangling. This is taken directly from the Context.cpp +# file in Mu. The names generated by this map/func are used by the +# muc front end when compiling to C++ +# + +mangleMap = { + " ": "_", + ".": "__", + "~": "Tilde_", + "`": "Tick_", + "+": "Plus_", + "-": "Minus_", + "!": "Bang_", + "%": "PCent_", + "@": "At_", + "#": "Pound_", + "$": "Dollar_", + "^": "Caret_", + "&": "Amp_", + "*": "Star_", + "(": "BParen_", + ")": "EParen_", + "=": "EQ_", + "{": "BCB_", + "}": "ECB_", + "[": "BSB_", + "]": "ESB_", + "|": "Pipe_", + "\\": "BSlash_", + ":": "Colon_", + ";": "SColon_", + '"': "Quote_", + "'": "SQuote_", + "<": "LT_", + ">": "GT_", + ",": "Comma_", + "?": "QMark_", + "/": "Slash_", +} + +qListRE = re.compile("(const)? *QList<([a-zA-Z][a-zA-Z0-9_]+)[ *]*>") +makeRE = re.compile("<([A-Za-z]+,)?(Q[A-Za-z]+Type)") +intRE = re.compile("-?[0-9]+") + + +def mangleName(name): + out = "" + for c in name: + k = str(c) + if mangleMap.has_key(k): + out += mangleMap[k] + else: + out += k + return out + + +def convertFrom(expr, ktype, atype): + if convertFromMap.has_key(ktype): + (s, o) = convertFromMap[ktype] + return ( + string.replace(string.replace(s, "$E", expr), "$T", atype), + string.replace(o, "$T", atype), + ) + elif ktype.startswith("flags "): + ntype = atype.split()[-1] + return ("(%s)(%s)" % (ntype, expr), ntype) + elif ktype.split(".")[-1] in primitiveTypes: + ptype = ktype.split(".")[-1] + ntype = atype.split()[-1] + return ("getqtype<%sType>(%s)" % (ptype, expr), ntype) + elif ktype.split(".")[-1] in pointerTypes: + ptype = ktype.split(".")[-1] + ntype = atype + return ("getqpointer<%sType>(%s)" % (ptype, expr), ntype) + elif "[]" in ktype: + # QList + ptype = ktype.split(".")[-1][0:-2] + ntype = atype + if ptype in primitiveTypes: + return ("qtypelist<%s,%sType>(%s)" % (ptype, ptype, expr), ntype) + else: + return ("qpointerlist<%sType>(%s)" % (ptype, expr), ntype) + else: + return ("(%s)(%s)" % (atype, expr), atype) + + +def convertTo(expr, ktype): + ktype = sstrip(string.replace(ktype, "virtual", "")) + constRef = isConstReference(ktype) + pointer = isPointerToSomething(ktype) + if constRef: + ktype = constReferenceType(ktype) + elif pointer: + ktype = pointedToType(ktype) + if convertToMap.has_key(ktype): + (s, o) = convertToMap[ktype] + return string.replace(string.replace(s, "$E", expr), "$T", ktype) + elif ktype in primitiveTypes: + return 'makeqtype<%sType>(c,%s,"qt.%s")' % (ktype, expr, ktype) + elif ktype in pointerTypes and not constRef: + return 'makeqpointer<%sType>(c,%s,"qt.%s")' % (ktype, expr, ktype) + elif muapi.classes.has_key(ktype): + muclass = muapi.classes[ktype] + if muclass.isAByName("QObject"): + return 'makeinstance<%sType>(c,%s,"qt.%s")' % (ktype, expr, ktype) + elif muclass.isAByName("QLayoutItem"): + return 'makelayoutitem<%sType>(c,%s,"qt.%s")' % (ktype, expr, ktype) + elif muclass.isAByName("QPaintDevice"): + return 'makepaintdevice<%sType>(c,%s,"qt.%s")' % (ktype, expr, ktype) + elif muclass.isAByName("QIODeviceBase"): + return 'makeiodevicebase<%sType>(c,%s,"qt.%s")' % (ktype, expr, ktype) + else: + print("ERROR: can't convertTo", expr, ktype) + return "NOT_CONVERTED(%s,%s)" % (expr, ktype) + elif "QList<" in ktype: + # QList + mtype = ktype[6:-3] + m = qListRE.match(ktype) + if m: + mtype = m.group(2) + if mtype in primitiveTypes: + return 'makeqtypelist<%s, %sType>(c,%s,"qt.%s")' % ( + mtype, + mtype, + expr, + mtype, + ) + else: + return 'makeqpointerlist<%sType>(c,%s,"qt.%s")' % (mtype, expr, mtype) + elif "::" in ktype: + return "int(%s)" % expr + else: + # print "convertTo fall through", str(expr), str(ktype) + return expr + + +def setExpr(targetexpr, expr, ktype): + ktype = sstrip(string.replace(ktype, "virtual", "")) + t = "" + if setMap.has_key(ktype): + t = setMap[ktype] + elif ktype in primitiveTypes: + return "setqtype<%sType>(%s,%s)" % (ktype, targetexpr, expr) + elif ktype in pointerTypes: + return "setqpointer<%sType>(%s,%s)" % (ktype, targetexpr, expr) + else: + t = "$O = $E" + return string.replace(string.replace(t, "$E", expr), "$O", targetexpr) + + +def conditionType(t): + if t.startswith("flags "): + return "int" + else: + return t + + +# +# Qt converter map +# + + +# +# During parsing this will get populated with all of the types that have +# been discovered +# + + +class API: + def __init__(self): + self.types = set() + self.classes = {} + self.tmap = translationMap + self.excludeProps = [] + + def finish(self): + # adjust all the inheritedby and inherits fields in qt 5 the + # docs no longer show cross module inheritance so we have to + # hook it up after the fact + for k in self.classes.keys(): + c = self.classes[k] + for parent in c.inherits: + if parent in self.classes: + other = self.classes[parent] + if k not in other.inheritedby: + other.inheritedby.append(k) + for k in self.classes.keys(): + # for the time being only do classes we've got working so far + if k in includeClasses: + self.tmap[k] = k + c = self.classes[k] + self.tmap[k] = k + + def showClass(self, name): + c = self.classes[name] + c.output() + + def translate(self, cpptype, inclass): + F = lambda x: x not in typeElaborations + parts = cpptype.split(" ") + + if ("int" in parts or "qreal" in parts) and ("*" in parts): + return None + + # rvalue not supported + if cpptype.find("&&") != -1 or cpptype.find("& &") != -1: + return None + + # iterators not supported + if cpptype.find("iterator") != -1: + return None + + key = " ".join(filter(F, parts)) + # e.g. "const QString &" -> "QString" + if self.tmap.has_key(key) and (key in includeClasses): + return self.tmap[key] + # e.g. "const char *" + if self.tmap.has_key(cpptype): + return self.tmap[cpptype] + # an enum at the top level? + # if cpptype.startswith("Qt::"): + # return "flags %s" % cpptype + if cpptype.find("::") != -1: + return "flags %s" % cpptype + + if inclass.enumInHierarchy(cpptype): + return "flags %s" % inclass.fullEnumName(cpptype) + # an enum in the class not qualified + # test whether the type name needs to be fully qualified + # e.g. "InsertPolicy" -> "QComboBox::InsertPolicy" + # if inclass != None: + # for e in inclass.enums: + # if e.name == cpptype or e.flags == cpptype: + # return "flags %s::%s" % (inclass.name, cpptype) + # return self.translate(inclass.name + "::" + cpptype, None) + return None + + +api = API() +verbose = True + + +def message(s): + global verbose + if verbose: + print(s) + + +def sstrip(s): + return s.lstrip().rstrip() + + +def addType(t): + api.types.add(t) + + +def parseProperty(prop): + prop = prop[0:-1] + parts = prop.split(" : ") + if len(parts) == 2: + name = sstrip(parts[0]) + type = sstrip(parts[1]) + addType(type) + return (name, type) + else: + return None + + +def parseType(t): + global api + t = sstrip(reduce(lambda x, y: str(x) + " " + str(y), t, "")) + addType(t) + return t + + +def indexInList(el, list): + i = 0 + for l in list: + if l == el: + return i + i += 1 + return i + + +def parseParameter(param, n): + param = sstrip(param) # .replace("*", "* ").replace("&", "& ") + if param == "const" or param == "": + return param + parts = param.split() + default = None + name = "_p%d" % n + if parts == []: + return ("", param, None) + if "=" in parts: + index = indexInList("=", parts) + default = sstrip( + reduce(lambda x, y: str(x) + " " + str(y), parts[index + 1 :], "") + ) + name = parts[index - 1] + del parts[index - 1 :] + elif "*" in parts or "&" in parts: + if parts[-1] == "*" or parts[-1] == "&": + # name = None + pass + else: + name = parts[-1] + del parts[-1] + elif len(parts) == 1: + return (name, parts[0], default) + else: + name = parts[-1] + del parts[-1] + if parts == [] and name == None and default == None: + return None + else: + type = parseType(parts[:]) + return (name, type, default) + + +def parse_cpp_function(function_signature): + # Updated regular expression to handle operator overloading + pattern = r'^((?:template\s+)?(?:virtual\s+)?(?:explicit\s+)?(?:[\w:]+(?:<.*?>)?(?:\s*[\*&])?\s+)+)?\s*(\~?\w+(?:::\w+)*|\w+\s*(?:<.*?>)?::(?:~?\w+|operator\s*\S+)|operator\s*\S+)\s*(\(.*?\))(?:\s*((?:const)?\s*(?:noexcept)?\s*(?:override)?\s*(?:final)?\s*(?:&)?\s*(?:->.*?)?(?:=\s*\w+)?))?$' + + match = re.match(pattern, function_signature.strip()) + + if not match: + return None, None, None, None + + return_type, function_name, parameters, after_parameters = match.groups() + + # Clean up the matches + if return_type: + return_type = return_type.strip() + else: + return_type = "" + + function_name = function_name.strip() + + # Fix this as this remove () for thing like Qt::WindowsFlag() + parameters = parameters[1:-1] + + if after_parameters: + after_parameters = after_parameters.strip() + else: + after_parameters = "" + + return return_type, function_name, parameters, after_parameters + +def parseFunction(func, qtnamespace): + orig_func = func + # parts = func.split("(") + # in 5.6 they added some crap and * and & are no longer separated by spaces + # 5.9 has override in the const portion + if "(deprecated)" in func: + message("WARNING: " + func) + if "(shadows)" in func: + message("WARNING: " + func) + # Qt6: Do not parse obsolete function. + if "(obsolete)" in func: + message("WARNING: Obsolete: " + func) + return None + func = func.replace("(deprecated) ", "") + func = func.replace("(shadows) ", "") + func = func.replace("*", "* ") + func = func.replace("&", "& ") + func = func.replace("override", "") + prop = False + demoted = False + if len(func) == 0: + return None + + message("Processing function " + func) + if func[-1] == "@": + # demote virtual props to not props otherwise we can't create + # the _func array because they won't exist in time + demoted = "virtual" in func + prop = not demoted + func = func[0:-1] + + # try: + # groups = parse_cpp_function(func) + # parts = [groups[0] + " " + groups[1], groups[2]] + # thistype = groups[3] + # message("CEDRIK Parts: " + str(parts)) + # message("CEDRIK thistype: " + groups[3]) + # except: + # # Fall back to previous method + # sindex = func.find("(") + # eindex = func.rfind(")") + # thistype = sstrip(func[eindex + 1 :]) + # func = func[0:eindex] + # if sindex == -1: + # return None + # parts = [func[0:sindex], func[sindex + 1 :]] + # message("Parts: " + str(parts)) + # message("thistype = " + thistype) + + try: + sindex = func.find("(") + eindex = func.rfind(")") + thistype = sstrip(func[eindex + 1 :]) + func = func[0:eindex] + if sindex == -1: + return None + parts = [func[0:sindex], func[sindex + 1 :]] + message("Parts: " + str(parts)) + message("thistype = " + thistype) + + if len(parts) == 2: + nameproto = parts[0].split() + allparams = parts[1] + + bracketlevel = 0 + current = "" + params = [] + count = 0 + + for c in allparams: + if c == "," or c == ")": + if bracketlevel == 0: + params.append(parseParameter(current, count)) + current = "" + else: + if c == ")": + bracketlevel -= 1 + current += c + elif c == "<" or c == "(": + bracketlevel += 1 + current += c + elif c == ">" or c == ")": + bracketlevel -= 1 + current += c + else: + current += c + + count = count + 1 + + if len(allparams) != 0: + params.append(parseParameter(current, count)) + + message("Params: " + str(params)) + + # make new name for params with same name as func + for i in range(0, len(params)): + p = params[i] + # Compare the first element of p and the last element of nameproto. + message("Before comparison: " + str(p) + " with " + str(nameproto)) + # if nameproto: + # message("Comparing: " + p[0] + " with " + nameproto[-1]) + if p[0] == nameproto[-1]: + # Append underscore + params[i] = (p[0] + "_", p[1], p[2]) + + if nameproto: + v = (nameproto[-1], thistype, params, string.join(nameproto[0:-1]), prop) + if demoted: + qtnamespace.demotedProps.append(v) + # message("PROP demoted " + str(func)) + return v + else: + message("WARNING: Nameproto empty for " + func) + except: + # Skip any function that has issue with the simple parsing above. + print("Error parsing function.. skipping: {0}".format(orig_func)) + return None + + return None + + +## +## NamespaceInfo holds the final parsed info about a Qt Class The +## other results are Enumeration and Enum which are the name of the +## enumeration and each individual name*value pair. +## + + +class NamespaceInfo: + def __init__(self, name=None): + self.name = name + self.isclass = False + self.slots = [] + self.signals = [] + self.functions = [] + self.publicfuncs = [] + self.protectedfuncs = [] + self.enums = [] + self.parents = [] + self.properties = [] + self.globalfuncs = [] + self.staticfuncs = [] + self.isclass = False + self.includes = [] + self.inheritedby = [] + self.inherits = [] + self.module = "" + self.demotedProps = [] + + def output(self): + if self.isclass: + print("class", self.name) + else: + print("namespace", self.name) + + print("--module--") + print(self.module) + + print("--inherits--") + print(self.inherits) + + print("--inheritedby--") + print(self.inheritedby) + + if self.includes: + print("--includes--") + for i in self.includes: + print(i) + + if self.properties: + print("--props--") + for i in self.properties: + if i != None: + print(i) + if self.enums: + print("--enums--") + for i in self.enums: + print(i.name, i.flags) + for q in i.enums: + print(" ", q.name, "=", q.value) + + if self.publicfuncs: + print("--public member functions--") + for i in self.publicfuncs: + if i != None: + print(i) + + if self.protectedfuncs: + print("--protected member functions--") + for i in self.protectedfuncs: + if i != None: + print(i) + + if self.signals: + print("--signals functions--") + for i in self.signals: + if i != None: + print(i) + + if self.slots: + print("--slot functions--") + for i in self.slots: + if i != None: + print(i) + + if self.staticfuncs: + print("--static functions--") + for i in self.staticfuncs: + if i != None: + print(i) + + if self.globalfuncs: + print("--global functions--") + for i in self.globalfuncs: + if i != None: + print(i) + + def enumInHierarchy(self, name): + global api + for i in self.enums: + fullname = "%s::%s" % (self.name, name) + if ( + i.name == name + or i.name == fullname + or i.flags == name + or i.flags == fullname + ): + return True + for p in self.inherits: + if api.classes.has_key(p): + parent = api.classes[p] + if parent.enumInHierarchy(name): + return True + return False + + def fullEnumName(self, name): + global api + for i in self.enums: + fullname = "%s::%s" % (self.name, name) + if ( + i.name == name + or i.name == fullname + or i.flags == name + or i.flags == fullname + ): + return i.name + for p in self.inherits: + if not p in api.classes.keys(): + print( + "WARNING:", + p, + "not in classes - can't make fullEnumName in", + self.name, + ) + else: + parent = api.classes[p] + x = parent.fullEnumName(name) + if x: + return x + return None + + def finish(self): + for q in range(0, len(self.functions)): + f = self.functions[q] + (name, fconst, params, rtype, prop) = f + ctype = self.name + "::" + rtype + fixed = False + for e in self.enums: + if e.name == ctype or e.flags == ctype: + self.functions[q] = (name, fconst, params, ctype, prop) + if f in self.protectedfuncs: + # patch protectedfuncs so we can do f in protectedfuncs + n = indexOf(f, self.protectedfuncs) + self.protectedfuncs[n] = self.functions[q] + fixed = True + + (name, fconst, params, rtype, prop) = self.functions[q] + + for i in range(0, len(params)): + p = params[i] + (pname, ptype, pval) = p + ctype = self.name + "::" + ptype + for e in self.enums: + if e.name == ctype or e.flags == ctype: + # print "fixed:", params[i][1], "to", ctype + params[i] = (pname, ctype, pval) + + +rootnamespace = NamespaceInfo("") + + +class Enum: + def __init__(self, name, value): + self.name = name + self.value = value + + +class Enumeration: + def __init__(self, name): + self.name = name + self.enums = [] + self.flags = None + self.protected = False + + +# +# These are Mu versions of above. By handing MuClass a Namespace +# from above it will generate MuFunction and MuEnum objects which +# are then used to produce output +# + + +class MuEnum: + def __init__(self, enumeration, muclass): + self.muclass = muclass + self.name = enumeration.name.split(":")[-1] + self.flags = None + self.output = False + self.protected = enumeration.protected + self.value = None + + if forceEnumOutput.has_key(muclass.name): + enums = forceEnumOutput[muclass.name] + for e in enums: + if e == self.name: + # print "INFO: will output %s.%s\n" % (muclass.name, e) + self.output = True + + if self.protected: + self.output = True + + xmap = exclusionMap + + if enumeration.flags: + self.flags = enumeration.flags.split(":")[-1] + self.symbols = [] + for e in enumeration.enums: + if e.name != "\n": + # TODO: Might not be the right place to do it, but it works. + # Remove anything parenthesis and spacing in the name. + pattern = r'\([^)]*\)' + e.name = re.sub(pattern, '', e.name).strip() + name_without_class_name = e.name.split(muclass.name, 1)[1] + # Could use e.name for val, but let's keep the logic similar. + val = muclass.name + name_without_class_name + # Name the symbolic constant with the enum name (no class or enum class). + n = name_without_class_name.split(":")[-1] + if self.protected: + # for protected enums use actual value instead of symbolic + val = e.value + if not xmap or (not val in xmap): + self.symbols.append((n, val)) + + def aliasDeclation(self): + s = 'new Alias(c, "%s", "int")' % self.name + if self.protected: + s += " /* PROTECTED ENUM */" + return s + + def flagsAliasDeclaration(self): + if self.flags: + return 'new Alias(c, "%s", "int")' % self.flags + else: + return None + + def symbolDeclaration(self, symbolTuple): + (name, val) = symbolTuple + out = 'new SymbolicConstant(c, "%s", "int", Value(int(' % name + out += "%s)))" % val + return out + + +class MuFunction: + def __init__(self, api, muclass, qtfunc, isMember, isProtected, isCastOp): + # + # Iterate over the functions + # + + c = muclass.qt + (name, const, args, rtype, isprop) = qtfunc + if c.name in doProps: + isprop = False + + # Manual list that says that the function is a properties as well. + if qtfunc[0] in doPropsIfFuncToo: + isprop = False + + count = 0 + if muclass.funcCount.has_key(name): + count = muclass.funcCount[name] + count = count + 1 + muclass.funcCount[name] = count + + self.muclass = muclass + self.abstract = isAbstract(name) + self.name = name + self.qtfunc = qtfunc + self.iscastop = isCastOp + self.isconstructor = self.name == muclass.name or isCastOp + self.isprotected = isProtected + self.isprop = isprop + self.args = [] + self.rtype = None + self.failed = False + self.node = mangleName("_n_%s%d" % (name, count)) + self.virtual = rtype.find("virtual") != -1 + self.virtualSlot = -1 + self.operator = self.name.find("operator") != -1 + self.ismember = isMember + self.isconst = "const" in const + self.purevirtual = "= 0" in qtfunc[1] + + print("Processing function {0}".format(qtfunc)) + print("failed: {0}, isprop: {1}, isprotected: {2}".format(str(self.failed), str(self.isprop), str(self.isprotected))) + + if self.operator: + self.name = name[8 : len(name)] + + if self.iscastop: + self.node = "_co" + self.node + + # no overloading of op= yet + if self.name == "=": + self.failed = True + # message("%s failed because name is operator=" % name) + + # if "operator" in self.name: + # self.failed = True + # message("%s failed because of operator in name" % name) + for omit in ["virtual", "Q_INVOKABLE"]: + rtype = sstrip(string.replace(rtype, omit, "")) + + if isMember: + if self.iscastop: + self.args.append(("this", self.name, None)) + else: + self.args.append(("this", muclass.name, None)) + + for (aname, atype, aval) in args: + message("Trying to translate (%s, %s) for %s" % (atype, c, name)) + mutype = api.translate(atype, c) + if mutype == None: + self.failed = True + message("%s failed because api.translate(%s,%s) return None" % (name, atype, c)) + mutype = '"%s"' % atype + self.args.append((aname, mutype, aval)) + + self.iscopyconstructor = False + + if self.isconstructor: + self.rtype = name + if len(self.args) == 2: + if self.args[1][1] == self.name: + if not "*" in qtfunc[2][0][1]: # not a pointer + self.iscopyconstructor = True + else: + self.rtype = api.translate(rtype, c) + + if self.iscopyconstructor: + self.failed = True + message("%s failed because its a copy constructor" % name) + + if self.rtype == None: + self.failed = True + self.rtype = '"%s"' % rtype + message("%s failed because rtype == %s" % (name, rtype)) + + self.compiled = mangleName( + "qt_%s_%s_%s" % (muclass.name, name, conditionType(self.rtype)) + ) + + # + # Test for functions that were already successfully translated + # that have the same function signature: if one is found we can't + # translate this one because it will shadow the previous + # one. + # + overloads = [] + if count > 0: + for f in muclass.functions: + if f.name == self.name and not f.failed: + overloads.append(f) + nargs = len(self.args) + for f in overloads: + fargs = len(f.args) + if fargs == nargs and not f.failed: + samecount = 0 + for i in range(0, nargs): + a = f.args[i][1] + b = self.args[i][1] + if a.startswith("flags"): + a = "int" + if b.startswith("flags"): + b = "int" + if a == b: + samecount = samecount + 1 + if samecount == nargs: + if name == "QVariant": + message("FAILED: (shadows) in %s" % str(qtfunc)) + message("OTHER = %s" % str(f.qtfunc)) + message( + "WARNING: %s.%s with %s shadows existing version" + % (muclass.name, self.name, str(self.args)) + ) + self.failed = True + + for a in self.args: + self.compiled += "_%s" % mangleName(conditionType(a[1])) + + print("self.compiled={0}, {1}".format(self.compiled, self.failed)) + + def unpackReturnValue(self, expr): + rtype = conditionType(self.rtype) + rep = repMapFind(rtype) + if rep != None: + (repType, instType) = rep + return expr + "._" + repType + else: + return expr + "._Pointer /* guess */" + + def symbolDeclaration(self): + # note: assumes the context is in a var called "c" + rtype = conditionType(self.rtype) + if self.muclass.muapi.classes.has_key(rtype): + rtype = "qt." + rtype + ftype = "Function" + if self.virtual: + ftype = "MemberFunction" + flags = "None" + if self.operator: + flags = "Op" + if self.iscastop: + flags = "Cast" + out = 'new %s(c, "%s", %s, %s, Compiled, %s, Return, "%s", ' % ( + ftype, + self.name, + self.node, + flags, + self.compiled, + rtype, + ) + if self.args: + out += "Parameters, " + for (aname, atype, aval) in self.args: + atype = conditionType(atype) + if self.muclass.muapi.classes.has_key(atype): + atype = "qt." + atype + out += 'new Param(c, "%s", "%s"' % (aname, atype) + # output default values: note that its only easy to do + # this for some value types. Generally Qt rarely used + # default parameter values before Qt 5 + # right now only ints, flags, and enums are supported + if aval != None and doesFunctionAllowDefaultValues( + self.muclass, self.name + ): + if atype == "int": + out += ", Value((int)%s)" % self.muclass.qualifyValue(aval) + out += "), " + out += "End)" + return out + + def nodeImplementation(self): + print("nodeImplementation -> {0}".format(self.name)) + if self.failed: + return "// MISSING NODE: %s" % self.muDeclaration() + if self.abstract and self.isconstructor and not self.muclass.inheritable: + return "// NO NODE: CLASS IS ABSTRACT: %s" % self.muDeclaration() + if self.isprotected and self.isconstructor: + return "// NO NODE: CONSTRUCTOR IS PROTECTED: %s" % self.muDeclaration() + rep = repMapFind(self.rtype) + if rep == None: + return None + (repType, instType) = rep + out = "static NODE_IMPLEMENTATION(%s, %s)\n{\n " % (self.node, repType) + endParen = False + if repType != "void": + out += "NODE_RETURN(" + endParen = True + out += "%s(NODE_THREAD" % self.compiled + if self.args: + count = 0 + for (aname, atype, aval) in self.args: + rep = repMapFind(atype) + (repType, instType) = rep + if count == 0 and self.ismember: + out += ", NONNIL_NODE_ARG(%d, %s)" % (count, repType) + else: + out += ", NODE_ARG(%d, %s)" % (count, repType) + count = count + 1 + if endParen: + out += "));\n" + else: + out += ");\n" + out += "}\n" + + return out + + def derefExp(self, expr, atype): + muclass = self.muclass + muapi = muclass.muapi + # protected enum + if "::" in atype: + atype = muclass.enumTypeRep(atype) + ktype = atype + if muapi.classes.has_key(atype): + c = muapi.classes[atype] + if c.isAByName("QObject"): + return convertFrom(expr, "qt.QObject", atype) + elif c.pointertype: + return convertFrom(expr, "qt." + atype, atype + " *") + else: + return convertFrom(expr, "qt." + atype, atype) + return convertFrom(expr, atype, atype) + + def derefArg(self, arg): + (aname, atype, aval) = arg + return self.derefExp("param_" + aname, atype) + + def compiledFunction(self): + # + # This is the function that does the real business + # + muclass = self.muclass + muapi = muclass.muapi + + if self.iscastop: + if muapi.classes.has_key(self.rtype): + muclass = muapi.classes[self.rtype] + else: + print("FAILED to find", self.rtype) + + print("Compiled function for {0}".format(muclass.name)) + + isQObject = muclass.isAByName("QObject") + isQPaintDevice = muclass.isAByName("QPaintDevice") + isQLayoutItem = muclass.isAByName("QLayoutItem") + isQIODeviceBase = muclass.isAByName("QIODeviceBase") + inheritable = muclass.inheritable + + setter = None + getter = None + maker = None + + callname = self.name + if self.operator: + callname = "operator%s" % self.name + + if isQObject: + setter = "setobject" + getter = "object" + maker = "makeinstance" + isafunc = "isMuQtObject" + elif isQLayoutItem: + setter = "setlayoutitem" + getter = "layoutitem" + maker = "makelayoutitem" + isafunc = "isMuQtLayoutItem" + elif isQPaintDevice: + setter = "setpaintdevice" + getter = "paintdevice" + maker = "makepaintdevice" + isafunc = "isMuQtPaintDevice" + elif isQIODeviceBase: + setter = "setiodevicebase" + getter = "iodevicebase" + maker = "makeiodevicebase" + isafunc = "isMuQtIODeviceBase" + + if self.failed: + return "// MISSING FUNC: %s" % self.muDeclaration() + if self.abstract and self.isconstructor and not inheritable: + return "// NO FUNC: CLASS IS ABSTRACT: %s" % self.muDeclaration() + if self.isprotected and self.isconstructor: + return "// NO FUNC: CONSTRUCTOR IS PROTECTED: %s" % self.muDeclaration() + rep = repMapFind(self.rtype) + out = "%s %s(Mu::Thread& NODE_THREAD" % (rep[0], self.compiled) + for (aname, atype, aval) in self.args: + rep = repMapFind(atype) + out += ", %s param_%s" % (rep[0], aname) + out += ")\n{\n" + body = "" + + qtrtype = self.qtfunc[3] + + expr = "" + altexpr = None + + if self.isconstructor: + if muclass.primitivetype: + expr = "%s(" % self.name + else: + if inheritable: + expr = ( + "new MuQt_%s(param_this, NODE_THREAD.process()->callEnv()" + % self.name + ) + if len(self.args) > 1: + expr += ", " + else: + expr = "new %s(" % self.name + else: + if self.ismember: + pub = "" + parentpub = "" + if muclass.primitivetype: + if self.isprotected: + expr = "((MuQt_%s&)arg0).%s_pub(" % (muclass.name, self.name) + else: + expr = "arg0.%s(" % callname + else: + if inheritable and self.virtual and not self.purevirtual: + # not self.isprotected \ + # only if its public + if self.isprotected: + expr = "((MuQt_%s*)arg0)->%s_pub_parent(" % ( + muclass.name, + self.name, + ) + altexpr = "((MuQt_%s*)arg0)->%s_pub(" % ( + muclass.name, + self.name, + ) + else: + expr = "arg0->%s::%s(" % (muclass.name, callname) + altexpr = "arg0->%s(" % self.name + else: + if self.isprotected: + expr = "((MuQt_%s*)arg0)->%s_pub(" % ( + muclass.name, + self.name, + ) + else: + expr = "arg0->%s(" % callname + else: + # if self.iscastop: + # expr = "%s(" % self.name + # else: + expr = "%s::%s(" % (muclass.qt.name, callname) + + for i in range(0, len(self.args)): + a = self.args[i] + (aname, atype, aval) = a + (dexpr, dtype) = self.derefArg(a) + + ntype = "" + + if self.ismember: + if i > 0: + qarg = self.qtfunc[2][i - 1] + if dtype.find("::") != -1 and dtype.find(qarg[1]) != -1: + ntype = dtype + else: + ntype = qarg[1] + else: + ntype = dtype + else: + qarg = self.qtfunc[2][i] + # if dtype.find("::") != -1 and dtype.find(qarg[1]) != -1: + if dtype.find("::") != -1: + ntype = dtype + else: + ntype = qarg[1] + + # check for protected enum + if "::" in ntype: + ntype = muclass.enumTypeRep(ntype) + + if i == 0 and self.ismember and muclass.iscopyonwrite: + if ntype[-1] != "&": + ntype += "&" + if self.isconst and not "const" in ntype: + ntype = "const " + ntype + elif ntype[-1] == "&": + ntype = ntype[0:-1] + + if i > 0 or not self.isconstructor: + lbody = " %s arg%d = " % (ntype, i) + lbody += dexpr + lbody += ";\n" + if i == 0 and self.isprotected and inheritable: + etype = sansElaborations(ntype) + # body += string.replace(lbody, etype, "MuQt_" + etype) + body += lbody + else: + body += lbody + + if self.ismember: + if i > 1: + expr += ", " + if altexpr: + altexpr += ", " + else: + if i > 0: + expr += ", " + if altexpr: + altexpr += ", " + + if i > 0 or not self.ismember: + expr += "arg%d" % i + if altexpr: + altexpr += "arg%d" % i + + expr += ")" + if altexpr: + altexpr += ")" + + rtypeObject = muapi.isAByName(self.rtype, "QObject") + rtypeLayoutItem = muapi.isAByName(self.rtype, "QLayoutItem") + rtypePaintDevice = ( + muapi.isAByName(self.rtype, "QPaintDevice") + and not self.rtype.split(".")[-1] in pointerTypes + and not self.rtype.split(".")[-1] in primitiveTypes + ) + rtypeIODeviceBase = muapi.isAByName(self.rtype, "QIODeviceBase") + rmaker = None + + if rtypeObject: + rmaker = "makeinstance" + elif rtypeLayoutItem: + rmaker = "makelayoutitem" + elif rtypePaintDevice: + rmaker = "makepaintdevice" + elif rtypeIODeviceBase: + rmaker = "makeiodevicebase" + + if isQObject or isQLayoutItem or isQPaintDevice or isQIODeviceBase: + if self.isconstructor: + body += " %s(param_this, %s);\n return param_this;\n" % ( + setter, + expr, + ) + elif self.rtype == "void": + if altexpr: + # body += " if (dynamic_cast(arg0)) %s;\n" % (muclass.name, expr) + body += " if (%s(arg0)) %s;\n" % (isafunc, expr) + body += " else %s;\n" % altexpr + else: + body += " %s;\n" % expr + else: + if altexpr: + needsDeref = muapi.classes.has_key(self.rtype) + body += " return %s(arg0) ? " % isafunc + if needsDeref: + if rmaker: + body += '%s<%sType>(c, %s, "%s")' % ( + rmaker, + self.rtype, + expr, + "qt." + self.rtype, + ) + body += ' : %s<%sType>(c, %s, "%s");\n' % ( + rmaker, + self.rtype, + altexpr, + "qt." + self.rtype, + ) + else: + body += "%s : %s;\n" % ( + convertTo(expr, self.rtype), + convertTo(altexpr, self.rtype), + ) + else: + body += "%s : %s;\n" % ( + convertTo(expr, qtrtype), + convertTo(altexpr, qtrtype), + ) + else: + needsDeref = muapi.classes.has_key(self.rtype) + if needsDeref: + if rmaker: + body += ' return %s<%sType>(c, %s, "%s");\n' % ( + rmaker, + self.rtype, + expr, + "qt." + self.rtype, + ) + else: + body += " return %s;\n" % convertTo(expr, self.rtype) + else: + body += " return %s;\n" % convertTo(expr, qtrtype) + elif muclass.pointertype: + if self.isconstructor: + body += " %s;\n return param_this;\n" % setExpr( + "param_this", expr, muclass.name + ) + elif self.rtype == "void": + body += " %s;\n" % expr + if self.ismember: + body += " %s;\n" % setExpr("param_this", "arg0", muclass.name) + else: + body += " return %s;\n" % convertTo(expr, qtrtype) + # elif muclass.isBaseClass(): + else: + if muclass.primitivetype and self.isconstructor: + n = muclass.name + # n = muclass.baseClassNames()[0] + body += " %s;\n" % setExpr("param_this", expr, n) + # body += " setqtype<%sType>(param_this,%s);\n" % (n, expr) + body += " return param_this;\n" + elif self.rtype == "void": + body += " %s;\n" % expr + if muclass.primitivetype and self.ismember: + body += " %s;\n" % setExpr("param_this", "arg0", muclass.name) + else: + # body += " return %s;\n" % convertTo(expr, qtrtype) + needsDeref = muapi.classes.has_key(self.rtype) + if needsDeref and rtypeObject: + body += ' return makeinstance<%sType>(c, %s, "%s");\n' % ( + self.rtype, + expr, + "qt." + self.rtype, + ) + elif needsDeref: + body += " return %s;\n" % convertTo(expr, self.rtype) + else: + body += " return %s;\n" % convertTo(expr, qtrtype) + + out += " MuLangContext* c = static_cast(NODE_THREAD.context());\n" + out += body + out += "}\n" + return out + + def muDeclaration(self): + out = "%s (%s; " % (self.name, self.rtype) + comma = False + for (aname, mutype, aval) in self.args: + if comma: + out += ", " + out += "%s %s" % (mutype, aname) + comma = True + out += ")" + if self.isprotected: + out += " // protected" + return out + + +class MuClass: + def __init__(self, api, qtnamespace, muapi): + self.qt = qtnamespace + self.name = qtnamespace.name + self.isinterface = self.name in interfaceTypes + self.functions = [] + self.virtuals = [] + self.statics = [] + self.globalfuncs = [] + self.castoperators = [] + self.enums = [] + self.F_trans = ( + lambda f: not f.failed + and not f.isprop + and (self.inheritable or not f.isprotected) + ) + self.funcCount = {} + self.inherits = [] + self.inheritedby = [] + self.muapi = muapi + self.primitivetype = isAPrimitiveType(self.name) + self.pointertype = isAPointerType(self.name) + self.demotedProps = qtnamespace.demotedProps + self.hasdestructor = False + self.iscopyonwrite = isCopyOnWrite(self.name) + self.inheritedVirtuals = [] + + for f in qtnamespace.functions: + fname = f[0] + rtype = f[3] + cppname = qtnamespace.name + "::" + fname + message("functions fname = %s, rtype = %s, cppname = %s" % (fname, rtype, cppname)) + exclude = isFunctionExcluded(qtnamespace, f) + if exclude and verbose: + print("EXCLUDED:", str(f)) + if fname.startswith("~"): + self.hasdestructor = True + if rtype == "operator": + # cast operator + exclude = isFunctionExcluded(qtnamespace, f) + if not exclude: + newqtfunc = (fname, "", [("from", self.name, None)], "", False) + mufunc = MuFunction(api, self, newqtfunc, True, False, True) + self.castoperators.append(mufunc) + elif not fname.startswith("~") and not exclude: + mufunc = MuFunction( + api, self, f, True, f in qtnamespace.protectedfuncs, False + ) + if mufunc.virtual and not mufunc.failed: + mufunc.virtualSlot = len(self.virtuals) + self.virtuals.append(mufunc) + # can decide not to be a member + if mufunc.ismember and not mufunc.operator: + self.functions.append(mufunc) + else: + self.statics.append(mufunc) + + if not self.primitivetype and not self.pointertype and not self.isinterface: + for p in qtnamespace.inherits: + self.collectVirtuals(p) + + # if len(self.inheritedVirtuals) > 0: + # print "----", self.name + for ft in self.inheritedVirtuals: + (f, protected, origin) = ft + fhere = self.name + "::" + f[0] + if not self.hasFunction(f[0]) and not isFunctionExcluded( + qtnamespace, f + ): + mufunc = MuFunction(api, self, f, True, protected, False) + if mufunc.virtual and not mufunc.failed: + mufunc.virtualSlot = len(self.virtuals) + self.virtuals.append(mufunc) + # can decide not to be a member + if mufunc.ismember and not mufunc.operator: + self.functions.append(mufunc) + + for f in qtnamespace.staticfuncs: + fname = f[0] + cppname = qtnamespace.name + "::" + fname + exclude = isFunctionExcluded(qtnamespace, f) + print(qtnamespace) + message("staticfuncs fname = %s, cppname = %s, exclude = %s" % (fname, cppname, str(exclude))) + if not exclude: + self.statics.append( + MuFunction( + api, self, f, False, f in qtnamespace.protectedfuncs, False + ) + ) + + for e in qtnamespace.enums: + cppname = qtnamespace.name + "::" + e.name.split(":")[-1] + exclude = cppname in exclusionMap + if not exclude: + self.enums.append(MuEnum(e, self)) + + def hasFunction(self, name): + for f in self.functions: + if f.name == name: + return True + return False + + def collectVirtuals(self, qtname): + if api.classes.has_key(qtname): + qtnamespace = api.classes[qtname] + for f in qtnamespace.functions: + if "virtual" in f[3]: + if not self.hasFunction(f[0]) and not "~" in f[0]: + # if self.name == "QLayout": + # print " -> ",str(f) + self.inheritedVirtuals.append( + (f, f in qtnamespace.protectedfuncs, qtnamespace) + ) + for p in qtnamespace.parents: + self.collectVirtuals(p) + + def enumByName(self, fullname): + nameparts = fullname.split("::") + localname = nameparts[-1] + classname = nameparts[0] + + if classname != localname and classname != self.name: + muclass = self.muapi.classForName(classname) + if muclass: + return muclass.enumByName(fullname) + + for e in self.enums: + if e.name == localname: + return e + return None + + def enumTypeRep(self, fullname): + e = self.enumByName(fullname) + if e and e.protected: + return "MuQtPublicEnum" + else: + return fullname + + def outputMuDeclarations(self): + F_prop = lambda f: not f.failed and f.isprop + F_failed = lambda f: f.failed + + print("---enums translated---") + for e in self.enums: + if e.output: + print(e.name, ":= int") + if e.flags: + print(e.flags, ":= int") + for enum in e.symbols: + (name, val) = enum + print(name, ":=", val) + + print("---functions translated---") + count = 1 + for f in filter(self.F_trans, self.functions): + print("% 4d %s" % (count, f.muDeclaration())) + count = count + 1 + + print("---functions that are props---") + count = 1 + for f in filter(F_prop, self.functions): + print("% 4d %s" % (count, f.muDeclaration())) + count = count + 1 + + print("---static functions translated---") + count = 1 + for f in filter(self.F_trans, self.statics): + print("% 4d %s" % (count, f.muDeclaration())) + count = count + 1 + + print("---cast operators translated---") + count = 1 + for f in filter(self.F_trans, self.castoperators): + print("% 4d %s" % (count, f.muDeclaration())) + count = count + 1 + + print("---functions that failed---") + count = 1 + for f in filter(F_failed, self.functions): + print("% 4d %s" % (count, f.muDeclaration())) + count = count + 1 + + def outputCompiledNodes(self): + out = "" + for f in filter( + self.F_trans, self.functions + self.statics + self.castoperators + ): + out += f.compiledFunction() + out += "\n" + return out + + def outputNodeImplementations(self): + out = "" + print("self.statics for {0}".format(self.name)) + + for f in filter( + self.F_trans, self.functions + self.statics + self.castoperators + ): + out += f.nodeImplementation() + out += "\n" + return out + + def isA(self, muclass): + if self == muclass: + return True + else: + for c in self.inherits: + if c.isA(muclass): + return True + return False + + def isAByName(self, muclassName): + if self.muapi.classes.has_key(muclassName): + return self.isA(self.muapi.classes[muclassName]) + else: + return False + + def baseClassNames(self): + all = [] + if len(self.inherits) == 0: + all.append(self.name) + return all + for c in self.inherits: + all.extend(c.baseClassNames()) + return all + + def isBaseClass(self): + return not self.inherits or len(self.inherits) == 0 + + def assembleIncludes(self, cpplines): + global makeRE + itypes = set([]) + endinclude = 0 + + for i in range(0, len(cpplines)): + m = makeRE.search(cpplines[i]) + if "#include" in cpplines[i]: + endinclude = i + if m: + itype = m.group(2) + if itype != (self.name + "Type"): + itypes.add(itype) + + for t in itypes: + cpplines.insert(endinclude + 1, "#include \n" % t) + + def outputEnumDeclarations(self): + out = "addSymbols(\n" + for e in self.enums: + out += " %s,\n" % e.aliasDeclation() + flags = e.flagsAliasDeclaration() + if flags: + out += " %s,\n" % flags + for enum in e.symbols: + out += " %s,\n" % e.symbolDeclaration(enum) + + out += " EndArguments);\n" + return out + + def outputSymbolDeclarations(self): + out = "addSymbols(\n" + out += " // enums\n" + for e in self.enums: + if e.output: + out += " %s,\n" % e.aliasDeclation() + if e.flags: + out += " %s,\n" % e.flagsAliasDeclaration() + for enum in e.symbols: + out += " %s,\n" % e.symbolDeclaration(enum) + out += " // member functions\n" + + for f in self.functions: + if f.failed: + out += " // MISSING: %s\n" % f.muDeclaration() + elif f.isprop: + out += " // PROP: %s\n" % f.muDeclaration() + elif f.isprotected and not self.inheritable: + out += " // NOT INHERITABLE PROTECTED: %s\n" % f.muDeclaration() + elif f.isconstructor and f.abstract and not self.inheritable: + out += " // ABSTRACT CONSTRUCTOR: %s\n" % f.muDeclaration() + elif f.isconstructor and f.isprotected: + out += " // CONSTRUCTOR IS PROTECTED: %s\n" % f.muDeclaration() + elif f.virtualSlot != -1 and self.inheritable: + out += " _func[%d] = %s,\n" % (f.virtualSlot, f.symbolDeclaration()) + else: + out += " %s,\n" % f.symbolDeclaration() + + out += " // static functions\n" + + for f in self.statics: + if not f.operator: + if f.failed: + out += " // MISSING: %s\n" % f.muDeclaration() + else: + out += " %s,\n" % f.symbolDeclaration() + + out += " EndArguments);\n" + out += "globalScope()->addSymbols(\n" + + for f in self.statics: + if f.operator: + if f.failed: + out += " // MISSING: %s\n" % f.muDeclaration() + else: + out += " %s,\n" % f.symbolDeclaration() + + out += " EndArguments);\n" + out += "scope()->addSymbols(\n" + + for f in self.castoperators: + if f.failed: + out += " // MISSING: %s\n" % f.muDeclaration() + else: + out += " %s,\n" % f.symbolDeclaration() + + out += " EndArguments);\n" + return out + + def hasFlagType(self, flagName): + for e in self.enums: + if e.flags != None and flagName == e.flags: + return True + return False + + def hasEnumType(self, enumName): + for e in self.enums: + if enumName == e.name: + return True + for s in e.symbols: + (name, val) = s + if name == enumName: + return True + return False + + def needsLocalQualification(self, name): + if name == None or intRE.match(name): + return False + return self.hasEnumType(name) or self.hasFlagType(name) + + def qualifyValue(self, value): + if "(" in value or "|" in value: + newvalue = value + parts = ( + value.replace("(", " ").replace(")", " ").replace("|", " ").split(" ") + ) + for p in parts: + if p != "" and p != None: + if self.needsLocalQualification(p): + newvalue = newvalue.replace(p, "%s::%s" % (self.name, p)) + return newvalue + if self.needsLocalQualification(value): + return self.name + "::" + value + + for parent in self.inherits: + v = parent.qualifyValue(value) + if v != value: + return v + + qt = self.muapi.qtClass + if qt == self: + return value + else: + return qt.qualifyValue(value) + + def outputMuQtNativeImplementation(self): + if not allowInheritance or not self.inheritable: + return "" + + out = "// Inheritable object implemenation\n\n" + # constructors + qt = self.qt + out = "" + + if self.hasdestructor: + out += "// destructor\n" + out += "MuQt_" + self.name + "::~MuQt_" + self.name + "()\n" + out += "{\n" + out += " if (_obj)\n" + out += " {\n" + out += " *_obj->data() = Pointer(0);\n" + out += " _obj->releaseExternal();\n" + out += " }\n" + out += " _obj = 0;\n" + out += " _env = 0;\n" + out += " _baseType = 0;\n" + out += "}\n\n" + + for f in self.functions: + if not f.failed: + (name, fconst, params, rtype, prop) = f.qtfunc + purevirtual = "= 0" in fconst + fconst = string.replace(fconst, "= 0", "") + if f.isconstructor or f.virtual: + rtype_clean = string.strip(string.replace(rtype, "virtual", "")) + if self.needsLocalQualification(rtype_clean): + rtype_clean = self.name + "::" + rtype_clean + # rtype_clean = rtype + # output the function rtype name and args + if f.isconstructor: + out += ( + "MuQt_" + + name + + "::MuQt_" + + name + + "(Pointer muobj, const CallEnvironment* ce" + ) + else: + out += rtype_clean + " MuQt_" + self.name + "::" + name + "(" + + # args + for i in range(0, len(params)): + p = params[i] + (pname, ptype, pval) = p + if i > 0 or f.isconstructor: + out += ", " + out += ptype + " " + pname + + out += ") " + fconst + + if f.isconstructor: + # call the base class constr + out += "\n : " + name + "(" + for i in range(0, len(params)): + p = params[i] + (pname, ptype, pval) = p + if i > 0: + out += ", " + out += pname + out += ")" + + if purevirtual: + # pure virtual func + # what to do here? + out += " // pure virtual" + + out += "\n{\n" + + # output the rest of the body + + if f.isconstructor: + out += " _env = ce;\n" + out += " _obj = reinterpret_cast(muobj);\n" + out += " _obj->retainExternal();\n" + out += ( + " MuLangContext* c = (MuLangContext*)_env->context();\n" + ) + out += ( + ' _baseType = c->findSymbolOfTypeByQualifiedName<%sType>(c->internName("qt.%s"));\n' + % (self.name, self.name) + ) + else: + out += " if (!_env) " + if purevirtual: + if rtype_clean == "void": + out += "return;\n" + else: + out += "return defaultValue<%s>();\n" % rtype_clean + else: + if rtype_clean == "void": + out += "{ " + else: + out += "return " + out += self.name + "::" + f.name + "(" + for i in range(0, len(params)): + p = params[i] + (pname, ptype, pval) = p + if i > 0 or f.isconstructor: + out += ", " + out += pname + out += ");" + if rtype_clean == "void": + out += " return; }" + out += "\n" + out += ( + " MuLangContext* c = (MuLangContext*)_env->context();\n" + ) + out += ( + " const MemberFunction* F0 = _baseType->_func[%d];\n" + % f.virtualSlot + ) + out += " const MemberFunction* F = _obj->classType()->dynamicLookup(F0);\n" + out += " if (F != F0) \n {\n" + out += " Function::ArgumentVector args(%d);\n" % ( + len(params) + 1 + ) + # if f.name == "splitPath": + # print str(parms) + out += " args[0] = Value(Pointer(_obj));\n" + for i in range(0, len(params)): + p = params[i] + # print str(f.args[i+1]) + out += " args[%d] = Value(%s);\n" % ( + i + 1, + convertTo(p[0], p[1]), + ) + out += " Value rval = _env->call(F, args);\n" + if f.rtype != "void": + out += ( + " return %s;\n" + % f.derefExp(f.unpackReturnValue("rval"), f.rtype)[0] + ) + out += " }\n" + out += " else\n" + out += " {\n " + if rtype_clean != "void": + out += "return " + if purevirtual: + out += "defaultValue<%s>();\n" % rtype_clean + else: + out += self.name + "::" + f.name + "(" + for i in range(0, len(params)): + p = params[i] + (pname, ptype, pval) = p + if i > 0 or f.isconstructor: + out += ", " + out += pname + out += ");\n" + out += " }\n" + + # finish + out += "}\n\n" + + return out + + def outputMuQtNativeDeclaration(self): + if not allowInheritance or not self.inheritable: + return "" + + isQWebEngineHistory = self.isAByName("QWebEngineHistory") + + out = "// Inheritable object\n\n" + out += "class MuQt_%s : public %s\n{\n public:\n" % (self.name, self.name) + if self.hasdestructor or isQWebEngineHistory: + out += " virtual ~MuQt_" + self.name + "();\n" + + # constructors + qt = self.qt + protected = False + hasprotected = False + for f in self.functions: + if not f.failed: + if f.isprotected: + hasprotected = True + (name, fconst, params, rtype, prop) = f.qtfunc + fconst = string.replace(fconst, "= 0", "") + if f.isconstructor or f.virtual: + if f.isprotected and not protected: + protected = True + out += " protected:\n" + elif not f.isprotected and protected: + protected = False + out += " public:\n" + if f.isconstructor: + out += ( + " " + + "MuQt_" + + name + + "(Pointer muobj, const CallEnvironment*" + ) + else: + out += " " + rtype + " " + name + "(" + for i in range(0, len(params)): + p = params[i] + (pname, ptype, pval) = p + if i > 0 or f.isconstructor: + out += ", " + out += ptype + " " + pname + out += ") " + fconst + ";\n" + # make public versions of the protected funcs + if hasprotected: + out += " public:\n" + for f in self.functions: + if not f.failed: + (name, fconst, params, rtype, prop) = f.qtfunc + fconst = string.replace(fconst, "= 0", "") + nvrtype = string.replace(rtype, "virtual ", "") + if f.isprotected and not f.isconstructor: + for parent in [False, True]: + nameSuffix = "" + if parent: + nameSuffix = "_parent" + out += ( + " " + nvrtype + " " + name + "_pub%s(" % nameSuffix + ) + for i in range(0, len(params)): + p = params[i] + (pname, ptype, pval) = p + if "::" in ptype: + ptype = self.enumTypeRep(ptype) + if i > 0: + out += ", " + out += ptype + " " + pname + out += ") " + fconst + out += " { " + if not "void" in rtype: + out += "return " + if parent: + out += self.name + "::" + out += name + "(" + for i in range(0, len(params)): + p = params[i] + (pname, ptype, pval) = p + if i > 0: + out += ", " + if "::" in ptype: + # need to cast it to the protected enum + if self.enumTypeRep(ptype) != ptype: + out += "(%s)" % ptype + out += pname + out += "); }\n" + if customNativeFuncsHeader.has_key(self.name): + out += " public:\n" + out += " " + out += customNativeFuncsHeader[self.name] + out += "\n" + out += " public:\n" + out += " const %sType* _baseType;\n" % self.name + out += " ClassInstance* _obj;\n" + out += " const CallEnvironment* _env;\n" + out += "};\n" + return out + + def outputSourceFiles(self): + + name = self.name + if name == "": + name = "Global" + + templateCPP = None + templateH = None + + if name == "Global": + templateCPP = templateGlobalCPP + templateH = templateGlobalH + elif self.primitivetype: + templateCPP = templateTypeCPP + templateH = templateTypeH + elif self.isinterface: + templateCPP = templateInterfaceTypeCPP + templateH = templateInterfaceTypeH + elif self.pointertype: + templateCPP = templatePointerTypeCPP + templateH = templatePointerTypeH + elif self.isAByName("QLayoutItem") and not self.isAByName("QObject"): + templateCPP = templateLayoutItemCPP + templateH = templateLayoutItemH + elif self.isAByName("QPaintDevice") and not self.isAByName("QObject"): + templateCPP = templatePaintDeviceCPP + templateH = templatePaintDeviceH + elif self.isAByName("QIODeviceBase") and not self.isAByName("QObject"): + templateCPP = templateIODeviceBaseCPP + templateH = templateIODeviceBaseH + else: + templateCPP = templateObjectCPP + templateH = templateObjectH + + handrolledSymbols = "handrolled/%sSymbols.cpp" % name + handrolledDefs = "handrolled/%sDefinitions.cpp" % name + handrolledInclude = "handrolled/%sIncludes.cpp" % name + + hsyms = None + hdefs = None + hincs = None + + if os.path.exists(handrolledSymbols): + xfile = open(handrolledSymbols, "r") + hsyms = xfile.readlines() + xfile.close() + + if os.path.exists(handrolledDefs): + xfile = open(handrolledDefs, "r") + hdefs = xfile.readlines() + xfile.close() + + if os.path.exists(handrolledInclude): + xfile = open(handrolledInclude, "r") + hincs = xfile.readlines() + xfile.close() + + cppfile = open(templateCPP, "r") + + cpplines = [] + + while True: + line = cppfile.readline() + if line == "": + break + if line.find("{%%definitions%%}") != -1: + cpplines.extend(self.outputCompiledNodes().split("\n")) + cpplines.extend(self.outputNodeImplementations().split("\n")) + elif line.find("{%%addSymbols%%}") != -1: + cpplines.extend(self.outputSymbolDeclarations().split("\n")) + elif line.find("{%%addSymbolsEnums%%}") != -1: + cpplines.extend(self.outputEnumDeclarations().split("\n")) + elif line.find("{%%nativeMuQtClassImplemenation%%}") != -1: + cpplines.extend(self.outputMuQtNativeImplementation().split("\n")) + elif line.find("{%%propExclusions%%}") != -1: + if len(self.demotedProps): + s = " const char* propExclusions[] = {" + for i in range(0, len(self.demotedProps)): + if i != 0: + s += ", " + s += '"%s"' % self.demotedProps[i][0] + s += ", 0" + s += "};" + cpplines.append(s) + else: + cpplines.append(" const char** propExclusions = 0;") + elif line.find("{%%nativeObject%%}") != -1: + if self.name == "QObject": + cpplines.append( + ' new MemberVariable(c, "native", "qt.NativeObject"),' + ) + elif line.find("{%%addHandRolledSymbols%%}") != -1: + if hsyms: + cpplines.extend(hsyms) + elif line.find("{%%handRolledDefinitions%%}") != -1: + if hdefs: + cpplines.extend(hdefs) + elif line.find("{%%handRolledInclude%%}") != -1: + if hincs: + cpplines.extend(hincs) + else: + cpplines.append(string.replace(line, "$T", self.name)) + cppfile.close() + + for i in range(0, len(cpplines)): + line = cpplines[i] + if len(line) >= 1 and line[-1] != "\n": + cpplines[i] = line + "\n" + elif len(line) == 0: + cpplines[i] = "\n" + + self.assembleIncludes(cpplines) + + cppout = None + + if name == "Global": + print("OPENING qtGlobals.cpp for WRITE") + cppout = open("qtGlobals.cpp", "w") + else: + cppout = open(name + "Type.cpp", "w") + + cppout.writelines(cpplines) + cppout.close() + + if not (self.name in noHFileOutput): + hfile = open(templateH, "r") + hlines = [] + while True: + line = hfile.readline() + if line == "": + break + elif line.find("{%%nativeMuQtClass%%}") != -1: + hlines.append(self.outputMuQtNativeDeclaration()) + hlines.append("\n") + elif line.find("{%%isInheritableFunc%%}") != -1: + if self.inheritable: + hlines.append( + " static bool isInheritable() { return true; }\n" + ) + else: + hlines.append( + " static bool isInheritable() { return false; }\n" + ) + elif line.find("{%%virtualArray%%}") != -1: + hlines.append( + " MemberFunction* _func[%d];\n" % len(self.virtuals) + ) + elif line.find("{%%cachedInstanceFunc%%}") != -1: + if self.inheritable: + hlines.append( + "inline ClassInstance* %sType::cachedInstance(const %sType::MuQtType* obj) { return obj->_obj; }\n" + % (name, name) + ) + else: + hlines.append( + "inline ClassInstance* %sType::cachedInstance(const %sType::MuQtType* obj) { return 0; }\n" + % (name, name) + ) + elif line.find("{%%muqtForwardDeclaration%%}") != -1: + if self.inheritable: + hlines.append("class MuQt_" + name + ";\n") + elif line.find("{%%typeDeclarations%%}") != -1: + if self.name == "QObject": + hlines.append(" struct Struct { QObject* object; };\n") + if self.name == "QLayoutItem": + hlines.append(" struct Struct { QLayoutItem* object; };\n") + if self.name == "QPaintDevice": + hlines.append(" struct Struct { QPaintDevice* object; };\n") + if self.name == "QIODeviceBase": + hlines.append(" struct Struct { QIODeviceBase* object; };\n") + if not self.inheritable: + hlines.append(" typedef " + name + " MuQt_" + name + ";\n") + else: + hlines.append(string.replace(line, "$T", name)) + hfile.close() + + hout = None + if name == "Global": + hout = open("qtGlobals.h", "w") + else: + hout = open(name + "Type.h", "w") + hout.writelines(hlines) + hout.close() + + def outputModuleDefinition(self, finishedMap): + out = "" + inherits = filter(lambda x: not x.isinterface, self.inherits) + inherits.sort(inheritCMP) + if self not in finishedMap: + print("Processing {0}...".format(self.name)) + if self.name in includeClasses: + print("... is in includeClasses") + if len(inherits) > 0: + out += ' %sType* t_%s = new %sType(c, "%s"' % ( + self.name, + self.name, + self.name, + self.name, + ) + for i in range(0, len(inherits)): + out += ", t_%s" % inherits[i].name + out += ");" + else: + print("... no inherits") + out += ' %sType* t_%s = new %sType(c, "%s");' % ( + self.name, + self.name, + self.name, + self.name, + ) + out += " qt->addSymbol(t_%s);\n" % self.name + finishedMap[self] = self + # for c in self.inheritedby: + # out += c.outputModuleDefinition(finishedMap) + return out + + +class MuAPI: + def __init__(self, api): + self.module = None + self.classes = {} + self.api = api + self.qtClass = None + + for k in api.classes.keys(): + qtclass = api.classes[k] + muclass = MuClass(api, qtclass, self) + if muclass.name == "Qt": + self.qtClass = muclass + self.classes[muclass.name] = muclass + + for k in self.classes.keys(): + c = self.classes[k] + for i in c.qt.inheritedby: + if self.classes.has_key(i): + child = self.classes[i] + child.inherits.append(c) + c.inheritedby.append(child) + else: + pass + # print "missing class", i + + global allowInheritance + for k in self.classes.keys(): + c = self.classes[k] + isQObject = c.isAByName("QObject") + isQPaintDevice = c.isAByName("QPaintDevice") + isQLayoutItem = c.isAByName("QLayoutItem") + isQIODeviceBase = c.isAByName("QIODeviceBase") + c.inheritable = ( + (isQObject or isQLayoutItem or isQPaintDevice or isQIODeviceBase) + and (not c.name in notInheritableTypes) + and allowInheritance + ) + + def classForName(self, name): + if self.classes.has_key(name): + return self.classes[name] + else: + return None + + def isAByName(self, name, classname): + c = self.classForName(name) + if c: + return c.isAByName(classname) + else: + return False + + +## +## QtDocParser parses the html file +## + + +class QtDocParser(SGMLParser): + def __init__(self, url): + SGMLParser.__init__(self) + self.buffer = "" + self.inlist = False + self.functable = False + self.infunc = False + self.intitle = False + self.indetails = False + self.funcIsProp = False + self.h3 = False + self.h2 = False + self.acount = 0 + self.pcount = 0 + self.precount = 0 + self.public = [] + self.globaldefs = [] + self.staticPublic = [] + self.protected = [] + self.slots = [] + self.macros = [] + self.signals = [] + self.related = [] + self.properties = [] + self.enumaccess = False + self.intypes = False + self.inpubtypes = False + self.protenums = [] + self.enums = [] + self.enumName = None + self.enumValue = None + self.defsover = False + self.qtnamespace = None + self.ininheritedby = False + self.ininherits = False + self.childurls = [] + self.bucket = self.globaldefs + self.url = url + self.defenum = False + self.td = False + self.includes = [] + self.classRE = re.compile("([A-Za-z0-9]+) Class") + self.namespaceRE = re.compile("([A-Za-z0-9]+) Namespace") + self.includeRE = re.compile("#include ") + self.ininclude = False + self.inheritedby = [] + self.inherits = [] + self.modulespan = False + self.module = "--" + + ui = self.url.rfind("/") + self.urlbase = url[: ui + 1] + + usock = urllib.urlopen(url) + self.feed(usock.read()) + usock.close() + + self.qtnamespace.module = self.module + self.qtnamespace.inheritedby = self.inheritedby + self.qtnamespace.inherits = self.inherits + self.convertFunctions() + self.convertProperties() + self.convertEnums() + self.qtnamespace.includes = self.includes + self.qtnamespace.finish() + + def result(self): + return self.qtnamespace + + def addChildURL(self, url): + if string.find(url, "q3") != -1: + return + p = url.split("/") + if p[0] == url: + self.childurls.append(os.path.join(self.urlbase, url)) + else: + self.childurls.append(url) + + def start_title(self, attrs): + self.intitle = True + + def end_title(self): + self.intitle = False + isclass = True + g = self.classRE.search(self.title) + if not g: + isclass = False + g = self.namespaceRE.search(self.title) + if not g: + print('ERROR: nothing is matching "%s"' % self.title) + exit(0) + self.qtnamespace = NamespaceInfo(g.group(1)) + self.qtnamespace.isclass = isclass + + def start_span(self, attrs): + for (attr, value) in attrs: + if value == "small-subtitle": + self.modulespan = True + + def end_span(self): + self.modulespan = False + + def end_table(self): + self.defenum = False + + def start_pre(self, attrs): + self.precount += 1 + + def end_pre(self): + self.precount -= 1 + self.ininclude = False + + def start_p(self, attrs): + self.pcount += 1 + + def end_p(self): + self.ininheritedby = False + self.ininherits = False + self.pcount -= 1 + + def start_a(self, attrs): + if self.ininheritedby: + for (attr, value) in attrs: + if attr == "href": + self.addChildURL(value) + elif self.infunc: + for (attr, value) in attrs: + if attr == "href": + self.funcIsProp = value.rfind("-prop") != -1 + self.acount += 1 + + def end_a(self): + self.acount -= 1 + + def start_h2(self, attrs): + self.h2 = True + + def end_h2(self): + self.h2 = False + + def start_h3(self, attrs): + self.h3 = True + + def end_h3(self): + self.h3 = False + + def start_li(self, attrs): + self.inlist = True + + def end_li(self): + if not self.defsover: + if self.infunc: + self.bucket.append(self.buffer) + if self.funcIsProp: + self.bucket[-1] += "@" + self.buffer = "" + self.inlist = False + self.infunc = False + self.funcIsProp = False + + def start_table(self, attrs): + pass + + def end_table(self): + self.functable = False + self.defenum = False + + def start_tr(self, attrs): + if self.functable: + self.infunc = True + self.td = 0 + + def end_tr(self): + self.ininheritedby = False + self.ininherits = False + if self.functable: + if not self.defsover: + if self.infunc: + self.bucket.append(self.buffer) + if self.funcIsProp: + self.bucket[-1] += "@" + self.buffer = "" + self.infunc = False + self.funcIsProp = False + + else: + if self.defenum: + if self.enumName and self.enumValue: + self.enums[-1].enums.append(Enum(self.enumName, self.enumValue)) + self.enumName = None + self.enumValue = None + + def start_td(self, attrs): + self.td = self.td + 1 + + def start_div(self, attrs): + self.infunc = ("class", "fn") in attrs + + def handle_data(self, data): + if self.precount > 0: + if self.includeRE.search(data): + self.ininclude = True + elif self.td > 0 and data.strip() == "Inherited By:": + self.ininheritedby = True + return + elif self.td > 0 and data.strip() == "Inherits:": + self.ininherits = True + return + elif data == "Obsolete flags:": # note obsolete + self.defenum = False + elif data == " (preliminary)": # shows up in qwidget.html, messes up everything + return + elif data == " (deprecated)": # shows up in qprocess.html, messes up everything + return + elif self.modulespan and "Q" in data: + self.module = data + elif self.intypes and not self.inpubtypes: + if data == "enum " or data == " enum ": + self.enumaccess = True + elif self.enumaccess: + self.protenums.append("%s::%s" % (self.qtnamespace.name, data)) + self.enumaccess = False + # more + if self.h3: + # if "flags" in data: + # print data + if data[0:5] == "enum ": + self.defenum = True + self.enums.append(Enumeration(data.split()[-1])) + elif data[0:6] == "flags " and self.defenum: + self.enums[-1].flags = data.split()[-1] + elif data[0:7] == ">flags " and self.defenum: + # hack for malformed docs + c = data.split()[1].replace("<", " ").split()[0] + n = data.replace(">", " ").replace("<", " ").split()[-1] + self.enums[-1].flags = c + n + elif self.defenum: + n = self.enums[-1].name + if n == None: + self.enums[-1].name = data + elif n[-2:] == "::": + self.enums[-1].name = n + data + elif self.defenum: + if self.td == 1: + self.enumName = data + elif self.td == 2: + self.enumValue = data + else: + # docs + pass + elif not self.defsover: + if self.intitle: + self.title = data + elif self.ininclude: + if "#" in data: + self.includes.append(data) + else: + self.includes[-1] = self.includes[-1] + data + elif self.ininheritedby: + if ( + not data.startswith(",") + and not data.startswith(".") + and not data.startswith(" and") + and not data == " " + and not data.startswith("Inherited") + ): + self.inheritedby.append(data) + elif self.ininherits: + if ( + not data.startswith(",") + and not data.startswith(".") + and not data.startswith(" and") + and not data == " " + and not data.startswith("Inherits") + ): + self.inherits.append(data) + elif self.h2: + self.intypes = False + if ( + data == "Public Functions" + or data == "Reimplemented Public Functions" + ): + self.bucket = self.public + self.functable = True + elif ( + data == "Protected Functions" + or data == "Reimplemented Protected Functions" + ): + self.bucket = self.protected + self.functable = True + elif data == "Static Public Members": + self.bucket = self.staticPublic + self.functable = True + elif data == "Related Non-Members": + self.bucket = self.globaldefs + self.functable = True + elif data == "Signals": + self.bucket = self.signals + self.functable = True + elif data == "Public Slots": + self.bucket = self.slots + self.functable = True + elif data == "Properties": + self.bucket = self.properties + elif data == "Macros": + self.bucket = self.macros + self.functable = True + elif data == "Public Types": + self.intypes = True + self.inpubtypes = True + elif data == "Protected Types": + self.intypes = True + self.inpubtypes = False + elif data == "Detailed Description": + self.defsover = True + # Don't add functions that are props: these will get added + # programatically + elif self.infunc: # and not self.funcIsProp: + self.buffer += data + + def convertFunctions(self): + F = lambda x: x != None + P = lambda x: parseFunction(x, self.qtnamespace) + self.qtnamespace.publicfuncs = filter(F, map(P, self.public)) + self.qtnamespace.slots = filter(F, map(P, self.slots)) + self.qtnamespace.staticfuncs = filter(F, map(P, self.staticPublic)) + self.qtnamespace.signals = filter(F, map(P, self.signals)) + self.qtnamespace.protectedfuncs = filter(F, map(P, self.protected)) + self.qtnamespace.functions = ( + self.qtnamespace.publicfuncs + self.qtnamespace.protectedfuncs + ) + + rootnamespace.staticfuncs += filter(F, map(P, self.globaldefs)) + + def convertProperties(self): + if self.properties: + self.qtnamespace.properties = map(parseProperty, self.properties) + + def convertEnums(self): + for e in self.enums: + n = e.name + if n in self.protenums: + e.protected = True + self.qtnamespace.enums = self.enums + + +def inheritCMP(a, b): + if a.name == "QObject": + return -1 + else: + return 1 + + +def outputCMP(a, b): + ap = isAPrimitiveType(a) + bp = isAPrimitiveType(b) + if ap and not bp: + return -1 + elif bp and not ap: + return 1 + else: + return 0 + + +def sortHierarchically(array): + bases = [] + allclasses = set([]) + for c in array: + print("c = ", c, c.inherits) + allclasses.add(c) + if len(c.inherits) == 0: + bases.append(c) + sortedArray = [] + + while len(bases) > 0: + newBaseMap = set([]) + for c in bases: + sortedArray.append(c) + for ch in c.inheritedby: + newBaseMap.add(ch) + bases = [] + for c in newBaseMap: + bases.append(c) + + found = set([]) + for c in sortedArray: + print("c sortedd = ", c) + found.add(c) + + diff = allclasses - found + if len(diff) > 0: + print("ERROR: missing", len(diff), "classes") + for i in diff: + print(i.name) + + return sortedArray + + +## +## + + +def parseURL(url): + parser = QtDocParser(url) + result = parser.result() + message("INFO: parsed " + result.name) + api.classes[result.name] = result + return parser + + +def recursiveParse(url): + try: + parser = parseURL(url) + for u in parser.childurls: + # if "qwidget.html" in u: + absPath = os.path.join(os.path.dirname(url), u) + recursiveParse(absPath) + except (IOError): + print("FAILED: (IOError)", url) + except: + sys.stdout.flush() + print("FAILED:", url) + print(traceback.print_exc()) + + +# ---------------------------------------------------------------------- +# parse the args + +outputFile = False +outputStdout = False +outputMu = False +outputOtherTypes = False +outputClasses = [] +outputModuleParts = False +outputRawClass = False +outputDemoted = False + + +def setrawclass(x): + global outputRawClass + outputRawClass = True + + +def setout(x): + global outputFile + outputFile = True + + +def setstdout(x): + global outputStdout + outputStdout = True + + +def setmu(x): + global outputMu + outputMu = True + + +def setparts(x): + global outputModuleParts + outputModuleParts = True + + +def setother(x): + global outputOtherTypes + outputOtherTypes = True + + +def setverbose(x): + global verbose + verbose = True + + +def forcerebuild(x): + global forceParse + forceParse = True + + +def setdemoted(x): + global outputDemoted + outputDemoted = True + + +argMap = { + "-o": setout, + "-v": setverbose, + "-f": forcerebuild, + "-mu": setmu, + "-module": setparts, + "-stdout": setstdout, + "-other": setother, + "-rawclass": setrawclass, + "-demoted": setdemoted, +} + +del sys.argv[0] + + +for a in sys.argv: + if argMap.has_key(a): + argMap[a](a) + elif a.startswith("-"): + print("ERROR: bad arg", a) + sys.exit(-1) + else: + outputClasses.append(a) + + +def findHTMLinDocTree(rootname): + for d in [ + "qtcore", + "qtgui", + "qtwidgets", + "qtnetwork", + "qtopengl", + "qtconcurrent", + "qtsvg", + "qtwebengine", + "qtwebchannel", + "qtqml", + "qtquick", + ]: + testname = os.path.join(os.path.join(htmlDir, d), "%s.html" % rootname) + if os.path.exists(testname): + return testname + print("ERROR: failed to find html file for", rootname) + return None + + +if not forceParse and os.path.exists(qtapifile): + message("INFO: loading Qt API") + api = pickle.load(open(qtapifile)) + api.tmap = translationMap + api.finish() + rootnamespace = api.classes[""] +else: + message("INFO: building Qt API") + for base in baseHTML: + htmlfile = findHTMLinDocTree(base) + recursiveParse(htmlfile) + api.classes[""] = rootnamespace + api.finish() + message("INFO: dumping Qt API") + pickle.dump(api, open(qtapifile, "w")) + +if outputRawClass: + if len(outputClasses): + for cname in outputClasses: + api.showClass(cname) + exit + +message("INFO: building Mu API") +muapi = MuAPI(api) + +if outputModuleParts: + out = "QWidgetType* addAllQTSymbols(MuLangContext* c, Module* qt)\n{\n" + finishedMap = {} + muOutputClasses = [] + + for cname in outputClasses: + if muapi.classes.has_key(cname): + c = muapi.classes[cname] + muOutputClasses.append(c) + # if c.isBaseClass(): + # out += c.outputModuleDefinition(finishedMap) + + muOutputClasses = sortHierarchically(muOutputClasses) + + for c in muOutputClasses: + print("output module definition for {0}".format(c.name)) + out += c.outputModuleDefinition(finishedMap) + + out += "return t_QWidget;\n" + out += "}\n" + f = open("qtTypeDefinitions.cpp", "w") + f.write(out) + f.close() + + includes = "" + for cname in outputClasses: + if muapi.classes.has_key(cname): + if cname in includeClasses: + includes += "#include \n" % cname + f = open("qtModuleIncludes.h", "w") + f.write(includes) + f.close() + +if outputDemoted: + for cname in outputClasses: + if muapi.classes.has_key(cname): + c = muapi.classes[cname] + for i in c.demotedProps: + print("%s::%s" % (c.name, i[0])) + +if len(outputClasses): + outputClasses.sort(outputCMP) + for cname in outputClasses: + if muapi.classes.has_key(cname): + c = muapi.classes[cname] + if outputMu: + c.outputMuDeclarations() + if outputStdout: + print(c.outputCompiledNodes()) + print(c.outputNodeImplementations()) + print(c.outputSymbolDeclarations()) + print(c.outputEnumDeclarations()) + if outputFile: + message("INFO: output files for " + cname) + c.outputSourceFiles() + else: + print("WARNING: can't find class", cname) +else: + if outputOtherTypes: + typelist = [] + print("--other types--") + for t in api.types: + typelist.append(t) + + typelist.sort() + pp.pprint(typelist) \ No newline at end of file diff --git a/src/lib/mu/MuQt6/qtModule.cpp b/src/lib/mu/MuQt6/qtModule.cpp new file mode 100644 index 000000000..809287b8a --- /dev/null +++ b/src/lib/mu/MuQt6/qtModule.cpp @@ -0,0 +1,1450 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +struct SpyData +{ + SpyData(SignalSpy* s, const Function* f) : spy(s), func(f) {} + SignalSpy* spy; + const Function* func; +}; + +typedef STLVector::Type SpyDataVector; + +// +// These need to be visible to the GC since they hold +// +static SpyDataVector allSpyData; + +qtModule::qtModule(Context* c, const char *name) + : Module(c, name) +{ +} + +qtModule::~qtModule() +{ +} + +static const char* +signalName(const string& method, vector& buffer, vector& methods) +{ + // + // NOTE: this code is unwrapping the Qt macro SIGNAL. If they + // change it this code will also have to change. + // + // If exactly one method was found it must be the one, so use its + // signature. This makes it possible to connect to signals with + // flag arguments without having to know the name of the enum; + // the types are all checked via Mu symbols to make sure they + // already match. + // + + buffer.push_back('2'); + + if (methods.size() == 1) + { + QByteArray a = methods[0].methodSignature(); + std::copy(a.begin(), a.end(), back_inserter(buffer)); + } + else + { + std::copy(method.begin(), method.end(), back_inserter(buffer)); + } + +#ifdef QT_NO_DEBUG + buffer.push_back(0); + return &buffer.front(); +#else + buffer.push_back(0); + buffer.push_back('X'); + buffer.push_back(':'); + buffer.push_back('1'); + return qFlagLocation(&buffer.front()); +#endif +} + +static void +findSignal(const QMetaObject* metaObject, const Function* F, vector& methods) +{ + for (size_t i = 0; i < metaObject->methodCount(); i++) + { + QMetaMethod method = metaObject->method(i); + + if (method.methodType() == QMetaMethod::Signal) + { + string sig = method.methodSignature().constData(); + string::size_type n = sig.find("("); + + if (n != string::npos) + { + string name = sig.substr(0, n); + + if (name == F->name().c_str() && + method.parameterTypes().size() == (F->numArgs()-1)) + { + methods.push_back(method); + } + } + } + } +} + +static void +findSignalByName(const QMetaObject* metaObject, + const char* name, + const Function* F, + vector& methods) +{ + for (size_t i = 0; i < metaObject->methodCount(); i++) + { + QMetaMethod method = metaObject->method(i); + + if (method.methodType() == QMetaMethod::Signal) + { + string sig = method.methodSignature().constData(); + string::size_type n = sig.find("("); + + if (n != string::npos) + { + string methodName = sig.substr(0, n); + + if (name == methodName && + F->numArgs() == method.parameterCount()) + { + methods.push_back(method); + } + } + } + } +} + +static void +showSignals(const QMetaObject* metaObject, const Function* F, ostream& o) +{ + for (size_t i = 0; i < metaObject->methodCount(); i++) + { + QMetaMethod method = metaObject->method(i); + + if (method.methodType() == QMetaMethod::Signal) + { + string sig = method.methodSignature().constData(); + string::size_type n = sig.find("("); + + if (n != string::npos) + { + string name = sig.substr(0, n); + o << " -> " << method.methodSignature().constData() << endl; + } + } + } +} + +static NODE_IMPLEMENTATION(connect, int) +{ + Process* process = NODE_THREAD.process(); + QObject* sender = object(NODE_ARG_OBJECT(0, ClassInstance)); + FunctionObject* signalObj = NODE_ARG_OBJECT(1, FunctionObject); + FunctionObject* slotObj = NODE_ARG_OBJECT(2, FunctionObject); + const Function* Fsig = signalObj->function(); + const Function* Fslot = slotObj->function(); + + if (!sender) throw NilArgumentException(NODE_THREAD); + + bool ok = Fsig->returnType()->match(Fslot->returnType()) && + Fsig->numArgs()-1 == Fslot->numArgs(); + + for (size_t i = 0; ok && i < Fslot->numArgs(); i++) + { + ok = Fslot->argType(i)->match(Fsig->argType(i+1)); + } + + int rval = 0; + vector methods; + findSignal(sender->metaObject(), Fsig, methods); + + if (ok && !methods.empty()) + { + ostringstream str; + str << Fsig->name() << "("; + + for (size_t i = 1; i < Fsig->numArgs(); i++) + { + if (i != 1) str << ","; + if (const char* name = qtType(Fsig->argType(i))) str << name; + } + + str << ")"; + + vector nameBuffer, n2; + +#if 0 + cout << "connect signal: " << signalName(str.str(), n2) + << " of " << sender->metaObject()->className() + << endl; +#endif + + const char* sname = signalName(str.str(), nameBuffer, methods); + + SignalSpy* spy = new SignalSpy(sender, sname, Fslot, process); + allSpyData.push_back(SpyData(spy, Fslot)); + rval = allSpyData.size()-1; + } + else + { + Process* p = NODE_THREAD.process(); + MuLangContext *context = (MuLangContext*)p->context(); + ostringstream str; + str << "qt.connect: function "; Fslot->output(str); + + if (methods.empty()) + { + str << " cannot be connected because "; Fsig->output(str); + str << " is not a signal"; + + str << ". Possible signals for " << sender->metaObject()->className() << " are:" << endl; + showSignals(sender->metaObject(), Fsig, str); + } + else + { + str << " is incompatible with signal "; Fsig->output(str); + } + + ExceptionType::Exception *e = + new ExceptionType::Exception(context->exceptionType()); + e->string() += str.str().c_str(); + NODE_THREAD.setException(e); + ProgramException exc(NODE_THREAD); + exc.message() = str.str().c_str(); + throw exc; + } + + NODE_RETURN(rval); +} + +static NODE_IMPLEMENTATION(connect2, int) +{ + Process* process = NODE_THREAD.process(); + QObject* sender = object(NODE_ARG_OBJECT(0, ClassInstance)); + StringType::String* sigName = NODE_ARG_OBJECT(1, StringType::String); + FunctionObject* slotObj = NODE_ARG_OBJECT(2, FunctionObject); + const Function* Fslot = slotObj->function(); + int rval = 0; + + vector nameBuffer; + vector methods; + + string inName = sigName->c_str(); + + if (inName.find('(') == string::npos) + { + findSignalByName(sender->metaObject(), inName.c_str(), slotObj->function(), methods); + if (methods.size() > 0) inName = methods[0].methodSignature().constData(); + } + + SignalSpy* spy = new SignalSpy(sender, + signalName(inName.c_str(), nameBuffer, methods), + Fslot, + process); + + allSpyData.push_back(SpyData(spy, Fslot)); + rval = allSpyData.size()-1; + + NODE_RETURN(rval); +} + +static NODE_IMPLEMENTATION(loadUIFile, Pointer) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + StringType::String* filename = NODE_ARG_OBJECT(0, StringType::String); + QWidget* parent = object(NODE_ARG_OBJECT(1, ClassInstance)); + + QUiLoader loader; + QFile file(filename->c_str()); + file.open(QFile::ReadOnly); + QWidget* w = loader.load(&file, parent); + file.close(); + + // Note that we cannot instantiate a QWebEngineView widget via a .ui file + // to conform with LGPL licensing. + // Because the Qt QWebEngineView plugin is GPL due to its QtDesigner dependency. + // So to work around this inconvenience we will manually replace 'webView' + // QWidget with QWebEngineView if any. + if ( w ) + { + QWidget *from = w->findChild("webView"); + if ( from && !dynamic_cast(from) ) + { + QWebEngineView* webView = new QWebEngineView(from->parentWidget()); + webView->setObjectName("webView"); + from->parentWidget()->layout()->replaceWidget(from, webView); + delete from; from = nullptr; + } + } + + QWidgetType* wtype = + c->findSymbolOfTypeByQualifiedName(c->internName("qt.QWidget"), false); + + ClassInstance* obj = ClassInstance::allocate(wtype); + setobject(obj, w); + NODE_RETURN(obj); +} + +static NODE_IMPLEMENTATION(qobjectEquality, bool) +{ + QObject* arg0 = object(NODE_ARG(0, Pointer)); + QObject* arg1 = object(NODE_ARG(1, Pointer)); + NODE_RETURN(arg0 == arg1); +} + +static NODE_IMPLEMENTATION(qobjectInequality, bool) +{ + QObject* arg0 = object(NODE_ARG(0, Pointer)); + QObject* arg1 = object(NODE_ARG(1, Pointer)); + NODE_RETURN(arg0 != arg1); +} + +static NODE_IMPLEMENTATION(qobjectExists, bool) +{ + QObject* arg0 = object(NODE_ARG(0, Pointer)); + NODE_RETURN(arg0 != 0); +} + +static NODE_IMPLEMENTATION(qinvoke, bool) +{ + STLVector::Type gcCache; + QObject* arg0 = object(NODE_ARG(0, Pointer)); + const int ctype = NODE_ARG(1, int); + const StringType::String* name = NODE_ARG_OBJECT(2, StringType::String); + + if (!arg0 || !name) throw NilArgumentException(NODE_THREAD); + + const QMetaObject* metaObject = arg0->metaObject(); + const int index = metaObject->indexOfMethod(name->c_str()); + + if (index == -1) throw BadArgumentException(NODE_THREAD); + + QMetaMethod method = metaObject->method(index); + const size_t numArgs = NODE_NUM_ARGS() - 3; + + QString s; + bool result; + Qt::ConnectionType connectionType; + + switch (ctype) + { + default: + case 0: connectionType = Qt::AutoConnection; break; + case 1: connectionType = Qt::DirectConnection; break; + case 2: connectionType = Qt::QueuedConnection; break; + case 3: connectionType = Qt::BlockingQueuedConnection; break; + case 4: connectionType = Qt::UniqueConnection; break; + } + + switch (numArgs) + { + case 0: + { + result = method.invoke(arg0, connectionType); + break; + } + case 1: + { + QVariant v; + const Type* t0 = NODE_THIS.argNode(3)->type(); + Value p0 = NODE_ANY_TYPE_ARG(3); + result = method.invoke(arg0, connectionType, argument(gcCache, t0, p0, s, v)); + break; + } + case 2: + { + QVariant v1; + QVariant v2; + const Type* t0 = NODE_THIS.argNode(3)->type(); + const Type* t1 = NODE_THIS.argNode(4)->type(); + Value p0 = NODE_ANY_TYPE_ARG(3); + Value p1 = NODE_ANY_TYPE_ARG(4); + result = method.invoke(arg0, connectionType, + argument(gcCache, t0, p0, s, v1), + argument(gcCache, t1, p1, s, v2)); + break; + } + case 3: + { + QVariant v1; + QVariant v2; + QVariant v3; + const Type* t0 = NODE_THIS.argNode(3)->type(); + const Type* t1 = NODE_THIS.argNode(4)->type(); + const Type* t2 = NODE_THIS.argNode(5)->type(); + Value p0 = NODE_ANY_TYPE_ARG(3); + Value p1 = NODE_ANY_TYPE_ARG(4); + Value p2 = NODE_ANY_TYPE_ARG(5); + result = method.invoke(arg0, connectionType, + argument(gcCache, t0, p0, s, v1), + argument(gcCache, t1, p1, s, v2), + argument(gcCache, t2, p2, s, v3)); + break; + } + default: + { + cout << "ERROR: too many arguments to qt.invoke" << endl; + result = false; + } + } + + if (!result) + { + cout << "ERROR: MuQt invoke failed for " + << method.methodSignature().constData() + << endl; + } + + NODE_RETURN(result); +} + +#include + +void +qtModule::load() +{ + USING_MU_FUNCTION_SYMBOLS; + + // + // Register types so that SignalSpy works (see qtUtils.h for DECLARE macros) + // + + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + + + //cout << "QT LOAD START" << endl; + + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + // + // This OpaqueType is the QObject reference + // + + addSymbol( new OpaqueType(c, "NativeObject") ); + + // + // Add all of the classes from the generated function + // + + QWidgetType* widgetType = addAllQTSymbols(c, this); + + // + // Create the qt module and add all auto generated symbols from + // namespace Qt + // + + Module* qt = new Module(c, "Qt"); // namespace Qt + + qt->addSymbols( + new Alias(c, "AlignmentFlag", "int"), + new SymbolicConstant(c, "AlignLeft", "int", Value(int(0x0001))), + new SymbolicConstant(c, "AlignRight", "int", Value(int(0x0002))), + new SymbolicConstant(c, "AlignHCenter", "int", Value(int(0x0004))), + new SymbolicConstant(c, "AlignJustify", "int", Value(int(0x0008))), + new SymbolicConstant(c, "AlignTop", "int", Value(int(0x0020))), + new SymbolicConstant(c, "AlignBottom", "int", Value(int(0x0040))), + new SymbolicConstant(c, "AlignVCenter", "int", Value(int(0x0080))), + new SymbolicConstant(c, "AlignCenter", "int", Value(int(Qt::AlignVCenter | Qt::AlignHCenter))), + new SymbolicConstant(c, "AlignAbsolute", "int", Value(int(0x0010))), + new SymbolicConstant(c, "AlignLeading", "int", Value(int(Qt::AlignLeft))), + new SymbolicConstant(c, "AlignTrailing", "int", Value(int(Qt::AlignRight))), + new SymbolicConstant(c, "AlignHorizontal_Mask", "int", Value(int(Qt::AlignLeft | Qt::AlignRight | Qt::AlignHCenter | Qt::AlignJustify | Qt::AlignAbsolute))), + new SymbolicConstant(c, "AlignVertical_Mask", "int", Value(int(Qt::AlignTop | Qt::AlignBottom | Qt::AlignVCenter))), + new Alias(c, "AnchorAttribute", "int"), + new SymbolicConstant(c, "AnchorName", "int", Value(int(0))), + new SymbolicConstant(c, "AnchorHref", "int", Value(int(1))), + new Alias(c, "ApplicationAttribute", "int"), + new SymbolicConstant(c, "AA_ImmediateWidgetCreation", "int", Value(int(0))), + new SymbolicConstant(c, "AA_MSWindowsUseDirect3DByDefault", "int", Value(int(1))), + new SymbolicConstant(c, "AA_DontShowIconsInMenus", "int", Value(int(2))), + new SymbolicConstant(c, "AA_NativeWindows", "int", Value(int(3))), + new SymbolicConstant(c, "AA_DontCreateNativeWidgetSiblings", "int", Value(int(4))), + new SymbolicConstant(c, "AA_MacPluginApplication", "int", Value(int(5))), + new Alias(c, "ArrowType", "int"), + new SymbolicConstant(c, "NoArrow", "int", Value(int(0))), + new SymbolicConstant(c, "UpArrow", "int", Value(int(1))), + new SymbolicConstant(c, "DownArrow", "int", Value(int(2))), + new SymbolicConstant(c, "LeftArrow", "int", Value(int(3))), + new SymbolicConstant(c, "RightArrow", "int", Value(int(4))), + new Alias(c, "AspectRatioMode", "int"), + new SymbolicConstant(c, "IgnoreAspectRatio", "int", Value(int(0))), + new SymbolicConstant(c, "KeepAspectRatio", "int", Value(int(1))), + new SymbolicConstant(c, "KeepAspectRatioByExpanding", "int", Value(int(2))), + new Alias(c, "Axis", "int"), + new SymbolicConstant(c, "XAxis", "int", Value(int(0))), + new SymbolicConstant(c, "YAxis", "int", Value(int(1))), + new SymbolicConstant(c, "ZAxis", "int", Value(int(2))), + new Alias(c, "BGMode", "int"), + new SymbolicConstant(c, "TransparentMode", "int", Value(int(0))), + new SymbolicConstant(c, "OpaqueMode", "int", Value(int(1))), + new Alias(c, "BrushStyle", "int"), + new SymbolicConstant(c, "NoBrush", "int", Value(int(0))), + new SymbolicConstant(c, "SolidPattern", "int", Value(int(1))), + new SymbolicConstant(c, "Dense1Pattern", "int", Value(int(2))), + new SymbolicConstant(c, "Dense2Pattern", "int", Value(int(3))), + new SymbolicConstant(c, "Dense3Pattern", "int", Value(int(4))), + new SymbolicConstant(c, "Dense4Pattern", "int", Value(int(5))), + new SymbolicConstant(c, "Dense5Pattern", "int", Value(int(6))), + new SymbolicConstant(c, "Dense6Pattern", "int", Value(int(7))), + new SymbolicConstant(c, "Dense7Pattern", "int", Value(int(8))), + new SymbolicConstant(c, "HorPattern", "int", Value(int(9))), + new SymbolicConstant(c, "VerPattern", "int", Value(int(10))), + new SymbolicConstant(c, "CrossPattern", "int", Value(int(11))), + new SymbolicConstant(c, "BDiagPattern", "int", Value(int(12))), + new SymbolicConstant(c, "FDiagPattern", "int", Value(int(13))), + new SymbolicConstant(c, "DiagCrossPattern", "int", Value(int(14))), + new SymbolicConstant(c, "LinearGradientPattern", "int", Value(int(15))), + new SymbolicConstant(c, "ConicalGradientPattern", "int", Value(int(17))), + new SymbolicConstant(c, "RadialGradientPattern", "int", Value(int(16))), + new SymbolicConstant(c, "TexturePattern", "int", Value(int(24))), + new Alias(c, "CaseSensitivity", "int"), + new SymbolicConstant(c, "CaseInsensitive", "int", Value(int(0))), + new SymbolicConstant(c, "CaseSensitive", "int", Value(int(1))), + new Alias(c, "CheckState", "int"), + new SymbolicConstant(c, "Unchecked", "int", Value(int(0))), + new SymbolicConstant(c, "PartiallyChecked", "int", Value(int(1))), + new SymbolicConstant(c, "Checked", "int", Value(int(2))), + new Alias(c, "ClipOperation", "int"), + new SymbolicConstant(c, "NoClip", "int", Value(int(0))), + new SymbolicConstant(c, "ReplaceClip", "int", Value(int(1))), + new SymbolicConstant(c, "IntersectClip", "int", Value(int(2))), + new SymbolicConstant(c, "UniteClip", "int", Value(int(3))), + new Alias(c, "ConnectionType", "int"), + new SymbolicConstant(c, "DirectConnection", "int", Value(int(1))), + new SymbolicConstant(c, "QueuedConnection", "int", Value(int(2))), + new SymbolicConstant(c, "BlockingQueuedConnection", "int", Value(int(4))), + new SymbolicConstant(c, "UniqueConnection", "int", Value(int(5))), + new SymbolicConstant(c, "AutoConnection", "int", Value(int(0))), + new Alias(c, "ContextMenuPolicy", "int"), + new SymbolicConstant(c, "NoContextMenu", "int", Value(int(0))), + new SymbolicConstant(c, "PreventContextMenu", "int", Value(int(4))), + new SymbolicConstant(c, "DefaultContextMenu", "int", Value(int(1))), + new SymbolicConstant(c, "ActionsContextMenu", "int", Value(int(2))), + new SymbolicConstant(c, "CustomContextMenu", "int", Value(int(3))), + new Alias(c, "Corner", "int"), + new SymbolicConstant(c, "TopLeftCorner", "int", Value(int(0x00000))), + new SymbolicConstant(c, "TopRightCorner", "int", Value(int(0x00001))), + new SymbolicConstant(c, "BottomLeftCorner", "int", Value(int(0x00002))), + new SymbolicConstant(c, "BottomRightCorner", "int", Value(int(0x00003))), + new Alias(c, "CursorShape", "int"), + new SymbolicConstant(c, "ArrowCursor", "int", Value(int(0))), + new SymbolicConstant(c, "UpArrowCursor", "int", Value(int(1))), + new SymbolicConstant(c, "CrossCursor", "int", Value(int(2))), + new SymbolicConstant(c, "WaitCursor", "int", Value(int(3))), + new SymbolicConstant(c, "IBeamCursor", "int", Value(int(4))), + new SymbolicConstant(c, "SizeVerCursor", "int", Value(int(5))), + new SymbolicConstant(c, "SizeHorCursor", "int", Value(int(6))), + new SymbolicConstant(c, "SizeBDiagCursor", "int", Value(int(7))), + new SymbolicConstant(c, "SizeFDiagCursor", "int", Value(int(8))), + new SymbolicConstant(c, "SizeAllCursor", "int", Value(int(9))), + new SymbolicConstant(c, "BlankCursor", "int", Value(int(10))), + new SymbolicConstant(c, "SplitVCursor", "int", Value(int(11))), + new SymbolicConstant(c, "SplitHCursor", "int", Value(int(12))), + new SymbolicConstant(c, "PointingHandCursor", "int", Value(int(13))), + new SymbolicConstant(c, "ForbiddenCursor", "int", Value(int(14))), + new SymbolicConstant(c, "OpenHandCursor", "int", Value(int(17))), + new SymbolicConstant(c, "ClosedHandCursor", "int", Value(int(18))), + new SymbolicConstant(c, "WhatsThisCursor", "int", Value(int(15))), + new SymbolicConstant(c, "BusyCursor", "int", Value(int(16))), + new SymbolicConstant(c, "BitmapCursor", "int", Value(int(24))), + new Alias(c, "DateFormat", "int"), + new SymbolicConstant(c, "TextDate", "int", Value(int(0))), + new SymbolicConstant(c, "ISODate", "int", Value(int(1))), + //new SymbolicConstant(c, "SystemLocaleShortDate", "int", Value(int(?))), + //new SymbolicConstant(c, "SystemLocaleLongDate", "int", Value(int(?))), + //new SymbolicConstant(c, "DefaultLocaleShortDate", "int", Value(int(?))), + //new SymbolicConstant(c, "DefaultLocaleLongDate", "int", Value(int(?))), + new SymbolicConstant(c, "SystemLocaleDate", "int", Value(int(2))), + //new SymbolicConstant(c, "LocaleDate", "int", Value(int(?))), + // TODO_QT: Does not exist in Qt6 and not used in our code. Must be replace a function call from QLocale. + //new SymbolicConstant(c, "LocalDate", "int", Value(int(Qt::SystemLocaleDate))), + new Alias(c, "DayOfWeek", "int"), + new SymbolicConstant(c, "Monday", "int", Value(int(1))), + new SymbolicConstant(c, "Tuesday", "int", Value(int(2))), + new SymbolicConstant(c, "Wednesday", "int", Value(int(3))), + new SymbolicConstant(c, "Thursday", "int", Value(int(4))), + new SymbolicConstant(c, "Friday", "int", Value(int(5))), + new SymbolicConstant(c, "Saturday", "int", Value(int(6))), + new SymbolicConstant(c, "Sunday", "int", Value(int(7))), + new Alias(c, "DockWidgetArea", "int"), + new SymbolicConstant(c, "LeftDockWidgetArea", "int", Value(int(0x1))), + new SymbolicConstant(c, "RightDockWidgetArea", "int", Value(int(0x2))), + new SymbolicConstant(c, "TopDockWidgetArea", "int", Value(int(0x4))), + new SymbolicConstant(c, "BottomDockWidgetArea", "int", Value(int(0x8))), + new SymbolicConstant(c, "AllDockWidgetAreas", "int", Value(int(Qt::DockWidgetArea_Mask))), + new SymbolicConstant(c, "NoDockWidgetArea", "int", Value(int(0))), + new Alias(c, "DropAction", "int"), + new SymbolicConstant(c, "CopyAction", "int", Value(int(0x1))), + new SymbolicConstant(c, "MoveAction", "int", Value(int(0x2))), + new SymbolicConstant(c, "LinkAction", "int", Value(int(0x4))), + new SymbolicConstant(c, "ActionMask", "int", Value(int(0xff))), + new SymbolicConstant(c, "IgnoreAction", "int", Value(int(0x0))), + new SymbolicConstant(c, "TargetMoveAction", "int", Value(int(0x8002))), + new Alias(c, "EventPriority", "int"), + new SymbolicConstant(c, "HighEventPriority", "int", Value(int(1))), + new SymbolicConstant(c, "NormalEventPriority", "int", Value(int(0))), + new SymbolicConstant(c, "LowEventPriority", "int", Value(int(-1))), + new Alias(c, "FillRule", "int"), + new SymbolicConstant(c, "OddEvenFill", "int", Value(int(0))), + new SymbolicConstant(c, "WindingFill", "int", Value(int(1))), + new Alias(c, "FocusPolicy", "int"), + new SymbolicConstant(c, "TabFocus", "int", Value(int(0x1))), + new SymbolicConstant(c, "ClickFocus", "int", Value(int(0x2))), + new SymbolicConstant(c, "StrongFocus", "int", Value(int(Qt::TabFocus | Qt::ClickFocus | 0x8))), + new SymbolicConstant(c, "WheelFocus", "int", Value(int(Qt::StrongFocus | 0x4))), + new SymbolicConstant(c, "NoFocus", "int", Value(int(0))), + new Alias(c, "FocusReason", "int"), + new SymbolicConstant(c, "MouseFocusReason", "int", Value(int(0))), + new SymbolicConstant(c, "TabFocusReason", "int", Value(int(1))), + new SymbolicConstant(c, "BacktabFocusReason", "int", Value(int(2))), + new SymbolicConstant(c, "ActiveWindowFocusReason", "int", Value(int(3))), + new SymbolicConstant(c, "PopupFocusReason", "int", Value(int(4))), + new SymbolicConstant(c, "ShortcutFocusReason", "int", Value(int(5))), + new SymbolicConstant(c, "MenuBarFocusReason", "int", Value(int(6))), + new SymbolicConstant(c, "OtherFocusReason", "int", Value(int(7))), + new Alias(c, "GlobalColor", "int"), + new SymbolicConstant(c, "white", "int", Value(int(3))), + new SymbolicConstant(c, "black", "int", Value(int(2))), + new SymbolicConstant(c, "red", "int", Value(int(7))), + new SymbolicConstant(c, "darkRed", "int", Value(int(13))), + new SymbolicConstant(c, "green", "int", Value(int(8))), + new SymbolicConstant(c, "darkGreen", "int", Value(int(14))), + new SymbolicConstant(c, "blue", "int", Value(int(9))), + new SymbolicConstant(c, "darkBlue", "int", Value(int(15))), + new SymbolicConstant(c, "cyan", "int", Value(int(10))), + new SymbolicConstant(c, "darkCyan", "int", Value(int(16))), + new SymbolicConstant(c, "magenta", "int", Value(int(11))), + new SymbolicConstant(c, "darkMagenta", "int", Value(int(17))), + new SymbolicConstant(c, "yellow", "int", Value(int(12))), + new SymbolicConstant(c, "darkYellow", "int", Value(int(18))), + new SymbolicConstant(c, "gray", "int", Value(int(5))), + new SymbolicConstant(c, "darkGray", "int", Value(int(4))), + new SymbolicConstant(c, "lightGray", "int", Value(int(6))), + new SymbolicConstant(c, "transparent", "int", Value(int(19))), + new SymbolicConstant(c, "color0", "int", Value(int(0))), + new SymbolicConstant(c, "color1", "int", Value(int(1))), + new Alias(c, "HitTestAccuracy", "int"), + new SymbolicConstant(c, "ExactHit", "int", Value(int(0))), + new SymbolicConstant(c, "FuzzyHit", "int", Value(int(1))), + new Alias(c, "ImageConversionFlag", "int"), + new SymbolicConstant(c, "AutoColor", "int", Value(int(0x00000000))), + new SymbolicConstant(c, "ColorOnly", "int", Value(int(0x00000003))), + new SymbolicConstant(c, "MonoOnly", "int", Value(int(0x00000002))), + new SymbolicConstant(c, "DiffuseDither", "int", Value(int(0x00000000))), + new SymbolicConstant(c, "OrderedDither", "int", Value(int(0x00000010))), + new SymbolicConstant(c, "ThresholdDither", "int", Value(int(0x00000020))), + new SymbolicConstant(c, "ThresholdAlphaDither", "int", Value(int(0x00000000))), + new SymbolicConstant(c, "OrderedAlphaDither", "int", Value(int(0x00000004))), + new SymbolicConstant(c, "DiffuseAlphaDither", "int", Value(int(0x00000008))), + new SymbolicConstant(c, "PreferDither", "int", Value(int(0x00000040))), + new SymbolicConstant(c, "AvoidDither", "int", Value(int(0x00000080))), + new Alias(c, "InputMethodQuery", "int"), + new SymbolicConstant(c, "ImMicroFocus", "int", Value(int(0))), + new SymbolicConstant(c, "ImFont", "int", Value(int(1))), + new SymbolicConstant(c, "ImCursorPosition", "int", Value(int(2))), + new SymbolicConstant(c, "ImSurroundingText", "int", Value(int(3))), + new SymbolicConstant(c, "ImCurrentSelection", "int", Value(int(4))), + new Alias(c, "ItemDataRole", "int"), + new SymbolicConstant(c, "DisplayRole", "int", Value(int(0))), + new SymbolicConstant(c, "DecorationRole", "int", Value(int(1))), + new SymbolicConstant(c, "EditRole", "int", Value(int(2))), + new SymbolicConstant(c, "ToolTipRole", "int", Value(int(3))), + new SymbolicConstant(c, "StatusTipRole", "int", Value(int(4))), + new SymbolicConstant(c, "WhatsThisRole", "int", Value(int(5))), + new SymbolicConstant(c, "SizeHintRole", "int", Value(int(13))), + new SymbolicConstant(c, "FontRole", "int", Value(int(6))), + new SymbolicConstant(c, "TextAlignmentRole", "int", Value(int(7))), + new SymbolicConstant(c, "BackgroundRole", "int", Value(int(8))), + new SymbolicConstant(c, "BackgroundColorRole", "int", Value(int(8))), + new SymbolicConstant(c, "ForegroundRole", "int", Value(int(9))), + new SymbolicConstant(c, "TextColorRole", "int", Value(int(9))), + new SymbolicConstant(c, "CheckStateRole", "int", Value(int(10))), + new SymbolicConstant(c, "AccessibleTextRole", "int", Value(int(11))), + new SymbolicConstant(c, "AccessibleDescriptionRole", "int", Value(int(12))), + new SymbolicConstant(c, "UserRole", "int", Value(int(256))), + new Alias(c, "ItemFlag", "int"), + new SymbolicConstant(c, "NoItemFlags", "int", Value(int(0))), + new SymbolicConstant(c, "ItemIsSelectable", "int", Value(int(1))), + new SymbolicConstant(c, "ItemIsEditable", "int", Value(int(2))), + new SymbolicConstant(c, "ItemIsDragEnabled", "int", Value(int(4))), + new SymbolicConstant(c, "ItemIsDropEnabled", "int", Value(int(8))), + new SymbolicConstant(c, "ItemIsUserCheckable", "int", Value(int(16))), + new SymbolicConstant(c, "ItemIsEnabled", "int", Value(int(32))), + new SymbolicConstant(c, "ItemIsTristate", "int", Value(int(64))), + new Alias(c, "ItemSelectionMode", "int"), + new SymbolicConstant(c, "ContainsItemShape", "int", Value(int(0x0))), + new SymbolicConstant(c, "IntersectsItemShape", "int", Value(int(0x1))), + new SymbolicConstant(c, "ContainsItemBoundingRect", "int", Value(int(0x2))), + new SymbolicConstant(c, "IntersectsItemBoundingRect", "int", Value(int(0x3))), + new Alias(c, "Key", "int"), + new SymbolicConstant(c, "Key_Escape", "int", Value(int(0x01000000))), + new SymbolicConstant(c, "Key_Tab", "int", Value(int(0x01000001))), + new SymbolicConstant(c, "Key_Backtab", "int", Value(int(0x01000002))), + new SymbolicConstant(c, "Key_Backspace", "int", Value(int(0x01000003))), + new SymbolicConstant(c, "Key_Return", "int", Value(int(0x01000004))), + new SymbolicConstant(c, "Key_Enter", "int", Value(int(0x01000005))), + new SymbolicConstant(c, "Key_Insert", "int", Value(int(0x01000006))), + new SymbolicConstant(c, "Key_Delete", "int", Value(int(0x01000007))), + new SymbolicConstant(c, "Key_Pause", "int", Value(int(0x01000008))), + new SymbolicConstant(c, "Key_Print", "int", Value(int(0x01000009))), + new SymbolicConstant(c, "Key_SysReq", "int", Value(int(0x0100000a))), + new SymbolicConstant(c, "Key_Clear", "int", Value(int(0x0100000b))), + new SymbolicConstant(c, "Key_Home", "int", Value(int(0x01000010))), + new SymbolicConstant(c, "Key_End", "int", Value(int(0x01000011))), + new SymbolicConstant(c, "Key_Left", "int", Value(int(0x01000012))), + new SymbolicConstant(c, "Key_Up", "int", Value(int(0x01000013))), + new SymbolicConstant(c, "Key_Right", "int", Value(int(0x01000014))), + new SymbolicConstant(c, "Key_Down", "int", Value(int(0x01000015))), + new SymbolicConstant(c, "Key_PageUp", "int", Value(int(0x01000016))), + new SymbolicConstant(c, "Key_PageDown", "int", Value(int(0x01000017))), + new SymbolicConstant(c, "Key_Shift", "int", Value(int(0x01000020))), + new SymbolicConstant(c, "Key_Control", "int", Value(int(0x01000021))), + new SymbolicConstant(c, "Key_Meta", "int", Value(int(0x01000022))), + new SymbolicConstant(c, "Key_Alt", "int", Value(int(0x01000023))), + new SymbolicConstant(c, "Key_AltGr", "int", Value(int(0x01001103))), + new SymbolicConstant(c, "Key_CapsLock", "int", Value(int(0x01000024))), + new SymbolicConstant(c, "Key_NumLock", "int", Value(int(0x01000025))), + new SymbolicConstant(c, "Key_ScrollLock", "int", Value(int(0x01000026))), + new SymbolicConstant(c, "Key_F1", "int", Value(int(0x01000030))), + new SymbolicConstant(c, "Key_F2", "int", Value(int(0x01000031))), + new SymbolicConstant(c, "Key_F3", "int", Value(int(0x01000032))), + new SymbolicConstant(c, "Key_F4", "int", Value(int(0x01000033))), + new SymbolicConstant(c, "Key_F5", "int", Value(int(0x01000034))), + new SymbolicConstant(c, "Key_F6", "int", Value(int(0x01000035))), + new SymbolicConstant(c, "Key_F7", "int", Value(int(0x01000036))), + new SymbolicConstant(c, "Key_F8", "int", Value(int(0x01000037))), + new SymbolicConstant(c, "Key_F9", "int", Value(int(0x01000038))), + new SymbolicConstant(c, "Key_F10", "int", Value(int(0x01000039))), + new SymbolicConstant(c, "Key_F11", "int", Value(int(0x0100003a))), + new SymbolicConstant(c, "Key_F12", "int", Value(int(0x0100003b))), + new SymbolicConstant(c, "Key_F13", "int", Value(int(0x0100003c))), + new SymbolicConstant(c, "Key_F14", "int", Value(int(0x0100003d))), + new SymbolicConstant(c, "Key_F15", "int", Value(int(0x0100003e))), + new SymbolicConstant(c, "Key_F16", "int", Value(int(0x0100003f))), + new SymbolicConstant(c, "Key_F17", "int", Value(int(0x01000040))), + new SymbolicConstant(c, "Key_F18", "int", Value(int(0x01000041))), + new SymbolicConstant(c, "Key_F19", "int", Value(int(0x01000042))), + new SymbolicConstant(c, "Key_F20", "int", Value(int(0x01000043))), + new SymbolicConstant(c, "Key_F21", "int", Value(int(0x01000044))), + new SymbolicConstant(c, "Key_F22", "int", Value(int(0x01000045))), + new SymbolicConstant(c, "Key_F23", "int", Value(int(0x01000046))), + new SymbolicConstant(c, "Key_F24", "int", Value(int(0x01000047))), + new SymbolicConstant(c, "Key_F25", "int", Value(int(0x01000048))), + new SymbolicConstant(c, "Key_F26", "int", Value(int(0x01000049))), + new SymbolicConstant(c, "Key_F27", "int", Value(int(0x0100004a))), + new SymbolicConstant(c, "Key_F28", "int", Value(int(0x0100004b))), + new SymbolicConstant(c, "Key_F29", "int", Value(int(0x0100004c))), + new SymbolicConstant(c, "Key_F30", "int", Value(int(0x0100004d))), + new SymbolicConstant(c, "Key_F31", "int", Value(int(0x0100004e))), + new SymbolicConstant(c, "Key_F32", "int", Value(int(0x0100004f))), + new SymbolicConstant(c, "Key_F33", "int", Value(int(0x01000050))), + new SymbolicConstant(c, "Key_F34", "int", Value(int(0x01000051))), + new SymbolicConstant(c, "Key_F35", "int", Value(int(0x01000052))), + new SymbolicConstant(c, "Key_Super_L", "int", Value(int(0x01000053))), + new SymbolicConstant(c, "Key_Super_R", "int", Value(int(0x01000054))), + new SymbolicConstant(c, "Key_Menu", "int", Value(int(0x01000055))), + new SymbolicConstant(c, "Key_Hyper_L", "int", Value(int(0x01000056))), + new SymbolicConstant(c, "Key_Hyper_R", "int", Value(int(0x01000057))), + new SymbolicConstant(c, "Key_Help", "int", Value(int(0x01000058))), + new SymbolicConstant(c, "Key_Direction_L", "int", Value(int(0x01000059))), + new SymbolicConstant(c, "Key_Direction_R", "int", Value(int(0x01000060))), + new SymbolicConstant(c, "Key_Space", "int", Value(int(0x20))), + new SymbolicConstant(c, "Key_Any", "int", Value(int(Qt::Key_Space))), + new SymbolicConstant(c, "Key_Exclam", "int", Value(int(0x21))), + new SymbolicConstant(c, "Key_QuoteDbl", "int", Value(int(0x22))), + new SymbolicConstant(c, "Key_NumberSign", "int", Value(int(0x23))), + new SymbolicConstant(c, "Key_Dollar", "int", Value(int(0x24))), + new SymbolicConstant(c, "Key_Percent", "int", Value(int(0x25))), + new SymbolicConstant(c, "Key_Ampersand", "int", Value(int(0x26))), + new SymbolicConstant(c, "Key_Apostrophe", "int", Value(int(0x27))), + new SymbolicConstant(c, "Key_ParenLeft", "int", Value(int(0x28))), + new SymbolicConstant(c, "Key_ParenRight", "int", Value(int(0x29))), + new SymbolicConstant(c, "Key_Asterisk", "int", Value(int(0x2a))), + new SymbolicConstant(c, "Key_Plus", "int", Value(int(0x2b))), + new SymbolicConstant(c, "Key_Comma", "int", Value(int(0x2c))), + new SymbolicConstant(c, "Key_Minus", "int", Value(int(0x2d))), + new SymbolicConstant(c, "Key_Period", "int", Value(int(0x2e))), + new SymbolicConstant(c, "Key_Slash", "int", Value(int(0x2f))), + new SymbolicConstant(c, "Key_0", "int", Value(int(0x30))), + new SymbolicConstant(c, "Key_1", "int", Value(int(0x31))), + new SymbolicConstant(c, "Key_2", "int", Value(int(0x32))), + new SymbolicConstant(c, "Key_3", "int", Value(int(0x33))), + new SymbolicConstant(c, "Key_4", "int", Value(int(0x34))), + new SymbolicConstant(c, "Key_5", "int", Value(int(0x35))), + new SymbolicConstant(c, "Key_6", "int", Value(int(0x36))), + new SymbolicConstant(c, "Key_7", "int", Value(int(0x37))), + new SymbolicConstant(c, "Key_8", "int", Value(int(0x38))), + new SymbolicConstant(c, "Key_9", "int", Value(int(0x39))), + new SymbolicConstant(c, "Key_Colon", "int", Value(int(0x3a))), + new SymbolicConstant(c, "Key_Semicolon", "int", Value(int(0x3b))), + new SymbolicConstant(c, "Key_Less", "int", Value(int(0x3c))), + new SymbolicConstant(c, "Key_Equal", "int", Value(int(0x3d))), + new SymbolicConstant(c, "Key_Greater", "int", Value(int(0x3e))), + new SymbolicConstant(c, "Key_Question", "int", Value(int(0x3f))), + new SymbolicConstant(c, "Key_At", "int", Value(int(0x40))), + new SymbolicConstant(c, "Key_A", "int", Value(int(0x41))), + new SymbolicConstant(c, "Key_B", "int", Value(int(0x42))), + new SymbolicConstant(c, "Key_C", "int", Value(int(0x43))), + new SymbolicConstant(c, "Key_D", "int", Value(int(0x44))), + new SymbolicConstant(c, "Key_E", "int", Value(int(0x45))), + new SymbolicConstant(c, "Key_F", "int", Value(int(0x46))), + new SymbolicConstant(c, "Key_G", "int", Value(int(0x47))), + new SymbolicConstant(c, "Key_H", "int", Value(int(0x48))), + new SymbolicConstant(c, "Key_I", "int", Value(int(0x49))), + new SymbolicConstant(c, "Key_J", "int", Value(int(0x4a))), + new SymbolicConstant(c, "Key_K", "int", Value(int(0x4b))), + new SymbolicConstant(c, "Key_L", "int", Value(int(0x4c))), + new SymbolicConstant(c, "Key_M", "int", Value(int(0x4d))), + new SymbolicConstant(c, "Key_N", "int", Value(int(0x4e))), + new SymbolicConstant(c, "Key_O", "int", Value(int(0x4f))), + new SymbolicConstant(c, "Key_P", "int", Value(int(0x50))), + new SymbolicConstant(c, "Key_Q", "int", Value(int(0x51))), + new SymbolicConstant(c, "Key_R", "int", Value(int(0x52))), + new SymbolicConstant(c, "Key_S", "int", Value(int(0x53))), + new SymbolicConstant(c, "Key_T", "int", Value(int(0x54))), + new SymbolicConstant(c, "Key_U", "int", Value(int(0x55))), + new SymbolicConstant(c, "Key_V", "int", Value(int(0x56))), + new SymbolicConstant(c, "Key_W", "int", Value(int(0x57))), + new SymbolicConstant(c, "Key_X", "int", Value(int(0x58))), + new SymbolicConstant(c, "Key_Y", "int", Value(int(0x59))), + new SymbolicConstant(c, "Key_Z", "int", Value(int(0x5a))), + new SymbolicConstant(c, "Key_BracketLeft", "int", Value(int(0x5b))), + new SymbolicConstant(c, "Key_Backslash", "int", Value(int(0x5c))), + new SymbolicConstant(c, "Key_BracketRight", "int", Value(int(0x5d))), + new SymbolicConstant(c, "Key_AsciiCircum", "int", Value(int(0x5e))), + new SymbolicConstant(c, "Key_Underscore", "int", Value(int(0x5f))), + new SymbolicConstant(c, "Key_QuoteLeft", "int", Value(int(0x60))), + new SymbolicConstant(c, "Key_BraceLeft", "int", Value(int(0x7b))), + new SymbolicConstant(c, "Key_Bar", "int", Value(int(0x7c))), + new SymbolicConstant(c, "Key_BraceRight", "int", Value(int(0x7d))), + new SymbolicConstant(c, "Key_AsciiTilde", "int", Value(int(0x7e))), + new SymbolicConstant(c, "Key_nobreakspace", "int", Value(int(0x0a0))), + new SymbolicConstant(c, "Key_exclamdown", "int", Value(int(0x0a1))), + new SymbolicConstant(c, "Key_cent", "int", Value(int(0x0a2))), + new SymbolicConstant(c, "Key_sterling", "int", Value(int(0x0a3))), + new SymbolicConstant(c, "Key_currency", "int", Value(int(0x0a4))), + new SymbolicConstant(c, "Key_yen", "int", Value(int(0x0a5))), + new SymbolicConstant(c, "Key_brokenbar", "int", Value(int(0x0a6))), + new SymbolicConstant(c, "Key_section", "int", Value(int(0x0a7))), + new SymbolicConstant(c, "Key_diaeresis", "int", Value(int(0x0a8))), + new SymbolicConstant(c, "Key_copyright", "int", Value(int(0x0a9))), + new SymbolicConstant(c, "Key_ordfeminine", "int", Value(int(0x0aa))), + new SymbolicConstant(c, "Key_guillemotleft", "int", Value(int(0x0ab))), + new SymbolicConstant(c, "Key_notsign", "int", Value(int(0x0ac))), + new SymbolicConstant(c, "Key_hyphen", "int", Value(int(0x0ad))), + new SymbolicConstant(c, "Key_registered", "int", Value(int(0x0ae))), + new SymbolicConstant(c, "Key_macron", "int", Value(int(0x0af))), + new SymbolicConstant(c, "Key_degree", "int", Value(int(0x0b0))), + new SymbolicConstant(c, "Key_plusminus", "int", Value(int(0x0b1))), + new SymbolicConstant(c, "Key_twosuperior", "int", Value(int(0x0b2))), + new SymbolicConstant(c, "Key_threesuperior", "int", Value(int(0x0b3))), + new SymbolicConstant(c, "Key_acute", "int", Value(int(0x0b4))), + new SymbolicConstant(c, "Key_mu", "int", Value(int(0x0b5))), + new SymbolicConstant(c, "Key_paragraph", "int", Value(int(0x0b6))), + new SymbolicConstant(c, "Key_periodcentered", "int", Value(int(0x0b7))), + new SymbolicConstant(c, "Key_cedilla", "int", Value(int(0x0b8))), + new SymbolicConstant(c, "Key_onesuperior", "int", Value(int(0x0b9))), + new SymbolicConstant(c, "Key_masculine", "int", Value(int(0x0ba))), + new SymbolicConstant(c, "Key_guillemotright", "int", Value(int(0x0bb))), + new SymbolicConstant(c, "Key_onequarter", "int", Value(int(0x0bc))), + new SymbolicConstant(c, "Key_onehalf", "int", Value(int(0x0bd))), + new SymbolicConstant(c, "Key_threequarters", "int", Value(int(0x0be))), + new SymbolicConstant(c, "Key_questiondown", "int", Value(int(0x0bf))), + new SymbolicConstant(c, "Key_Agrave", "int", Value(int(0x0c0))), + new SymbolicConstant(c, "Key_Aacute", "int", Value(int(0x0c1))), + new SymbolicConstant(c, "Key_Acircumflex", "int", Value(int(0x0c2))), + new SymbolicConstant(c, "Key_Atilde", "int", Value(int(0x0c3))), + new SymbolicConstant(c, "Key_Adiaeresis", "int", Value(int(0x0c4))), + new SymbolicConstant(c, "Key_Aring", "int", Value(int(0x0c5))), + new SymbolicConstant(c, "Key_AE", "int", Value(int(0x0c6))), + new SymbolicConstant(c, "Key_Ccedilla", "int", Value(int(0x0c7))), + new SymbolicConstant(c, "Key_Egrave", "int", Value(int(0x0c8))), + new SymbolicConstant(c, "Key_Eacute", "int", Value(int(0x0c9))), + new SymbolicConstant(c, "Key_Ecircumflex", "int", Value(int(0x0ca))), + new SymbolicConstant(c, "Key_Ediaeresis", "int", Value(int(0x0cb))), + new SymbolicConstant(c, "Key_Igrave", "int", Value(int(0x0cc))), + new SymbolicConstant(c, "Key_Iacute", "int", Value(int(0x0cd))), + new SymbolicConstant(c, "Key_Icircumflex", "int", Value(int(0x0ce))), + new SymbolicConstant(c, "Key_Idiaeresis", "int", Value(int(0x0cf))), + new SymbolicConstant(c, "Key_ETH", "int", Value(int(0x0d0))), + new SymbolicConstant(c, "Key_Ntilde", "int", Value(int(0x0d1))), + new SymbolicConstant(c, "Key_Ograve", "int", Value(int(0x0d2))), + new SymbolicConstant(c, "Key_Oacute", "int", Value(int(0x0d3))), + new SymbolicConstant(c, "Key_Ocircumflex", "int", Value(int(0x0d4))), + new SymbolicConstant(c, "Key_Otilde", "int", Value(int(0x0d5))), + new SymbolicConstant(c, "Key_Odiaeresis", "int", Value(int(0x0d6))), + new SymbolicConstant(c, "Key_multiply", "int", Value(int(0x0d7))), + new SymbolicConstant(c, "Key_Ooblique", "int", Value(int(0x0d8))), + new SymbolicConstant(c, "Key_Ugrave", "int", Value(int(0x0d9))), + new SymbolicConstant(c, "Key_Uacute", "int", Value(int(0x0da))), + new SymbolicConstant(c, "Key_Ucircumflex", "int", Value(int(0x0db))), + new SymbolicConstant(c, "Key_Udiaeresis", "int", Value(int(0x0dc))), + new SymbolicConstant(c, "Key_Yacute", "int", Value(int(0x0dd))), + new SymbolicConstant(c, "Key_THORN", "int", Value(int(0x0de))), + new SymbolicConstant(c, "Key_ssharp", "int", Value(int(0x0df))), + new SymbolicConstant(c, "Key_division", "int", Value(int(0x0f7))), + new SymbolicConstant(c, "Key_ydiaeresis", "int", Value(int(0x0ff))), + new SymbolicConstant(c, "Key_Multi_key", "int", Value(int(0x01001120))), + new SymbolicConstant(c, "Key_Codeinput", "int", Value(int(0x01001137))), + new SymbolicConstant(c, "Key_SingleCandidate", "int", Value(int(0x0100113c))), + new SymbolicConstant(c, "Key_MultipleCandidate", "int", Value(int(0x0100113d))), + new SymbolicConstant(c, "Key_PreviousCandidate", "int", Value(int(0x0100113e))), + new SymbolicConstant(c, "Key_Mode_switch", "int", Value(int(0x0100117e))), + new SymbolicConstant(c, "Key_Kanji", "int", Value(int(0x01001121))), + new SymbolicConstant(c, "Key_Muhenkan", "int", Value(int(0x01001122))), + new SymbolicConstant(c, "Key_Henkan", "int", Value(int(0x01001123))), + new SymbolicConstant(c, "Key_Romaji", "int", Value(int(0x01001124))), + new SymbolicConstant(c, "Key_Hiragana", "int", Value(int(0x01001125))), + new SymbolicConstant(c, "Key_Katakana", "int", Value(int(0x01001126))), + new SymbolicConstant(c, "Key_Hiragana_Katakana", "int", Value(int(0x01001127))), + new SymbolicConstant(c, "Key_Zenkaku", "int", Value(int(0x01001128))), + new SymbolicConstant(c, "Key_Hankaku", "int", Value(int(0x01001129))), + new SymbolicConstant(c, "Key_Zenkaku_Hankaku", "int", Value(int(0x0100112a))), + new SymbolicConstant(c, "Key_Touroku", "int", Value(int(0x0100112b))), + new SymbolicConstant(c, "Key_Massyo", "int", Value(int(0x0100112c))), + new SymbolicConstant(c, "Key_Kana_Lock", "int", Value(int(0x0100112d))), + new SymbolicConstant(c, "Key_Kana_Shift", "int", Value(int(0x0100112e))), + new SymbolicConstant(c, "Key_Eisu_Shift", "int", Value(int(0x0100112f))), + new SymbolicConstant(c, "Key_Eisu_toggle", "int", Value(int(0x01001130))), + new SymbolicConstant(c, "Key_Hangul", "int", Value(int(0x01001131))), + new SymbolicConstant(c, "Key_Hangul_Start", "int", Value(int(0x01001132))), + new SymbolicConstant(c, "Key_Hangul_End", "int", Value(int(0x01001133))), + new SymbolicConstant(c, "Key_Hangul_Hanja", "int", Value(int(0x01001134))), + new SymbolicConstant(c, "Key_Hangul_Jamo", "int", Value(int(0x01001135))), + new SymbolicConstant(c, "Key_Hangul_Romaja", "int", Value(int(0x01001136))), + new SymbolicConstant(c, "Key_Hangul_Jeonja", "int", Value(int(0x01001138))), + new SymbolicConstant(c, "Key_Hangul_Banja", "int", Value(int(0x01001139))), + new SymbolicConstant(c, "Key_Hangul_PreHanja", "int", Value(int(0x0100113a))), + new SymbolicConstant(c, "Key_Hangul_PostHanja", "int", Value(int(0x0100113b))), + new SymbolicConstant(c, "Key_Hangul_Special", "int", Value(int(0x0100113f))), + new SymbolicConstant(c, "Key_Dead_Grave", "int", Value(int(0x01001250))), + new SymbolicConstant(c, "Key_Dead_Acute", "int", Value(int(0x01001251))), + new SymbolicConstant(c, "Key_Dead_Circumflex", "int", Value(int(0x01001252))), + new SymbolicConstant(c, "Key_Dead_Tilde", "int", Value(int(0x01001253))), + new SymbolicConstant(c, "Key_Dead_Macron", "int", Value(int(0x01001254))), + new SymbolicConstant(c, "Key_Dead_Breve", "int", Value(int(0x01001255))), + new SymbolicConstant(c, "Key_Dead_Abovedot", "int", Value(int(0x01001256))), + new SymbolicConstant(c, "Key_Dead_Diaeresis", "int", Value(int(0x01001257))), + new SymbolicConstant(c, "Key_Dead_Abovering", "int", Value(int(0x01001258))), + new SymbolicConstant(c, "Key_Dead_Doubleacute", "int", Value(int(0x01001259))), + new SymbolicConstant(c, "Key_Dead_Caron", "int", Value(int(0x0100125a))), + new SymbolicConstant(c, "Key_Dead_Cedilla", "int", Value(int(0x0100125b))), + new SymbolicConstant(c, "Key_Dead_Ogonek", "int", Value(int(0x0100125c))), + new SymbolicConstant(c, "Key_Dead_Iota", "int", Value(int(0x0100125d))), + new SymbolicConstant(c, "Key_Dead_Voiced_Sound", "int", Value(int(0x0100125e))), + new SymbolicConstant(c, "Key_Dead_Semivoiced_Sound", "int", Value(int(0x0100125f))), + new SymbolicConstant(c, "Key_Dead_Belowdot", "int", Value(int(0x01001260))), + new SymbolicConstant(c, "Key_Dead_Hook", "int", Value(int(0x01001261))), + new SymbolicConstant(c, "Key_Dead_Horn", "int", Value(int(0x01001262))), + new SymbolicConstant(c, "Key_Back", "int", Value(int(0x01000061))), + new SymbolicConstant(c, "Key_Forward", "int", Value(int(0x01000062))), + new SymbolicConstant(c, "Key_Stop", "int", Value(int(0x01000063))), + new SymbolicConstant(c, "Key_Refresh", "int", Value(int(0x01000064))), + new SymbolicConstant(c, "Key_VolumeDown", "int", Value(int(0x01000070))), + new SymbolicConstant(c, "Key_VolumeMute", "int", Value(int(0x01000071))), + new SymbolicConstant(c, "Key_VolumeUp", "int", Value(int(0x01000072))), + new SymbolicConstant(c, "Key_BassBoost", "int", Value(int(0x01000073))), + new SymbolicConstant(c, "Key_BassUp", "int", Value(int(0x01000074))), + new SymbolicConstant(c, "Key_BassDown", "int", Value(int(0x01000075))), + new SymbolicConstant(c, "Key_TrebleUp", "int", Value(int(0x01000076))), + new SymbolicConstant(c, "Key_TrebleDown", "int", Value(int(0x01000077))), + new SymbolicConstant(c, "Key_MediaPlay", "int", Value(int(0x01000080))), + new SymbolicConstant(c, "Key_MediaStop", "int", Value(int(0x01000081))), + new SymbolicConstant(c, "Key_MediaPrevious", "int", Value(int(0x01000082))), + new SymbolicConstant(c, "Key_MediaNext", "int", Value(int(0x01000083))), + new SymbolicConstant(c, "Key_MediaRecord", "int", Value(int(0x01000084))), + new SymbolicConstant(c, "Key_HomePage", "int", Value(int(0x01000090))), + new SymbolicConstant(c, "Key_Favorites", "int", Value(int(0x01000091))), + new SymbolicConstant(c, "Key_Search", "int", Value(int(0x01000092))), + new SymbolicConstant(c, "Key_Standby", "int", Value(int(0x01000093))), + new SymbolicConstant(c, "Key_OpenUrl", "int", Value(int(0x01000094))), + new SymbolicConstant(c, "Key_LaunchMail", "int", Value(int(0x010000a0))), + new SymbolicConstant(c, "Key_LaunchMedia", "int", Value(int(0x010000a1))), + new SymbolicConstant(c, "Key_Launch0", "int", Value(int(0x010000a2))), + new SymbolicConstant(c, "Key_Launch1", "int", Value(int(0x010000a3))), + new SymbolicConstant(c, "Key_Launch2", "int", Value(int(0x010000a4))), + new SymbolicConstant(c, "Key_Launch3", "int", Value(int(0x010000a5))), + new SymbolicConstant(c, "Key_Launch4", "int", Value(int(0x010000a6))), + new SymbolicConstant(c, "Key_Launch5", "int", Value(int(0x010000a7))), + new SymbolicConstant(c, "Key_Launch6", "int", Value(int(0x010000a8))), + new SymbolicConstant(c, "Key_Launch7", "int", Value(int(0x010000a9))), + new SymbolicConstant(c, "Key_Launch8", "int", Value(int(0x010000aa))), + new SymbolicConstant(c, "Key_Launch9", "int", Value(int(0x010000ab))), + new SymbolicConstant(c, "Key_LaunchA", "int", Value(int(0x010000ac))), + new SymbolicConstant(c, "Key_LaunchB", "int", Value(int(0x010000ad))), + new SymbolicConstant(c, "Key_LaunchC", "int", Value(int(0x010000ae))), + new SymbolicConstant(c, "Key_LaunchD", "int", Value(int(0x010000af))), + new SymbolicConstant(c, "Key_LaunchE", "int", Value(int(0x010000b0))), + new SymbolicConstant(c, "Key_LaunchF", "int", Value(int(0x010000b1))), + new SymbolicConstant(c, "Key_MediaLast", "int", Value(int(0x0100ffff))), + new SymbolicConstant(c, "Key_unknown", "int", Value(int(0x01ffffff))), + new SymbolicConstant(c, "Key_Call", "int", Value(int(0x01100004))), + new SymbolicConstant(c, "Key_Context1", "int", Value(int(0x01100000))), + new SymbolicConstant(c, "Key_Context2", "int", Value(int(0x01100001))), + new SymbolicConstant(c, "Key_Context3", "int", Value(int(0x01100002))), + new SymbolicConstant(c, "Key_Context4", "int", Value(int(0x01100003))), + new SymbolicConstant(c, "Key_Flip", "int", Value(int(0x01100006))), + new SymbolicConstant(c, "Key_Hangup", "int", Value(int(0x01100005))), + new SymbolicConstant(c, "Key_No", "int", Value(int(0x01010002))), + new SymbolicConstant(c, "Key_Select", "int", Value(int(0x01010000))), + new SymbolicConstant(c, "Key_Yes", "int", Value(int(0x01010001))), + new SymbolicConstant(c, "Key_Execute", "int", Value(int(0x01020003))), + new SymbolicConstant(c, "Key_Printer", "int", Value(int(0x01020002))), + new SymbolicConstant(c, "Key_Play", "int", Value(int(0x01020005))), + new SymbolicConstant(c, "Key_Sleep", "int", Value(int(0x01020004))), + new SymbolicConstant(c, "Key_Zoom", "int", Value(int(0x01020006))), + new SymbolicConstant(c, "Key_Cancel", "int", Value(int(0x01020001))), + new Alias(c, "KeyboardModifier", "int"), + new SymbolicConstant(c, "NoModifier", "int", Value(int(0x00000000))), + new SymbolicConstant(c, "ShiftModifier", "int", Value(int(0x02000000))), + new SymbolicConstant(c, "ControlModifier", "int", Value(int(0x04000000))), + new SymbolicConstant(c, "AltModifier", "int", Value(int(0x08000000))), + new SymbolicConstant(c, "MetaModifier", "int", Value(int(0x10000000))), + new SymbolicConstant(c, "KeypadModifier", "int", Value(int(0x20000000))), + new SymbolicConstant(c, "GroupSwitchModifier", "int", Value(int(0x40000000))), + new Alias(c, "LayoutDirection", "int"), + new SymbolicConstant(c, "LeftToRight", "int", Value(int(0))), + new SymbolicConstant(c, "RightToLeft", "int", Value(int(1))), + new Alias(c, "MaskMode", "int"), + new SymbolicConstant(c, "MaskInColor", "int", Value(int(0))), + new SymbolicConstant(c, "MaskOutColor", "int", Value(int(1))), + new Alias(c, "MatchFlag", "int"), + new SymbolicConstant(c, "MatchExactly", "int", Value(int(0))), + new SymbolicConstant(c, "MatchFixedString", "int", Value(int(8))), + new SymbolicConstant(c, "MatchContains", "int", Value(int(1))), + new SymbolicConstant(c, "MatchStartsWith", "int", Value(int(2))), + new SymbolicConstant(c, "MatchEndsWith", "int", Value(int(3))), + new SymbolicConstant(c, "MatchCaseSensitive", "int", Value(int(16))), + new SymbolicConstant(c, "MatchRegExp", "int", Value(int(4))), + new SymbolicConstant(c, "MatchWildcard", "int", Value(int(5))), + new SymbolicConstant(c, "MatchWrap", "int", Value(int(32))), + new SymbolicConstant(c, "MatchRecursive", "int", Value(int(64))), + new Alias(c, "Modifier", "int"), + new SymbolicConstant(c, "SHIFT", "int", Value(int(Qt::ShiftModifier))), + new SymbolicConstant(c, "META", "int", Value(int(Qt::MetaModifier))), + new SymbolicConstant(c, "CTRL", "int", Value(int(Qt::ControlModifier))), + new SymbolicConstant(c, "ALT", "int", Value(int(Qt::AltModifier))), + new SymbolicConstant(c, "UNICODE_ACCEL", "int", Value(int(0x00000000))), + new Alias(c, "MouseButton", "int"), + new SymbolicConstant(c, "NoButton", "int", Value(int(0x00000000))), + new SymbolicConstant(c, "LeftButton", "int", Value(int(0x00000001))), + new SymbolicConstant(c, "RightButton", "int", Value(int(0x00000002))), + new SymbolicConstant(c, "MidButton", "int", Value(int(0x00000004))), + new SymbolicConstant(c, "XButton1", "int", Value(int(0x00000008))), + new SymbolicConstant(c, "XButton2", "int", Value(int(0x00000010))), + new Alias(c, "Orientation", "int"), + new SymbolicConstant(c, "Horizontal", "int", Value(int(0x1))), + new SymbolicConstant(c, "Vertical", "int", Value(int(0x2))), + new Alias(c, "PenCapStyle", "int"), + new SymbolicConstant(c, "SquareCap", "int", Value(int(Qt::FlatCap))), + new SymbolicConstant(c, "FlatCap", "int", Value(int(0x00))), + new SymbolicConstant(c, "SquareCap", "int", Value(int(0x10))), + new SymbolicConstant(c, "RoundCap", "int", Value(int(0x20))), + new Alias(c, "PenJoinStyle", "int"), + new SymbolicConstant(c, "BevelJoin", "int", Value(int(Qt::MiterJoin))), + new SymbolicConstant(c, "MiterJoin", "int", Value(int(0x00))), + new SymbolicConstant(c, "BevelJoin", "int", Value(int(0x40))), + new SymbolicConstant(c, "RoundJoin", "int", Value(int(0x80))), + new SymbolicConstant(c, "SvgMiterJoin", "int", Value(int(0x100))), + new Alias(c, "PenStyle", "int"), + new SymbolicConstant(c, "SolidLine", "int", Value(int(Qt::DashLine))), + new SymbolicConstant(c, "DashDotLine", "int", Value(int(Qt::DashDotDotLine))), + new SymbolicConstant(c, "NoPen", "int", Value(int(0))), + new SymbolicConstant(c, "SolidLine", "int", Value(int(1))), + new SymbolicConstant(c, "DashLine", "int", Value(int(2))), + new SymbolicConstant(c, "DotLine", "int", Value(int(3))), + new SymbolicConstant(c, "DashDotLine", "int", Value(int(4))), + new SymbolicConstant(c, "DashDotDotLine", "int", Value(int(5))), + new SymbolicConstant(c, "CustomDashLine", "int", Value(int(6))), + new Alias(c, "ScrollBarPolicy", "int"), + new SymbolicConstant(c, "ScrollBarAsNeeded", "int", Value(int(0))), + new SymbolicConstant(c, "ScrollBarAlwaysOff", "int", Value(int(1))), + new SymbolicConstant(c, "ScrollBarAlwaysOn", "int", Value(int(2))), + new Alias(c, "ShortcutContext", "int"), + new SymbolicConstant(c, "WidgetShortcut", "int", Value(int(0))), + new SymbolicConstant(c, "WidgetWithChildrenShortcut", "int", Value(int(3))), + new SymbolicConstant(c, "WindowShortcut", "int", Value(int(1))), + new SymbolicConstant(c, "ApplicationShortcut", "int", Value(int(2))), + new Alias(c, "SizeHint", "int"), + new SymbolicConstant(c, "MinimumSize", "int", Value(int(0))), + new SymbolicConstant(c, "PreferredSize", "int", Value(int(1))), + new SymbolicConstant(c, "MaximumSize", "int", Value(int(2))), + new SymbolicConstant(c, "MinimumDescent", "int", Value(int(3))), + new Alias(c, "SizeMode", "int"), + new SymbolicConstant(c, "AbsoluteSize", "int", Value(int(0))), + new SymbolicConstant(c, "RelativeSize", "int", Value(int(1))), + new Alias(c, "SortOrder", "int"), + new SymbolicConstant(c, "AscendingOrder", "int", Value(int(0))), + new SymbolicConstant(c, "DescendingOrder", "int", Value(int(1))), + new Alias(c, "TextElideMode", "int"), + new SymbolicConstant(c, "ElideLeft", "int", Value(int(0))), + new SymbolicConstant(c, "ElideRight", "int", Value(int(1))), + new SymbolicConstant(c, "ElideMiddle", "int", Value(int(2))), + new SymbolicConstant(c, "ElideNone", "int", Value(int(3))), + new Alias(c, "TextFlag", "int"), + new SymbolicConstant(c, "TextSingleLine", "int", Value(int(0x0100))), + new SymbolicConstant(c, "TextDontClip", "int", Value(int(0x0200))), + new SymbolicConstant(c, "TextExpandTabs", "int", Value(int(0x0400))), + new SymbolicConstant(c, "TextShowMnemonic", "int", Value(int(0x0800))), + new SymbolicConstant(c, "TextWordWrap", "int", Value(int(0x1000))), + new SymbolicConstant(c, "TextWrapAnywhere", "int", Value(int(0x2000))), + new SymbolicConstant(c, "TextHideMnemonic", "int", Value(int(0x8000))), + new SymbolicConstant(c, "TextDontPrint", "int", Value(int(0x4000))), + new SymbolicConstant(c, "IncludeTrailingSpaces", "int", Value(int(Qt::TextIncludeTrailingSpaces))), + new SymbolicConstant(c, "TextIncludeTrailingSpaces", "int", Value(int(0x08000000))), + new SymbolicConstant(c, "TextJustificationForced", "int", Value(int(0x10000))), + new Alias(c, "TextFormat", "int"), + new SymbolicConstant(c, "PlainText", "int", Value(int(0))), + new SymbolicConstant(c, "RichText", "int", Value(int(1))), + new SymbolicConstant(c, "AutoText", "int", Value(int(2))), + new SymbolicConstant(c, "LogText", "int", Value(int(3))), + new Alias(c, "TextInteractionFlag", "int"), + new SymbolicConstant(c, "NoTextInteraction", "int", Value(int(0))), + new SymbolicConstant(c, "TextSelectableByMouse", "int", Value(int(1))), + new SymbolicConstant(c, "TextSelectableByKeyboard", "int", Value(int(2))), + new SymbolicConstant(c, "LinksAccessibleByMouse", "int", Value(int(4))), + new SymbolicConstant(c, "LinksAccessibleByKeyboard", "int", Value(int(8))), + new SymbolicConstant(c, "TextEditable", "int", Value(int(16))), + new SymbolicConstant(c, "TextEditorInteraction", "int", Value(int(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard | Qt::TextEditable))), + new SymbolicConstant(c, "TextBrowserInteraction", "int", Value(int(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse | Qt::LinksAccessibleByKeyboard))), + new Alias(c, "TimeSpec", "int"), + new SymbolicConstant(c, "LocalTime", "int", Value(int(0))), + new SymbolicConstant(c, "UTC", "int", Value(int(1))), + new SymbolicConstant(c, "OffsetFromUTC", "int", Value(int(2))), + new Alias(c, "ToolBarArea", "int"), + new SymbolicConstant(c, "LeftToolBarArea", "int", Value(int(0x1))), + new SymbolicConstant(c, "RightToolBarArea", "int", Value(int(0x2))), + new SymbolicConstant(c, "TopToolBarArea", "int", Value(int(0x4))), + new SymbolicConstant(c, "BottomToolBarArea", "int", Value(int(0x8))), + new SymbolicConstant(c, "AllToolBarAreas", "int", Value(int(Qt::ToolBarArea_Mask))), + new SymbolicConstant(c, "NoToolBarArea", "int", Value(int(0))), + new Alias(c, "ToolButtonStyle", "int"), + new SymbolicConstant(c, "ToolButtonIconOnly", "int", Value(int(0))), + new SymbolicConstant(c, "ToolButtonTextOnly", "int", Value(int(1))), + new SymbolicConstant(c, "ToolButtonTextBesideIcon", "int", Value(int(2))), + new SymbolicConstant(c, "ToolButtonTextUnderIcon", "int", Value(int(3))), + new Alias(c, "TransformationMode", "int"), + new SymbolicConstant(c, "FastTransformation", "int", Value(int(0))), + new SymbolicConstant(c, "SmoothTransformation", "int", Value(int(1))), + new Alias(c, "UIEffect", "int"), + new SymbolicConstant(c, "UI_AnimateMenu", "int", Value(int(1))), + new SymbolicConstant(c, "UI_FadeMenu", "int", Value(int(2))), + new SymbolicConstant(c, "UI_AnimateCombo", "int", Value(int(3))), + new SymbolicConstant(c, "UI_AnimateTooltip", "int", Value(int(4))), + new SymbolicConstant(c, "UI_FadeTooltip", "int", Value(int(5))), + new SymbolicConstant(c, "UI_AnimateToolBox", "int", Value(int(6))), + new Alias(c, "WhiteSpaceMode", "int"), + new SymbolicConstant(c, "WhiteSpaceNormal", "int", Value(int(0))), + new SymbolicConstant(c, "WhiteSpacePre", "int", Value(int(1))), + new SymbolicConstant(c, "WhiteSpaceNoWrap", "int", Value(int(2))), + new Alias(c, "WidgetAttribute", "int"), + new SymbolicConstant(c, "WA_AcceptDrops", "int", Value(int(78))), + new SymbolicConstant(c, "WA_AlwaysShowToolTips", "int", Value(int(84))), + new SymbolicConstant(c, "WA_ContentsPropagated", "int", Value(int(3))), + new SymbolicConstant(c, "WA_CustomWhatsThis", "int", Value(int(47))), + new SymbolicConstant(c, "WA_DeleteOnClose", "int", Value(int(55))), + new SymbolicConstant(c, "WA_Disabled", "int", Value(int(0))), + new SymbolicConstant(c, "WA_ForceDisabled", "int", Value(int(32))), + new SymbolicConstant(c, "WA_ForceUpdatesDisabled", "int", Value(int(59))), + new SymbolicConstant(c, "WA_GroupLeader", "int", Value(int(72))), + new SymbolicConstant(c, "WA_Hover", "int", Value(int(74))), + new SymbolicConstant(c, "WA_InputMethodEnabled", "int", Value(int(14))), + new SymbolicConstant(c, "WA_KeyboardFocusChange", "int", Value(int(77))), + new SymbolicConstant(c, "WA_KeyCompression", "int", Value(int(33))), + new SymbolicConstant(c, "WA_LayoutOnEntireRect", "int", Value(int(48))), + new SymbolicConstant(c, "WA_LayoutUsesWidgetRect", "int", Value(int(92))), + new SymbolicConstant(c, "WA_MacNoClickThrough", "int", Value(int(12))), + new SymbolicConstant(c, "WA_MacOpaqueSizeGrip", "int", Value(int(85))), + new SymbolicConstant(c, "WA_MacShowFocusRect", "int", Value(int(88))), + new SymbolicConstant(c, "WA_MacNormalSize", "int", Value(int(89))), + new SymbolicConstant(c, "WA_MacSmallSize", "int", Value(int(90))), + new SymbolicConstant(c, "WA_MacMiniSize", "int", Value(int(91))), + new SymbolicConstant(c, "WA_MacVariableSize", "int", Value(int(102))), + new SymbolicConstant(c, "WA_MacBrushedMetal", "int", Value(int(46))), + new SymbolicConstant(c, "WA_Mapped", "int", Value(int(11))), + new SymbolicConstant(c, "WA_MouseNoMask", "int", Value(int(71))), + new SymbolicConstant(c, "WA_MouseTracking", "int", Value(int(2))), + new SymbolicConstant(c, "WA_Moved", "int", Value(int(43))), + new SymbolicConstant(c, "WA_MSWindowsUseDirect3D", "int", Value(int(94))), + new SymbolicConstant(c, "WA_NoBackground", "int", Value(int(Qt::WA_OpaquePaintEvent))), + new SymbolicConstant(c, "WA_NoChildEventsForParent", "int", Value(int(58))), + new SymbolicConstant(c, "WA_NoChildEventsFromChildren", "int", Value(int(39))), + new SymbolicConstant(c, "WA_NoMouseReplay", "int", Value(int(54))), + new SymbolicConstant(c, "WA_NoMousePropagation", "int", Value(int(73))), + new SymbolicConstant(c, "WA_TransparentForMouseEvents", "int", Value(int(51))), + new SymbolicConstant(c, "WA_NoSystemBackground", "int", Value(int(9))), + new SymbolicConstant(c, "WA_OpaquePaintEvent", "int", Value(int(4))), + new SymbolicConstant(c, "WA_OutsideWSRange", "int", Value(int(49))), + new SymbolicConstant(c, "WA_PaintOnScreen", "int", Value(int(8))), + new SymbolicConstant(c, "WA_PaintOutsidePaintEvent", "int", Value(int(13))), + new SymbolicConstant(c, "WA_PaintUnclipped", "int", Value(int(52))), + new SymbolicConstant(c, "WA_PendingMoveEvent", "int", Value(int(34))), + new SymbolicConstant(c, "WA_PendingResizeEvent", "int", Value(int(35))), + new SymbolicConstant(c, "WA_QuitOnClose", "int", Value(int(76))), + new SymbolicConstant(c, "WA_Resized", "int", Value(int(42))), + new SymbolicConstant(c, "WA_RightToLeft", "int", Value(int(56))), + new SymbolicConstant(c, "WA_SetCursor", "int", Value(int(38))), + new SymbolicConstant(c, "WA_SetFont", "int", Value(int(37))), + new SymbolicConstant(c, "WA_SetPalette", "int", Value(int(36))), + new SymbolicConstant(c, "WA_SetStyle", "int", Value(int(86))), + new SymbolicConstant(c, "WA_ShowModal", "int", Value(int(70))), + new SymbolicConstant(c, "WA_StaticContents", "int", Value(int(5))), + new SymbolicConstant(c, "WA_StyleSheet", "int", Value(int(97))), + new SymbolicConstant(c, "WA_TranslucentBackground", "int", Value(int(120))), + new SymbolicConstant(c, "WA_UnderMouse", "int", Value(int(1))), + new SymbolicConstant(c, "WA_UpdatesDisabled", "int", Value(int(10))), + new SymbolicConstant(c, "WA_WindowModified", "int", Value(int(41))), + new SymbolicConstant(c, "WA_WindowPropagation", "int", Value(int(80))), + new SymbolicConstant(c, "WA_MacAlwaysShowToolWindow", "int", Value(int(96))), + new SymbolicConstant(c, "WA_SetLocale", "int", Value(int(87))), + new SymbolicConstant(c, "WA_StyledBackground", "int", Value(int(93))), + new SymbolicConstant(c, "WA_ShowWithoutActivating", "int", Value(int(98))), + new SymbolicConstant(c, "WA_NativeWindow", "int", Value(int(100))), + new SymbolicConstant(c, "WA_DontCreateNativeAncestors", "int", Value(int(101))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeDesktop", "int", Value(int(104))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeDock", "int", Value(int(105))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeToolBar", "int", Value(int(106))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeMenu", "int", Value(int(107))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeUtility", "int", Value(int(108))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeSplash", "int", Value(int(109))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeDialog", "int", Value(int(110))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeDropDownMenu", "int", Value(int(111))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypePopupMenu", "int", Value(int(112))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeToolTip", "int", Value(int(113))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeNotification", "int", Value(int(114))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeCombo", "int", Value(int(115))), + new SymbolicConstant(c, "WA_X11NetWmWindowTypeDND", "int", Value(int(116))), + new SymbolicConstant(c, "WA_MacFrameworkScaled", "int", Value(int(117))), + new Alias(c, "WindowFrameSection", "int"), + new SymbolicConstant(c, "NoSection", "int", Value(int(0))), + new SymbolicConstant(c, "LeftSection", "int", Value(int(1))), + new SymbolicConstant(c, "TopLeftSection", "int", Value(int(2))), + new SymbolicConstant(c, "TopSection", "int", Value(int(3))), + new SymbolicConstant(c, "TopRightSection", "int", Value(int(4))), + new SymbolicConstant(c, "RightSection", "int", Value(int(5))), + new SymbolicConstant(c, "BottomRightSection", "int", Value(int(6))), + new SymbolicConstant(c, "BottomSection", "int", Value(int(7))), + new SymbolicConstant(c, "BottomLeftSection", "int", Value(int(8))), + new SymbolicConstant(c, "TitleBarArea", "int", Value(int(9))), + new Alias(c, "WindowModality", "int"), + new SymbolicConstant(c, "NonModal", "int", Value(int(0))), + new SymbolicConstant(c, "WindowModal", "int", Value(int(1))), + new SymbolicConstant(c, "ApplicationModal", "int", Value(int(2))), + new Alias(c, "WindowState", "int"), + new SymbolicConstant(c, "WindowNoState", "int", Value(int(0x00000000))), + new SymbolicConstant(c, "WindowMinimized", "int", Value(int(0x00000001))), + new SymbolicConstant(c, "WindowMaximized", "int", Value(int(0x00000002))), + new SymbolicConstant(c, "WindowFullScreen", "int", Value(int(0x00000004))), + new SymbolicConstant(c, "WindowActive", "int", Value(int(0x00000008))), + new Alias(c, "WindowType", "int"), + new SymbolicConstant(c, "Widget", "int", Value(int(0x00000000))), + new SymbolicConstant(c, "Window", "int", Value(int(0x00000001))), + new SymbolicConstant(c, "Dialog", "int", Value(int(0x00000002 | Qt::Window))), + new SymbolicConstant(c, "Sheet", "int", Value(int(0x00000004 | Qt::Window))), + new SymbolicConstant(c, "Drawer", "int", Value(int(0x00000006 | Qt::Window))), + new SymbolicConstant(c, "Popup", "int", Value(int(0x00000008 | Qt::Window))), + new SymbolicConstant(c, "Tool", "int", Value(int(0x0000000a | Qt::Window))), + new SymbolicConstant(c, "ToolTip", "int", Value(int(0x0000000c | Qt::Window))), + new SymbolicConstant(c, "SplashScreen", "int", Value(int(0x0000000e | Qt::Window))), + new SymbolicConstant(c, "Desktop", "int", Value(int(0x00000010 | Qt::Window))), + new SymbolicConstant(c, "SubWindow", "int", Value(int(0x00000012))), + new SymbolicConstant(c, "MSWindowsFixedSizeDialogHint", "int", Value(int(0x00000100))), + new SymbolicConstant(c, "MSWindowsOwnDC", "int", Value(int(0x00000200))), + new SymbolicConstant(c, "X11BypassWindowManagerHint", "int", Value(int(0x00000400))), + new SymbolicConstant(c, "FramelessWindowHint", "int", Value(int(0x00000800))), + new SymbolicConstant(c, "CustomizeWindowHint", "int", Value(int(0x02000000))), + new SymbolicConstant(c, "WindowTitleHint", "int", Value(int(0x00001000))), + new SymbolicConstant(c, "WindowSystemMenuHint", "int", Value(int(0x00002000))), + new SymbolicConstant(c, "WindowMinimizeButtonHint", "int", Value(int(0x00004000))), + new SymbolicConstant(c, "WindowMaximizeButtonHint", "int", Value(int(0x00008000))), + new SymbolicConstant(c, "WindowMinMaxButtonsHint", "int", Value(int(Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint))), + new SymbolicConstant(c, "WindowCloseButtonHint", "int", Value(int(0x08000000))), + new SymbolicConstant(c, "WindowContextHelpButtonHint", "int", Value(int(0x00010000))), + new SymbolicConstant(c, "MacWindowToolBarButtonHint", "int", Value(int(0x10000000))), + new SymbolicConstant(c, "BypassGraphicsProxyWidget", "int", Value(int(0x20000000))), + new SymbolicConstant(c, "WindowShadeButtonHint", "int", Value(int(0x00020000))), + new SymbolicConstant(c, "WindowStaysOnTopHint", "int", Value(int(0x00040000))), + new SymbolicConstant(c, "WindowStaysOnBottomHint", "int", Value(int(0x04000000))), + new SymbolicConstant(c, "WindowOkButtonHint", "int", Value(int(0x00080000))), + new SymbolicConstant(c, "WindowCancelButtonHint", "int", Value(int(0x00100000))), + new SymbolicConstant(c, "WindowType_Mask", "int", Value(int(0x000000ff))), + + EndArguments); + + addSymbols( qt, + + // + // Custom Widgets + // + + //new HintWidgetType(c, "HintWidget", widgetType), + + // + // Extra Qt Widgets + // + + new QtColorTriangleType(c, "QtColorTriangle", widgetType), + + // + // Top level functions + // + + new Function(c, "connect", Mu::connect, None, + Return, "int", + Parameters, + new Param(c, "sender", "qt.QObject"), + new Param(c, "signal", "?function"), + new Param(c, "callback", "?function"), + End), + + new Function(c, "connect", Mu::connect2, None, + Return, "int", + Parameters, + new Param(c, "sender", "qt.QObject"), + new Param(c, "signal", "string"), + new Param(c, "callback", "?function"), + End), + + new Function(c, "exists", Mu::qobjectExists, None, + Return, "bool", + Parameters, + new Param(c, "qobj", "qt.QObject"), + End), + + new Function(c, "invoke", Mu::qinvoke, None, + Return, "bool", + Args, "qt.QObject", "int", "string", + Optional, "?varargs", + Maximum, 6, + End), + + EndArguments); + + addSymbol( new Function(c, "loadUIFile", Mu::loadUIFile, None, + Return, "qt.QObject", + Parameters, + new Param(c, "filename", "string"), + new Param(c, "parent", "qt.QWidget"), + End) ); + + globalScope()->addSymbols( + new Function(c, "==", Mu::qobjectEquality, Op, + Return, "bool", + Parameters, + new Param(c, "a", "qt.QObject"), + new Param(c, "b", "qt.QObject"), + End), + + new Function(c, "!=", Mu::qobjectInequality, Op, + Return, "bool", + Parameters, + new Param(c, "a", "qt.QObject"), + new Param(c, "b", "qt.QObject"), + End), + + new Function(c, "==", Mu::qobjectEquality, Op, + Return, "bool", + Parameters, + new Param(c, "a", "qt.QStandardItem"), + new Param(c, "b", "qt.QStandardItem"), + End), + + new Function(c, "!=", Mu::qobjectInequality, Op, + Return, "bool", + Parameters, + new Param(c, "a", "qt.QStandardItem"), + new Param(c, "b", "qt.QStandardItem"), + End), + + new Function(c, "==", Mu::qobjectEquality, Op, + Return, "bool", + Parameters, + new Param(c, "a", "qt.QListWidgetItem"), + new Param(c, "b", "qt.QListWidgetItem"), + End), + + new Function(c, "!=", Mu::qobjectInequality, Op, + Return, "bool", + Parameters, + new Param(c, "a", "qt.QListWidgetItem"), + new Param(c, "b", "qt.QListWidgetItem"), + End), + + new Function(c, "==", Mu::qobjectEquality, Op, + Return, "bool", + Parameters, + new Param(c, "a", "qt.QTreeWidgetItem"), + new Param(c, "b", "qt.QTreeWidgetItem"), + End), + + new Function(c, "!=", Mu::qobjectInequality, Op, + Return, "bool", + Parameters, + new Param(c, "a", "qt.QTreeWidgetItem"), + new Param(c, "b", "qt.QTreeWidgetItem"), + End), + + new Function(c, "==", Mu::qobjectEquality, Op, + Return, "bool", + Parameters, + new Param(c, "a", "qt.QTableWidgetItem"), + new Param(c, "b", "qt.QTableWidgetItem"), + End), + + new Function(c, "!=", Mu::qobjectInequality, Op, + Return, "bool", + Parameters, + new Param(c, "a", "qt.QTableWidgetItem"), + new Param(c, "b", "qt.QTableWidgetItem"), + End), + + EndArguments ); + // TODO_QT: Remove if everything works. + // Assuming it is not needed: qtGlobals.cpp stopped being generated since Qt 4.6 + //loadGlobals(); + + //cout << "QT LOAD END" << endl; +} + +} // Mu diff --git a/src/lib/mu/MuQt6/qtTypeDefinitions.cpp b/src/lib/mu/MuQt6/qtTypeDefinitions.cpp new file mode 100644 index 000000000..da76489dd --- /dev/null +++ b/src/lib/mu/MuQt6/qtTypeDefinitions.cpp @@ -0,0 +1,181 @@ +QWidgetType* addAllQTSymbols(MuLangContext* c, Module* qt) +{ + QStringConverterType* t_QStringConverter = new QStringConverterType(c, "QStringConverter"); qt->addSymbol(t_QStringConverter); + QMatrix4x4Type* t_QMatrix4x4 = new QMatrix4x4Type(c, "QMatrix4x4"); qt->addSymbol(t_QMatrix4x4); + QRegularExpressionType* t_QRegularExpression = new QRegularExpressionType(c, "QRegularExpression"); qt->addSymbol(t_QRegularExpression); + QColorType* t_QColor = new QColorType(c, "QColor"); qt->addSymbol(t_QColor); + QSizeType* t_QSize = new QSizeType(c, "QSize"); qt->addSymbol(t_QSize); + QPointType* t_QPoint = new QPointType(c, "QPoint"); qt->addSymbol(t_QPoint); + QPointFType* t_QPointF = new QPointFType(c, "QPointF"); qt->addSymbol(t_QPointF); + QRectType* t_QRect = new QRectType(c, "QRect"); qt->addSymbol(t_QRect); + QRectFType* t_QRectF = new QRectFType(c, "QRectF"); qt->addSymbol(t_QRectF); + QFontType* t_QFont = new QFontType(c, "QFont"); qt->addSymbol(t_QFont); + QKeySequenceType* t_QKeySequence = new QKeySequenceType(c, "QKeySequence"); qt->addSymbol(t_QKeySequence); + QIconType* t_QIcon = new QIconType(c, "QIcon"); qt->addSymbol(t_QIcon); + QRegionType* t_QRegion = new QRegionType(c, "QRegion"); qt->addSymbol(t_QRegion); + QVariantType* t_QVariant = new QVariantType(c, "QVariant"); qt->addSymbol(t_QVariant); + QUrlType* t_QUrl = new QUrlType(c, "QUrl"); qt->addSymbol(t_QUrl); + QUrlQueryType* t_QUrlQuery = new QUrlQueryType(c, "QUrlQuery"); qt->addSymbol(t_QUrlQuery); + QDateTimeType* t_QDateTime = new QDateTimeType(c, "QDateTime"); qt->addSymbol(t_QDateTime); + QTimeType* t_QTime = new QTimeType(c, "QTime"); qt->addSymbol(t_QTime); + QDateType* t_QDate = new QDateType(c, "QDate"); qt->addSymbol(t_QDate); + QByteArrayType* t_QByteArray = new QByteArrayType(c, "QByteArray"); qt->addSymbol(t_QByteArray); + QModelIndexType* t_QModelIndex = new QModelIndexType(c, "QModelIndex"); qt->addSymbol(t_QModelIndex); + QObjectType* t_QObject = new QObjectType(c, "QObject"); qt->addSymbol(t_QObject); + QLayoutItemType* t_QLayoutItem = new QLayoutItemType(c, "QLayoutItem"); qt->addSymbol(t_QLayoutItem); + QPaintDeviceType* t_QPaintDevice = new QPaintDeviceType(c, "QPaintDevice"); qt->addSymbol(t_QPaintDevice); + QTextCursorType* t_QTextCursor = new QTextCursorType(c, "QTextCursor"); qt->addSymbol(t_QTextCursor); + QTextOptionType* t_QTextOption = new QTextOptionType(c, "QTextOption"); qt->addSymbol(t_QTextOption); + QTextBlockType* t_QTextBlock = new QTextBlockType(c, "QTextBlock"); qt->addSymbol(t_QTextBlock); + QMarginsType* t_QMargins = new QMarginsType(c, "QMargins"); qt->addSymbol(t_QMargins); + QStandardItemType* t_QStandardItem = new QStandardItemType(c, "QStandardItem"); qt->addSymbol(t_QStandardItem); + QListWidgetItemType* t_QListWidgetItem = new QListWidgetItemType(c, "QListWidgetItem"); qt->addSymbol(t_QListWidgetItem); + QTreeWidgetItemType* t_QTreeWidgetItem = new QTreeWidgetItemType(c, "QTreeWidgetItem"); qt->addSymbol(t_QTreeWidgetItem); + QTableWidgetItemType* t_QTableWidgetItem = new QTableWidgetItemType(c, "QTableWidgetItem"); qt->addSymbol(t_QTableWidgetItem); + QProcessEnvironmentType* t_QProcessEnvironment = new QProcessEnvironmentType(c, "QProcessEnvironment"); qt->addSymbol(t_QProcessEnvironment); + QFileInfoType* t_QFileInfo = new QFileInfoType(c, "QFileInfo"); qt->addSymbol(t_QFileInfo); + QDirType* t_QDir = new QDirType(c, "QDir"); qt->addSymbol(t_QDir); + QHostAddressType* t_QHostAddress = new QHostAddressType(c, "QHostAddress"); qt->addSymbol(t_QHostAddress); + QHostInfoType* t_QHostInfo = new QHostInfoType(c, "QHostInfo"); qt->addSymbol(t_QHostInfo); + QItemSelectionRangeType* t_QItemSelectionRange = new QItemSelectionRangeType(c, "QItemSelectionRange"); qt->addSymbol(t_QItemSelectionRange); + QItemSelectionType* t_QItemSelection = new QItemSelectionType(c, "QItemSelection"); qt->addSymbol(t_QItemSelection); + QGradientType* t_QGradient = new QGradientType(c, "QGradient"); qt->addSymbol(t_QGradient); + QBrushType* t_QBrush = new QBrushType(c, "QBrush"); qt->addSymbol(t_QBrush); + QTransformType* t_QTransform = new QTransformType(c, "QTransform"); qt->addSymbol(t_QTransform); + QPaletteType* t_QPalette = new QPaletteType(c, "QPalette"); qt->addSymbol(t_QPalette); + QEventType* t_QEvent = new QEventType(c, "QEvent"); qt->addSymbol(t_QEvent); + QNetworkCookieType* t_QNetworkCookie = new QNetworkCookieType(c, "QNetworkCookie"); qt->addSymbol(t_QNetworkCookie); + QCursorType* t_QCursor = new QCursorType(c, "QCursor"); qt->addSymbol(t_QCursor); + QWebEngineSettingsType* t_QWebEngineSettings = new QWebEngineSettingsType(c, "QWebEngineSettings"); qt->addSymbol(t_QWebEngineSettings); + QIODeviceBaseType* t_QIODeviceBase = new QIODeviceBaseType(c, "QIODeviceBase"); qt->addSymbol(t_QIODeviceBase); + QMoveEventType* t_QMoveEvent = new QMoveEventType(c, "QMoveEvent", t_QEvent); qt->addSymbol(t_QMoveEvent); + QPaintEventType* t_QPaintEvent = new QPaintEventType(c, "QPaintEvent", t_QEvent); qt->addSymbol(t_QPaintEvent); + QTcpServerType* t_QTcpServer = new QTcpServerType(c, "QTcpServer", t_QObject); qt->addSymbol(t_QTcpServer); + QImageType* t_QImage = new QImageType(c, "QImage", t_QPaintDevice); qt->addSymbol(t_QImage); + QFocusEventType* t_QFocusEvent = new QFocusEventType(c, "QFocusEvent", t_QEvent); qt->addSymbol(t_QFocusEvent); + QTimerEventType* t_QTimerEvent = new QTimerEventType(c, "QTimerEvent", t_QEvent); qt->addSymbol(t_QTimerEvent); + QClipboardType* t_QClipboard = new QClipboardType(c, "QClipboard", t_QObject); qt->addSymbol(t_QClipboard); + QWebEngineProfileType* t_QWebEngineProfile = new QWebEngineProfileType(c, "QWebEngineProfile", t_QObject); qt->addSymbol(t_QWebEngineProfile); + QWebEnginePageType* t_QWebEnginePage = new QWebEnginePageType(c, "QWebEnginePage", t_QObject); qt->addSymbol(t_QWebEnginePage); + QButtonGroupType* t_QButtonGroup = new QButtonGroupType(c, "QButtonGroup", t_QObject); qt->addSymbol(t_QButtonGroup); + QWidgetType* t_QWidget = new QWidgetType(c, "QWidget", t_QObject, t_QPaintDevice); qt->addSymbol(t_QWidget); + QConicalGradientType* t_QConicalGradient = new QConicalGradientType(c, "QConicalGradient", t_QGradient); qt->addSymbol(t_QConicalGradient); + QCoreApplicationType* t_QCoreApplication = new QCoreApplicationType(c, "QCoreApplication", t_QObject); qt->addSymbol(t_QCoreApplication); + QGestureEventType* t_QGestureEvent = new QGestureEventType(c, "QGestureEvent", t_QEvent); qt->addSymbol(t_QGestureEvent); + QHelpEventType* t_QHelpEvent = new QHelpEventType(c, "QHelpEvent", t_QEvent); qt->addSymbol(t_QHelpEvent); + QLinearGradientType* t_QLinearGradient = new QLinearGradientType(c, "QLinearGradient", t_QGradient); qt->addSymbol(t_QLinearGradient); + QLayoutType* t_QLayout = new QLayoutType(c, "QLayout", t_QObject, t_QLayoutItem); qt->addSymbol(t_QLayout); + QQmlContextType* t_QQmlContext = new QQmlContextType(c, "QQmlContext", t_QObject); qt->addSymbol(t_QQmlContext); + QAbstractItemModelType* t_QAbstractItemModel = new QAbstractItemModelType(c, "QAbstractItemModel", t_QObject); qt->addSymbol(t_QAbstractItemModel); + QFileOpenEventType* t_QFileOpenEvent = new QFileOpenEventType(c, "QFileOpenEvent", t_QEvent); qt->addSymbol(t_QFileOpenEvent); + QScreenType* t_QScreen = new QScreenType(c, "QScreen", t_QObject); qt->addSymbol(t_QScreen); + QActionType* t_QAction = new QActionType(c, "QAction", t_QObject); qt->addSymbol(t_QAction); + QEventLoopType* t_QEventLoop = new QEventLoopType(c, "QEventLoop", t_QObject); qt->addSymbol(t_QEventLoop); + QMimeDataType* t_QMimeData = new QMimeDataType(c, "QMimeData", t_QObject); qt->addSymbol(t_QMimeData); + QHideEventType* t_QHideEvent = new QHideEventType(c, "QHideEvent", t_QEvent); qt->addSymbol(t_QHideEvent); + QDropEventType* t_QDropEvent = new QDropEventType(c, "QDropEvent", t_QEvent); qt->addSymbol(t_QDropEvent); + QCloseEventType* t_QCloseEvent = new QCloseEventType(c, "QCloseEvent", t_QEvent); qt->addSymbol(t_QCloseEvent); + QTextDocumentType* t_QTextDocument = new QTextDocumentType(c, "QTextDocument", t_QObject); qt->addSymbol(t_QTextDocument); + QPixmapType* t_QPixmap = new QPixmapType(c, "QPixmap", t_QPaintDevice); qt->addSymbol(t_QPixmap); + QRadialGradientType* t_QRadialGradient = new QRadialGradientType(c, "QRadialGradient", t_QGradient); qt->addSymbol(t_QRadialGradient); + QShowEventType* t_QShowEvent = new QShowEventType(c, "QShowEvent", t_QEvent); qt->addSymbol(t_QShowEvent); + QTextStreamType* t_QTextStream = new QTextStreamType(c, "QTextStream", t_QIODeviceBase); qt->addSymbol(t_QTextStream); + QTimerType* t_QTimer = new QTimerType(c, "QTimer", t_QObject); qt->addSymbol(t_QTimer); + QCompleterType* t_QCompleter = new QCompleterType(c, "QCompleter", t_QObject); qt->addSymbol(t_QCompleter); + QInputEventType* t_QInputEvent = new QInputEventType(c, "QInputEvent", t_QEvent); qt->addSymbol(t_QInputEvent); + QWebChannelType* t_QWebChannel = new QWebChannelType(c, "QWebChannel", t_QObject); qt->addSymbol(t_QWebChannel); + QResizeEventType* t_QResizeEvent = new QResizeEventType(c, "QResizeEvent", t_QEvent); qt->addSymbol(t_QResizeEvent); + QWebEngineCookieStoreType* t_QWebEngineCookieStore = new QWebEngineCookieStoreType(c, "QWebEngineCookieStore", t_QObject); qt->addSymbol(t_QWebEngineCookieStore); + QNetworkCookieJarType* t_QNetworkCookieJar = new QNetworkCookieJarType(c, "QNetworkCookieJar", t_QObject); qt->addSymbol(t_QNetworkCookieJar); + QWindowStateChangeEventType* t_QWindowStateChangeEvent = new QWindowStateChangeEventType(c, "QWindowStateChangeEvent", t_QEvent); qt->addSymbol(t_QWindowStateChangeEvent); + QNetworkAccessManagerType* t_QNetworkAccessManager = new QNetworkAccessManagerType(c, "QNetworkAccessManager", t_QObject); qt->addSymbol(t_QNetworkAccessManager); + QJSEngineType* t_QJSEngine = new QJSEngineType(c, "QJSEngine", t_QObject); qt->addSymbol(t_QJSEngine); + QDragLeaveEventType* t_QDragLeaveEvent = new QDragLeaveEventType(c, "QDragLeaveEvent", t_QEvent); qt->addSymbol(t_QDragLeaveEvent); + QShortcutEventType* t_QShortcutEvent = new QShortcutEventType(c, "QShortcutEvent", t_QEvent); qt->addSymbol(t_QShortcutEvent); + QWebEngineHistoryType* t_QWebEngineHistory = new QWebEngineHistoryType(c, "QWebEngineHistory", t_QObject); qt->addSymbol(t_QWebEngineHistory); + QQuickItemType* t_QQuickItem = new QQuickItemType(c, "QQuickItem", t_QObject); qt->addSymbol(t_QQuickItem); + QItemSelectionModelType* t_QItemSelectionModel = new QItemSelectionModelType(c, "QItemSelectionModel", t_QObject); qt->addSymbol(t_QItemSelectionModel); + QActionGroupType* t_QActionGroup = new QActionGroupType(c, "QActionGroup", t_QObject); qt->addSymbol(t_QActionGroup); + QIODeviceType* t_QIODevice = new QIODeviceType(c, "QIODevice", t_QObject, t_QIODeviceBase); qt->addSymbol(t_QIODevice); + QDialogType* t_QDialog = new QDialogType(c, "QDialog", t_QWidget); qt->addSymbol(t_QDialog); + QMainWindowType* t_QMainWindow = new QMainWindowType(c, "QMainWindow", t_QWidget); qt->addSymbol(t_QMainWindow); + QMenuType* t_QMenu = new QMenuType(c, "QMenu", t_QWidget); qt->addSymbol(t_QMenu); + QQuickWidgetType* t_QQuickWidget = new QQuickWidgetType(c, "QQuickWidget", t_QWidget); qt->addSymbol(t_QQuickWidget); + QAbstractButtonType* t_QAbstractButton = new QAbstractButtonType(c, "QAbstractButton", t_QWidget); qt->addSymbol(t_QAbstractButton); + QBoxLayoutType* t_QBoxLayout = new QBoxLayoutType(c, "QBoxLayout", t_QLayout); qt->addSymbol(t_QBoxLayout); + QWidgetActionType* t_QWidgetAction = new QWidgetActionType(c, "QWidgetAction", t_QAction); qt->addSymbol(t_QWidgetAction); + QSvgWidgetType* t_QSvgWidget = new QSvgWidgetType(c, "QSvgWidget", t_QWidget); qt->addSymbol(t_QSvgWidget); + QLocalSocketType* t_QLocalSocket = new QLocalSocketType(c, "QLocalSocket", t_QIODevice); qt->addSymbol(t_QLocalSocket); + QLineEditType* t_QLineEdit = new QLineEditType(c, "QLineEdit", t_QWidget); qt->addSymbol(t_QLineEdit); + QGuiApplicationType* t_QGuiApplication = new QGuiApplicationType(c, "QGuiApplication", t_QCoreApplication); qt->addSymbol(t_QGuiApplication); + QPointerEventType* t_QPointerEvent = new QPointerEventType(c, "QPointerEvent", t_QInputEvent); qt->addSymbol(t_QPointerEvent); + QGridLayoutType* t_QGridLayout = new QGridLayoutType(c, "QGridLayout", t_QLayout); qt->addSymbol(t_QGridLayout); + QMenuBarType* t_QMenuBar = new QMenuBarType(c, "QMenuBar", t_QWidget); qt->addSymbol(t_QMenuBar); + QStatusBarType* t_QStatusBar = new QStatusBarType(c, "QStatusBar", t_QWidget); qt->addSymbol(t_QStatusBar); + QBitmapType* t_QBitmap = new QBitmapType(c, "QBitmap", t_QPixmap); qt->addSymbol(t_QBitmap); + QProgressBarType* t_QProgressBar = new QProgressBarType(c, "QProgressBar", t_QWidget); qt->addSymbol(t_QProgressBar); + QGroupBoxType* t_QGroupBox = new QGroupBoxType(c, "QGroupBox", t_QWidget); qt->addSymbol(t_QGroupBox); + QComboBoxType* t_QComboBox = new QComboBoxType(c, "QComboBox", t_QWidget); qt->addSymbol(t_QComboBox); + QFormLayoutType* t_QFormLayout = new QFormLayoutType(c, "QFormLayout", t_QLayout); qt->addSymbol(t_QFormLayout); + QKeyEventType* t_QKeyEvent = new QKeyEventType(c, "QKeyEvent", t_QInputEvent); qt->addSymbol(t_QKeyEvent); + QProcessType* t_QProcess = new QProcessType(c, "QProcess", t_QIODevice); qt->addSymbol(t_QProcess); + QAbstractTableModelType* t_QAbstractTableModel = new QAbstractTableModelType(c, "QAbstractTableModel", t_QAbstractItemModel); qt->addSymbol(t_QAbstractTableModel); + QQmlEngineType* t_QQmlEngine = new QQmlEngineType(c, "QQmlEngine", t_QJSEngine); qt->addSymbol(t_QQmlEngine); + QNetworkReplyType* t_QNetworkReply = new QNetworkReplyType(c, "QNetworkReply", t_QIODevice); qt->addSymbol(t_QNetworkReply); + QContextMenuEventType* t_QContextMenuEvent = new QContextMenuEventType(c, "QContextMenuEvent", t_QInputEvent); qt->addSymbol(t_QContextMenuEvent); + QAbstractSliderType* t_QAbstractSlider = new QAbstractSliderType(c, "QAbstractSlider", t_QWidget); qt->addSymbol(t_QAbstractSlider); + QStandardItemModelType* t_QStandardItemModel = new QStandardItemModelType(c, "QStandardItemModel", t_QAbstractItemModel); qt->addSymbol(t_QStandardItemModel); + QToolBarType* t_QToolBar = new QToolBarType(c, "QToolBar", t_QWidget); qt->addSymbol(t_QToolBar); + QAbstractSocketType* t_QAbstractSocket = new QAbstractSocketType(c, "QAbstractSocket", t_QIODevice); qt->addSymbol(t_QAbstractSocket); + QWebEngineViewType* t_QWebEngineView = new QWebEngineViewType(c, "QWebEngineView", t_QWidget); qt->addSymbol(t_QWebEngineView); + QAbstractListModelType* t_QAbstractListModel = new QAbstractListModelType(c, "QAbstractListModel", t_QAbstractItemModel); qt->addSymbol(t_QAbstractListModel); + QAbstractSpinBoxType* t_QAbstractSpinBox = new QAbstractSpinBoxType(c, "QAbstractSpinBox", t_QWidget); qt->addSymbol(t_QAbstractSpinBox); + QFrameType* t_QFrame = new QFrameType(c, "QFrame", t_QWidget); qt->addSymbol(t_QFrame); + QTabWidgetType* t_QTabWidget = new QTabWidgetType(c, "QTabWidget", t_QWidget); qt->addSymbol(t_QTabWidget); + QDragMoveEventType* t_QDragMoveEvent = new QDragMoveEventType(c, "QDragMoveEvent", t_QDropEvent); qt->addSymbol(t_QDragMoveEvent); + QTabBarType* t_QTabBar = new QTabBarType(c, "QTabBar", t_QWidget); qt->addSymbol(t_QTabBar); + QDockWidgetType* t_QDockWidget = new QDockWidgetType(c, "QDockWidget", t_QWidget); qt->addSymbol(t_QDockWidget); + QFileDeviceType* t_QFileDevice = new QFileDeviceType(c, "QFileDevice", t_QIODevice); qt->addSymbol(t_QFileDevice); + QVBoxLayoutType* t_QVBoxLayout = new QVBoxLayoutType(c, "QVBoxLayout", t_QBoxLayout); qt->addSymbol(t_QVBoxLayout); + QToolButtonType* t_QToolButton = new QToolButtonType(c, "QToolButton", t_QAbstractButton); qt->addSymbol(t_QToolButton); + QLabelType* t_QLabel = new QLabelType(c, "QLabel", t_QFrame); qt->addSymbol(t_QLabel); + QCheckBoxType* t_QCheckBox = new QCheckBoxType(c, "QCheckBox", t_QAbstractButton); qt->addSymbol(t_QCheckBox); + QFileDialogType* t_QFileDialog = new QFileDialogType(c, "QFileDialog", t_QDialog); qt->addSymbol(t_QFileDialog); + QTcpSocketType* t_QTcpSocket = new QTcpSocketType(c, "QTcpSocket", t_QAbstractSocket); qt->addSymbol(t_QTcpSocket); + QDialType* t_QDial = new QDialType(c, "QDial", t_QAbstractSlider); qt->addSymbol(t_QDial); + QDragEnterEventType* t_QDragEnterEvent = new QDragEnterEventType(c, "QDragEnterEvent", t_QDragMoveEvent); qt->addSymbol(t_QDragEnterEvent); + QSinglePointEventType* t_QSinglePointEvent = new QSinglePointEventType(c, "QSinglePointEvent", t_QPointerEvent); qt->addSymbol(t_QSinglePointEvent); + QStackedWidgetType* t_QStackedWidget = new QStackedWidgetType(c, "QStackedWidget", t_QFrame); qt->addSymbol(t_QStackedWidget); + QUdpSocketType* t_QUdpSocket = new QUdpSocketType(c, "QUdpSocket", t_QAbstractSocket); qt->addSymbol(t_QUdpSocket); + QToolBoxType* t_QToolBox = new QToolBoxType(c, "QToolBox", t_QFrame); qt->addSymbol(t_QToolBox); + QQmlApplicationEngineType* t_QQmlApplicationEngine = new QQmlApplicationEngineType(c, "QQmlApplicationEngine", t_QQmlEngine); qt->addSymbol(t_QQmlApplicationEngine); + QColorDialogType* t_QColorDialog = new QColorDialogType(c, "QColorDialog", t_QDialog); qt->addSymbol(t_QColorDialog); + QRadioButtonType* t_QRadioButton = new QRadioButtonType(c, "QRadioButton", t_QAbstractButton); qt->addSymbol(t_QRadioButton); + QSpinBoxType* t_QSpinBox = new QSpinBoxType(c, "QSpinBox", t_QAbstractSpinBox); qt->addSymbol(t_QSpinBox); + QInputDialogType* t_QInputDialog = new QInputDialogType(c, "QInputDialog", t_QDialog); qt->addSymbol(t_QInputDialog); + QSliderType* t_QSlider = new QSliderType(c, "QSlider", t_QAbstractSlider); qt->addSymbol(t_QSlider); + QFileType* t_QFile = new QFileType(c, "QFile", t_QFileDevice); qt->addSymbol(t_QFile); + QApplicationType* t_QApplication = new QApplicationType(c, "QApplication", t_QGuiApplication); qt->addSymbol(t_QApplication); + QPushButtonType* t_QPushButton = new QPushButtonType(c, "QPushButton", t_QAbstractButton); qt->addSymbol(t_QPushButton); + QSplitterType* t_QSplitter = new QSplitterType(c, "QSplitter", t_QFrame); qt->addSymbol(t_QSplitter); + QAbstractScrollAreaType* t_QAbstractScrollArea = new QAbstractScrollAreaType(c, "QAbstractScrollArea", t_QFrame); qt->addSymbol(t_QAbstractScrollArea); + QHBoxLayoutType* t_QHBoxLayout = new QHBoxLayoutType(c, "QHBoxLayout", t_QBoxLayout); qt->addSymbol(t_QHBoxLayout); + QScrollAreaType* t_QScrollArea = new QScrollAreaType(c, "QScrollArea", t_QAbstractScrollArea); qt->addSymbol(t_QScrollArea); + QMouseEventType* t_QMouseEvent = new QMouseEventType(c, "QMouseEvent", t_QSinglePointEvent); qt->addSymbol(t_QMouseEvent); + QAbstractItemViewType* t_QAbstractItemView = new QAbstractItemViewType(c, "QAbstractItemView", t_QAbstractScrollArea); qt->addSymbol(t_QAbstractItemView); + QPlainTextEditType* t_QPlainTextEdit = new QPlainTextEditType(c, "QPlainTextEdit", t_QAbstractScrollArea); qt->addSymbol(t_QPlainTextEdit); + QHoverEventType* t_QHoverEvent = new QHoverEventType(c, "QHoverEvent", t_QSinglePointEvent); qt->addSymbol(t_QHoverEvent); + QTextEditType* t_QTextEdit = new QTextEditType(c, "QTextEdit", t_QAbstractScrollArea); qt->addSymbol(t_QTextEdit); + QTabletEventType* t_QTabletEvent = new QTabletEventType(c, "QTabletEvent", t_QSinglePointEvent); qt->addSymbol(t_QTabletEvent); + QWheelEventType* t_QWheelEvent = new QWheelEventType(c, "QWheelEvent", t_QSinglePointEvent); qt->addSymbol(t_QWheelEvent); + QTableViewType* t_QTableView = new QTableViewType(c, "QTableView", t_QAbstractItemView); qt->addSymbol(t_QTableView); + QHeaderViewType* t_QHeaderView = new QHeaderViewType(c, "QHeaderView", t_QAbstractItemView); qt->addSymbol(t_QHeaderView); + QColumnViewType* t_QColumnView = new QColumnViewType(c, "QColumnView", t_QAbstractItemView); qt->addSymbol(t_QColumnView); + QTreeViewType* t_QTreeView = new QTreeViewType(c, "QTreeView", t_QAbstractItemView); qt->addSymbol(t_QTreeView); + QTextBrowserType* t_QTextBrowser = new QTextBrowserType(c, "QTextBrowser", t_QTextEdit); qt->addSymbol(t_QTextBrowser); + QListViewType* t_QListView = new QListViewType(c, "QListView", t_QAbstractItemView); qt->addSymbol(t_QListView); + QTableWidgetType* t_QTableWidget = new QTableWidgetType(c, "QTableWidget", t_QTableView); qt->addSymbol(t_QTableWidget); + QTreeWidgetType* t_QTreeWidget = new QTreeWidgetType(c, "QTreeWidget", t_QTreeView); qt->addSymbol(t_QTreeWidget); + QListWidgetType* t_QListWidget = new QListWidgetType(c, "QListWidget", t_QListView); qt->addSymbol(t_QListWidget); +return t_QWidget; +} diff --git a/src/lib/mu/MuQt6/qtUtils.cpp b/src/lib/mu/MuQt6/qtUtils.cpp new file mode 100644 index 000000000..cc12bd3c3 --- /dev/null +++ b/src/lib/mu/MuQt6/qtUtils.cpp @@ -0,0 +1,93 @@ +// +// Copyright (c) 2009, Jim Hourihan +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +using namespace std; + +Pointer +assertNotNil(Thread& thread, const Node& node, Pointer p, size_t n) +{ + if (!p) + { + MuLangContext *context = (MuLangContext*)thread.context(); + const Symbol* s = node.symbol(); + const Function* f = dynamic_cast(s); + + + ostringstream str; + str << "Argument " << n; + + if (f && f->hasParameters()) + { + str << " (" << f->parameter(n)->name() << " of type " + << f->parameter(n)->storageClass()->fullyQualifiedName() + << ")"; + } + + str << " in function " << s->fullyQualifiedName() + << ": unexpected nil argument"; + + ExceptionType::Exception *e = + new ExceptionType::Exception(context->exceptionType()); + e->string() += str.str().c_str(); + thread.setException(e); + ProgramException exc(thread); + exc.message() = str.str().c_str(); + throw exc; + } + + return p; +} + +Class::ClassVector vectorOf2(Class* a, Class *b) +{ + Class::ClassVector array(2); + array[0] = a; + array[1] = b; + return array; +} + +bool isMuQtObject(QObject* o) +{ + // + // This is a pretty poor way to do this, but it works + // + + return o ? strstr(typeid(*o).name(), "MuQt") != 0 : false; +} + +bool isMuQtLayoutItem(QLayoutItem* o) { return o ? strstr(typeid(*o).name(), "MuQt") != 0 : false; } +bool isMuQtPaintDevice(QPaintDevice* o) { return o ? strstr(typeid(*o).name(), "MuQt") != 0 : false; } +bool isMuQtIODeviceBase(QIODeviceBase* o) { return o ? strstr(typeid(*o).name(), "MuQt") != 0 : false; } + +#if 0 +static MuQtQObjectFinalizer(void* obj, void* data) +{ + ClassInstance* i = reinterpret_cast(obj); + Pointer* pp = i->data(); + if (*pp == this) *pp = 0; +} + + +NODE_IMPLEMENTATION(__allocate_register_gc_qobject, Pointer) +{ + const Class* c = static_cast(NODE_THIS.symbol()->scope()); + ClassInstance* i = ClassInstance::allocate(c); + GC_register_finalizer(o, MuQtQObjectFinalizer, 0, 0, 0); +} +#endif + +} diff --git a/src/lib/mu/MuQt6/signalspy.sed b/src/lib/mu/MuQt6/signalspy.sed new file mode 100644 index 000000000..4997af2ea --- /dev/null +++ b/src/lib/mu/MuQt6/signalspy.sed @@ -0,0 +1,2 @@ +s/::SignalSpy::qt_metacall/::SignalSpy::original_qt_metacall/ +s/_id = QSignalSpy::qt_metacall(_c, _id, _a);// diff --git a/src/lib/mu/MuQt6/templates/TemplateGlobal.cpp b/src/lib/mu/MuQt6/templates/TemplateGlobal.cpp new file mode 100644 index 000000000..da50add48 --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateGlobal.cpp @@ -0,0 +1,62 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +//TODO_QT: This could be removed if qtGlobal is really not needed. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +{%%handRolledInclude%%} + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +{%%definitions%%} +{%%handRolledDefinitions%%} + +void +qtModule::loadGlobals() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + {%%addSymbolsEnums%%} + {%%addSymbols%%} + {%%addHandRolledSymbols%%} +} + +} // Mu diff --git a/src/lib/mu/MuQt6/templates/TemplateGlobal.h b/src/lib/mu/MuQt6/templates/TemplateGlobal.h new file mode 100644 index 000000000..146701c0c --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateGlobal.h @@ -0,0 +1,23 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__$TType__h__ +#define __MuQt5__$TType__h__ +#include +#include +#include +#include +#include +#include + + +#endif // __MuQt5__$TType__h__ diff --git a/src/lib/mu/MuQt6/templates/TemplateIODeviceBaseType.cpp b/src/lib/mu/MuQt6/templates/TemplateIODeviceBaseType.cpp new file mode 100644 index 000000000..2be42839a --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateIODeviceBaseType.cpp @@ -0,0 +1,131 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +{%%handRolledInclude%%} + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION POTATO + +{%%nativeMuQtClassImplemenation%%} + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +$TType::$TType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +$TType::~$TType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +// static Pointer +// $T_$T_QIODeviceBase(Thread& NODE_THREAD, Pointer obj) +// { +// MuLangContext* c = static_cast(NODE_THREAD.context()); +// ClassInstance* item = reinterpret_cast(obj); + +// if (!item) +// { +// return 0; +// } +// else if ($T* i = iodevicebase<$T>(item)) +// { +// $TType* type = +// c->findSymbolOfTypeByQualifiedName<$TType>(c->internName("qt.$T"), false); +// ClassInstance* o = ClassInstance::allocate(type); +// setiodevicebase(o, i); +// return o; +// } +// else +// { +// throw BadCastException(); +// } +// } + +// static NODE_IMPLEMENTATION(castFromLayoutItem, Pointer) +// { +// NODE_RETURN( $T_$T_QIODeviceBase(NODE_THREAD, NODE_ARG(0, Pointer)) ); +// } + +{%%definitions%%} +{%%handRolledDefinitions%%} + +void +$TType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + {%%nativeObject%%} + + EndArguments ); + + {%%addSymbols%%} + {%%addHandRolledSymbols%%} +} + +} // Mu diff --git a/src/lib/mu/MuQt6/templates/TemplateIODeviceBaseType.h b/src/lib/mu/MuQt6/templates/TemplateIODeviceBaseType.h new file mode 100644 index 000000000..11b2c4d7c --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateIODeviceBaseType.h @@ -0,0 +1,61 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__$TType__h__ +#define __MuQt6__$TType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +{%%muqtForwardDeclaration%%} + +class $TType : public Class +{ + public: + + {%%typeDeclarations%%} + typedef MuQt_$T MuQtType; + typedef $T QtType; + + // + // Constructors + // + + $TType(Context* context, const char* name, Class* superClass = 0); + virtual ~$TType(); + + {%%isInheritableFunc%%} + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + {%%virtualArray%%} +}; + +{%%nativeMuQtClass%%} +{%%cachedInstanceFunc%%} + +} // Mu + +#endif // __MuQt6__$TType__h__ diff --git a/src/lib/mu/MuQt6/templates/TemplateInterfaceType.cpp b/src/lib/mu/MuQt6/templates/TemplateInterfaceType.cpp new file mode 100644 index 000000000..8b3e485bf --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateInterfaceType.cpp @@ -0,0 +1,94 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +{%%handRolledInclude%%} + +namespace Mu { +using namespace std; + +$TType::$TType(Context* c, const char* name) + : Interface(c, name) +{ +} + +$TType::~$TType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +{%%definitions%%} +{%%handRolledDefinitions%%} + +void +$TType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols( new Function(c, "=", BaseFunctions::assign, AsOp, + Return, frtn, + Args, frtn, ftn, End), + + {%%nativeObject%%} + + EndArguments ); + + {%%addSymbols%%} + {%%addHandRolledSymbols%%} +} + +} // Mu diff --git a/src/lib/mu/MuQt6/templates/TemplateInterfaceType.h b/src/lib/mu/MuQt6/templates/TemplateInterfaceType.h new file mode 100644 index 000000000..e4368973d --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateInterfaceType.h @@ -0,0 +1,48 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__$TType__h__ +#define __MuQt5__$TType__h__ +#include +#include +#include + +namespace Mu { + +class $TType : public Interface +{ + public: + // + // Constructors + // + + typedef $T ValueType; + + struct Struct + { + $T* object; + }; + + + $TType(Context* context, const char* name); + virtual ~$TType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__$TType__h__ diff --git a/src/lib/mu/MuQt6/templates/TemplateLayoutItemType.cpp b/src/lib/mu/MuQt6/templates/TemplateLayoutItemType.cpp new file mode 100644 index 000000000..3659fce27 --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateLayoutItemType.cpp @@ -0,0 +1,138 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +{%%handRolledInclude%%} + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +{%%nativeMuQtClassImplemenation%%} + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +$TType::$TType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +$TType::~$TType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +$T_$T_QLayoutItem(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* item = reinterpret_cast(obj); + + if (!item) + { + return 0; + } + else if ($T* i = layoutitem<$T>(item)) + { + $TType* type = + c->findSymbolOfTypeByQualifiedName<$TType>(c->internName("qt.$T"), false); + ClassInstance* o = ClassInstance::allocate(type); + setlayoutitem(o, i); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromLayoutItem, Pointer) +{ + NODE_RETURN( $T_$T_QLayoutItem(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +{%%definitions%%} +{%%handRolledDefinitions%%} + +void +$TType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + {%%nativeObject%%} + + new Function(c, tn, castFromLayoutItem, Cast, + Compiled, $T_$T_QLayoutItem, + Return, ftn, + Parameters, + new Param(c, "layoutItem", "qt.QLayoutItem"), + End), + + EndArguments ); + + {%%addSymbols%%} + {%%addHandRolledSymbols%%} +} + +} // Mu diff --git a/src/lib/mu/MuQt6/templates/TemplateLayoutItemType.h b/src/lib/mu/MuQt6/templates/TemplateLayoutItemType.h new file mode 100644 index 000000000..11b2c4d7c --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateLayoutItemType.h @@ -0,0 +1,61 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__$TType__h__ +#define __MuQt6__$TType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +{%%muqtForwardDeclaration%%} + +class $TType : public Class +{ + public: + + {%%typeDeclarations%%} + typedef MuQt_$T MuQtType; + typedef $T QtType; + + // + // Constructors + // + + $TType(Context* context, const char* name, Class* superClass = 0); + virtual ~$TType(); + + {%%isInheritableFunc%%} + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + {%%virtualArray%%} +}; + +{%%nativeMuQtClass%%} +{%%cachedInstanceFunc%%} + +} // Mu + +#endif // __MuQt6__$TType__h__ diff --git a/src/lib/mu/MuQt6/templates/TemplateObjectType.cpp b/src/lib/mu/MuQt6/templates/TemplateObjectType.cpp new file mode 100644 index 000000000..a6d78cb15 --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateObjectType.cpp @@ -0,0 +1,142 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +{%%handRolledInclude%%} + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +{%%nativeMuQtClassImplemenation%%} + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +$TType::$TType(Context* c, const char* name, Class* super, Class* super2) +: Class(c, name, vectorOf2(super, super2)) +{ +} + +$TType::~$TType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +$T_$T_QObject(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* widget = reinterpret_cast(obj); + + if (!widget) + { + return 0; + } + else if ($T* w = object<$T>(widget)) + { + $TType* type = + c->findSymbolOfTypeByQualifiedName<$TType>(c->internName("qt.$T"), false); + ClassInstance* o = ClassInstance::allocate(type); + setobject(o, w); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromObject, Pointer) +{ + NODE_RETURN( $T_$T_QObject(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +{%%definitions%%} +{%%handRolledDefinitions%%} + +void +$TType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + {%%nativeObject%%} + + new Function(c, tn, castFromObject, Cast, + Compiled, $T_$T_QObject, + Return, ftn, + Parameters, + new Param(c, "object", "qt.QObject"), + End), + + EndArguments ); + + {%%addSymbols%%} + {%%addHandRolledSymbols%%} + + {%%propExclusions%%} + + populate(this, $T::staticMetaObject, propExclusions); +} + +} // Mu diff --git a/src/lib/mu/MuQt6/templates/TemplateObjectType.h b/src/lib/mu/MuQt6/templates/TemplateObjectType.h new file mode 100644 index 000000000..ae57e1154 --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateObjectType.h @@ -0,0 +1,69 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__$TType__h__ +#define __MuQt6__$TType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +{%%muqtForwardDeclaration%%} + +class $TType : public Class +{ + public: + + {%%typeDeclarations%%} + typedef MuQt_$T MuQtType; + typedef $T QtType; + + // + // Constructors + // + + $TType(Context* context, + const char* name, + Class* superClass = 0, + Class* superClass2 = 0); + + virtual ~$TType(); + + {%%isInheritableFunc%%} + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + {%%virtualArray%%} +}; + +{%%nativeMuQtClass%%} +{%%cachedInstanceFunc%%} + +} // Mu + +#endif // __MuQt__$TType__h__ diff --git a/src/lib/mu/MuQt6/templates/TemplatePaintDeviceType.cpp b/src/lib/mu/MuQt6/templates/TemplatePaintDeviceType.cpp new file mode 100644 index 000000000..f4b263616 --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplatePaintDeviceType.cpp @@ -0,0 +1,138 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +{%%handRolledInclude%%} + +namespace Mu { +using namespace std; + +//---------------------------------------------------------------------- +// INHERITABLE TYPE IMPLEMENTATION + +{%%nativeMuQtClassImplemenation%%} + +//---------------------------------------------------------------------- +// Mu Type CONSTRUCTORS + +$TType::$TType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +$TType::~$TType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +static Pointer +$T_$T_QLayoutItem(Thread& NODE_THREAD, Pointer obj) +{ + MuLangContext* c = static_cast(NODE_THREAD.context()); + ClassInstance* item = reinterpret_cast(obj); + + if (!item) + { + return 0; + } + else if ($T* i = layoutitem<$T>(item)) + { + $TType* type = + c->findSymbolOfTypeByQualifiedName<$TType>(c->internName("qt.$T"), false); + ClassInstance* o = ClassInstance::allocate(type); + setpaintdevice(o, i); + return o; + } + else + { + throw BadCastException(); + } +} + +static NODE_IMPLEMENTATION(castFromLayoutItem, Pointer) +{ + NODE_RETURN( $T_$T_QLayoutItem(NODE_THREAD, NODE_ARG(0, Pointer)) ); +} + +{%%definitions%%} +{%%handRolledDefinitions%%} + +void +$TType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + {%%nativeObject%%} + + new Function(c, tn, castFromLayoutItem, Cast, + Compiled, $T_$T_QLayoutItem, + Return, ftn, + Parameters, + new Param(c, "layoutItem", "qt.QLayoutItem"), + End), + + EndArguments ); + + {%%addSymbols%%} + {%%addHandRolledSymbols%%} +} + +} // Mu diff --git a/src/lib/mu/MuQt6/templates/TemplatePaintDeviceType.h b/src/lib/mu/MuQt6/templates/TemplatePaintDeviceType.h new file mode 100644 index 000000000..11b2c4d7c --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplatePaintDeviceType.h @@ -0,0 +1,61 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt6__$TType__h__ +#define __MuQt6__$TType__h__ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Mu { +{%%muqtForwardDeclaration%%} + +class $TType : public Class +{ + public: + + {%%typeDeclarations%%} + typedef MuQt_$T MuQtType; + typedef $T QtType; + + // + // Constructors + // + + $TType(Context* context, const char* name, Class* superClass = 0); + virtual ~$TType(); + + {%%isInheritableFunc%%} + static inline ClassInstance* cachedInstance(const MuQtType*); + + // + // Class API + // + + virtual void load(); + + {%%virtualArray%%} +}; + +{%%nativeMuQtClass%%} +{%%cachedInstanceFunc%%} + +} // Mu + +#endif // __MuQt6__$TType__h__ diff --git a/src/lib/mu/MuQt6/templates/TemplatePointerType.cpp b/src/lib/mu/MuQt6/templates/TemplatePointerType.cpp new file mode 100644 index 000000000..4618f470b --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplatePointerType.cpp @@ -0,0 +1,96 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +{%%handRolledInclude%%} + +namespace Mu { +using namespace std; + +$TType::$TType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +$TType::~$TType() +{ +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +{%%definitions%%} +{%%handRolledDefinitions%%} + +void +$TType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", BaseFunctions::classAllocate, None, + Return, ftn, + End), + + new MemberVariable(c, "native", "qt.NativeObject"), + + EndArguments ); + + + {%%addSymbolsEnums%%} + {%%addSymbols%%} + {%%addHandRolledSymbols%%} +} + +} // Mu diff --git a/src/lib/mu/MuQt6/templates/TemplatePointerType.h b/src/lib/mu/MuQt6/templates/TemplatePointerType.h new file mode 100644 index 000000000..6e92b48ff --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplatePointerType.h @@ -0,0 +1,50 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__$TType__h__ +#define __MuQt5__$TType__h__ +#include +#include + +namespace Mu { + +class $TType : public Class +{ + public: + // + // Types + // + + typedef $T ValueType; + + struct Struct + { + $T* object; + }; + + // + // Constructors + // + + $TType(Context* context, const char* name, Class* superClass = 0); + virtual ~$TType(); + + // + // Class API + // + + virtual void load(); +}; + +} // Mu + +#endif // __MuQt5__$TType__h__ diff --git a/src/lib/mu/MuQt6/templates/TemplateType.cpp b/src/lib/mu/MuQt6/templates/TemplateType.cpp new file mode 100644 index 000000000..e68e1394d --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateType.cpp @@ -0,0 +1,116 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +{%%handRolledInclude%%} + +namespace Mu { +using namespace std; + +$TType::Instance::Instance(const Class* c) : ClassInstance(c) +{ +} + +$TType::$TType(Context* c, const char* name, Class* super) + : Class(c, name, super) +{ +} + +$TType::~$TType() +{ +} + +static NODE_IMPLEMENTATION(__allocate, Pointer) +{ + $TType::Instance* i = new $TType::Instance((Class*)NODE_THIS.type()); + $TType::registerFinalizer(i); + NODE_RETURN(i); +} + +void +$TType::registerFinalizer (void* o) +{ + GC_register_finalizer(o, $TType::finalizer, 0, 0, 0); +} + +void +$TType::finalizer (void* obj, void* data) +{ + $TType::Instance* i = reinterpret_cast<$TType::Instance*>(obj); + delete i; +} + +//---------------------------------------------------------------------- +// PRE-COMPILED FUNCTIONS + +{%%definitions%%} +{%%handRolledDefinitions%%} + +void +$TType::load() +{ + USING_MU_FUNCTION_SYMBOLS; + MuLangContext* c = static_cast(context()); + Module* global = globalModule(); + + const string typeName = name(); + const string refTypeName = typeName + "&"; + const string fullTypeName = fullyQualifiedName(); + const string fullRefTypeName = fullTypeName + "&"; + const char* tn = typeName.c_str(); + const char* ftn = fullTypeName.c_str(); + const char* rtn = refTypeName.c_str(); + const char* frtn = fullRefTypeName.c_str(); + + scope()->addSymbols(new ReferenceType(c, rtn, this), + + new Function(c, tn, BaseFunctions::dereference, Cast, + Return, ftn, + Args, frtn, End), + + EndArguments); + + addSymbols(new Function(c, "__allocate", __allocate, None, + Return, ftn, + End), + + EndArguments ); + + {%%addSymbolsEnums%%} + {%%addSymbols%%} + {%%addHandRolledSymbols%%} +} + +} // Mu diff --git a/src/lib/mu/MuQt6/templates/TemplateType.h b/src/lib/mu/MuQt6/templates/TemplateType.h new file mode 100644 index 000000000..68ddef914 --- /dev/null +++ b/src/lib/mu/MuQt6/templates/TemplateType.h @@ -0,0 +1,67 @@ +//***************************************************************************** +// Copyright (c) 2024 Autodesk, Inc. +// All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +//***************************************************************************** + +// IMPORTANT: This file (not the template) is auto-generated by qt2mu.py script. +// The prefered way to do a fix is to handrolled it or modify the qt2mu.py script. +// If it is not possible, manual editing is ok but it could be lost in future generations. + +#ifndef __MuQt5__$TType__h__ +#define __MuQt5__$TType__h__ +#include +#include +#include +#include +#include +#include + +namespace Mu { + +class $TType : public Class +{ + public: + // + // Types + // + + typedef $T ValueType; + + class Instance : public ClassInstance + { + public: + // + // Probably need some kind of finalizer for classes that are + // references (e.g. QIcon) + // + Instance(const Class*); + $T value; + }; + + // + // Constructors + // + + $TType(Context* context, const char* name, Class* superClass = 0); + virtual ~$TType(); + + // + // Class API + // + + virtual void load(); + + // + // Finalizer + // + + static void registerFinalizer (void*); + static void finalizer (void*, void*); +}; + +} // Mu + +#endif // __MuQt5__$TType__h__ diff --git a/src/lib/mu/mu_qt/CMakeLists.txt b/src/lib/mu/mu_qt/CMakeLists.txt index 61fea43a9..a5e9403bc 100644 --- a/src/lib/mu/mu_qt/CMakeLists.txt +++ b/src/lib/mu/mu_qt/CMakeLists.txt @@ -31,7 +31,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PRIVATE Mu MuLang MuQt5 + PRIVATE Mu MuLang ${RV_QT_MU_TARGET} ) RV_STAGE(TYPE "MU_PLUGIN" TARGET ${_target}) diff --git a/src/lib/mu/mu_qt/init.cpp b/src/lib/mu/mu_qt/init.cpp index 3bbc16741..eb543ad06 100644 --- a/src/lib/mu/mu_qt/init.cpp +++ b/src/lib/mu/mu_qt/init.cpp @@ -10,7 +10,12 @@ #include #include #include + +#if defined( RV_VFX_CY2023 ) #include +#else +#include +#endif #ifdef WIN32 #include diff --git a/src/lib/network/QtBonjour/CMakeLists.txt b/src/lib/network/QtBonjour/CMakeLists.txt index 8b95f7f7a..8f7fb1500 100644 --- a/src/lib/network/QtBonjour/CMakeLists.txt +++ b/src/lib/network/QtBonjour/CMakeLists.txt @@ -38,7 +38,7 @@ ADD_LIBRARY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -50,7 +50,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PUBLIC Qt5::Core + PUBLIC Qt::Core ) RV_STAGE(TYPE "LIBRARY" TARGET ${_target}) diff --git a/src/lib/network/TwkQtChat/CMakeLists.txt b/src/lib/network/TwkQtChat/CMakeLists.txt index bd42868d3..de5b530af 100644 --- a/src/lib/network/TwkQtChat/CMakeLists.txt +++ b/src/lib/network/TwkQtChat/CMakeLists.txt @@ -24,7 +24,7 @@ ADD_LIBRARY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core Network REQUIRED ) @@ -36,7 +36,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PUBLIC Qt5::Core Qt5::Network + PUBLIC Qt::Core Qt::Network ) RV_STAGE(TYPE "LIBRARY" TARGET ${_target}) diff --git a/src/lib/network/TwkQtChat/Connection.cpp b/src/lib/network/TwkQtChat/Connection.cpp index 70373f73f..9c2d84145 100644 --- a/src/lib/network/TwkQtChat/Connection.cpp +++ b/src/lib/network/TwkQtChat/Connection.cpp @@ -283,7 +283,7 @@ Connection::processReadyRead() if (m_pingpong) { m_pingTimer.start(); - m_pongTime.start(); + m_pongTime.restart(); } m_state = ReadyForUse; @@ -308,7 +308,7 @@ void Connection::startPingPong() { DB ("turning on heartbeat"); - m_pongTime.start(); + m_pongTime.restart(); m_pingTimer.start(); m_pingpong = true; } @@ -532,7 +532,7 @@ Connection::processData() if (m_pingpong) { m_pingTimer.start(); - m_pongTime.start(); + m_pongTime.restart(); } m_currentDataType = Undefined; m_numBytesForCurrentDataType = 0; diff --git a/src/lib/network/TwkQtChat/TwkQtChat/Connection.h b/src/lib/network/TwkQtChat/TwkQtChat/Connection.h index 4e6269d81..c8fe7973b 100644 --- a/src/lib/network/TwkQtChat/TwkQtChat/Connection.h +++ b/src/lib/network/TwkQtChat/TwkQtChat/Connection.h @@ -8,6 +8,7 @@ #ifndef __TwkQtChat__Connection__h__ #define __TwkQtChat__Connection__h__ #include +#include #include #include #include @@ -102,7 +103,7 @@ class Connection : public QTcpSocket QString m_expectedContactName; QHostAddress m_expectedAddress; QTimer m_pingTimer; - QTime m_pongTime; + QElapsedTimer m_pongTime; QByteArray m_buffer; ConnectionState m_state; DataType m_currentDataType; diff --git a/src/lib/qt/TwkQtCoreUtil/CMakeLists.txt b/src/lib/qt/TwkQtCoreUtil/CMakeLists.txt index f08624232..14aebf155 100644 --- a/src/lib/qt/TwkQtCoreUtil/CMakeLists.txt +++ b/src/lib/qt/TwkQtCoreUtil/CMakeLists.txt @@ -20,7 +20,7 @@ ADD_LIBRARY( ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Core REQUIRED ) @@ -32,7 +32,7 @@ TARGET_INCLUDE_DIRECTORIES( TARGET_LINK_LIBRARIES( ${_target} - PUBLIC Qt5::Core + PUBLIC Qt::Core ) RV_STAGE(TYPE "LIBRARY" TARGET ${_target}) diff --git a/src/plugins/rv-packages/multiple_source_media_rep/multiple_source_media_rep.py b/src/plugins/rv-packages/multiple_source_media_rep/multiple_source_media_rep.py index 46b0fc6f2..b5ae29fd6 100755 --- a/src/plugins/rv-packages/multiple_source_media_rep/multiple_source_media_rep.py +++ b/src/plugins/rv-packages/multiple_source_media_rep/multiple_source_media_rep.py @@ -8,7 +8,13 @@ # agreement to the ShotGrid Pipeline Toolkit Source Code License. All rights # not expressly granted therein are reserved by ShotGrid Software Inc. -from PySide2 import QtCore, QtGui, QtWidgets +try: + from PySide2 import QtCore, QtGui, QtWidgets +except ImportError: + try: + from PySide6 import QtCore, QtGui, QtWidgets + except ImportError: + pass from rv import rvtypes, qtutils from rv import commands as rvc diff --git a/src/plugins/rv-packages/pyside_example/pyside_example.py b/src/plugins/rv-packages/pyside_example/pyside_example.py index 70f47c554..a0bbdba34 100755 --- a/src/plugins/rv-packages/pyside_example/pyside_example.py +++ b/src/plugins/rv-packages/pyside_example/pyside_example.py @@ -5,11 +5,21 @@ # import os -from PySide2 import QtGui, QtCore, QtWidgets -from PySide2.QtGui import * -from PySide2.QtCore import * -from PySide2.QtWidgets import * -from PySide2.QtUiTools import QUiLoader +try: + from PySide2 import QtGui, QtCore, QtWidgets + from PySide2.QtGui import * + from PySide2.QtCore import * + from PySide2.QtWidgets import * + from PySide2.QtUiTools import QUiLoader +except ImportError: + try: + from PySide6 import QtGui, QtCore, QtWidgets + from PySide6.QtGui import * + from PySide6.QtCore import * + from PySide6.QtWidgets import * + from PySide6.QtUiTools import QUiLoader + except ImportError: + pass from OpenGL.GL import * from OpenGL.GLUT import * diff --git a/src/plugins/rv-packages/session_manager/CMakeLists.txt b/src/plugins/rv-packages/session_manager/CMakeLists.txt index b5ee65c79..b4fce6d24 100644 --- a/src/plugins/rv-packages/session_manager/CMakeLists.txt +++ b/src/plugins/rv-packages/session_manager/CMakeLists.txt @@ -8,4 +8,14 @@ SET(_target "session_manager" ) +IF(RV_VFX_PLATFORM STREQUAL CY2024) + SET(MU_QT_QDRAGMOVEEVENT_POSITION "event.position().toPoint()") + SET(MU_QT_QPALETTE_COLORROLE "QPalette.Window") +ELSEIF(RV_VFX_PLATFORM STREQUAL CY2023) + SET(MU_QT_QDRAGMOVEEVENT_POSITION "event.pos()") + SET(MU_QT_QPALETTE_COLORROLE "QPalette.Background") +ENDIF() + +configure_file(session_manager.mu.in ${CMAKE_CURRENT_SOURCE_DIR}/session_manager.mu @ONLY) + RV_STAGE(TYPE "RVPKG" TARGET ${_target}) diff --git a/src/plugins/rv-packages/session_manager/session_manager.mu b/src/plugins/rv-packages/session_manager/session_manager.mu.in similarity index 99% rename from src/plugins/rv-packages/session_manager/session_manager.mu rename to src/plugins/rv-packages/session_manager/session_manager.mu.in index 3c1eb4a39..ab63ed380 100755 --- a/src/plugins/rv-packages/session_manager/session_manager.mu +++ b/src/plugins/rv-packages/session_manager/session_manager.mu.in @@ -794,7 +794,7 @@ class: NodeTreeView : QTreeView method: dragMoveEvent (void; QDragMoveEvent event) { - let index = indexAt(event.pos()), + let index = indexAt(@MU_QT_QDRAGMOVEEVENT_POSITION@), item = _viewModel.itemFromIndex(index); if (item eq nil) @@ -1025,7 +1025,7 @@ class: SessionManagerMode : MinorMode method: colorAdjustedIcon (QIcon; string rpath, bool invertSense) { - let bg = QApplication.palette().color(QPalette.Active, QPalette.Background), + let bg = QApplication.palette().color(QPalette.Active, @MU_QT_QPALETTE_COLORROLE@), icon0 = QImage(regex.replace("48x48", rpath, "out"), nil), icon1 = QImage(rpath, nil), swap = invertSense != _darkUI, diff --git a/src/plugins/rv-packages/webview2/webview2.py b/src/plugins/rv-packages/webview2/webview2.py index 5bfd4a2b9..79796baad 100644 --- a/src/plugins/rv-packages/webview2/webview2.py +++ b/src/plugins/rv-packages/webview2/webview2.py @@ -3,16 +3,32 @@ # # SPDX-License-Identifier: Apache-2.0 # -from PySide2 import QtCore -from PySide2 import QtWidgets -from PySide2 import QtWebChannel -from PySide2 import QtWebEngineWidgets -from PySide2 import QtQml - -from PySide2.QtWidgets import ( - qApp, -) # import qApp#, QMainWindow, QLabel, QPixmap, QColor, QGridLayout, QWidget, QPushButton, QComboBox -from PySide2.QtWidgets import QDockWidget + +try: + from PySide2 import QtCore + from PySide2 import QtWidgets + from PySide2 import QtWebChannel + from PySide2 import QtWebEngineWidgets + from PySide2 import QtQml + + from PySide2.QtWidgets import ( + qApp, + ) # import qApp#, QMainWindow, QLabel, QPixmap, QColor, QGridLayout, QWidget, QPushButton, QComboBox + from PySide2.QtWidgets import QDockWidget +except ImportError: + try: + from PySide6 import QtCore + from PySide6 import QtWidgets + from PySide6 import QtWebChannel + from PySide6 import QtWebEngineWidgets + from PySide6 import QtQml + + from PySide6.QtWidgets import ( + qApp, + ) # import qApp#, QMainWindow, QLabel, QPixmap, QColor, QGridLayout, QWidget, QPushButton, QComboBox + from PySide6.QtWidgets import QDockWidget + except ImportError: + pass print(QtWebEngineWidgets.__file__) diff --git a/src/pub b/src/pub index 6dabc23ef..54def93b6 160000 --- a/src/pub +++ b/src/pub @@ -1 +1 @@ -Subproject commit 6dabc23eff24c36ebc2c2dca86057ae73d04dd5a +Subproject commit 54def93b6bb8d259e4e8bb96ca0a2c0d2a2771c9 diff --git a/src/test/QFontTest/CMakeLists.txt b/src/test/QFontTest/CMakeLists.txt index d5a751fe9..2781353f2 100644 --- a/src/test/QFontTest/CMakeLists.txt +++ b/src/test/QFontTest/CMakeLists.txt @@ -16,7 +16,7 @@ SET(_font_path ${PROJECT_SOURCE_DIR}/src/lib/app/RvCommon/qrc/fonts/fontawesome-webfont.ttf ) FIND_PACKAGE( - Qt5 + ${RV_QT_PACKAGE_NAME} COMPONENTS Widgets Core Gui REQUIRED ) @@ -31,7 +31,7 @@ ADD_EXECUTABLE( ) TARGET_LINK_LIBRARIES( ${_target_qt} - PRIVATE QTBundle Qt5::Widgets Qt5::Gui Qt5::Core doctest + PRIVATE QTBundle Qt::Widgets Qt::Gui Qt::Core doctest ) ADD_TEST( NAME ${_target_qt}